|
@@ -181,6 +181,7 @@
|
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"
|
184
|
185
|
></el-button>
|
185
|
186
|
</div>
|
186
|
187
|
<!-- -->
|
|
@@ -227,6 +228,7 @@
|
227
|
228
|
icon="el-icon-close"
|
228
|
229
|
circle
|
229
|
230
|
@click.stop="deletePatientMode(scope.row.Mon_A)"
|
|
231
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
230
|
232
|
></el-button>
|
231
|
233
|
</div>
|
232
|
234
|
<div
|
|
@@ -271,6 +273,7 @@
|
271
|
273
|
icon="el-icon-close"
|
272
|
274
|
circle
|
273
|
275
|
@click.stop="deletePatientMode(scope.row.Mon_N)"
|
|
276
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
274
|
277
|
></el-button>
|
275
|
278
|
</div>
|
276
|
279
|
<div
|
|
@@ -322,6 +325,7 @@
|
322
|
325
|
icon="el-icon-close"
|
323
|
326
|
circle
|
324
|
327
|
@click.stop="deletePatientMode(scope.row.Tue_M)"
|
|
328
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
325
|
329
|
></el-button>
|
326
|
330
|
</div>
|
327
|
331
|
<div
|
|
@@ -366,6 +370,7 @@
|
366
|
370
|
icon="el-icon-close"
|
367
|
371
|
circle
|
368
|
372
|
@click.stop="deletePatientMode(scope.row.Tue_A)"
|
|
373
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
369
|
374
|
></el-button>
|
370
|
375
|
</div>
|
371
|
376
|
<div
|
|
@@ -409,6 +414,7 @@
|
409
|
414
|
icon="el-icon-close"
|
410
|
415
|
circle
|
411
|
416
|
@click.stop="deletePatientMode(scope.row.Tue_N)"
|
|
417
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
412
|
418
|
></el-button>
|
413
|
419
|
</div>
|
414
|
420
|
<div
|
|
@@ -459,6 +465,7 @@
|
459
|
465
|
icon="el-icon-close"
|
460
|
466
|
circle
|
461
|
467
|
@click.stop="deletePatientMode(scope.row.Wed_M)"
|
|
468
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
462
|
469
|
></el-button>
|
463
|
470
|
</div>
|
464
|
471
|
<div
|
|
@@ -502,6 +509,7 @@
|
502
|
509
|
icon="el-icon-close"
|
503
|
510
|
circle
|
504
|
511
|
@click.stop="deletePatientMode(scope.row.Wed_A)"
|
|
512
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
505
|
513
|
></el-button>
|
506
|
514
|
</div>
|
507
|
515
|
<div
|
|
@@ -545,6 +553,7 @@
|
545
|
553
|
icon="el-icon-close"
|
546
|
554
|
circle
|
547
|
555
|
@click.stop="deletePatientMode(scope.row.Wed_N)"
|
|
556
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
548
|
557
|
></el-button>
|
549
|
558
|
</div>
|
550
|
559
|
<div
|
|
@@ -595,6 +604,7 @@
|
595
|
604
|
icon="el-icon-close"
|
596
|
605
|
circle
|
597
|
606
|
@click.stop="deletePatientMode(scope.row.Thurs_M)"
|
|
607
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
598
|
608
|
></el-button>
|
599
|
609
|
</div>
|
600
|
610
|
<div
|
|
@@ -643,6 +653,7 @@
|
643
|
653
|
icon="el-icon-close"
|
644
|
654
|
circle
|
645
|
655
|
@click.stop="deletePatientMode(scope.row.Thurs_A)"
|
|
656
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
646
|
657
|
></el-button>
|
647
|
658
|
</div>
|
648
|
659
|
<div
|
|
@@ -692,6 +703,7 @@
|
692
|
703
|
icon="el-icon-close"
|
693
|
704
|
circle
|
694
|
705
|
@click.stop="deletePatientMode(scope.row.Thurs_N)"
|
|
706
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
695
|
707
|
></el-button>
|
696
|
708
|
</div>
|
697
|
709
|
<div
|
|
@@ -743,6 +755,7 @@
|
743
|
755
|
icon="el-icon-close"
|
744
|
756
|
circle
|
745
|
757
|
@click.stop="deletePatientMode(scope.row.Fri_M)"
|
|
758
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
746
|
759
|
></el-button>
|
747
|
760
|
</div>
|
748
|
761
|
<div
|
|
@@ -784,6 +797,7 @@
|
784
|
797
|
icon="el-icon-close"
|
785
|
798
|
circle
|
786
|
799
|
@click.stop="deletePatientMode(scope.row.Fri_A)"
|
|
800
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
787
|
801
|
></el-button>
|
788
|
802
|
</div>
|
789
|
803
|
|
|
@@ -823,6 +837,7 @@
|
823
|
837
|
icon="el-icon-close"
|
824
|
838
|
circle
|
825
|
839
|
@click.stop="deletePatientMode(scope.row.Fri_N)"
|
|
840
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
826
|
841
|
></el-button>
|
827
|
842
|
</div>
|
828
|
843
|
<!-- -->
|
|
@@ -875,6 +890,7 @@
|
875
|
890
|
icon="el-icon-close"
|
876
|
891
|
circle
|
877
|
892
|
@click.stop="deletePatientMode(scope.row.Sat_M)"
|
|
893
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
878
|
894
|
></el-button>
|
879
|
895
|
</div>
|
880
|
896
|
<!-- -->
|
|
@@ -920,6 +936,7 @@
|
920
|
936
|
icon="el-icon-close"
|
921
|
937
|
circle
|
922
|
938
|
@click.stop="deletePatientMode(scope.row.Sat_A)"
|
|
939
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
923
|
940
|
></el-button>
|
924
|
941
|
</div>
|
925
|
942
|
<!-- -->
|
|
@@ -965,6 +982,7 @@
|
965
|
982
|
icon="el-icon-close"
|
966
|
983
|
circle
|
967
|
984
|
@click.stop="deletePatientMode(scope.row.Sat_N)"
|
|
985
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
968
|
986
|
></el-button>
|
969
|
987
|
</div>
|
970
|
988
|
<!-- -->
|
|
@@ -1021,6 +1039,7 @@
|
1021
|
1039
|
icon="el-icon-close"
|
1022
|
1040
|
circle
|
1023
|
1041
|
@click.stop="deletePatientMode(scope.row.Sun_M)"
|
|
1042
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
1024
|
1043
|
></el-button>
|
1025
|
1044
|
</div>
|
1026
|
1045
|
<div
|
|
@@ -1069,6 +1088,7 @@
|
1069
|
1088
|
icon="el-icon-close"
|
1070
|
1089
|
circle
|
1071
|
1090
|
@click.stop="deletePatientMode(scope.row.Sun_A)"
|
|
1091
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
1072
|
1092
|
></el-button>
|
1073
|
1093
|
</div>
|
1074
|
1094
|
<div
|
|
@@ -1116,6 +1136,7 @@
|
1116
|
1136
|
icon="el-icon-close"
|
1117
|
1137
|
circle
|
1118
|
1138
|
@click.stop="deletePatientMode(scope.row.Sun_N)"
|
|
1139
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
1119
|
1140
|
></el-button>
|
1120
|
1141
|
</div>
|
1121
|
1142
|
<div
|
|
@@ -1436,7 +1457,7 @@
|
1436
|
1457
|
</el-option>
|
1437
|
1458
|
</el-select>
|
1438
|
1459
|
</el-form-item>
|
1439
|
|
- <el-form-item label="病房: " prop="partition_id">
|
|
1460
|
+ <el-form-item label="分区: " prop="partition_id">
|
1440
|
1461
|
<el-select
|
1441
|
1462
|
v-model="zone_name"
|
1442
|
1463
|
placeholder="请选择"
|
|
@@ -3136,8 +3157,8 @@ export default {
|
3136
|
3157
|
drag(e, day, index, name, row) {
|
3137
|
3158
|
e.preventDefault();
|
3138
|
3159
|
for (var key in row) {
|
3139
|
|
- if (key == day && row[key].patient_id > 0) {
|
3140
|
|
- // console.log(row[key].patient_id)
|
|
3160
|
+ if (key == day) {
|
|
3161
|
+ if(row[key].patient_id > 0){
|
3141
|
3162
|
this.cur_drag_obj = 2
|
3142
|
3163
|
var week = this.weekDay(day);
|
3143
|
3164
|
this.cur_drag_info={
|
|
@@ -3154,6 +3175,24 @@ export default {
|
3154
|
3175
|
patient_name : row[key].patient,
|
3155
|
3176
|
patient_id : row[key].patient_id,
|
3156
|
3177
|
id : row[key].schedule_id
|
|
3178
|
+ }
|
|
3179
|
+ }else{
|
|
3180
|
+ this.cur_drag_obj = 2
|
|
3181
|
+ this.cur_drag_info={
|
|
3182
|
+ schedule_date : '',
|
|
3183
|
+ schedule_type : '',
|
|
3184
|
+ bed_id : '',
|
|
3185
|
+ partition_id : '',
|
|
3186
|
+ schedule_week : '',
|
|
3187
|
+ type_name : '',
|
|
3188
|
+ zone_name : '',
|
|
3189
|
+ bed_name : '',
|
|
3190
|
+ mode_id : '',
|
|
3191
|
+ mode_name : '',
|
|
3192
|
+ patient_name : '',
|
|
3193
|
+ patient_id : '',
|
|
3194
|
+ id : '',
|
|
3195
|
+ }
|
3157
|
3196
|
}
|
3158
|
3197
|
}
|
3159
|
3198
|
}
|
|
@@ -3215,6 +3254,7 @@ export default {
|
3215
|
3254
|
if (row.schedule_id > 0) {
|
3216
|
3255
|
this.CancelSchedule(row.schedule_id);
|
3217
|
3256
|
}
|
|
3257
|
+ console.log('deletePatientMode',row);
|
3218
|
3258
|
},
|
3219
|
3259
|
// 替换
|
3220
|
3260
|
coverSch(){
|
|
@@ -4785,7 +4825,7 @@ export default {
|
4785
|
4825
|
}
|
4786
|
4826
|
}
|
4787
|
4827
|
});
|
4788
|
|
- this.closePatientPanel();
|
|
4828
|
+ // this.closePatientPanel();
|
4789
|
4829
|
}
|
4790
|
4830
|
this.creating_schedule = false;
|
4791
|
4831
|
},
|
|
@@ -5568,7 +5608,6 @@ export default {
|
5568
|
5608
|
};
|
5569
|
5609
|
},
|
5570
|
5610
|
created() {
|
5571
|
|
-
|
5572
|
5611
|
var date = new Date();
|
5573
|
5612
|
this.time = date;
|
5574
|
5613
|
var year = date.getFullYear();
|