张保健 1 year ago
parent
commit
032f314030
1 changed files with 13 additions and 12 deletions
  1. 13 12
      src/pages/patientSchedule/patientScheduleIndex.vue

+ 13 - 12
src/pages/patientSchedule/patientScheduleIndex.vue View File

11
             <van-search
11
             <van-search
12
                 class="searchInput"
12
                 class="searchInput"
13
                 v-model="schedulingVal"
13
                 v-model="schedulingVal"
14
-                placeholder="搜索患者姓名/透析号"
15
-                @search="searchPatient"
14
+                placeholder="搜索患者姓名"
16
             />
15
             />
17
         </div>
16
         </div>
18
         <div class="optionsBox">
17
         <div class="optionsBox">
393
                 }
392
                 }
394
                 if (this.zoneid == 0 || this.zoneid == item.id) {
393
                 if (this.zoneid == 0 || this.zoneid == item.id) {
395
                   if (this.class_type == 0 || this.class_type == schedule.schedule_type) {
394
                   if (this.class_type == 0 || this.class_type == schedule.schedule_type) {
396
-                    scheduleMap.push(schedule)
395
+                    if (this.schedulingVal == '' || schedule.patient.name.includes(this.schedulingVal)){
396
+                      scheduleMap.push(schedule)
397
+                    }
397
                   }
398
                   }
398
                 }
399
                 }
399
               })
400
               })
1682
 
1683
 
1683
   },
1684
   },
1684
   watch: {
1685
   watch: {
1685
-    schedulingVal (newVal) {
1686
-      if (newVal == '') {
1687
-        this.schedulingVal = newVal
1688
-        this.getlist()
1689
-      } else {
1690
-        this.schedulingVal = newVal
1691
-        this.searchPatient()
1692
-      }
1693
-    }
1686
+    // schedulingVal (newVal) {
1687
+    //   if (newVal == '') {
1688
+    //     this.schedulingVal = newVal
1689
+    //     this.getlist()
1690
+    //   } else {
1691
+    //     this.schedulingVal = newVal
1692
+    //     this.searchPatient()
1693
+    //   }
1694
+    // }
1694
   }
1695
   }
1695
 }
1696
 }
1696
 </script>
1697
 </script>