Browse Source

预问诊图片添加

luolei 5 năm trước cách đây
mục cha
commit
0ab99deaee

BIN
src/common/images/prec.png


+ 1 - 1
src/components/InfoTitle/index.jsx

@@ -3,7 +3,7 @@ import PatInfoContainer from '@containers/PatInfoContainer.js';
 import style from "./index.less";
 import { connect } from 'react-redux';
 import historyCase from '@common/images/history.png';
-import health from '@common/images/health.png'
+import health from '@common/images/prec.png'
 import store from '@store';
 import { showHistory } from '@store/actions/historyTemplates';
 import { initItemList,setInitHistory } from '@store/async-actions/historyTemplates';

+ 8 - 6
src/store/async-actions/patInfo.js

@@ -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

+ 2 - 2
src/utils/config.js

@@ -1,8 +1,8 @@
 // const host='http://192.168.3.1:5050';//赵
 // const host='http://192.168.3.100:5050';//王峰
 // const host='http://192.168.2.121:5050';//后端接口访问地址
-const host='http://192.168.2.236:5050';//后端接口访问地址
-// const host='http://192.168.2.241:5050';//后端接口访问地址
+// const host='http://192.168.2.236:5050';//后端接口访问地址
+const host='http://192.168.2.241:5050';//后端接口访问地址
 // const host='http://192.168.3.11:5050';//王宇
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:5050'; //周铁刚