|
@@ -181,7 +181,6 @@
|
181
|
181
|
icon="el-icon-close"
|
182
|
182
|
circle
|
183
|
183
|
@click.stop="deletePatientMode(scope.row.Mon_M)"
|
184
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
185
|
184
|
></el-button>
|
186
|
185
|
</div>
|
187
|
186
|
<!-- -->
|
|
@@ -228,7 +227,6 @@
|
228
|
227
|
icon="el-icon-close"
|
229
|
228
|
circle
|
230
|
229
|
@click.stop="deletePatientMode(scope.row.Mon_A)"
|
231
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
232
|
230
|
></el-button>
|
233
|
231
|
</div>
|
234
|
232
|
<div
|
|
@@ -273,7 +271,6 @@
|
273
|
271
|
icon="el-icon-close"
|
274
|
272
|
circle
|
275
|
273
|
@click.stop="deletePatientMode(scope.row.Mon_N)"
|
276
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
277
|
274
|
></el-button>
|
278
|
275
|
</div>
|
279
|
276
|
<div
|
|
@@ -325,7 +322,6 @@
|
325
|
322
|
icon="el-icon-close"
|
326
|
323
|
circle
|
327
|
324
|
@click.stop="deletePatientMode(scope.row.Tue_M)"
|
328
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
329
|
325
|
></el-button>
|
330
|
326
|
</div>
|
331
|
327
|
<div
|
|
@@ -370,7 +366,6 @@
|
370
|
366
|
icon="el-icon-close"
|
371
|
367
|
circle
|
372
|
368
|
@click.stop="deletePatientMode(scope.row.Tue_A)"
|
373
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
374
|
369
|
></el-button>
|
375
|
370
|
</div>
|
376
|
371
|
<div
|
|
@@ -414,7 +409,6 @@
|
414
|
409
|
icon="el-icon-close"
|
415
|
410
|
circle
|
416
|
411
|
@click.stop="deletePatientMode(scope.row.Tue_N)"
|
417
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
418
|
412
|
></el-button>
|
419
|
413
|
</div>
|
420
|
414
|
<div
|
|
@@ -465,7 +459,6 @@
|
465
|
459
|
icon="el-icon-close"
|
466
|
460
|
circle
|
467
|
461
|
@click.stop="deletePatientMode(scope.row.Wed_M)"
|
468
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
469
|
462
|
></el-button>
|
470
|
463
|
</div>
|
471
|
464
|
<div
|
|
@@ -509,7 +502,6 @@
|
509
|
502
|
icon="el-icon-close"
|
510
|
503
|
circle
|
511
|
504
|
@click.stop="deletePatientMode(scope.row.Wed_A)"
|
512
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
513
|
505
|
></el-button>
|
514
|
506
|
</div>
|
515
|
507
|
<div
|
|
@@ -553,7 +545,6 @@
|
553
|
545
|
icon="el-icon-close"
|
554
|
546
|
circle
|
555
|
547
|
@click.stop="deletePatientMode(scope.row.Wed_N)"
|
556
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
557
|
548
|
></el-button>
|
558
|
549
|
</div>
|
559
|
550
|
<div
|
|
@@ -604,7 +595,6 @@
|
604
|
595
|
icon="el-icon-close"
|
605
|
596
|
circle
|
606
|
597
|
@click.stop="deletePatientMode(scope.row.Thurs_M)"
|
607
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
608
|
598
|
></el-button>
|
609
|
599
|
</div>
|
610
|
600
|
<div
|
|
@@ -653,7 +643,6 @@
|
653
|
643
|
icon="el-icon-close"
|
654
|
644
|
circle
|
655
|
645
|
@click.stop="deletePatientMode(scope.row.Thurs_A)"
|
656
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
657
|
646
|
></el-button>
|
658
|
647
|
</div>
|
659
|
648
|
<div
|
|
@@ -703,7 +692,6 @@
|
703
|
692
|
icon="el-icon-close"
|
704
|
693
|
circle
|
705
|
694
|
@click.stop="deletePatientMode(scope.row.Thurs_N)"
|
706
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
707
|
695
|
></el-button>
|
708
|
696
|
</div>
|
709
|
697
|
<div
|
|
@@ -755,7 +743,6 @@
|
755
|
743
|
icon="el-icon-close"
|
756
|
744
|
circle
|
757
|
745
|
@click.stop="deletePatientMode(scope.row.Fri_M)"
|
758
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
759
|
746
|
></el-button>
|
760
|
747
|
</div>
|
761
|
748
|
<div
|
|
@@ -797,7 +784,6 @@
|
797
|
784
|
icon="el-icon-close"
|
798
|
785
|
circle
|
799
|
786
|
@click.stop="deletePatientMode(scope.row.Fri_A)"
|
800
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
801
|
787
|
></el-button>
|
802
|
788
|
</div>
|
803
|
789
|
|
|
@@ -837,7 +823,6 @@
|
837
|
823
|
icon="el-icon-close"
|
838
|
824
|
circle
|
839
|
825
|
@click.stop="deletePatientMode(scope.row.Fri_N)"
|
840
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
841
|
826
|
></el-button>
|
842
|
827
|
</div>
|
843
|
828
|
<!-- -->
|
|
@@ -890,7 +875,6 @@
|
890
|
875
|
icon="el-icon-close"
|
891
|
876
|
circle
|
892
|
877
|
@click.stop="deletePatientMode(scope.row.Sat_M)"
|
893
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
894
|
878
|
></el-button>
|
895
|
879
|
</div>
|
896
|
880
|
<!-- -->
|
|
@@ -936,7 +920,6 @@
|
936
|
920
|
icon="el-icon-close"
|
937
|
921
|
circle
|
938
|
922
|
@click.stop="deletePatientMode(scope.row.Sat_A)"
|
939
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
940
|
923
|
></el-button>
|
941
|
924
|
</div>
|
942
|
925
|
<!-- -->
|
|
@@ -982,7 +965,6 @@
|
982
|
965
|
icon="el-icon-close"
|
983
|
966
|
circle
|
984
|
967
|
@click.stop="deletePatientMode(scope.row.Sat_N)"
|
985
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
986
|
968
|
></el-button>
|
987
|
969
|
</div>
|
988
|
970
|
<!-- -->
|
|
@@ -1039,7 +1021,6 @@
|
1039
|
1021
|
icon="el-icon-close"
|
1040
|
1022
|
circle
|
1041
|
1023
|
@click.stop="deletePatientMode(scope.row.Sun_M)"
|
1042
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
1043
|
1024
|
></el-button>
|
1044
|
1025
|
</div>
|
1045
|
1026
|
<div
|
|
@@ -1088,7 +1069,6 @@
|
1088
|
1069
|
icon="el-icon-close"
|
1089
|
1070
|
circle
|
1090
|
1071
|
@click.stop="deletePatientMode(scope.row.Sun_A)"
|
1091
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
1092
|
1072
|
></el-button>
|
1093
|
1073
|
</div>
|
1094
|
1074
|
<div
|
|
@@ -1136,7 +1116,6 @@
|
1136
|
1116
|
icon="el-icon-close"
|
1137
|
1117
|
circle
|
1138
|
1118
|
@click.stop="deletePatientMode(scope.row.Sun_N)"
|
1139
|
|
- v-show="cur_drag_info.patient_id== 0 ? false : true"
|
1140
|
1119
|
></el-button>
|
1141
|
1120
|
</div>
|
1142
|
1121
|
<div
|
|
@@ -1457,7 +1436,7 @@
|
1457
|
1436
|
</el-option>
|
1458
|
1437
|
</el-select>
|
1459
|
1438
|
</el-form-item>
|
1460
|
|
- <el-form-item label="分区: " prop="partition_id">
|
|
1439
|
+ <el-form-item label="病房: " prop="partition_id">
|
1461
|
1440
|
<el-select
|
1462
|
1441
|
v-model="zone_name"
|
1463
|
1442
|
placeholder="请选择"
|
|
@@ -1729,7 +1708,6 @@ import {
|
1729
|
1708
|
CancelSchedule,
|
1730
|
1709
|
ChangeSchedule,
|
1731
|
1710
|
CreateSchedule,
|
1732
|
|
- CreateScheduleTwo,
|
1733
|
1711
|
getSchedulePatients,
|
1734
|
1712
|
getSchedulesOne,
|
1735
|
1713
|
getUrgentScheduleInitData,
|
|
@@ -2099,7 +2077,6 @@ export default {
|
2099
|
2077
|
|
2100
|
2078
|
weekTime: function () {
|
2101
|
2079
|
var theType = this.weekType(this.weekTime);
|
2102
|
|
-
|
2103
|
2080
|
this.theType = theType;
|
2104
|
2081
|
this.getSchedules();
|
2105
|
2082
|
},
|
|
@@ -3158,8 +3135,8 @@ export default {
|
3158
|
3135
|
drag(e, day, index, name, row) {
|
3159
|
3136
|
e.preventDefault();
|
3160
|
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
|
3140
|
this.cur_drag_obj = 2
|
3164
|
3141
|
var week = this.weekDay(day);
|
3165
|
3142
|
this.cur_drag_info={
|
|
@@ -3175,31 +3152,11 @@ export default {
|
3175
|
3152
|
mode_name : row[key].mode_name,
|
3176
|
3153
|
patient_name : row[key].patient,
|
3177
|
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,7 +3214,6 @@ export default {
|
3257
|
3214
|
if (row.schedule_id > 0) {
|
3258
|
3215
|
this.CancelSchedule(row.schedule_id);
|
3259
|
3216
|
}
|
3260
|
|
- console.log('deletePatientMode',row);
|
3261
|
3217
|
},
|
3262
|
3218
|
// 替换
|
3263
|
3219
|
coverSch(){
|
|
@@ -3306,9 +3262,6 @@ export default {
|
3306
|
3262
|
this.allowDrop(e)
|
3307
|
3263
|
for (var key in row) {
|
3308
|
3264
|
if (key == day) {
|
3309
|
|
- if(this.cur_drag_obj == 3){
|
3310
|
|
- return
|
3311
|
|
- }
|
3312
|
3265
|
// console.log(this.cur_drag_obj)
|
3313
|
3266
|
var week = this.weekDay(day);
|
3314
|
3267
|
this.currentData={
|
|
@@ -3323,6 +3276,7 @@ export default {
|
3323
|
3276
|
id : row[key].schedule_id,
|
3324
|
3277
|
partition_type : row.zone_type,
|
3325
|
3278
|
}
|
|
3279
|
+ console.log('this.currentData的数据',this.currentData);
|
3326
|
3280
|
// console.log('cur_drag_info的数据',this.cur_drag_info);
|
3327
|
3281
|
// console.log('row[key]的数据',row[key]);
|
3328
|
3282
|
// row[key].patient.length > 0 || row[key].mode_name.length > 0 ||
|
|
@@ -3347,48 +3301,45 @@ export default {
|
3347
|
3301
|
if(this.cur_drag_obj == 2){
|
3348
|
3302
|
if(this.cur_drag_info.schedule_date == this.currentData.schedule_date){ //同一天
|
3349
|
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
|
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
|
3344
|
// else{ //非空,替換或者交換位置
|
3394
|
3345
|
// // this.tipDialogVisible = true
|
|
@@ -3822,8 +3773,6 @@ export default {
|
3822
|
3773
|
|
3823
|
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
|
3777
|
var Mon_M = []
|
3829
|
3778
|
var Mon_A = []
|
|
@@ -4437,11 +4386,11 @@ export default {
|
4437
|
4386
|
}
|
4438
|
4387
|
sums[22]="总人数:"+ sums[22] +"\n"+result
|
4439
|
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
|
4395
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
4447
|
4396
|
var that = this;
|
|
@@ -4835,51 +4784,7 @@ export default {
|
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
|
4789
|
this.creating_schedule = false;
|
4885
|
4790
|
},
|
|
@@ -5278,80 +5183,7 @@ export default {
|
5278
|
5183
|
default:
|
5279
|
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
|
5188
|
setSchedule() {
|
5357
|
5189
|
var that = this;
|
|
@@ -5735,6 +5567,7 @@ export default {
|
5735
|
5567
|
};
|
5736
|
5568
|
},
|
5737
|
5569
|
created() {
|
|
5570
|
+
|
5738
|
5571
|
var date = new Date();
|
5739
|
5572
|
this.time = date;
|
5740
|
5573
|
var year = date.getFullYear();
|