Преглед изворни кода

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

杨青 пре 1 година
родитељ
комит
3206c37a76

+ 1 - 1
src/api/schedule.js Прегледај датотеку

@@ -309,7 +309,7 @@ export function ChangeScheduleTen(id,schedule){
309 309
   
310 310
   console.log('schedule', schedule)
311 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 313
     method: 'Put',
314 314
     data: schedule
315 315
   })

+ 1 - 2
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Прегледај датотеку

@@ -588,8 +588,7 @@ export default {
588 588
        if(this.org_id ==10090){
589 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 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 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 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 Прегледај датотеку

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