XMLWAN 4 lat temu
rodzic
commit
d6c6b5ce7e

+ 33 - 0
src/api/patient/patient.js Wyświetl plik

@@ -356,3 +356,36 @@ export function toSearchPatient(keyword) {
356 356
     params: params
357 357
   })
358 358
 }
359
+
360
+export function SearchAllPatient(keyword) {
361
+  const params = {
362
+    keyword: keyword
363
+  }
364
+  return request({
365
+    url: '/m/api/patient/searchallpatient',
366
+    method: 'get',
367
+    params: params
368
+  })
369
+}
370
+
371
+export function SearchAllBlood(keyword) {
372
+  const params = {
373
+    keyword: keyword
374
+  }
375
+  return request({
376
+    url: '/m/api/patient/searchallblood',
377
+    method: 'get',
378
+    params: params
379
+  })
380
+}
381
+
382
+export function getSlowSearchPatient(keyword) {
383
+  const params = {
384
+    keyword: keyword
385
+  }
386
+  return request({
387
+    url: '/m/api/patient/getslowsearchepatient',
388
+    method: 'get',
389
+    params: params
390
+  })
391
+}

+ 1 - 1
src/pages/allRescue/index.vue Wyświetl plik

@@ -3,7 +3,7 @@
3 3
     <van-sticky>
4 4
       <div class="allRescueTitle">
5 5
         <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
6
-        <span class="titleName">张三的抢救记录</span>
6
+        <span class="titleName">{{ recorddetail.name }}的抢救记录</span>
7 7
       </div>
8 8
     </van-sticky>
9 9
     <div class="courseBox">

+ 14 - 2
src/pages/patientManagement/components/Blood.vue Wyświetl plik

@@ -63,7 +63,10 @@
63 63
 </template>
64 64
 
65 65
 <script>
66
-import { getAllBloodDialysisPatient } from "@/api/patient/patient";
66
+import {
67
+  getAllBloodDialysisPatient,
68
+  SearchAllBlood
69
+} from "@/api/patient/patient";
67 70
 export default {
68 71
   props: {
69 72
     searchValue: String
@@ -160,6 +163,14 @@ export default {
160 163
     },
161 164
     toPatientDetail(id) {
162 165
       this.$router.push("/patientdetail?patientid=" + id);
166
+    },
167
+    SearchAllBlood(val) {
168
+      SearchAllBlood(val).then(response => {
169
+        if (response.data.state === 1) {
170
+          var bloodpatient = response.data.data.bloodPatient;
171
+          console.log("血透病人", bloodpatient);
172
+        }
173
+      });
163 174
     }
164 175
   },
165 176
   created() {
@@ -168,7 +179,8 @@ export default {
168 179
   },
169 180
   watch: {
170 181
     searchValue(newVal) {
171
-      console.log(newVal);
182
+      console.log("监听", newVal);
183
+      this.SearchAllBlood(newVal);
172 184
     }
173 185
   }
174 186
 };

+ 13 - 3
src/pages/patientManagement/components/Slow.vue Wyświetl plik

@@ -20,7 +20,8 @@
20 20
 
21 21
 <script>
22 22
 import {
23
-  getAllSlowPatient
23
+  getAllSlowPatient,
24
+  getSlowSearchPatient
24 25
 } from '@/api/patient/patient'
25 26
 export default {
26 27
   props: {
@@ -71,14 +72,23 @@ export default {
71 72
     },
72 73
     toPatientDetail (id) {
73 74
       this.$router.push('/patientdetail?patientid=' + id)
75
+    },
76
+    getSlowSearchPatient (val) {
77
+      getSlowSearchPatient(val).then(response => {
78
+        if (response.data.state === 1) {
79
+          var slowpatient = response.data.data.slowPatient
80
+          console.log('慢病病人', slowpatient)
81
+        }
82
+      })
74 83
     }
75 84
   },
76 85
   created () {
77 86
     this.getAllSlowPatient()
78 87
   },
79 88
   watch: {
80
-    searchValue(newVal) {
81
-      console.log(newVal);
89
+    searchValue (newVal) {
90
+      console.log(newVal)
91
+      this.getSlowSearchPatient(newVal)
82 92
     }
83 93
   }
84 94
 }

+ 19 - 4
src/pages/patientManagement/patientManagement.vue Wyświetl plik

@@ -10,7 +10,11 @@
10 10
       </div>
11 11
     </van-sticky>
12 12
     <div class="searchBox">
13
-      <van-search v-model="value" placeholder="搜索患者透析号/姓名/首拼" />
13
+      <van-search
14
+        v-model="value"
15
+        placeholder="搜索患者透析号/姓名/首拼"
16
+        @search="SearchAllPatient"
17
+      />
14 18
     </div>
15 19
     <div class="chooseBox">
16 20
       <van-tabs v-model="active" sticky>
@@ -65,7 +69,10 @@
65 69
 
66 70
 <script>
67 71
 import "../../styles/resetStyle.scss";
68
-import { getBloodDialysisPatient } from "@/api/patient/patient";
72
+import {
73
+  getBloodDialysisPatient,
74
+  SearchAllPatient
75
+} from "@/api/patient/patient";
69 76
 import Slow from "@/pages/patientManagement/components/Slow";
70 77
 import Member from "@/pages/patientManagement/components/Member";
71 78
 import Blood from "@/pages/patientManagement/components/Blood";
@@ -135,13 +142,13 @@ export default {
135 142
       getBloodDialysisPatient(this.page, this.limit).then(response => {
136 143
         if (response.data.state == 1) {
137 144
           var patient = response.data.data.patient;
138
-          console.log("病人信息", patient);
145
+          // console.log("病人信息", patient);
139 146
           let arr = this.patients;
140 147
           arr.push(...patient);
141 148
           this.patients = arr;
142 149
           var total = response.data.data.total;
143 150
           this.total = total;
144
-          console.log("总计", total);
151
+          // console.log("总计", total);
145 152
         }
146 153
       });
147 154
     },
@@ -154,6 +161,14 @@ export default {
154 161
     },
155 162
     toback() {
156 163
       this.$router.push("/homeIndex");
164
+    },
165
+    SearchAllPatient(val) {
166
+      SearchAllPatient(val).then(response => {
167
+        if (response.data.state === 1) {
168
+          var patient = response.data.data.patient;
169
+          console.log("patient", patient);
170
+        }
171
+      });
157 172
     }
158 173
   },
159 174
   created() {

+ 1 - 1
src/pages/search/index.vue Wyświetl plik

@@ -4,7 +4,7 @@
4 4
       <i class="iconfont icon-zuojiantou" @click="toHomeIndex"></i>
5 5
       <van-search
6 6
         v-model="value"
7
-        placeholder=" 姓名 / 首拼 / 透析号"
7
+        placeholder=" 姓名 / 透析号"
8 8
         @search="toSearchPatient"
9 9
       />
10 10
     </div>