|
@@ -24,20 +24,34 @@
|
24
|
24
|
</div>
|
25
|
25
|
<div class="app-container">
|
26
|
26
|
<div class="filter-container">
|
27
|
|
- <el-autocomplete
|
|
27
|
+ <!-- <el-autocomplete
|
28
|
28
|
style="margin:16px 5px"
|
29
|
29
|
popper-class="my-autocomplete"
|
30
|
30
|
v-model.trim="listQuery.keyword"
|
31
|
31
|
:fetch-suggestions="querySearchAsync"
|
32
|
32
|
:trigger-on-focus="false"
|
33
|
|
- placeholder="病人名字或者透析号"
|
|
33
|
+ placeholder="病人名字"
|
34
|
34
|
@select="handleSelect"
|
35
|
35
|
>
|
36
|
36
|
<i class="el-icon-search el-input__icon" slot="suffix"> </i>
|
37
|
37
|
<template slot-scope="{ item }">
|
38
|
38
|
<div class="name">{{ item.name }}</div>
|
39
|
39
|
</template>
|
40
|
|
- </el-autocomplete>
|
|
40
|
+ </el-autocomplete> -->
|
|
41
|
+ <el-autocomplete
|
|
42
|
+ class="checkSearch"
|
|
43
|
+ popper-class="my-autocomplete"
|
|
44
|
+ v-model.trim="listQuery.keyword"
|
|
45
|
+ :fetch-suggestions="querySearchAsync"
|
|
46
|
+ :trigger-on-focus="false"
|
|
47
|
+ placeholder="患者姓名"
|
|
48
|
+ @select="handleSelect"
|
|
49
|
+ >
|
|
50
|
+ <i class="el-icon-search el-input__icon" slot="suffix"></i>
|
|
51
|
+ <template slot-scope="{ item }">
|
|
52
|
+ <div class="name">{{ item.name }}</div>
|
|
53
|
+ </template>
|
|
54
|
+ </el-autocomplete>
|
41
|
55
|
|
42
|
56
|
</div>
|
43
|
57
|
<div class="cell clearfix">
|
|
@@ -373,7 +387,7 @@ import { parseTime } from "@/utils";
|
373
|
387
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
374
|
388
|
import { getPrintTemplate } from "@/api/data";
|
375
|
389
|
import { getSchedualDoctors } from '@/api/advice'
|
376
|
|
-import { getHisPatient } from '@/api/project/project'
|
|
390
|
+import { PostSearch } from '@/api/patient'
|
377
|
391
|
export default {
|
378
|
392
|
name: "Patient",
|
379
|
393
|
data() {
|
|
@@ -993,12 +1007,7 @@ export default {
|
993
|
1007
|
key = keyword
|
994
|
1008
|
}
|
995
|
1009
|
let searchArray = []
|
996
|
|
-
|
997
|
|
- var params = {
|
998
|
|
- keyword: key
|
999
|
|
- }
|
1000
|
|
- console.log('params', params)
|
1001
|
|
- getHisPatient(params).then(response => {
|
|
1010
|
+ PostSearch(key).then(response => {
|
1002
|
1011
|
if (response.data.state == 1) {
|
1003
|
1012
|
searchArray = response.data.data.patient
|
1004
|
1013
|
console.log('searcharrya', searchArray)
|
|
@@ -1008,8 +1017,8 @@ export default {
|
1008
|
1017
|
return searchArray
|
1009
|
1018
|
},
|
1010
|
1019
|
handleSelect(val) {
|
1011
|
|
-
|
1012
|
|
- this.patient_id = val.patient_id
|
|
1020
|
+ console.log("val23323232322323",val.id)
|
|
1021
|
+ this.patient_id = val.id
|
1013
|
1022
|
this.requestSchedualDoctors(this.time)
|
1014
|
1023
|
},
|
1015
|
1024
|
},
|