|
@@ -15,6 +15,7 @@ const api = {
|
|
|
getPatBaseInfo: '/patientInfo/getPatientInfo',
|
|
|
getHospitalInfo:'/hospitalInfo/getHospitalInfo',
|
|
|
getPreMsg:'/api/prec/inquiryInfo/getInquiryDetail',
|
|
|
+ getPreMsgLis:'/api/prec/inquiryInfo/hisInquirys',
|
|
|
getDoctorConfig:'/doctorPageMode/getDoctorPageModes', //获取医生设置
|
|
|
};
|
|
|
|
|
@@ -23,7 +24,7 @@ export const getPreMsg = (dispatch, getState) => {
|
|
|
// let baseList = getState();
|
|
|
// let state = baseList.patInfo.message;
|
|
|
const inCode = config.preIcss.recordIdVal===-1?getUrlArgObject("recordId"):config.preIcss.recordIdVal;
|
|
|
- json(api.getPreMsg, {
|
|
|
+ json(api.getPreMsgLis, {
|
|
|
"hospitalCode": getUrlArgObject('hospitalId'),
|
|
|
"inquiryCode":inCode,
|
|
|
"patientCode": getUrlArgObject("patientNo"),
|
|
@@ -32,13 +33,14 @@ export const getPreMsg = (dispatch, getState) => {
|
|
|
const data = res.data;
|
|
|
if (data.code == 0) {
|
|
|
let result = data.data;
|
|
|
+ console.log(result)
|
|
|
let preIcss = {
|
|
|
chief:result.chiefComplaint?new Array(result.chiefComplaint):[],
|
|
|
current:result.xbs?new Array(result.xbs):[],
|
|
|
other:result.qts?new Array(result.qts):[],
|
|
|
checkBody:result.supplement?result.supplement:''
|
|
|
}
|
|
|
- dispatch({type:SETPRE,show:true});
|
|
|
+ // dispatch({type:SETPRE,show:true});
|
|
|
dispatch({type:SETPREDATA,preData:preIcss});
|
|
|
} else {
|
|
|
// console.log(res)
|
|
@@ -92,15 +94,15 @@ export const initHistoryDetails = (dispatch) => {
|
|
|
"inquiryCode": state.recordId,
|
|
|
}).then((res) => {
|
|
|
const data = res.data;
|
|
|
+ let pre = baseList.homePage.sysConfig.connect_prec;
|
|
|
+ (pre==1)&&getPreMsg(dispatch)
|
|
|
if (data.code == 0) {
|
|
|
const detail = data.data;
|
|
|
if(detail.dataJson){
|
|
|
pushAllDataList(detail.sign,'push',detail,'history');
|
|
|
}else{
|
|
|
- let pre = baseList.homePage.sysConfig.connect_prec;
|
|
|
- (pre==1)&&getPreMsg(dispatch)
|
|
|
- // (pre==1)&&dispatch({type:SETPRE,show:true});
|
|
|
-
|
|
|
+ // let pre = baseList.homePage.sysConfig.connect_prec;
|
|
|
+ // (pre==1)&&getPreMsg(dispatch)
|
|
|
}
|
|
|
dispatch({
|
|
|
type:ISREAD
|