test_user 2 years ago
parent
commit
b1da89d6ab
1 changed files with 50 additions and 217 deletions
  1. 50 217
      src/xt_pages/workforce/components/editTableData.vue

+ 50 - 217
src/xt_pages/workforce/components/editTableData.vue View File

181
                       icon="el-icon-close"
181
                       icon="el-icon-close"
182
                       circle
182
                       circle
183
                       @click.stop="deletePatientMode(scope.row.Mon_M)"
183
                       @click.stop="deletePatientMode(scope.row.Mon_M)"
184
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
185
                   ></el-button>
184
                   ></el-button>
186
                 </div>
185
                 </div>
187
                 <!--  -->
186
                 <!--  -->
228
                       icon="el-icon-close"
227
                       icon="el-icon-close"
229
                       circle
228
                       circle
230
                       @click.stop="deletePatientMode(scope.row.Mon_A)"
229
                       @click.stop="deletePatientMode(scope.row.Mon_A)"
231
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
232
                   ></el-button>
230
                   ></el-button>
233
                 </div>
231
                 </div>
234
                 <div
232
                 <div
273
                       icon="el-icon-close"
271
                       icon="el-icon-close"
274
                       circle
272
                       circle
275
                       @click.stop="deletePatientMode(scope.row.Mon_N)"
273
                       @click.stop="deletePatientMode(scope.row.Mon_N)"
276
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
277
                   ></el-button>
274
                   ></el-button>
278
                 </div>
275
                 </div>
279
                 <div
276
                 <div
325
                       icon="el-icon-close"
322
                       icon="el-icon-close"
326
                       circle
323
                       circle
327
                       @click.stop="deletePatientMode(scope.row.Tue_M)"
324
                       @click.stop="deletePatientMode(scope.row.Tue_M)"
328
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
329
                   ></el-button>
325
                   ></el-button>
330
                 </div>
326
                 </div>
331
                 <div
327
                 <div
370
                       icon="el-icon-close"
366
                       icon="el-icon-close"
371
                       circle
367
                       circle
372
                       @click.stop="deletePatientMode(scope.row.Tue_A)"
368
                       @click.stop="deletePatientMode(scope.row.Tue_A)"
373
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
374
                   ></el-button>
369
                   ></el-button>
375
                 </div>
370
                 </div>
376
                 <div
371
                 <div
414
                       icon="el-icon-close"
409
                       icon="el-icon-close"
415
                       circle
410
                       circle
416
                       @click.stop="deletePatientMode(scope.row.Tue_N)"
411
                       @click.stop="deletePatientMode(scope.row.Tue_N)"
417
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
418
                   ></el-button>
412
                   ></el-button>
419
                 </div>
413
                 </div>
420
                 <div
414
                 <div
465
                       icon="el-icon-close"
459
                       icon="el-icon-close"
466
                       circle
460
                       circle
467
                       @click.stop="deletePatientMode(scope.row.Wed_M)"
461
                       @click.stop="deletePatientMode(scope.row.Wed_M)"
468
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
469
                   ></el-button>
462
                   ></el-button>
470
                 </div>
463
                 </div>
471
                 <div
464
                 <div
509
                       icon="el-icon-close"
502
                       icon="el-icon-close"
510
                       circle
503
                       circle
511
                       @click.stop="deletePatientMode(scope.row.Wed_A)"
504
                       @click.stop="deletePatientMode(scope.row.Wed_A)"
512
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
513
                   ></el-button>
505
                   ></el-button>
514
                 </div>
506
                 </div>
515
                 <div
507
                 <div
553
                       icon="el-icon-close"
545
                       icon="el-icon-close"
554
                       circle
546
                       circle
555
                       @click.stop="deletePatientMode(scope.row.Wed_N)"
547
                       @click.stop="deletePatientMode(scope.row.Wed_N)"
556
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
557
                   ></el-button>
548
                   ></el-button>
558
                 </div>
549
                 </div>
559
                 <div
550
                 <div
604
                       icon="el-icon-close"
595
                       icon="el-icon-close"
605
                       circle
596
                       circle
606
                       @click.stop="deletePatientMode(scope.row.Thurs_M)"
597
                       @click.stop="deletePatientMode(scope.row.Thurs_M)"
607
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
608
                   ></el-button>
598
                   ></el-button>
609
                 </div>
599
                 </div>
610
                 <div
600
                 <div
653
                       icon="el-icon-close"
643
                       icon="el-icon-close"
654
                       circle
644
                       circle
655
                       @click.stop="deletePatientMode(scope.row.Thurs_A)"
645
                       @click.stop="deletePatientMode(scope.row.Thurs_A)"
656
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
657
                   ></el-button>
646
                   ></el-button>
658
                 </div>
647
                 </div>
659
                 <div
648
                 <div
703
                       icon="el-icon-close"
692
                       icon="el-icon-close"
704
                       circle
693
                       circle
705
                       @click.stop="deletePatientMode(scope.row.Thurs_N)"
694
                       @click.stop="deletePatientMode(scope.row.Thurs_N)"
706
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
707
                   ></el-button>
695
                   ></el-button>
708
                 </div>
696
                 </div>
709
                 <div
697
                 <div
755
                       icon="el-icon-close"
743
                       icon="el-icon-close"
756
                       circle
744
                       circle
757
                       @click.stop="deletePatientMode(scope.row.Fri_M)"
745
                       @click.stop="deletePatientMode(scope.row.Fri_M)"
758
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
759
                   ></el-button>
746
                   ></el-button>
760
                 </div>
747
                 </div>
761
                 <div
748
                 <div
797
                       icon="el-icon-close"
784
                       icon="el-icon-close"
798
                       circle
785
                       circle
799
                       @click.stop="deletePatientMode(scope.row.Fri_A)"
786
                       @click.stop="deletePatientMode(scope.row.Fri_A)"
800
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
801
                   ></el-button>
787
                   ></el-button>
802
                 </div>
788
                 </div>
803
 
789
 
837
                       icon="el-icon-close"
823
                       icon="el-icon-close"
838
                       circle
824
                       circle
839
                       @click.stop="deletePatientMode(scope.row.Fri_N)"
825
                       @click.stop="deletePatientMode(scope.row.Fri_N)"
840
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
841
                   ></el-button>
826
                   ></el-button>
842
                 </div>
827
                 </div>
843
                 <!--  -->
828
                 <!--  -->
890
                       icon="el-icon-close"
875
                       icon="el-icon-close"
891
                       circle
876
                       circle
892
                       @click.stop="deletePatientMode(scope.row.Sat_M)"
877
                       @click.stop="deletePatientMode(scope.row.Sat_M)"
893
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
894
                   ></el-button>
878
                   ></el-button>
895
                 </div>
879
                 </div>
896
                 <!--  -->
880
                 <!--  -->
936
                       icon="el-icon-close"
920
                       icon="el-icon-close"
937
                       circle
921
                       circle
938
                       @click.stop="deletePatientMode(scope.row.Sat_A)"
922
                       @click.stop="deletePatientMode(scope.row.Sat_A)"
939
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
940
                   ></el-button>
923
                   ></el-button>
941
                 </div>
924
                 </div>
942
                 <!--  -->
925
                 <!--  -->
982
                       icon="el-icon-close"
965
                       icon="el-icon-close"
983
                       circle
966
                       circle
984
                       @click.stop="deletePatientMode(scope.row.Sat_N)"
967
                       @click.stop="deletePatientMode(scope.row.Sat_N)"
985
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
986
                   ></el-button>
968
                   ></el-button>
987
                 </div>
969
                 </div>
988
                 <!--  -->
970
                 <!--  -->
1039
                       icon="el-icon-close"
1021
                       icon="el-icon-close"
1040
                       circle
1022
                       circle
1041
                       @click.stop="deletePatientMode(scope.row.Sun_M)"
1023
                       @click.stop="deletePatientMode(scope.row.Sun_M)"
1042
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
1043
                   ></el-button>
1024
                   ></el-button>
1044
                 </div>
1025
                 </div>
1045
                 <div
1026
                 <div
1088
                       icon="el-icon-close"
1069
                       icon="el-icon-close"
1089
                       circle
1070
                       circle
1090
                       @click.stop="deletePatientMode(scope.row.Sun_A)"
1071
                       @click.stop="deletePatientMode(scope.row.Sun_A)"
1091
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
1092
                   ></el-button>
1072
                   ></el-button>
1093
                 </div>
1073
                 </div>
1094
                 <div
1074
                 <div
1136
                       icon="el-icon-close"
1116
                       icon="el-icon-close"
1137
                       circle
1117
                       circle
1138
                       @click.stop="deletePatientMode(scope.row.Sun_N)"
1118
                       @click.stop="deletePatientMode(scope.row.Sun_N)"
1139
-                      v-show="cur_drag_info.patient_id== 0 ? false : true"
1140
                   ></el-button>
1119
                   ></el-button>
1141
                 </div>
1120
                 </div>
1142
                 <div
1121
                 <div
1457
               </el-option>
1436
               </el-option>
1458
             </el-select>
1437
             </el-select>
1459
           </el-form-item>
1438
           </el-form-item>
1460
-          <el-form-item label="分区: " prop="partition_id">
1439
+          <el-form-item label="病房: " prop="partition_id">
1461
             <el-select
1440
             <el-select
1462
                 v-model="zone_name"
1441
                 v-model="zone_name"
1463
                 placeholder="请选择"
1442
                 placeholder="请选择"
1729
   CancelSchedule,
1708
   CancelSchedule,
1730
   ChangeSchedule,
1709
   ChangeSchedule,
1731
   CreateSchedule,
1710
   CreateSchedule,
1732
-  CreateScheduleTwo,
1733
   getSchedulePatients,
1711
   getSchedulePatients,
1734
   getSchedulesOne,
1712
   getSchedulesOne,
1735
   getUrgentScheduleInitData,
1713
   getUrgentScheduleInitData,
2099
 
2077
 
2100
     weekTime: function () {
2078
     weekTime: function () {
2101
       var theType = this.weekType(this.weekTime);
2079
       var theType = this.weekType(this.weekTime);
2102
-
2103
       this.theType = theType;
2080
       this.theType = theType;
2104
       this.getSchedules();
2081
       this.getSchedules();
2105
     },
2082
     },
3158
     drag(e, day, index, name, row) {
3135
     drag(e, day, index, name, row) {
3159
       e.preventDefault();
3136
       e.preventDefault();
3160
       for (var key in row) {
3137
       for (var key in row) {
3161
-        if (key == day) {
3162
-          if(row[key].patient_id > 0){
3138
+        if (key == day && row[key].patient_id > 0) {
3139
+          // console.log(row[key].patient_id)
3163
             this.cur_drag_obj = 2
3140
             this.cur_drag_obj = 2
3164
             var week = this.weekDay(day);
3141
             var week = this.weekDay(day);
3165
             this.cur_drag_info={
3142
             this.cur_drag_info={
3175
               mode_name : row[key].mode_name,
3152
               mode_name : row[key].mode_name,
3176
               patient_name : row[key].patient,
3153
               patient_name : row[key].patient,
3177
               patient_id : row[key].patient_id,
3154
               patient_id : row[key].patient_id,
3178
-              id : row[key].schedule_id,
3179
-              contagions: row[key].patient_contagions,
3180
-            }
3181
-            console.log( this.cur_drag_info)
3182
-
3183
-          }else{
3184
-            this.cur_drag_obj = 3
3185
-            this.cur_drag_info={
3186
-              schedule_date : '',
3187
-              schedule_type : '',
3188
-              bed_id : '',
3189
-              partition_id : '',
3190
-              schedule_week : '',
3191
-              type_name : '',
3192
-              zone_name : '',
3193
-              bed_name : '',
3194
-              mode_id : '',
3195
-              mode_name : '',
3196
-              patient_name : '',
3197
-              patient_id : 0,
3198
-              id : 0,
3199
-            }
3155
+              id : row[key].schedule_id
3200
           }
3156
           }
3201
         }
3157
         }
3202
       }
3158
       }
3159
+      console.log('this.cur_drag_info的数据',this.cur_drag_info);
3203
     },
3160
     },
3204
 
3161
 
3205
     // 拖拽
3162
     // 拖拽
3257
       if (row.schedule_id > 0) {
3214
       if (row.schedule_id > 0) {
3258
         this.CancelSchedule(row.schedule_id);
3215
         this.CancelSchedule(row.schedule_id);
3259
       }
3216
       }
3260
-      console.log('deletePatientMode',row);
3261
     },
3217
     },
3262
     // 替换
3218
     // 替换
3263
     coverSch(){
3219
     coverSch(){
3306
       this.allowDrop(e)
3262
       this.allowDrop(e)
3307
       for (var key in row) {
3263
       for (var key in row) {
3308
         if (key == day) {
3264
         if (key == day) {
3309
-          if(this.cur_drag_obj == 3){
3310
-            return
3311
-          }
3312
           // console.log(this.cur_drag_obj)
3265
           // console.log(this.cur_drag_obj)
3313
           var week = this.weekDay(day);
3266
           var week = this.weekDay(day);
3314
           this.currentData={
3267
           this.currentData={
3323
             id : row[key].schedule_id,
3276
             id : row[key].schedule_id,
3324
             partition_type : row.zone_type,
3277
             partition_type : row.zone_type,
3325
           }
3278
           }
3279
+          console.log('this.currentData的数据',this.currentData);
3326
           // console.log('cur_drag_info的数据',this.cur_drag_info);
3280
           // console.log('cur_drag_info的数据',this.cur_drag_info);
3327
           // console.log('row[key]的数据',row[key]);
3281
           // console.log('row[key]的数据',row[key]);
3328
           // row[key].patient.length > 0 || row[key].mode_name.length > 0 ||
3282
           // row[key].patient.length > 0 || row[key].mode_name.length > 0 ||
3347
              if(this.cur_drag_obj == 2){
3301
              if(this.cur_drag_obj == 2){
3348
               if(this.cur_drag_info.schedule_date == this.currentData.schedule_date){ //同一天
3302
               if(this.cur_drag_info.schedule_date == this.currentData.schedule_date){ //同一天
3349
                 if(row[key].patient_id == 0) { //空床位
3303
                 if(row[key].patient_id == 0) { //空床位
3350
-                  // CancelScheduleTwo(this.cur_drag_info.id).then((response) => {
3351
-                  //   // var response= await CancelScheduleTwo(this.cur_drag_info.id)
3352
-                  //   if (response.data.state == 0) {
3353
-                  //     this.$message.error(response.data.msg)
3354
-                  //   } else {
3304
+                  CancelScheduleTwo(this.cur_drag_info.id).then((response) => {
3305
+                    // var response= await CancelScheduleTwo(this.cur_drag_info.id)
3306
+                    if (response.data.state == 0) {
3307
+                      this.$message.error(response.data.msg)
3308
+                    } else {
3355
                       const that = this;
3309
                       const that = this;
3356
-                  //     const schedule = response.data.data.schedule;
3357
-                  //     this.scheduleZone.forEach(function (zone, index) {
3358
-                  //       if (
3359
-                  //         zone.zone_id == schedule.partition_id &&
3360
-                  //         zone.jihao_id == schedule.bed_id
3361
-                  //       ) {
3362
-                  //         const weekPath = that.weekPath(
3363
-                  //           schedule.schedule_week,
3364
-                  //           schedule.schedule_type
3365
-                  //         );
3366
-                  //         if (weekPath.length == 2) {
3367
-                  //           const weekPathKey = weekPath[0] + "_" + weekPath[1];
3368
-                  //           that.scheduleZone[index][weekPathKey] = {
3369
-                  //             schedule_id: 0,
3370
-                  //             mode_id: 0,
3371
-                  //             patient_id: 0,
3372
-                  //             patient: "",
3373
-                  //             mode_name: "",
3374
-                  //             dialysis_machine_name: "",
3375
-                  //           };
3376
-                  //           that.scheduleZone[index].total -= 1;
3377
-                  //         }
3378
-                  //       }
3379
-                  //     });
3380
-                  //     //接口提交排班数据
3381
-                      that.currentData.mode_id = that.cur_drag_info.mode_id
3382
-                      that.currentData.id = 0
3383
-                      that.currentData.patient_id = that.cur_drag_info.patient_id
3384
-                      that.currentData.patient = that.cur_drag_info.patient_name
3385
-                       that.currentData.contagions = that.cur_drag_info.contagions
3386
-                  console.log( that.cur_drag_info.contagions)
3387
-
3388
-                  console.log( that.currentData.contagions)
3389
-                  that.setScheduleTwo(this.cur_drag_info.id);
3390
-                  //   }
3391
-                  // });
3310
+                      const schedule = response.data.data.schedule;
3311
+                      this.scheduleZone.forEach(function (zone, index) {
3312
+                        if (
3313
+                          zone.zone_id == schedule.partition_id &&
3314
+                          zone.jihao_id == schedule.bed_id
3315
+                        ) {
3316
+                          const weekPath = that.weekPath(
3317
+                            schedule.schedule_week,
3318
+                            schedule.schedule_type
3319
+                          );
3320
+                          if (weekPath.length == 2) {
3321
+                            const weekPathKey = weekPath[0] + "_" + weekPath[1];
3322
+                            that.scheduleZone[index][weekPathKey] = {
3323
+                              schedule_id: 0,
3324
+                              mode_id: 0,
3325
+                              patient_id: 0,
3326
+                              patient: "",
3327
+                              mode_name: "",
3328
+                              dialysis_machine_name: "",
3329
+                            };
3330
+                            that.scheduleZone[index].total -= 1;
3331
+                          }
3332
+                        }
3333
+                      });
3334
+                      //接口提交排班数据
3335
+                      that.currentData.mode_id = that.cur_drag_info.mode_id,
3336
+                      that.currentData.id = 0,
3337
+                      that.currentData.contagions = [],
3338
+                      that.currentData.patient_id = that.cur_drag_info.patient_id,
3339
+                      that.currentData.patient = that.cur_drag_info.patient_name,
3340
+                      that.setSchedule();
3341
+                    }
3342
+                  });
3392
                 }
3343
                 }
3393
                 // else{  //非空,替換或者交換位置
3344
                 // else{  //非空,替換或者交換位置
3394
                 //     // this.tipDialogVisible = true
3345
                 //     // this.tipDialogVisible = true
3822
 
3773
 
3823
       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){
3774
       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){
3824
 
3775
 
3825
-      // 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){
3826
-
3827
         //表格某列全部数据
3776
         //表格某列全部数据
3828
         var Mon_M = []
3777
         var Mon_M = []
3829
         var Mon_A = []
3778
         var Mon_A = []
4437
       }
4386
       }
4438
       sums[22]="总人数:"+ sums[22] +"\n"+result
4387
       sums[22]="总人数:"+ sums[22] +"\n"+result
4439
             return sums;
4388
             return sums;
4440
-      // }
4389
+      }
4441
 
4390
 
4442
-      // 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){
4443
-      //   return sums;
4444
-      // }
4391
+      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){
4392
+        return sums;
4393
+      }
4445
     },
4394
     },
4446
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
4395
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
4447
       var that = this;
4396
       var that = this;
4835
             }
4784
             }
4836
           }
4785
           }
4837
         });
4786
         });
4838
-        // this.closePatientPanel();
4839
-      }
4840
-      this.creating_schedule = false;
4841
-    },
4842
-    async CreateScheduleTwo(id, data,id_two) {
4843
-      this.creating_schedule = true;
4844
-      let response =await CreateScheduleTwo(id, data,id_two)
4845
-
4846
-      if (response.data.state == 0) {
4847
-        this.$message.error(response.data.msg);
4848
-      } else {
4849
-        var that = this;
4850
-        var schedule = response.data.data.schedule;
4851
-        this.creating_schedule=false;
4852
-        this.dialogTableVisible=false
4853
-        this.getSchedules()
4854
-        // this.scheduleZone.forEach(function (zone, index) {
4855
-        //   if (
4856
-        //     zone.zone_id == schedule.partition_id &&
4857
-        //     zone.jihao_id == schedule.bed_id
4858
-        //   ) {
4859
-        //     var weekPath = that.weekPath(
4860
-        //       schedule.schedule_week,
4861
-        //       schedule.schedule_type
4862
-        //     );
4863
-        //     if (weekPath.length == 2) {
4864
-        //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
4865
-        //       that.scheduleZone[index][weekPathKey] = {
4866
-        //         schedule_id: schedule.id,
4867
-        //         mode_id: schedule.mode_id,
4868
-        //         patient_id: schedule.patient_id,
4869
-        //         patient: schedule.patient,
4870
-        //         dialysis_machine_name: schedule.dialysis_machine_name,
4871
-        //
4872
-        //         patient_contagions: that.currentData.contagions,
4873
-        //         mode_name:
4874
-        //           typeof that.modeOptions[schedule.mode_id] === "undefined"
4875
-        //             ? ""
4876
-        //             : that.modeOptions[schedule.mode_id].name,
4877
-        //       };
4878
-        //       that.scheduleZone[index].total += 1;
4879
-        //     }
4880
-        //   }
4881
-        // });
4882
-        // this.closePatientPanel();
4787
+        this.closePatientPanel();
4883
       }
4788
       }
4884
       this.creating_schedule = false;
4789
       this.creating_schedule = false;
4885
     },
4790
     },
5278
         default:
5183
         default:
5279
           break;
5184
           break;
5280
       }
5185
       }
5281
-    },    setScheduleTwo(id_two) {
5282
-      console.log("1112222222")
5283
-      var that = this;
5284
-      // var submitFlag = true;
5285
-      // if (this.currentData.patient_id <= 0) {
5286
-      //   this.$message.error("请先选择患者");
5287
-      //   return false;
5288
-      // }
5289
-      // if (
5290
-      //     this.currentData.schedule_date.length == 0 ||
5291
-      //     this.currentData.schedule_type < 1 ||
5292
-      //     this.currentData.schedule_type > 3 ||
5293
-      //     this.currentData.bed_id < 1 ||
5294
-      //     this.currentData.partition_id < 1 ||
5295
-      //     this.currentData.schedule_week < 1 ||
5296
-      //     this.currentData.schedule_week > 7
5297
-      // ) {
5298
-      //   this.$message.error("请先选择排班时间或机号");
5299
-      //   return false;
5300
-      // }
5301
-      // 可能
5302
-      // 患者有传染病,与选择的机器类型(传染病)不匹配
5303
-      // 患者没有传染病,但机器是某个传染病的专用透析器
5304
-      // 机器的透析模式与患者不匹配
5305
-      if (this.currentData.contagions.length > 0) {
5306
-        var cflag = false;
5307
-        this.currentData.contagions.forEach(function (contagion) {
5308
-          if (contagion.disease_id == that.currentData.partition_type) {
5309
-            cflag = true;
5310
-          }
5311
-        });
5312
-        if (!cflag) {
5313
-          this.$confirm(
5314
-            "此患者有传染病,与此透析机不匹配,确定在此排班吗?",
5315
-            "提示",
5316
-            {
5317
-              confirmButtonText: "确 定",
5318
-              cancelButtonText: "取 消",
5319
-              type: "warning",
5320
-            }
5321
-          )
5322
-            .then(() => {
5323
-              this.CreateScheduleTwo(
5324
-                this.currentData.patient_id,
5325
-                this.currentData,
5326
-                id_two
5327
-              );
5328
-              this.dialogTableVisible=false
5329
-            })
5330
-            .catch(() => {
5331
-              this.dialogTableVisible=false
5332
-            });
5333
-        } else {
5334
-          this.CreateScheduleTwo(this.currentData.patient_id, this.currentData,id_two);
5335
-        }
5336
-      } else if (that.currentData.partition_type > 1) {
5337
-        this.$confirm(
5338
-          "此患者没有传染病,与此透析机不匹配,确定在此排班吗?",
5339
-          "提示",
5340
-          {
5341
-            confirmButtonText: "确 定",
5342
-            cancelButtonText: "取 消",
5343
-            type: "warning",
5344
-          }
5345
-        )
5346
-          .then(() => {
5347
-            this.CreateScheduleTwo(this.currentData.patient_id, this.currentData,id_two);
5348
-          })
5349
-          .catch(() => {});
5350
-      } else {
5351
-        this.CreateScheduleTwo(this.currentData.patient_id, this.currentData,id_two);
5352
-      }
5353
     },
5186
     },
5354
-
5355
     // 排班成功调用的方法
5187
     // 排班成功调用的方法
5356
     setSchedule() {
5188
     setSchedule() {
5357
       var that = this;
5189
       var that = this;
5735
     };
5567
     };
5736
   },
5568
   },
5737
   created() {
5569
   created() {
5570
+
5738
     var date = new Date();
5571
     var date = new Date();
5739
     this.time = date;
5572
     this.time = date;
5740
     var year = date.getFullYear();
5573
     var year = date.getFullYear();