Browse Source

11月9日,排班

yq1 2 weeks ago
parent
commit
6b646e2f5c
1 changed files with 23 additions and 14 deletions
  1. 23 14
      src/pages/new_Patientscheduling/new_content.vue

+ 23 - 14
src/pages/new_Patientscheduling/new_content.vue View File

873
     onclear(){
873
     onclear(){
874
       this.getlist()
874
       this.getlist()
875
     },
875
     },
876
-    onclear2(){
876
+    onclear2(){    
877
       this.getGetAllPatients()
877
       this.getGetAllPatients()
878
     },
878
     },
879
     // 搜索
879
     // 搜索
880
     onUpdate(val){
880
     onUpdate(val){
881
-      this.schedulingVal = val
882
-      this.scheduleZone
883
-      var suos=[]
884
-      for(let i in this.scheduleZone){
885
-        if(this.schedulingVal!=''){
886
-          if(this.scheduleZone[i].Mon_A.patient.includes(this.schedulingVal)||
887
-            this.scheduleZone[i].Mon_M.patient.includes(this.schedulingVal)||
888
-            this.scheduleZone[i].Mon_N.patient.includes(this.schedulingVal))
889
-          {
890
-            suos.push(this.scheduleZone[i])
881
+      if(val !=''){
882
+        this.schedulingVal = val
883
+        this.scheduleZone
884
+        var suos=[]
885
+        for(let i in this.scheduleZone){
886
+          if(this.schedulingVal!=''){
887
+            if(this.scheduleZone[i].Mon_A.patient.includes(this.schedulingVal)||
888
+              this.scheduleZone[i].Mon_M.patient.includes(this.schedulingVal)||
889
+              this.scheduleZone[i].Mon_N.patient.includes(this.schedulingVal))
890
+            {
891
+              suos.push(this.scheduleZone[i])
892
+            }
893
+          }else{
894
+            this.getlist()
891
           }
895
           }
892
-        }else{
893
-          this.getlist()
894
         }
896
         }
897
+        this.scheduleZone=suos
898
+      }else{
899
+        this.getlist()
895
       }
900
       }
896
-      this.scheduleZone=suos
897
     },
901
     },
898
     onUpdate2(val){
902
     onUpdate2(val){
903
+      if(val != ''){
899
         this.schedulingVal2=val
904
         this.schedulingVal2=val
900
         const namearr = []
905
         const namearr = []
901
         for(let i in this.huangxiu_arr){
906
         for(let i in this.huangxiu_arr){
908
           }
913
           }
909
         }
914
         }
910
         this.huangxiu_arr = namearr
915
         this.huangxiu_arr = namearr
916
+      }else{
917
+        this.getGetAllPatients()
918
+      }
911
     },
919
     },
920
+   
912
     // 修改
921
     // 修改
913
     patientedit(value){
922
     patientedit(value){
914
       this.xiugaishow=true
923
       this.xiugaishow=true