Browse Source

耗材参数

XMLWAN 4 years ago
parent
commit
1077fe240e

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

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

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

365
         query: {
365
         query: {
366
           patient_id: patient_id,
366
           patient_id: patient_id,
367
           date: date,
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
         ref="dialysisPrescription"
19
         ref="dialysisPrescription"
20
         :model="dialysisPrescription"
20
         :model="dialysisPrescription"
21
         label-width="148px"
21
         label-width="148px"
22
-      >
22
+      > 
23
         <el-row :gutter="24">
23
         <el-row :gutter="24">
24
           <el-col :span="8" v-if="isShows('透析模式')">
24
           <el-col :span="8" v-if="isShows('透析模式')">
25
             <el-form-item label="透析模式">
25
             <el-form-item label="透析模式">
1138
         default: () => {
1138
         default: () => {
1139
           return { id: 0 }
1139
           return { id: 0 }
1140
         }
1140
         }
1141
-      }
1141
+      },
1142
+      scheudle_mode:Number
1142
     },
1143
     },
1143
     computed: {
1144
     computed: {
1144
       dialysis_date: function() {
1145
       dialysis_date: function() {
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
         this.treatment_mode = this.$store.getters.treatment_mode
1374
         this.treatment_mode = this.$store.getters.treatment_mode
1375
+        console.log("99999",this.treatment_mode)
1380
         this.perfusion_apparatus = getDataConfig(
1376
         this.perfusion_apparatus = getDataConfig(
1381
           'hemodialysis',
1377
           'hemodialysis',
1382
           'perfusion_apparatus'
1378
           'perfusion_apparatus'
1421
           'vascular_access_desc'
1417
           'vascular_access_desc'
1422
         )
1418
         )
1423
 
1419
 
1424
-         console.log('血管通路', this.blood_access_option)
1420
+        //  console.log('血管通路', this.blood_access_option)
1425
          this.dialyzerPerfusionApparatus = getDataConfig(
1421
          this.dialyzerPerfusionApparatus = getDataConfig(
1426
           'hemodialysis',
1422
           'hemodialysis',
1427
           'dialyzer_perfusion_apparatus'
1423
           'dialyzer_perfusion_apparatus'
1443
           this.record_date = uParseTime(date, '{y}-{m}-{d}')
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
           for (const key in this.prescription) {
1443
           for (const key in this.prescription) {
1452
             this.dialysisPrescription[key] = this.prescription[key]
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
           for (const key in this.solution) {
1447
           for (const key in this.solution) {
1460
             if (key != 'target_ultrafiltration') {
1448
             if (key != 'target_ultrafiltration') {
1461
               this.dialysisPrescription[key] = this.solution[key]
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
           for (const key in lastDialysisPrescribe) {
1453
           for (const key in lastDialysisPrescribe) {
1470
             if (key != 'target_ultrafiltration') {
1454
             if (key != 'target_ultrafiltration') {
1471
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
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
           for (const key in system_prescribe) {
1459
           for (const key in system_prescribe) {
1480
             if (key != 'target_ultrafiltration') {
1460
             if (key != 'target_ultrafiltration') {
1481
               this.dialysisPrescription[key] = system_prescribe[key]
1461
               this.dialysisPrescription[key] = system_prescribe[key]
1482
             }
1462
             }
1483
           }
1463
           }
1484
         } else {
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
             this.zhiShow = true
1467
             this.zhiShow = true
1491
             this.huShow = true
1468
             this.huShow = true
1492
             this.totalShow = true
1469
             this.totalShow = true
1581
                 })
1558
                 })
1582
                 var date = new Date()
1559
                 var date = new Date()
1583
 
1560
 
1584
-                console.log(this.start_time)
1561
+                // console.log(this.start_time)
1585
 
1562
 
1586
                 const params = {
1563
                 const params = {
1587
                   advices: results,
1564
                   advices: results,
1711
               mode = 2
1688
               mode = 2
1712
             }
1689
             }
1713
             ParamsQuery['mode'] = mode
1690
             ParamsQuery['mode'] = mode
1714
-             console.log("paramsquery",ParamsQuery)
1691
+            //  console.log("paramsquery",ParamsQuery)
1715
             postPrescription(ParamsQuery).then(response => {
1692
             postPrescription(ParamsQuery).then(response => {
1716
               if (response.data.state == 0) {
1693
               if (response.data.state == 0) {
1717
                 this.$message.error(response.data.msg)
1694
                 this.$message.error(response.data.msg)
1823
         }
1800
         }
1824
         // 入口
1801
         // 入口
1825
         var pre = pre
1802
         var pre = pre
1826
-        //  console.log("pre是----", pre);
1803
+        this.dialysisPrescription.mode_id = this.$route.query.mode_id
1827
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1804
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1828
           this.zhiShow = true
1805
           this.zhiShow = true
1829
           this.huShow = true
1806
           this.huShow = true
3662
             }
3639
             }
3663
           }
3640
           }
3664
         }
3641
         }
3665
-      }
3642
+      },
3643
+    
3666
     }
3644
     }
3667
   }
3645
   }
3668
 </script>
3646
 </script>

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

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

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

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

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

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

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

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