test_user 2 years ago
parent
commit
e6401a8d84
1 changed files with 21 additions and 27 deletions
  1. 21 27
      src/xt_pages/workforce/components/tableData.vue

+ 21 - 27
src/xt_pages/workforce/components/tableData.vue View File

@@ -496,7 +496,7 @@
496 496
           </el-form-item>
497 497
           <el-form-item label="分区: " prop="partition_id">
498 498
             <el-select
499
-                v-model="zone_name"
499
+                v-model="changeSchedule.partition_id"
500 500
                 placeholder="请选择"
501 501
                 style="width: 100%"
502 502
                 @change="changePartition"
@@ -512,7 +512,7 @@
512 512
           </el-form-item>
513 513
           <el-form-item label="透析机: " prop="bed_id">
514 514
             <el-select
515
-                v-model="device_id"
515
+                v-model="changeSchedule.bed_id"
516 516
                 placeholder="请选择"
517 517
                 style="width: 100%"
518 518
             >
@@ -1328,7 +1328,7 @@ export default {
1328 1328
       this.$nextTick(() => {
1329 1329
         this.$refs.table.doLayout();
1330 1330
       });
1331
-   
1331
+
1332 1332
 
1333 1333
       //表格某列全部数据
1334 1334
         var Mon_M = []
@@ -1946,7 +1946,7 @@ export default {
1946 1946
       sums[22]="总人数:"+ sums[22] +"\n"+result
1947 1947
 
1948 1948
       return sums;
1949
-      
1949
+
1950 1950
 
1951 1951
       // if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877&& this.$store.getters.xt_user.template_info.org_id != 10340){
1952 1952
       //   return sums;
@@ -2521,27 +2521,21 @@ export default {
2521 2521
             return false;
2522 2522
           }
2523 2523
 
2524
-          this.changeSchedule.bed_id = this.device_id;
2525
-          for (let i = 0; i < this.origin_device_numbers.length; i++) {
2526
-            if (this.origin_device_numbers[i].id == this.device_id) {
2527
-              this.changeSchedule.partition_id = this.origin_device_numbers[i].zone_id;
2528
-              console.log("123123123123",this.origin_device_numbers[i].zone_id)
2529
-
2530
-            }
2531
-          }
2532
-
2533
-          console.log("23233232232",this.zones)
2534
-          var zone_id = 0
2535
-          for(let i=0;i<this.zones.length;i++){
2536
-            if(this.zone_name == this.zones[i].name){
2537
-               zone_id = this.zones[i].id
2538
-            }
2539
-          }
2540
-          this.changeSchedule.partition_id = this.zone_name
2524
+          // for (let i = 0; i < this.origin_device_numbers.length; i++) {
2525
+          //   if (this.origin_device_numbers[i].id == this.device_id) {
2526
+          //     this.changeSchedule.partition_id = this.origin_device_numbers[i].zone_id;
2527
+          //
2528
+          //   }
2529
+          // }
2530
+          // var zone_id = 0
2531
+          // for(let i=0;i<this.zones.length;i++){
2532
+          //   if(this.zone_name == this.zones[i].name){
2533
+          //      zone_id = this.zones[i].id
2534
+          //   }
2535
+          // }
2536
+          // this.changeSchedule.partition_id = this.zone_name
2541 2537
           this.changeSchedule.change_action = "change_device";
2542 2538
           this.changeScheduleActon(formName);
2543
-
2544
-          this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
2545 2539
           var weekPathKey = weekPath[0] + '_' + weekPath[1]
2546 2540
           for (var index in this.scheduleZone) {
2547 2541
             if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
@@ -2552,7 +2546,6 @@ export default {
2552 2546
               break
2553 2547
             }
2554 2548
           }
2555
-
2556 2549
           // 可能
2557 2550
           // 患者有传染病,与选择的机器类型(传染病)不匹配
2558 2551
           // 患者没有传染病,但机器是某个传染病的专用透析器
@@ -2703,7 +2696,7 @@ export default {
2703 2696
           var devices = response.data.data.devices;
2704 2697
           this.current_devices = [];
2705 2698
           this.current_devices = devices;
2706
-          this.device_id = devices[0].id
2699
+          this.changeSchedule.bed_id = devices[0].id
2707 2700
         }
2708 2701
       });
2709 2702
     },
@@ -2723,8 +2716,9 @@ export default {
2723 2716
           var devices = response.data.data.devices;
2724 2717
           this.current_devices = [];
2725 2718
           this.current_devices = devices;
2726
-          this.device_id = ""
2727
-          this.zone_name = this.currentData.partition_id
2719
+          this.changeSchedule.bed_id = ""
2720
+          this.changeSchedule.partition_id =  this.currentData.partition_id
2721
+
2728 2722
         }
2729 2723
       });
2730 2724
       // const params = {