|
@@ -143,8 +143,8 @@
|
143
|
143
|
icon="el-icon-close"
|
144
|
144
|
circle
|
145
|
145
|
@click.stop="
|
146
|
|
- deletePatientMode(scope.row['1_1'], '1_1', scope.row)
|
147
|
|
- "
|
|
146
|
+ deletePatientMode(scope.row['1_1'], '1_1', scope.row)"
|
|
147
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
148
|
148
|
></el-button>
|
149
|
149
|
</div>
|
150
|
150
|
<div
|
|
@@ -182,6 +182,7 @@
|
182
|
182
|
@click.stop="
|
183
|
183
|
deletePatientMode(scope.row['1_2'], '1_2', scope.row)
|
184
|
184
|
"
|
|
185
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
185
|
186
|
></el-button>
|
186
|
187
|
</div>
|
187
|
188
|
<div
|
|
@@ -219,6 +220,7 @@
|
219
|
220
|
@click.stop="
|
220
|
221
|
deletePatientMode(scope.row['1_3'], '1_3', scope.row)
|
221
|
222
|
"
|
|
223
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
222
|
224
|
></el-button>
|
223
|
225
|
</div>
|
224
|
226
|
<div
|
|
@@ -259,6 +261,7 @@
|
259
|
261
|
@click.stop="
|
260
|
262
|
deletePatientMode(scope.row['2_1'], '2_1', scope.row)
|
261
|
263
|
"
|
|
264
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
262
|
265
|
></el-button>
|
263
|
266
|
</div>
|
264
|
267
|
<div
|
|
@@ -295,6 +298,7 @@
|
295
|
298
|
@click.stop="
|
296
|
299
|
deletePatientMode(scope.row['2_2'], '2_2', scope.row)
|
297
|
300
|
"
|
|
301
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
298
|
302
|
></el-button>
|
299
|
303
|
</div>
|
300
|
304
|
<div
|
|
@@ -332,6 +336,7 @@
|
332
|
336
|
@click.stop="
|
333
|
337
|
deletePatientMode(scope.row['2_3'], '2_3', scope.row)
|
334
|
338
|
"
|
|
339
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
335
|
340
|
></el-button>
|
336
|
341
|
</div>
|
337
|
342
|
<div
|
|
@@ -372,6 +377,7 @@
|
372
|
377
|
@click.stop="
|
373
|
378
|
deletePatientMode(scope.row['3_1'], '3_1', scope.row)
|
374
|
379
|
"
|
|
380
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
375
|
381
|
></el-button>
|
376
|
382
|
</div>
|
377
|
383
|
<div
|
|
@@ -409,6 +415,7 @@
|
409
|
415
|
@click.stop="
|
410
|
416
|
deletePatientMode(scope.row['3_2'], '3_2', scope.row)
|
411
|
417
|
"
|
|
418
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
412
|
419
|
></el-button>
|
413
|
420
|
</div>
|
414
|
421
|
<div
|
|
@@ -446,6 +453,7 @@
|
446
|
453
|
@click.stop="
|
447
|
454
|
deletePatientMode(scope.row['3_3'], '3_3', scope.row)
|
448
|
455
|
"
|
|
456
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
449
|
457
|
></el-button>
|
450
|
458
|
</div>
|
451
|
459
|
<div
|
|
@@ -486,6 +494,7 @@
|
486
|
494
|
@click.stop="
|
487
|
495
|
deletePatientMode(scope.row['4_1'], '4_1', scope.row)
|
488
|
496
|
"
|
|
497
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
489
|
498
|
></el-button>
|
490
|
499
|
</div>
|
491
|
500
|
<div
|
|
@@ -523,6 +532,7 @@
|
523
|
532
|
@click.stop="
|
524
|
533
|
deletePatientMode(scope.row['4_2'], '4_2', scope.row)
|
525
|
534
|
"
|
|
535
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
526
|
536
|
></el-button>
|
527
|
537
|
</div>
|
528
|
538
|
<div
|
|
@@ -560,6 +570,7 @@
|
560
|
570
|
@click.stop="
|
561
|
571
|
deletePatientMode(scope.row['4_3'], '4_3', scope.row)
|
562
|
572
|
"
|
|
573
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
563
|
574
|
></el-button>
|
564
|
575
|
</div>
|
565
|
576
|
<div
|
|
@@ -600,6 +611,7 @@
|
600
|
611
|
@click.stop="
|
601
|
612
|
deletePatientMode(scope.row['5_1'], '5_1', scope.row)
|
602
|
613
|
"
|
|
614
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
603
|
615
|
></el-button>
|
604
|
616
|
</div>
|
605
|
617
|
<div
|
|
@@ -637,6 +649,7 @@
|
637
|
649
|
@click.stop="
|
638
|
650
|
deletePatientMode(scope.row['5_2'], '5_2', scope.row)
|
639
|
651
|
"
|
|
652
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
640
|
653
|
></el-button>
|
641
|
654
|
</div>
|
642
|
655
|
<div
|
|
@@ -674,6 +687,7 @@
|
674
|
687
|
@click.stop="
|
675
|
688
|
deletePatientMode(scope.row['5_3'], '5_3', scope.row)
|
676
|
689
|
"
|
|
690
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
677
|
691
|
></el-button>
|
678
|
692
|
</div>
|
679
|
693
|
<div
|
|
@@ -714,6 +728,7 @@
|
714
|
728
|
@click.stop="
|
715
|
729
|
deletePatientMode(scope.row['6_1'], '6_1', scope.row)
|
716
|
730
|
"
|
|
731
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
717
|
732
|
></el-button>
|
718
|
733
|
</div>
|
719
|
734
|
<div
|
|
@@ -751,6 +766,7 @@
|
751
|
766
|
@click.stop="
|
752
|
767
|
deletePatientMode(scope.row['6_2'], '6_2', scope.row)
|
753
|
768
|
"
|
|
769
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
754
|
770
|
></el-button>
|
755
|
771
|
</div>
|
756
|
772
|
<div
|
|
@@ -788,6 +804,7 @@
|
788
|
804
|
@click.stop="
|
789
|
805
|
deletePatientMode(scope.row['6_3'], '6_3', scope.row)
|
790
|
806
|
"
|
|
807
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
791
|
808
|
></el-button>
|
792
|
809
|
</div>
|
793
|
810
|
<div
|
|
@@ -831,8 +848,8 @@
|
831
|
848
|
icon="el-icon-close"
|
832
|
849
|
circle
|
833
|
850
|
@click.stop="
|
834
|
|
- deletePatientMode(scope.row['7_1'], '7_1', scope.row)
|
835
|
|
- "
|
|
851
|
+ deletePatientMode(scope.row['7_1'], '7_1', scope.row) "
|
|
852
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
836
|
853
|
></el-button>
|
837
|
854
|
</div>
|
838
|
855
|
<div
|
|
@@ -873,8 +890,8 @@
|
873
|
890
|
icon="el-icon-close"
|
874
|
891
|
circle
|
875
|
892
|
@click.stop="
|
876
|
|
- deletePatientMode(scope.row['7_2'], '7_2', scope.row)
|
877
|
|
- "
|
|
893
|
+ deletePatientMode(scope.row['7_2'], '7_2', scope.row) "
|
|
894
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
878
|
895
|
></el-button>
|
879
|
896
|
</div>
|
880
|
897
|
<div
|
|
@@ -915,8 +932,8 @@
|
915
|
932
|
icon="el-icon-close"
|
916
|
933
|
circle
|
917
|
934
|
@click.stop="
|
918
|
|
- deletePatientMode(scope.row['7_3'], '7_3', scope.row)
|
919
|
|
- "
|
|
935
|
+ deletePatientMode(scope.row['7_3'], '7_3', scope.row)"
|
|
936
|
+ v-show="cur_drag_info.patient_id== 0 ? false : true"
|
920
|
937
|
></el-button>
|
921
|
938
|
</div>
|
922
|
939
|
<div
|
|
@@ -1756,8 +1773,7 @@ export default {
|
1756
|
1773
|
// 拖拽
|
1757
|
1774
|
drop(e, day, index, name, row) {
|
1758
|
1775
|
e.preventDefault();
|
1759
|
|
- console.log(row)
|
1760
|
|
-
|
|
1776
|
+ console.log('11111111',row)
|
1761
|
1777
|
for (var key in row) {
|
1762
|
1778
|
if (key == day) {
|
1763
|
1779
|
let info = {};
|
|
@@ -1772,17 +1788,19 @@ export default {
|
1772
|
1788
|
var weekday = weekday_timetype[0];
|
1773
|
1789
|
var time_type = weekday_timetype[1];
|
1774
|
1790
|
|
1775
|
|
-
|
1776
|
1791
|
this.cur_temp_info.schedule_week = weekday
|
1777
|
1792
|
this.cur_temp_info.schedule_type = time_type
|
1778
|
1793
|
this.cur_temp_info.patient_id = info.pid
|
1779
|
1794
|
this.cur_temp_info.id = row.id
|
1780
|
1795
|
|
1781
|
|
-
|
1782
|
1796
|
if (info.pid > 0 || info.treat_mode_id > 0 ) {
|
1783
|
1797
|
if (this.cur_drag_obj == 2){
|
1784
|
|
- console.log("1111222222")
|
1785
|
|
- this.tipDialogVisible = true
|
|
1798
|
+
|
|
1799
|
+ if(info.pid != this.cur_drag_info.patient_id){
|
|
1800
|
+ console.log('1234132412',info.pid,this.cur_drag_info.patient_id);
|
|
1801
|
+ this.tipDialogVisible = true
|
|
1802
|
+ }
|
|
1803
|
+ // this.tipDialogVisible = false
|
1786
|
1804
|
}else{
|
1787
|
1805
|
this.$message.error("当前机号已有排班2");
|
1788
|
1806
|
return;
|
|
@@ -1791,10 +1809,8 @@ export default {
|
1791
|
1809
|
} else {
|
1792
|
1810
|
//當前類型是表格内的拖拽,如果是同一天内的表格拖拽到空床位則先刪除原先排版,后在將排班弄到空床位
|
1793
|
1811
|
if(this.cur_drag_obj == 2){
|
1794
|
|
-
|
1795
|
1812
|
if (this.cur_drag_info.schedule_week == weekday){
|
1796
|
1813
|
//删除原来的排班,新增一个新的排班
|
1797
|
|
-
|
1798
|
1814
|
let params={
|
1799
|
1815
|
template_id:this.template.id,
|
1800
|
1816
|
week_type_one:this.cur_drag_info.schedule_week,
|
|
@@ -2611,9 +2627,21 @@ export default {
|
2611
|
2627
|
this.cur_drag_info.patient_name = info.name;
|
2612
|
2628
|
this.cur_drag_info.patient_id = info.pid;
|
2613
|
2629
|
this.cur_drag_info.id = row.id;
|
2614
|
|
- }
|
|
2630
|
+ }else{
|
|
2631
|
+ this.cur_drag_obj = 2
|
|
2632
|
+ this.cur_drag_info.schedule_type ='';
|
|
2633
|
+ this.cur_drag_info.partition_id = '';
|
|
2634
|
+ this.cur_drag_info.schedule_week = '';
|
|
2635
|
+ this.cur_drag_info.mode_id = '';
|
|
2636
|
+ this.cur_drag_info.mode_name = '';
|
|
2637
|
+ this.cur_drag_info.patient_name = '';
|
|
2638
|
+ this.cur_drag_info.patient_id = 0;
|
|
2639
|
+ this.cur_drag_info.id = 0;
|
2615
|
2640
|
|
2616
|
|
- },
|
|
2641
|
+ }
|
|
2642
|
+
|
|
2643
|
+ console.log('this.cur_drag_info的数据',this.cur_drag_info);
|
|
2644
|
+ },
|
2617
|
2645
|
allowDrop(e) {
|
2618
|
2646
|
e.preventDefault();
|
2619
|
2647
|
},
|
|
@@ -2732,15 +2760,7 @@ export default {
|
2732
|
2760
|
}
|
2733
|
2761
|
return "";
|
2734
|
2762
|
},
|
2735
|
|
- // handleScroll: function() {
|
2736
|
|
- // var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
|
2737
|
|
- // console.log(scrollTop)
|
2738
|
|
- // if (scrollTop >= 150) {
|
2739
|
|
- // this.fixed_style = "background-color: red; position: fixed; top: 0px; left: 190px; right: 150px; z-index: 99;"
|
2740
|
|
- // } else {
|
2741
|
|
- // this.fixed_style = ""
|
2742
|
|
- // }
|
2743
|
|
- // },
|
|
2763
|
+
|
2744
|
2764
|
makeDeviceNumbers: function (device_numbers) {
|
2745
|
2765
|
this.all_zones = [];
|
2746
|
2766
|
this.devices = [];
|
|
@@ -2827,6 +2847,7 @@ export default {
|
2827
|
2847
|
|
2828
|
2848
|
// this.getSchedules();
|
2829
|
2849
|
this.all_template = response.data.data.items
|
|
2850
|
+ console.log('替换数据',response.data.data);
|
2830
|
2851
|
this.$emit("setTemplate",response.data.data.items)
|
2831
|
2852
|
if(this.active_name == 'first'){
|
2832
|
2853
|
this.GetTemplate(response.data.data.items[0])
|
|
@@ -3762,7 +3783,7 @@ export default {
|
3762
|
3783
|
this.$nextTick(() => {
|
3763
|
3784
|
this.$refs.table.doLayout();
|
3764
|
3785
|
});
|
3765
|
|
- 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){
|
|
3786
|
+ // 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){
|
3766
|
3787
|
//表格某列全部数据
|
3767
|
3788
|
var Mon_M = []
|
3768
|
3789
|
var Mon_A = []
|
|
@@ -4373,11 +4394,11 @@ export default {
|
4373
|
4394
|
result.push(str);
|
4374
|
4395
|
}
|
4375
|
4396
|
sums[22]="总人数:"+ sums[22] +"\n"+result
|
4376
|
|
- }
|
|
4397
|
+ // }
|
4377
|
4398
|
|
4378
|
4399
|
return sums;
|
4379
|
4400
|
},
|
4380
|
|
- // 右侧表格的回调
|
|
4401
|
+ // 右侧表格的列回调
|
4381
|
4402
|
cellClass({row,column, rowIndex, columnIndex}){
|
4382
|
4403
|
// console.log('cellClass数据',row);
|
4383
|
4404
|
if(columnIndex==1&&row.zone.type==2){
|
|
@@ -4393,6 +4414,7 @@ export default {
|
4393
|
4414
|
}
|
4394
|
4415
|
}
|
4395
|
4416
|
},
|
|
4417
|
+ // 右侧表格的行回调
|
4396
|
4418
|
rowClass({row,column, rowIndex, columnIndex}){
|
4397
|
4419
|
if (row.zone.type == 1) {
|
4398
|
4420
|
return "table-row-new-class schedule-table-row ";
|
|
@@ -4406,6 +4428,7 @@ export default {
|
4406
|
4428
|
return 'highlight';
|
4407
|
4429
|
}
|
4408
|
4430
|
},
|
|
4431
|
+ // 左侧表格的透析回调
|
4409
|
4432
|
modeclass({row,column, rowIndex, columnIndex}){
|
4410
|
4433
|
if(this.cur_info.mode_id == row.id){
|
4411
|
4434
|
return 'highlight';
|