Browse Source

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

杨青 1 year ago
parent
commit
3206c37a76

+ 1 - 1
src/api/schedule.js View File

309
   
309
   
310
   console.log('schedule', schedule)
310
   console.log('schedule', schedule)
311
   return request({
311
   return request({
312
-    url: '/api/schedule/changeschedule?id=' + id,
312
+    url: '/api/schedule/changeschedule?id=' + id+"&bed_id="+schedule.bed_id+"&mode_id="+schedule.mode_id+"&schedule_type="+schedule.schedule_type,
313
     method: 'Put',
313
     method: 'Put',
314
     data: schedule
314
     data: schedule
315
   })
315
   })

+ 1 - 2
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

588
        if(this.org_id ==10090){
588
        if(this.org_id ==10090){
589
           var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
589
           var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
590
         ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +",总量:"+this.prescription.anticoagulant_zongliang+"iu"+
590
         ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +",总量:"+this.prescription.anticoagulant_zongliang+"iu"+
591
-        ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"ml" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
592
-        +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
591
+        ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"ml" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +","+"透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
593
         ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
592
         ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
594
         +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
593
         +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
595
 
594
 

+ 21 - 10
src/xt_pages/workforce/components/editTableData.vue View File

1380
           <el-form-item label="" prop="mode_id">
1380
           <el-form-item label="" prop="mode_id">
1381
             <span>透析模式:</span>
1381
             <span>透析模式:</span>
1382
             <el-select
1382
             <el-select
1383
+               filterable 
1383
                 v-model="changeSchedule.mode_id"
1384
                 v-model="changeSchedule.mode_id"
1384
                 placeholder="请选择"
1385
                 placeholder="请选择"
1385
                 style="width: 100%"
1386
                 style="width: 100%"
1398
           <!-- <el-form-item>
1399
           <!-- <el-form-item>
1399
             <span>透析班次:</span>
1400
             <span>透析班次:</span>
1400
             <el-select
1401
             <el-select
1402
+                filterable 
1401
                 v-model="changeSchedule.schedule_type"
1403
                 v-model="changeSchedule.schedule_type"
1402
                 placeholder="请选择"
1404
                 placeholder="请选择"
1403
                 style="width: 100%"
1405
                 style="width: 100%"
1411
               >
1413
               >
1412
               </el-option>
1414
               </el-option>
1413
             </el-select>
1415
             </el-select>
1414
-          </el-form-item>
1415
-         -->
1416
+          </el-form-item> -->
1417
+        
1416
           <!-- <el-form-item>
1418
           <!-- <el-form-item>
1417
             <span>透析分区:</span>
1419
             <span>透析分区:</span>
1418
             <el-select
1420
             <el-select
1421
+            filterable 
1419
               v-model="changeSchedule.partition_id"
1422
               v-model="changeSchedule.partition_id"
1420
               placeholder="请选择"
1423
               placeholder="请选择"
1421
               style="width: 100%"
1424
               style="width: 100%"
1434
           <!-- <el-form-item>
1437
           <!-- <el-form-item>
1435
             <span>透析床位:</span>
1438
             <span>透析床位:</span>
1436
             <el-select
1439
             <el-select
1437
-                v-model="device_id"
1440
+               filterable 
1441
+                v-model="changeSchedule.bed_id"
1438
                 placeholder="请选择"
1442
                 placeholder="请选择"
1439
                 style="width: 100%"
1443
                 style="width: 100%"
1440
             >
1444
             >
1441
               <el-option
1445
               <el-option
1442
-                  v-for="item in current_devices"
1446
+                  v-for="item in numberList"
1443
                   :key="item.id"
1447
                   :key="item.id"
1444
                   :label="item.number"
1448
                   :label="item.number"
1445
                   :value="item.id"
1449
                   :value="item.id"
2092
       },
2096
       },
2093
       cellflag: 0,
2097
       cellflag: 0,
2094
       schedulesGroup:[],
2098
       schedulesGroup:[],
2099
+      numberList:[]
2095
     };
2100
     };
2096
   },
2101
   },
2097
 
2102
 
5010
         console.log("ROW22O2O2OWOOW",row)
5015
         console.log("ROW22O2O2OWOOW",row)
5011
         console.log("CHANGESHCUEL2O2O2O",this.changeSchedule)
5016
         console.log("CHANGESHCUEL2O2O2O",this.changeSchedule)
5012
         console.log("WOOWOWOWOWOW",this.zones)
5017
         console.log("WOOWOWOWOWOW",this.zones)
5018
+        console.log("numberowowow",this.numberList)
5013
         this.changeSchedule.mode_id = row[column.property].mode_id
5019
         this.changeSchedule.mode_id = row[column.property].mode_id
5014
         var zone_names = ""
5020
         var zone_names = ""
5015
         for(let i=0;i<this.zones.length;i++){
5021
         for(let i=0;i<this.zones.length;i++){
5020
         this.changeSchedule.partition_id = zone_names
5026
         this.changeSchedule.partition_id = zone_names
5021
         this.changeSchedule.schedule_type = week[1];
5027
         this.changeSchedule.schedule_type = week[1];
5022
         this.changeSchedule.bed_id = row.jihao_id;
5028
         this.changeSchedule.bed_id = row.jihao_id;
5029
+        console.log("床位id",this.changeSchedule.bed_id)
5023
         this.changeSchedule.schedule_week = week[0];
5030
         this.changeSchedule.schedule_week = week[0];
5024
       }
5031
       }
5025
 
5032
 
5069
       this.changing_mode = true;
5076
       this.changing_mode = true;
5070
       this.changeSchedule.change_action = "change_mode";
5077
       this.changeSchedule.change_action = "change_mode";
5071
 
5078
 
5072
-      ChangeSchedule(this.currentData.id, this.changeSchedule)
5073
-          .then((response) => {
5079
+      ChangeSchedule(this.currentData.id, this.changeSchedule).then((response) => {
5074
             if (response.data.state == 0) {
5080
             if (response.data.state == 0) {
5075
               this.$message.error(response.data.msg);
5081
               this.$message.error(response.data.msg);
5076
             } else {
5082
             } else {
5080
               });
5086
               });
5081
               var that = this;
5087
               var that = this;
5082
               var schedule = response.data.data.schedule;
5088
               var schedule = response.data.data.schedule;
5089
+              this.msDialogVisible = false
5083
               this.scheduleZone.forEach(function (zone, index) {
5090
               this.scheduleZone.forEach(function (zone, index) {
5084
                 if (
5091
                 if (
5085
                     zone.zone_id == schedule.partition_id &&
5092
                     zone.zone_id == schedule.partition_id &&
5095
                         schedule.dialysis_machine_name;
5102
                         schedule.dialysis_machine_name;
5096
                     that.scheduleZone[index][weekPathKey].mode_id =
5103
                     that.scheduleZone[index][weekPathKey].mode_id =
5097
                         schedule.mode_id;
5104
                         schedule.mode_id;
5098
-                    that.scheduleZone[index][weekPathKey].mode_name =
5099
-                        typeof that.modeOptions[schedule.mode_id] === "undefined"
5105
+                    that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5100
                             ? ""
5106
                             ? ""
5101
                             : that.modeOptions[schedule.mode_id].name;
5107
                             : that.modeOptions[schedule.mode_id].name;
5102
                   }
5108
                   }
5103
                 }
5109
                 }
5104
               });
5110
               });
5105
               this.msDialogVisible = false;
5111
               this.msDialogVisible = false;
5112
+              this.getAllZones()
5113
+             
5106
             }
5114
             }
5107
             this.changing_mode = false;
5115
             this.changing_mode = false;
5108
-          })
5109
-          .catch((err) => {
5116
+          }).catch((err) => {
5110
             this.$message.error(err);
5117
             this.$message.error(err);
5111
             this.changing_mode = false;
5118
             this.changing_mode = false;
5112
           });
5119
           });
5774
           var strArr = this.zoneIdList.join(",");
5781
           var strArr = this.zoneIdList.join(",");
5775
 
5782
 
5776
           this.strArr = strArr;
5783
           this.strArr = strArr;
5784
+          var device_number =  response.data.data.devicenumber
5785
+
5786
+          this.numberList = device_number
5787
+          console.log("所有床位",device_number)
5777
           this.getWeekPanels();
5788
           this.getWeekPanels();
5778
         }
5789
         }
5779
       });
5790
       });