|
@@ -3,10 +3,25 @@
|
3
|
3
|
<div class="position"></div>
|
4
|
4
|
<div class="app-container">
|
5
|
5
|
<div style="display: flex;justify-content: space-around;">
|
6
|
|
- <div > <el-input v-model="input" placeholder="请输入内容"></el-input></div>
|
|
6
|
+ <div>
|
|
7
|
+ <el-autocomplete
|
|
8
|
+ class="inline-input"
|
|
9
|
+ v-model.trim="smart_keyword"
|
|
10
|
+ :fetch-suggestions="querySearch"
|
|
11
|
+ placeholder="请输入内容"
|
|
12
|
+ @select="handleSelect"
|
|
13
|
+
|
|
14
|
+ >
|
|
15
|
+ <i class="el-icon-search el-input__icon" slot="suffix"></i>
|
|
16
|
+ <template slot-scope="{ item }">
|
|
17
|
+ <div class="name">{{ item.name }}</div>
|
|
18
|
+ </template>
|
|
19
|
+ </el-autocomplete>
|
|
20
|
+ </div>
|
7
|
21
|
<div>
|
8
|
22
|
日期查询:
|
9
|
23
|
<el-date-picker
|
|
24
|
+ @change="changeTime"
|
10
|
25
|
v-model="value1"
|
11
|
26
|
type="daterange"
|
12
|
27
|
range-separator="至"
|
|
@@ -16,7 +31,7 @@
|
16
|
31
|
</div>
|
17
|
32
|
<div>
|
18
|
33
|
费用类型:
|
19
|
|
- <el-select v-model="value" placeholder="请选择">
|
|
34
|
+ <el-select v-model="is_type" placeholder="请选择">
|
20
|
35
|
<el-option
|
21
|
36
|
v-for="item in options"
|
22
|
37
|
:key="item.value"
|
|
@@ -135,6 +150,7 @@
|
135
|
150
|
</div>
|
136
|
151
|
</template>
|
137
|
152
|
<script>
|
|
153
|
+import {getPatientMapList,getPatientCountFlowList} from "@/api/patient"
|
138
|
154
|
export default{
|
139
|
155
|
data(){
|
140
|
156
|
return{
|
|
@@ -145,10 +161,47 @@
|
145
|
161
|
state1:'',
|
146
|
162
|
collect_show:false,
|
147
|
163
|
options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
|
148
|
|
- tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 ,examine:false}],
|
|
164
|
+ tableData: [],
|
|
165
|
+ start_time:"",
|
|
166
|
+ end_time:"",
|
|
167
|
+ smart_keyword:"",
|
|
168
|
+ patient_id:0,
|
|
169
|
+ limit:10,
|
|
170
|
+ page:1,
|
|
171
|
+ is_type:0,
|
|
172
|
+ total:0,
|
149
|
173
|
}
|
150
|
174
|
},
|
151
|
175
|
methods:{
|
|
176
|
+ handleSelect(val){
|
|
177
|
+ this.smart_keyword = val.name;
|
|
178
|
+ this.patient_id = val.id
|
|
179
|
+ },
|
|
180
|
+ querySearch(queryString, cb){
|
|
181
|
+ let key = ''
|
|
182
|
+ if (queryString != undefined) {
|
|
183
|
+ key = queryString
|
|
184
|
+ }
|
|
185
|
+ let searchArray = []
|
|
186
|
+ var params = {
|
|
187
|
+ keyword:key
|
|
188
|
+ }
|
|
189
|
+ getPatientMapList(params).then(response => {
|
|
190
|
+ if (response.data.state == 1) {
|
|
191
|
+ searchArray = response.data.data.patient
|
|
192
|
+ cb(searchArray)
|
|
193
|
+ } else {
|
|
194
|
+ this.$message.error(response.data.msg)
|
|
195
|
+ cb([])
|
|
196
|
+ }
|
|
197
|
+ })
|
|
198
|
+ return searchArray
|
|
199
|
+ },
|
|
200
|
+ changeTime(val){
|
|
201
|
+ this.start_time = val[0]
|
|
202
|
+ this.end_time = val[1]
|
|
203
|
+ this.getlist()
|
|
204
|
+ },
|
152
|
205
|
mingx_click(){
|
153
|
206
|
this.collect_show = true
|
154
|
207
|
},
|
|
@@ -164,6 +217,30 @@
|
164
|
217
|
handleCurrentChange(){
|
165
|
218
|
|
166
|
219
|
},
|
|
220
|
+ getlist(){
|
|
221
|
+ var params = {
|
|
222
|
+ start_time:this.start_time,
|
|
223
|
+ end_time:this.end_time,
|
|
224
|
+ patient_id:this.patient_id,
|
|
225
|
+ limit:this.limit,
|
|
226
|
+ page:this.page,
|
|
227
|
+ is_type:this.is_type,
|
|
228
|
+ }
|
|
229
|
+ getPatientCountFlowList(params).then(response=>{
|
|
230
|
+ if(response.data.state == 1){
|
|
231
|
+ var list = response.data.data.list
|
|
232
|
+ this.tableData =[]
|
|
233
|
+ this.tableData = list
|
|
234
|
+ var total = response.data.data.total
|
|
235
|
+
|
|
236
|
+ this.total = total
|
|
237
|
+ }
|
|
238
|
+ })
|
|
239
|
+ }
|
|
240
|
+ },
|
|
241
|
+ created(){
|
|
242
|
+ this.getlist()
|
167
|
243
|
}
|
|
244
|
+
|
168
|
245
|
}
|
169
|
246
|
</script>
|