Parcourir la source

保存历史病例添加参数

Luolei il y a 6 ans
Parent
commit
dbb2dd7eac
3 fichiers modifiés avec 16 ajouts et 6 suppressions
  1. 5 5
      src/store/actions/patInfo.js
  2. 9 0
      src/store/async-actions/print.js
  3. 2 1
      src/utils/config.js

+ 5 - 5
src/store/actions/patInfo.js

@@ -1,6 +1,6 @@
 export const updatePatientMessage=(state,action)=>{
     const res=Object.assign({},state);
-    const mock = {
+    // const mock = {
       // doctorCode: "YS001",
       // doctorId: 1,
       // doctorName: "付",
@@ -24,10 +24,10 @@ export const updatePatientMessage=(state,action)=>{
       // idNo: "9696969",
       // name: "沈强",
       // sex: 2
-    };
+    // };
     res.message = action.data;
-    if(!action.data.selfDeptId){
-        res.message = mock;
-    }
+    // if(!action.data.selfDeptId){
+    //     res.message = mock;
+    // }
     return res;
 };

+ 9 - 0
src/store/async-actions/print.js

@@ -7,6 +7,7 @@ import {
     getAllDataList,
     getAllDataStringList,
     pushAllDataList,
+    filterDataArr
 } from '@utils/tools';
 
 export const saveMessage = (bool) => {
@@ -25,27 +26,35 @@ export const saveMessage = (bool) => {
         "dataJson": JSON.stringify(getAllDataList(baseList)),
         "detailList": [{
             "content": jsonStr.chief,
+            "contentValue":filterDataArr(JSON.parse(jsonStr.chief)),
             "type": 1
         }, {
             "content": jsonStr.present,
+            "contentValue":filterDataArr(JSON.parse(jsonStr.present)),
             "type": 2
         }, {
             "content": jsonStr.other,
+            "contentValue":filterDataArr(JSON.parse(jsonStr.other)),
             "type": 3
         }, {
             "content": jsonStr.vital,
+            "contentValue":filterDataArr(JSON.parse(jsonStr.vital)),
             "type": 4
         }, {
             "content": jsonStr.lis,
+            "contentValue":jsonStr.lis,
             "type": 5
         }, {
             "content": jsonStr.pacs,
+            "contentValue":jsonStr.pacs,
             "type": 6
         }, {
             "content": jsonStr.diag,
+            "contentValue":jsonStr.diag,
             "type": 7
         }, {
             "content": jsonStr.advice,
+            "contentValue":jsonStr.advice,
             "type": 8
         }],
         "sign": whichSign, //类型0结构化 1文本

+ 2 - 1
src/utils/config.js

@@ -1,6 +1,7 @@
 // const host='http://192.168.3.100:5050';//王峰
+const host='http://192.168.3.101:5050';//任国宾
 // const host='http://192.168.2.241:5050';//后端接口访问地址
-const host='http://192.168.2.236:5050';//后端接口访问地址
+// const host='http://192.168.2.236:5050';//后端接口访问地址
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:8080'; //周铁刚
 // const newIcssVisitUrl = '223.93.170.82:13000';    //icss服务访问地址(跳转目的地),不能加http://