XMLWAN 5 years ago
parent
commit
d6c6b5ce7e

+ 33 - 0
src/api/patient/patient.js View File

356
     params: params
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 View File

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

+ 14 - 2
src/pages/patientManagement/components/Blood.vue View File

63
 </template>
63
 </template>
64
 
64
 
65
 <script>
65
 <script>
66
-import { getAllBloodDialysisPatient } from "@/api/patient/patient";
66
+import {
67
+  getAllBloodDialysisPatient,
68
+  SearchAllBlood
69
+} from "@/api/patient/patient";
67
 export default {
70
 export default {
68
   props: {
71
   props: {
69
     searchValue: String
72
     searchValue: String
160
     },
163
     },
161
     toPatientDetail(id) {
164
     toPatientDetail(id) {
162
       this.$router.push("/patientdetail?patientid=" + id);
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
   created() {
176
   created() {
168
   },
179
   },
169
   watch: {
180
   watch: {
170
     searchValue(newVal) {
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 View File

20
 
20
 
21
 <script>
21
 <script>
22
 import {
22
 import {
23
-  getAllSlowPatient
23
+  getAllSlowPatient,
24
+  getSlowSearchPatient
24
 } from '@/api/patient/patient'
25
 } from '@/api/patient/patient'
25
 export default {
26
 export default {
26
   props: {
27
   props: {
71
     },
72
     },
72
     toPatientDetail (id) {
73
     toPatientDetail (id) {
73
       this.$router.push('/patientdetail?patientid=' + id)
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
   created () {
85
   created () {
77
     this.getAllSlowPatient()
86
     this.getAllSlowPatient()
78
   },
87
   },
79
   watch: {
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 View File

10
       </div>
10
       </div>
11
     </van-sticky>
11
     </van-sticky>
12
     <div class="searchBox">
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
     </div>
18
     </div>
15
     <div class="chooseBox">
19
     <div class="chooseBox">
16
       <van-tabs v-model="active" sticky>
20
       <van-tabs v-model="active" sticky>
65
 
69
 
66
 <script>
70
 <script>
67
 import "../../styles/resetStyle.scss";
71
 import "../../styles/resetStyle.scss";
68
-import { getBloodDialysisPatient } from "@/api/patient/patient";
72
+import {
73
+  getBloodDialysisPatient,
74
+  SearchAllPatient
75
+} from "@/api/patient/patient";
69
 import Slow from "@/pages/patientManagement/components/Slow";
76
 import Slow from "@/pages/patientManagement/components/Slow";
70
 import Member from "@/pages/patientManagement/components/Member";
77
 import Member from "@/pages/patientManagement/components/Member";
71
 import Blood from "@/pages/patientManagement/components/Blood";
78
 import Blood from "@/pages/patientManagement/components/Blood";
135
       getBloodDialysisPatient(this.page, this.limit).then(response => {
142
       getBloodDialysisPatient(this.page, this.limit).then(response => {
136
         if (response.data.state == 1) {
143
         if (response.data.state == 1) {
137
           var patient = response.data.data.patient;
144
           var patient = response.data.data.patient;
138
-          console.log("病人信息", patient);
145
+          // console.log("病人信息", patient);
139
           let arr = this.patients;
146
           let arr = this.patients;
140
           arr.push(...patient);
147
           arr.push(...patient);
141
           this.patients = arr;
148
           this.patients = arr;
142
           var total = response.data.data.total;
149
           var total = response.data.data.total;
143
           this.total = total;
150
           this.total = total;
144
-          console.log("总计", total);
151
+          // console.log("总计", total);
145
         }
152
         }
146
       });
153
       });
147
     },
154
     },
154
     },
161
     },
155
     toback() {
162
     toback() {
156
       this.$router.push("/homeIndex");
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
   created() {
174
   created() {

+ 1 - 1
src/pages/search/index.vue View File

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