Browse Source

耗材参数

XMLWAN 4 years ago
parent
commit
1077fe240e

+ 1 - 1
src/store/modules/data.js View File

@@ -24,7 +24,7 @@ const data = {
24 24
           // console.log('请求返回的数据:', list)
25 25
           if (list) { // 验证返回的configlist是否是一个非空数组
26 26
             // console.log('转换的configlist为:', list.configlist)
27
-            console.log('转换的configlist为:', list.configlist)
27
+            // console.log('转换的configlist为:', list.configlist)
28 28
             commit('SET_CONFIGLIST', list.configlist)
29 29
             setDataConfigList(JSON.stringify(list.configlist))
30 30
             resolve()

+ 2 - 1
src/xt_pages/dialysis/PatientBox.vue View File

@@ -365,7 +365,8 @@ export default {
365 365
         query: {
366 366
           patient_id: patient_id,
367 367
           date: date,
368
-          patient_name: schedual.patient.name
368
+          patient_name: schedual.patient.name,
369
+          mode_id:schedual.mode_id
369 370
         }
370 371
       });
371 372
     },

+ 19 - 41
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -19,7 +19,7 @@
19 19
         ref="dialysisPrescription"
20 20
         :model="dialysisPrescription"
21 21
         label-width="148px"
22
-      >
22
+      > 
23 23
         <el-row :gutter="24">
24 24
           <el-col :span="8" v-if="isShows('透析模式')">
25 25
             <el-form-item label="透析模式">
@@ -1138,7 +1138,8 @@
1138 1138
         default: () => {
1139 1139
           return { id: 0 }
1140 1140
         }
1141
-      }
1141
+      },
1142
+      scheudle_mode:Number
1142 1143
     },
1143 1144
     computed: {
1144 1145
       dialysis_date: function() {
@@ -1367,16 +1368,11 @@
1367 1368
           }
1368 1369
         }
1369 1370
       },
1370
-      setLastRecord: function(
1371
-        schedual,
1372
-        lastAssessmentAfterDislysis,
1373
-        lastPredialysisEvaluation,
1374
-        lastDialysisPrescribe,
1375
-        lastDryWeightDislysis,
1376
-        system_prescribe
1377
-      ) {
1378
-
1371
+      setLastRecord: function(schedual,lastAssessmentAfterDislysis,lastPredialysisEvaluation,lastDialysisPrescribe,lastDryWeightDislysis,system_prescribe) {
1372
+        
1373
+        console.log("德玛西亚22222",schedual)
1379 1374
         this.treatment_mode = this.$store.getters.treatment_mode
1375
+        console.log("99999",this.treatment_mode)
1380 1376
         this.perfusion_apparatus = getDataConfig(
1381 1377
           'hemodialysis',
1382 1378
           'perfusion_apparatus'
@@ -1421,7 +1417,7 @@
1421 1417
           'vascular_access_desc'
1422 1418
         )
1423 1419
 
1424
-         console.log('血管通路', this.blood_access_option)
1420
+        //  console.log('血管通路', this.blood_access_option)
1425 1421
          this.dialyzerPerfusionApparatus = getDataConfig(
1426 1422
           'hemodialysis',
1427 1423
           'dialyzer_perfusion_apparatus'
@@ -1443,50 +1439,31 @@
1443 1439
           this.record_date = uParseTime(date, '{y}-{m}-{d}')
1444 1440
         }
1445 1441
 
1446
-        if (
1447
-          this.prescription != null &&
1448
-          typeof this.prescription.id !== 'undefined' &&
1449
-          this.prescription.id > 0
1450
-        ) {
1442
+        if (this.prescription != null && typeof this.prescription.id !== 'undefined' &&this.prescription.id > 0) {
1451 1443
           for (const key in this.prescription) {
1452 1444
             this.dialysisPrescription[key] = this.prescription[key]
1453 1445
           }
1454
-        } else if (
1455
-          this.solution != null &&
1456
-          typeof this.solution.id !== 'undefined' &&
1457
-          this.solution.id > 0
1458
-        ) {
1446
+        } else if (this.solution != null &&typeof this.solution.id !== 'undefined' &&this.solution.id > 0) {
1459 1447
           for (const key in this.solution) {
1460 1448
             if (key != 'target_ultrafiltration') {
1461 1449
               this.dialysisPrescription[key] = this.solution[key]
1462 1450
             }
1463 1451
           }
1464
-        } else if (
1465
-          lastDialysisPrescribe != null &&
1466
-          typeof lastDialysisPrescribe.id !== 'undefined' &&
1467
-          lastDialysisPrescribe.id > 0
1468
-        ) {
1452
+        } else if (lastDialysisPrescribe != null &&typeof lastDialysisPrescribe.id !== 'undefined' &&lastDialysisPrescribe.id > 0) {
1469 1453
           for (const key in lastDialysisPrescribe) {
1470 1454
             if (key != 'target_ultrafiltration') {
1471 1455
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
1472 1456
             }
1473 1457
           }
1474
-        } else if (
1475
-          system_prescribe != null &&
1476
-          typeof system_prescribe.id !== 'undefined' &&
1477
-          system_prescribe.id > 0
1478
-        ) {
1458
+        } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' &&system_prescribe.id > 0) {
1479 1459
           for (const key in system_prescribe) {
1480 1460
             if (key != 'target_ultrafiltration') {
1481 1461
               this.dialysisPrescription[key] = system_prescribe[key]
1482 1462
             }
1483 1463
           }
1484 1464
         } else {
1485
-          if (
1486
-            schedual.mode_id == 2 ||
1487
-            schedual.mode_id == 5 ||
1488
-            schedual.mode_id == 12
1489
-          ) {
1465
+           
1466
+          if (schedual.mode_id == 2 ||schedual.mode_id == 5 ||schedual.mode_id == 12) {
1490 1467
             this.zhiShow = true
1491 1468
             this.huShow = true
1492 1469
             this.totalShow = true
@@ -1581,7 +1558,7 @@
1581 1558
                 })
1582 1559
                 var date = new Date()
1583 1560
 
1584
-                console.log(this.start_time)
1561
+                // console.log(this.start_time)
1585 1562
 
1586 1563
                 const params = {
1587 1564
                   advices: results,
@@ -1711,7 +1688,7 @@
1711 1688
               mode = 2
1712 1689
             }
1713 1690
             ParamsQuery['mode'] = mode
1714
-             console.log("paramsquery",ParamsQuery)
1691
+            //  console.log("paramsquery",ParamsQuery)
1715 1692
             postPrescription(ParamsQuery).then(response => {
1716 1693
               if (response.data.state == 0) {
1717 1694
                 this.$message.error(response.data.msg)
@@ -1823,7 +1800,7 @@
1823 1800
         }
1824 1801
         // 入口
1825 1802
         var pre = pre
1826
-        //  console.log("pre是----", pre);
1803
+        this.dialysisPrescription.mode_id = this.$route.query.mode_id
1827 1804
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1828 1805
           this.zhiShow = true
1829 1806
           this.huShow = true
@@ -3662,7 +3639,8 @@
3662 3639
             }
3663 3640
           }
3664 3641
         }
3665
-      }
3642
+      },
3643
+    
3666 3644
     }
3667 3645
   }
3668 3646
 </script>

+ 1 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -1087,6 +1087,7 @@ export default {
1087 1087
         }
1088 1088
       }
1089 1089
       editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
1090
+        
1090 1091
         rs => {
1091 1092
           var resp = rs.data
1092 1093
           if (resp.state == 1) {

+ 14 - 15
src/xt_pages/dialysis/details/index.vue View File

@@ -642,7 +642,8 @@ export default {
642 642
       tableData1: [],
643 643
       arr: [],
644 644
       newName: '',
645
-      newTime: ''
645
+      newTime: '',
646
+      scheudle_mode:""
646 647
     }
647 648
   },
648 649
   created() {
@@ -878,18 +879,19 @@ export default {
878 879
         if (resp.state == 1) {
879 880
           var patient = resp.data.patient // 患者信息
880 881
           var schedual = resp.data.schedual // 患者排班信息
882
+          // console.log("患者排班信息99999999",schedual)
881 883
           var prescription = resp.data.prescription // 透析处方
882 884
           if (prescription != null) {
883 885
             if (prescription.body_fluid == -2) {
884 886
               prescription.body_fluid = 0
885 887
             }
886 888
           }
887
-          console.log('透析处方', prescription)
889
+          // console.log('透析处方', prescription)
888 890
           var solution = resp.data.solution // 透析方案
889 891
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
890
-          console.log('receiver_treatment_access', receiver_treatment_access)
892
+          // console.log('receiver_treatment_access', receiver_treatment_access)
891 893
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
892
-          console.log('透前评估22222', predialysis_evaluation)
894
+          // console.log('透前评估22222', predialysis_evaluation)
893 895
 
894 896
           if (predialysis_evaluation != null) {
895 897
             if (predialysis_evaluation.blood_access_part_id == -2) {
@@ -920,7 +922,7 @@ export default {
920 922
           var aliquid_info = resp.data.aliquid_info
921 923
 
922 924
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
923
-          console.log('上次透前评估', lastPredialysisEvaluation)
925
+          // console.log('上次透前评估', lastPredialysisEvaluation)
924 926
           if (lastPredialysisEvaluation != null) {
925 927
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
926 928
               lastPredialysisEvaluation.blood_access_part_id = 0
@@ -931,7 +933,7 @@ export default {
931 933
             resp.data.lastAssessmentAfterDislysis
932 934
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
933 935
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
934
-          console.log("最后一次干体重",lastDryWeightDislysis)
936
+          // console.log("最后一次干体重",lastDryWeightDislysis)
935 937
           var system_prescribe = resp.data.system_prescribe
936 938
 
937 939
           this.$refs.nav.setLastRecord(
@@ -953,9 +955,8 @@ export default {
953 955
           this.lastDialysisPrescribe = lastDialysisPrescribe
954 956
           this.lastDryWeightDislysis = lastDryWeightDislysis
955 957
           this.headNurses = headNurses
956
-          this.system_prescribe = system_prescribe
957
-
958
-
958
+          this.system_prescribe = system_prescribe 
959
+          
959 960
 
960 961
 
961 962
           this.niprocart_info = []
@@ -1214,7 +1215,6 @@ export default {
1214 1215
       })
1215 1216
     },
1216 1217
     changePatient(schedual) {
1217
-      console.log(schedual)
1218 1218
       this.patient_id = schedual.patient_id
1219 1219
       this.date = schedual.schedule_date
1220 1220
       // this.getScheduleDetail();
@@ -1232,7 +1232,6 @@ export default {
1232 1232
       })
1233 1233
     },
1234 1234
     handleClick(type) {
1235
-      console.log(99999999999,type)
1236 1235
       sessionStorage.setItem('nameActive', type.name);
1237 1236
       this.getData()
1238 1237
     },
@@ -1246,7 +1245,7 @@ export default {
1246 1245
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
1247 1246
               // 删除元素后改变i的值
1248 1247
 
1249
-              console.log('候诊区', patientArr[i].schedules[j])
1248
+              // console.log('候诊区', patientArr[i].schedules[j])
1250 1249
               patientArr[i].schedules.splice(j--, 1)
1251 1250
             }
1252 1251
           }
@@ -1265,7 +1264,7 @@ export default {
1265 1264
               }
1266 1265
             }
1267 1266
           }
1268
-          console.log('执行1', arr)
1267
+          // console.log('执行1', arr)
1269 1268
           arr1 = arr
1270 1269
         } else if (this.patientStateVal == 2) {
1271 1270
           let arr = []
@@ -1278,7 +1277,7 @@ export default {
1278 1277
               }
1279 1278
             }
1280 1279
           }
1281
-          console.log('执行2', arr)
1280
+          // console.log('执行2', arr)
1282 1281
           arr1 = arr
1283 1282
         }
1284 1283
 
@@ -1362,7 +1361,7 @@ export default {
1362 1361
           })
1363 1362
           newArr.sort(this.compare('created_time'))
1364 1363
         }
1365
-        console.log('排序',newArr)
1364
+        // console.log('排序',newArr)
1366 1365
         this.tableData = newArr
1367 1366
         const name = this.$route.query.patient_name
1368 1367
         this.tableData.map((item, index) => {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

@@ -2009,9 +2009,9 @@ export default {
2009 2009
             }
2010 2010
 
2011 2011
             this.advices = response.data.data.advices
2012
-            console.log('hhhhhhhhhhhh', this.advices)
2012
+            // console.log('hhhhhhhhhhhh', this.advices)
2013 2013
             this.monitors = response.data.data.monitors
2014
-            console.log('哈哈哈哈哈哈哈', this.monitors)
2014
+            // console.log('哈哈哈哈哈哈哈', this.monitors)
2015 2015
             console.log(response.data.data)
2016 2016
             this.summary = response.data.data.summary
2017 2017
             this.org_template_info = response.data.data.org_template_info

+ 5 - 1
src/xt_pages/qcd/basicInformationAnalysis.vue View File

@@ -1143,8 +1143,10 @@ export default {
1143 1143
               }
1144 1144
             }
1145 1145
           if(this.lapseid == 0){
1146
+            this.modesDataTwo.xAxis = []
1147
+            this.modesDataTwo.series = []
1146 1148
              for(let i=0;i<arr.length;i++){
1147
-              this.modesDataTwo.xAxis.push(moment(new Date(arrOne[i]. lapseto_time*1000)).format('YYYY-MM-DD'))
1149
+              this.modesDataTwo.xAxis.push(moment(new Date(arr[i]. lapseto_time*1000)).format('YYYY-MM-DD'))
1148 1150
               this.modesDataTwo.series.push(arr[i].Count)
1149 1151
              }
1150 1152
             this.bar.series[0].data = this.modesDataTwo.series
@@ -1152,6 +1154,8 @@ export default {
1152 1154
             this.getArrLength(this.bar.xAxis.data)
1153 1155
            }
1154 1156
            if(this.lapseid == 1){
1157
+             this.modesDataTwo.xAxis = []
1158
+             this.modesDataTwo.series = []
1155 1159
              for(let i=0;i<arrOne.length;i++){
1156 1160
               this.modesDataTwo.xAxis.push(moment(new Date(arrOne[i].lapseto_time*1000)).format('YYYY-MM-DD'))
1157 1161
               this.modesDataTwo.series.push(arrOne[i].Count)