Browse Source

4月12日

yq1 11 months ago
parent
commit
19a7833ebd
1 changed files with 15 additions and 8 deletions
  1. 15 8
      src/pages/new_Patientscheduling/new_content.vue

+ 15 - 8
src/pages/new_Patientscheduling/new_content.vue View File

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