|
@@ -5,7 +5,7 @@ import { GET_PREC_LIST,SET_PREC_SHOW } from "../types/preIcss";
|
|
|
import config from '@config/index';
|
|
|
import {Notify} from '@commonComp';
|
|
|
|
|
|
-export const getPreMsg = () => {
|
|
|
+export const getPreMsg = (sign) => {
|
|
|
let baseList = store.getState().patInfo.message;
|
|
|
json('/api/prec/inquiryInfo/hisInquirysForIcss', {
|
|
|
"isHaveDetail":1,
|
|
@@ -18,9 +18,10 @@ export const getPreMsg = () => {
|
|
|
if (data.code == 0) {
|
|
|
let result = data.data;
|
|
|
if(result.length > 0){
|
|
|
- store.dispatch({type:SET_PREC_SHOW})
|
|
|
+ !sign&&store.dispatch({type:SET_PREC_SHOW})
|
|
|
}else{
|
|
|
- Notify.info('暂无预问诊信息');
|
|
|
+ sign&&store.dispatch({type:SET_PREC_SHOW})
|
|
|
+ !sign&&Notify.info('暂无预问诊信息');
|
|
|
}
|
|
|
store.dispatch({type:GET_PREC_LIST,preData:result});
|
|
|
} else {
|
|
@@ -55,6 +56,6 @@ export const tellPred = () => {
|
|
|
"patientSex": idcon.patientSex=='男'?1:idcon.patientSex=='女'?2:3,
|
|
|
"patientBirthday": idcon.birthday
|
|
|
},true).then((res) => {
|
|
|
-
|
|
|
+ getPreMsg(1)
|
|
|
})
|
|
|
}
|