|
@@ -66,7 +66,7 @@
|
66
|
66
|
>
|
67
|
67
|
<div v-if="scope.row.Mon_M.patient_id !=''" >
|
68
|
68
|
<el-button @click='patientedit(scope.row.Mon_M)'>调班</el-button>
|
69
|
|
- <el-button @click="delete_click(scope.row.Mon_M)">删除</el-button>
|
|
69
|
+ <el-button @click="delete_click(scope.row.Mon_M)" v-if="scope.row.Mon_M.stage==0">删除</el-button>
|
70
|
70
|
</div>
|
71
|
71
|
<div style="text-align: center;" v-if="scope.row.Mon_M.patient_id ==''" >
|
72
|
72
|
<el-button @click='newappend(scope.row.Mon_M)'>新增</el-button>
|
|
@@ -86,7 +86,7 @@
|
86
|
86
|
>
|
87
|
87
|
<div v-if="scope.row.Mon_A.patient_id !=''">
|
88
|
88
|
<el-button @click='patientedit(scope.row.Mon_A)'>调班</el-button>
|
89
|
|
- <el-button @click="delete_click(scope.row.Mon_A)">删除</el-button>
|
|
89
|
+ <el-button @click="delete_click(scope.row.Mon_A)" v-if="scope.row.Mon_A.stage==0">删除</el-button>
|
90
|
90
|
</div>
|
91
|
91
|
<div style="text-align: center;" v-if="scope.row.Mon_A.patient_id ==''">
|
92
|
92
|
<el-button @click='newappend(scope.row.Mon_A)'>新增</el-button>
|
|
@@ -108,7 +108,7 @@
|
108
|
108
|
>
|
109
|
109
|
<div v-if="scope.row.Mon_N.patient_id !=''">
|
110
|
110
|
<el-button @click='patientedit(scope.row.Mon_N)'>调班</el-button>
|
111
|
|
- <el-button @click="delete_click(scope.row.Mon_N)">删除</el-button>
|
|
111
|
+ <el-button @click="delete_click(scope.row.Mon_N)" v-if="scope.row.Mon_N.stage==0">删除</el-button>
|
112
|
112
|
</div>
|
113
|
113
|
<div style="text-align: center;" v-if="scope.row.Mon_N.patient_id ==''">
|
114
|
114
|
<el-button @click='newappend(scope.row.Mon_N)'>新增</el-button>
|
|
@@ -653,8 +653,12 @@ export default{
|
653
|
653
|
name:params.name
|
654
|
654
|
}
|
655
|
655
|
fenqu_arr.push(fenquobj)
|
|
656
|
+ console.log('444444',params.device.sort());
|
656
|
657
|
if(params.device.length>0){
|
|
658
|
+
|
657
|
659
|
params.device.forEach(function(device) {
|
|
660
|
+ console.log('5555',device.sort)
|
|
661
|
+ console.log();
|
658
|
662
|
var thisPa = {
|
659
|
663
|
area: params.name,
|
660
|
664
|
zone_id: params.id,
|
|
@@ -678,6 +682,7 @@ export default{
|
678
|
682
|
zone_id:device.zone_id,
|
679
|
683
|
area: params.name,
|
680
|
684
|
schedule_week:'',
|
|
685
|
+ stage:''
|
681
|
686
|
},
|
682
|
687
|
Mon_A: {
|
683
|
688
|
schedule_id: 0,
|
|
@@ -694,7 +699,7 @@ export default{
|
694
|
699
|
zone_id:device.zone_id,
|
695
|
700
|
area: params.name,
|
696
|
701
|
schedule_week:'',
|
697
|
|
-
|
|
702
|
+ stage:''
|
698
|
703
|
},
|
699
|
704
|
Mon_N: {
|
700
|
705
|
schedule_id: 0,
|
|
@@ -711,7 +716,7 @@ export default{
|
711
|
716
|
zone_id:device.zone_id,
|
712
|
717
|
area: params.name,
|
713
|
718
|
schedule_week:'',
|
714
|
|
-
|
|
719
|
+ stage:''
|
715
|
720
|
},
|
716
|
721
|
}
|
717
|
722
|
var jihaoobj = {
|
|
@@ -738,6 +743,7 @@ export default{
|
738
|
743
|
area: params.name,
|
739
|
744
|
zone_id:device.zone_id,
|
740
|
745
|
schedule_week:item.schedule_week,
|
|
746
|
+ stage:item.order.stage
|
741
|
747
|
}
|
742
|
748
|
}
|
743
|
749
|
if(item.schedule_type==2&&item.bed_id==device.id){
|
|
@@ -756,6 +762,7 @@ export default{
|
756
|
762
|
area: params.name,
|
757
|
763
|
zone_id:device.zone_id,
|
758
|
764
|
schedule_week:item.schedule_week,
|
|
765
|
+ stage:item.order.stage
|
759
|
766
|
}
|
760
|
767
|
}
|
761
|
768
|
if(item.schedule_type==3&&item.bed_id==device.id){
|
|
@@ -774,9 +781,9 @@ export default{
|
774
|
781
|
area: params.name,
|
775
|
782
|
zone_id:device.zone_id,
|
776
|
783
|
schedule_week:item.schedule_week,
|
|
784
|
+ stage:item.order.stage
|
777
|
785
|
}
|
778
|
786
|
}
|
779
|
|
-
|
780
|
787
|
})
|
781
|
788
|
arr.push(thisPa)
|
782
|
789
|
jihao.push(jihaoobj)
|
|
@@ -784,7 +791,7 @@ export default{
|
784
|
791
|
}
|
785
|
792
|
})
|
786
|
793
|
|
787
|
|
- jihao.sort(this.compare('sort'))
|
|
794
|
+ arr.sort(this.compare('sort'))
|
788
|
795
|
|
789
|
796
|
this.fenqu_arr=fenqu_arr
|
790
|
797
|
this.jihao_arr = jihao
|
|
@@ -1075,9 +1082,9 @@ export default{
|
1075
|
1082
|
Select_mode2(val){
|
1076
|
1083
|
console.log('val',val);
|
1077
|
1084
|
this.add_arr.mode_add = val.name
|
|
1085
|
+ this.currentData.mode_id = val.id
|
1078
|
1086
|
this.add_arr.modeid_add = val.id
|
1079
|
1087
|
this.clickmode2 = false
|
1080
|
|
-
|
1081
|
1088
|
},
|
1082
|
1089
|
// 取消分区
|
1083
|
1090
|
fenqu_click(){
|