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
           </el-form-item>
496
           </el-form-item>
497
           <el-form-item label="分区: " prop="partition_id">
497
           <el-form-item label="分区: " prop="partition_id">
498
             <el-select
498
             <el-select
499
-                v-model="zone_name"
499
+                v-model="changeSchedule.partition_id"
500
                 placeholder="请选择"
500
                 placeholder="请选择"
501
                 style="width: 100%"
501
                 style="width: 100%"
502
                 @change="changePartition"
502
                 @change="changePartition"
512
           </el-form-item>
512
           </el-form-item>
513
           <el-form-item label="透析机: " prop="bed_id">
513
           <el-form-item label="透析机: " prop="bed_id">
514
             <el-select
514
             <el-select
515
-                v-model="device_id"
515
+                v-model="changeSchedule.bed_id"
516
                 placeholder="请选择"
516
                 placeholder="请选择"
517
                 style="width: 100%"
517
                 style="width: 100%"
518
             >
518
             >
1328
       this.$nextTick(() => {
1328
       this.$nextTick(() => {
1329
         this.$refs.table.doLayout();
1329
         this.$refs.table.doLayout();
1330
       });
1330
       });
1331
-   
1331
+
1332
 
1332
 
1333
       //表格某列全部数据
1333
       //表格某列全部数据
1334
         var Mon_M = []
1334
         var Mon_M = []
1946
       sums[22]="总人数:"+ sums[22] +"\n"+result
1946
       sums[22]="总人数:"+ sums[22] +"\n"+result
1947
 
1947
 
1948
       return sums;
1948
       return sums;
1949
-      
1949
+
1950
 
1950
 
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){
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
       //   return sums;
1952
       //   return sums;
2521
             return false;
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
           this.changeSchedule.change_action = "change_device";
2537
           this.changeSchedule.change_action = "change_device";
2542
           this.changeScheduleActon(formName);
2538
           this.changeScheduleActon(formName);
2543
-
2544
-          this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
2545
           var weekPathKey = weekPath[0] + '_' + weekPath[1]
2539
           var weekPathKey = weekPath[0] + '_' + weekPath[1]
2546
           for (var index in this.scheduleZone) {
2540
           for (var index in this.scheduleZone) {
2547
             if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
2541
             if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
2552
               break
2546
               break
2553
             }
2547
             }
2554
           }
2548
           }
2555
-
2556
           // 可能
2549
           // 可能
2557
           // 患者有传染病,与选择的机器类型(传染病)不匹配
2550
           // 患者有传染病,与选择的机器类型(传染病)不匹配
2558
           // 患者没有传染病,但机器是某个传染病的专用透析器
2551
           // 患者没有传染病,但机器是某个传染病的专用透析器
2703
           var devices = response.data.data.devices;
2696
           var devices = response.data.data.devices;
2704
           this.current_devices = [];
2697
           this.current_devices = [];
2705
           this.current_devices = devices;
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
           var devices = response.data.data.devices;
2716
           var devices = response.data.data.devices;
2724
           this.current_devices = [];
2717
           this.current_devices = [];
2725
           this.current_devices = devices;
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
       // const params = {
2724
       // const params = {