Browse Source

Merge remote-tracking branch 'origin/20230223_pad_vue_new_branch' into 20230223_pad_vue_new_branch

28169 1 week ago
parent
commit
e9adf9634b

+ 2 - 2
src/pages/main/PatientBox.vue View File

2740
       this.zone_id = schedual.device_number.zone.id
2740
       this.zone_id = schedual.device_number.zone.id
2741
       this.patient_id = schedual.patient_id
2741
       this.patient_id = schedual.patient_id
2742
       this.mode_id = schedual.mode_id
2742
       this.mode_id = schedual.mode_id
2743
-      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829  || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10318) {
2743
+      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829  || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10318 || this.$store.getters.user.template_info.org_id == 10721) {
2744
         console.log('下机时间', schedual.dialysis_order.end_time)
2744
         console.log('下机时间', schedual.dialysis_order.end_time)
2745
         if (schedual && schedual.dialysis_order != null) {
2745
         if (schedual && schedual.dialysis_order != null) {
2746
           this.start_time_str = this.getTimeTwo(schedual.dialysis_order.end_time)
2746
           this.start_time_str = this.getTimeTwo(schedual.dialysis_order.end_time)
2753
         schedule_date: schedual.schedule_date
2753
         schedule_date: schedual.schedule_date
2754
       }
2754
       }
2755
       console.log('params23232323', params)
2755
       console.log('params23232323', params)
2756
-      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101 || this.$store.getters.user.template_info.org_id == 10318) {
2756
+      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101 || this.$store.getters.user.template_info.org_id == 10318  || this.$store.getters.user.template_info.org_id == 10721) {
2757
         getDialysisRecordOrde(params).then((response) => {
2757
         getDialysisRecordOrde(params).then((response) => {
2758
           if (response.data.state == 1) {
2758
           if (response.data.state == 1) {
2759
             var order = response.data.data.order
2759
             var order = response.data.data.order

+ 19 - 4
src/pages/main/beforeDialysis/components/dialysisParameters.vue View File

227
       }
227
       }
228
       getMobileDialysisParameters(params).then(response => {
228
       getMobileDialysisParameters(params).then(response => {
229
         if (response.data.state == 1) {
229
         if (response.data.state == 1) {
230
-          //  var schedule =  response.data.data.schedule
230
+          var schedule =  response.data.data.schedule
231
           this.loading = false
231
           this.loading = false
232
           //  var total = response.data.data.total
232
           //  var total = response.data.data.total
233
           var prescription = response.data.data.prescription
233
           var prescription = response.data.data.prescription
237
           this.dialysisbefor = dialysbefor
237
           this.dialysisbefor = dialysbefor
238
           this.dialysisBefor = dialysbefor
238
           this.dialysisBefor = dialysbefor
239
           var patient = response.data.data.patient
239
           var patient = response.data.data.patient
240
+            
241
+          if(schedule!=null && schedule.length>0){
242
+           
243
+           for(let j=0;j<patient.length;j++){
244
+             patient[j].sort = 0
245
+             for(let i=0;i<schedule.length;i++){
246
+             
247
+                if(patient[j].patient_id == schedule[i].patient_id){
248
+                    patient[j].sort = schedule[i].device_number.sort
249
+                }
250
+             }
251
+            }
252
+        }
253
+
254
+
240
           if (response.data.data.patient.length <= 0) {
255
           if (response.data.data.patient.length <= 0) {
241
             this.isStop = true
256
             this.isStop = true
242
           } else {
257
           } else {
366
             if (patient[i].mode_id == 44) {
381
             if (patient[i].mode_id == 44) {
367
               patient[i].mode_id = '导管溶栓'
382
               patient[i].mode_id = '导管溶栓'
368
             }
383
             }
384
+          }
369
             this.datalist = []
385
             this.datalist = []
370
-            this.datalist = patient
386
+            this.datalist = patient.sort((a, b) => a.sort - b.sort)
371
             this.tableData = []
387
             this.tableData = []
372
-            this.tableData = patient
388
+            this.tableData = patient.sort((a, b) => a.sort - b.sort)
373
             this.$nextTick(() => {
389
             this.$nextTick(() => {
374
               this.$refs.tab.doLayout()
390
               this.$refs.tab.doLayout()
375
             })
391
             })
376
-          }
377
         } else {
392
         } else {
378
           this.loading = false
393
           this.loading = false
379
         }
394
         }

+ 13 - 3
src/pages/main/newActionBar/dialysisPrescription.vue View File

91
           <span v-if="last_record!=undefined && $store.getters.user.template_info.org_id !=10599  && $store.getters.user.template_info.org_id !=10702">上次透后体重:{{last_record.weight_after?last_record.weight_after: "--"}}Kg</span></br>
91
           <span v-if="last_record!=undefined && $store.getters.user.template_info.org_id !=10599  && $store.getters.user.template_info.org_id !=10702">上次透后体重:{{last_record.weight_after?last_record.weight_after: "--"}}Kg</span></br>
92
           <span v-if="last_record!=undefined && $store.getters.user.template_info.org_id ==10702">上次透后体重:{{(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2): "--"}}Kg</span></br>
92
           <span v-if="last_record!=undefined && $store.getters.user.template_info.org_id ==10702">上次透后体重:{{(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2): "--"}}Kg</span></br>
93
 
93
 
94
-
94
+          <span v-if="$store.getters.user.template_info.org_id == 10721">
95
+            <span v-if="predialysis!=null && last_record!=null">
96
+                体重增长:
97
+                {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
98
+              </span>
99
+          </span><br/>
100
+             
95
           <span v-if="$store.getters.user.template_info.org_id == 10551 || $store.getters.user.template_info.org_id == 10612 || $store.getters.user.template_info.org_id == 10622 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">目标脱水量百分比:{{ (((dialysisPrescription.target_ultrafiltration)/predialysis.dry_weight)*100).toFixed(2)  }}%</span>
101
           <span v-if="$store.getters.user.template_info.org_id == 10551 || $store.getters.user.template_info.org_id == 10612 || $store.getters.user.template_info.org_id == 10622 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">目标脱水量百分比:{{ (((dialysisPrescription.target_ultrafiltration)/predialysis.dry_weight)*100).toFixed(2)  }}%</span>
96
           <span v-if="$store.getters.user.template_info.org_id == 10249 || $store.getters.user.template_info.org_id == 10622   &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">目标脱水量百分比:{{ (((dialysisPrescription.target_ultrafiltration/1000)/predialysis.dry_weight)*100).toFixed(2)  }}%</span>
102
           <span v-if="$store.getters.user.template_info.org_id == 10249 || $store.getters.user.template_info.org_id == 10622   &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">目标脱水量百分比:{{ (((dialysisPrescription.target_ultrafiltration/1000)/predialysis.dry_weight)*100).toFixed(2)  }}%</span>
97
-          <span v-if="$store.getters.user.template_info.org_id == 10449 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined">4小时超滤量上限(5%):{{ (predialysis.dry_weight*0.05).toFixed(2)  }}kg</span>
103
+          <span v-if="($store.getters.user.template_info.org_id == 10449 || $store.getters.user.template_info.org_id == 10721) &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined">4小时超滤量上限(5%):{{ (predialysis.dry_weight*0.05).toFixed(2)  }}kg</span>
98
           <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">心率:{{predialysis.pulse_frequency  }}次/分</span>&nbsp;
104
           <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">心率:{{predialysis.pulse_frequency  }}次/分</span>&nbsp;
99
           <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">体温:{{predialysis.temperature  }}℃</span>&nbsp;
105
           <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">体温:{{predialysis.temperature  }}℃</span>&nbsp;
100
-          <span v-if="($store.getters.user.template_info.org_id ==10599 || $store.getters.user.template_info.org_id ==10440) &&predialysis!=undefined">血压:{{predialysis.systolic_blood_pressure  }}/{{ predialysis.diastolic_blood_pressure  }}mmHg</span>
106
+          <span v-if="($store.getters.user.template_info.org_id ==10599 || $store.getters.user.template_info.org_id ==10440 ||  $store.getters.user.template_info.org_id ==10721 || $store.getters.user.template_info.org_id ==0) &&predialysis!=undefined">血压:{{predialysis.systolic_blood_pressure  }}/{{ predialysis.diastolic_blood_pressure  }}mmHg</span>
101
         </van-cell>
107
         </van-cell>
102
         <van-field
108
         <van-field
103
           v-model="dialysisPrescription.target_ultrafiltration"
109
           v-model="dialysisPrescription.target_ultrafiltration"
1933
     this.dialysisDialyszers = dialyzer
1939
     this.dialysisDialyszers = dialyzer
1934
     this.dialysisIrrigation = irrigation
1940
     this.dialysisIrrigation = irrigation
1935
     this.dialysisStrainerList = dialysisStrainer
1941
     this.dialysisStrainerList = dialysisStrainer
1942
+    console.log("透析器列表-----------------------",this.dialysisDialyszers)
1943
+    console.log("灌流器列表-----------------------",this.dialysisIrrigation)
1944
+    console.log("滤过器列表=-----------==---------",this.dialysisStrainerList)
1936
     }
1945
     }
1937
     this.bodyFluidOptions = this.$store.getters.body_fluid;
1946
     this.bodyFluidOptions = this.$store.getters.body_fluid;
1938
     var special_medicine = [
1947
     var special_medicine = [
2251
 
2260
 
2252
   },
2261
   },
2253
   methods: {
2262
   methods: {
2263
+  
2254
     radioChange(val) {},
2264
     radioChange(val) {},
2255
 
2265
 
2256
     formatter(val) {
2266
     formatter(val) {