|
@@ -65,61 +65,78 @@
|
65
|
65
|
end-placeholder="结束日期"
|
66
|
66
|
>
|
67
|
67
|
</el-date-picker>
|
68
|
|
- <el-button size="small" type="primary" @click="exportList">导出</el-button>
|
|
68
|
+ <el-button size="small" type="primary" @click="exportList" style="width:50px">导出</el-button>
|
69
|
69
|
<el-table
|
70
|
70
|
:data="tableList"
|
71
|
71
|
border
|
72
|
72
|
style="width: 100%">
|
73
|
73
|
<el-table-column prop="date" label="姓名" width="100" align="center">
|
74
|
74
|
<template slot-scope="scope" >
|
75
|
|
- {{ scope.row.name }}
|
|
75
|
+ {{ scope.row.patient.name }}
|
76
|
76
|
</template>
|
77
|
77
|
</el-table-column>
|
78
|
78
|
<el-table-column prop="date" label="身份证" width="200" align="center">
|
79
|
79
|
<template slot-scope="scope" >
|
80
|
|
- {{ scope.row.id_card_no }}
|
|
80
|
+ {{ scope.row.patient.id_card_no }}
|
81
|
81
|
</template>
|
82
|
82
|
</el-table-column>
|
83
|
83
|
<el-table-column prop="name" label="医保类型" width="100" align="center">
|
84
|
84
|
<template slot-scope="scope" >
|
85
|
|
- <span v-if="scope.row.insutype == 0">居民</span>
|
86
|
|
- <span v-if="scope.row.insutype == 310">职工</span>
|
87
|
|
- <span v-if="scope.row.insutype == 390">居民</span>
|
|
85
|
+ <span v-if="scope.row.order.insutype == 0">居民</span>
|
|
86
|
+ <span v-if="scope.row.order.insutype == 310">职工</span>
|
|
87
|
+ <span v-if="scope.row.order.insutype == 390">居民</span>
|
88
|
88
|
</template>
|
89
|
89
|
</el-table-column>
|
90
|
90
|
<el-table-column prop="address" label="年" width="50" align="center">
|
91
|
91
|
<template slot-scope="scope" >
|
92
|
|
- {{getTime(scope.row.settle_accounts_date)}}
|
|
92
|
+ {{getTime(scope.row.order.settle_accounts_date)}}
|
93
|
93
|
</template>
|
94
|
94
|
</el-table-column>
|
95
|
95
|
<el-table-column prop="address" label="月" width="50" align="center">
|
96
|
96
|
<template slot-scope="scope">
|
97
|
|
- {{getTimeOne(scope.row.settle_accounts_date)}}
|
|
97
|
+ {{getTimeOne(scope.row.order.settle_accounts_date)}}
|
98
|
98
|
</template>
|
99
|
99
|
</el-table-column>
|
100
|
|
- <el-table-column prop="address" label="收费项目" width="100" align="center">
|
|
100
|
+ <el-table-column prop="address" label="药品编码" width="100" align="center">
|
101
|
101
|
<template slot-scope="scope" >
|
102
|
|
- <span v-if="scope.row.med_chrgitm_type == '01'">床位费</span>
|
103
|
|
- <span v-if="scope.row.med_chrgitm_type == '02'">诊察费</span>
|
104
|
|
- <span v-if="scope.row.med_chrgitm_type == '03'">检查费</span>
|
105
|
|
- <span v-if="scope.row.med_chrgitm_type == '04'">化验费</span>
|
106
|
|
- <span v-if="scope.row.med_chrgitm_type == '05'">治疗费</span>
|
107
|
|
- <span v-if="scope.row.med_chrgitm_type == '06'">手术费</span>
|
108
|
|
- <span v-if="scope.row.med_chrgitm_type == '08'">材料费</span>
|
109
|
|
- <span v-if="scope.row.med_chrgitm_type == '09'">西药费</span>
|
110
|
|
- <span v-if="scope.row.med_chrgitm_type == '11'">中成费</span>
|
111
|
|
- <span v-if="scope.row.med_chrgitm_type == '14'">其他费</span>
|
|
102
|
+ <span v-if="scope.row.his_doctor_advice.id > 0">
|
|
103
|
+ {{scope.row.his_doctor_advice.id}}
|
|
104
|
+ </span>
|
|
105
|
+ <span v-if="scope.row.his_prescription_project.id > 0">
|
|
106
|
+ {{scope.row.his_prescription_project.id}}
|
|
107
|
+ </span>
|
112
|
108
|
</template>
|
113
|
109
|
</el-table-column>
|
114
|
|
- <el-table-column prop="address" label="数量" width="100" align="center">
|
|
110
|
+ <el-table-column prop="address" label="名称" width="100" align="center">
|
115
|
111
|
<template slot-scope="scope" >
|
116
|
|
- {{getCount(scope.row.child)}}
|
|
112
|
+ <span v-if="scope.row.his_doctor_advice.id > 0">
|
|
113
|
+ {{scope.row.his_doctor_advice.advice_name}}
|
|
114
|
+ </span>
|
|
115
|
+ <span v-if="scope.row.his_prescription_project.id > 0">
|
|
116
|
+ {{scope.row.his_prescription_project.good_info.good_name}}
|
|
117
|
+ </span>
|
117
|
118
|
</template>
|
118
|
119
|
</el-table-column>
|
119
|
120
|
|
120
|
|
- <el-table-column prop="address" label="金额" width="130" align="center">
|
|
121
|
+ <el-table-column prop="address" label="单位" width="130" align="center">
|
121
|
122
|
<template slot-scope="scope" >
|
122
|
|
- {{getAllPrice(scope.row.child)}}
|
|
123
|
+
|
|
124
|
+ <span v-if="scope.row.his_doctor_advice.id > 0">
|
|
125
|
+ {{scope.row.his_doctor_advice.prescribing_number_unit}}
|
|
126
|
+ </span>
|
|
127
|
+ <span v-if="scope.row.his_prescription_project.id > 0">
|
|
128
|
+ {{scope.row.his_prescription_project.unit}}
|
|
129
|
+ </span>
|
|
130
|
+ </template>
|
|
131
|
+ </el-table-column>
|
|
132
|
+ <el-table-column prop="address" label="数量" width="130" align="center">
|
|
133
|
+ <template slot-scope="scope" >
|
|
134
|
+ {{scope.row.cnt}}
|
|
135
|
+ </template>
|
|
136
|
+ </el-table-column>
|
|
137
|
+ <el-table-column prop="address" label="金额" width="130" align="center">
|
|
138
|
+ <template slot-scope="scope" >
|
|
139
|
+ {{(scope.row.cnt * scope.row.pric).toFixed(2)}}
|
123
|
140
|
</template>
|
124
|
141
|
</el-table-column>
|
125
|
142
|
</el-table>
|
|
@@ -151,13 +168,14 @@ export default {
|
151
|
168
|
keywords: "",
|
152
|
169
|
tableList:[],
|
153
|
170
|
tableData:[],
|
154
|
|
- chargeDate: [
|
|
171
|
+ chargeDate: [
|
155
|
172
|
moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
|
156
|
173
|
moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
|
157
|
174
|
],
|
158
|
175
|
start_time:"",
|
159
|
176
|
end_time:"",
|
160
|
|
-
|
|
177
|
+ drugList:[],
|
|
178
|
+ goodList:[],
|
161
|
179
|
};
|
162
|
180
|
},
|
163
|
181
|
|
|
@@ -247,7 +265,19 @@ export default {
|
247
|
265
|
end_time:this.end_time,
|
248
|
266
|
}
|
249
|
267
|
getHisAdviceOrderList(params).then(response=>{
|
250
|
|
-
|
|
268
|
+ if(response.data.state == 1){
|
|
269
|
+ var arr= []
|
|
270
|
+ var list = response.data.data.list
|
|
271
|
+ console.log("list2323322323我的",list)
|
|
272
|
+ for(let i=0;i<list.length;i++){
|
|
273
|
+ if(list[i].order.order_status == 2){
|
|
274
|
+ arr.push(list[i])
|
|
275
|
+ }
|
|
276
|
+ }
|
|
277
|
+ this.tableList = arr
|
|
278
|
+ this.tableData = arr
|
|
279
|
+
|
|
280
|
+ }
|
251
|
281
|
})
|
252
|
282
|
},
|
253
|
283
|
changeDate(){
|
|
@@ -299,71 +329,110 @@ export default {
|
299
|
329
|
return ""
|
300
|
330
|
}
|
301
|
331
|
},
|
302
|
|
- exportList(){
|
303
|
|
- import('@/vendor/Export2Excel').then(excel => {
|
304
|
|
- for(let i=0;i<this.tableData.length;i++){
|
305
|
|
- if(this.tableData[i].insutype == 310){
|
306
|
|
- this.tableData[i].insutype = "职工"
|
307
|
|
- }
|
308
|
|
- if(this.tableData[i].insutype == 390){
|
309
|
|
- this.tableData[i].insutype = "居民"
|
310
|
|
- }
|
311
|
|
-
|
312
|
|
- this.tableData[i].year = this.getTime(this.tableData[i].settle_accounts_date)
|
313
|
|
- this.tableData[i].month = this.getTimeOne(this.tableData[i].settle_accounts_date)
|
314
|
|
-
|
315
|
|
- if(this.tableData[i].med_chrgitm_type == "01"){
|
316
|
|
- this.tableData[i].med_chrgitm_type = "床位费"
|
317
|
|
- }
|
318
|
|
- if(this.tableData[i].med_chrgitm_type == "02"){
|
319
|
|
- this.tableData[i].med_chrgitm_type = "诊察费"
|
320
|
|
- }
|
321
|
|
- if(this.tableData[i].med_chrgitm_type == "03"){
|
322
|
|
- this.tableData[i].med_chrgitm_type = "检查费"
|
323
|
|
- }
|
324
|
|
- if(this.tableData[i].med_chrgitm_type == "04"){
|
325
|
|
- this.tableData[i].med_chrgitm_type = "化验费"
|
326
|
|
- }
|
327
|
|
- if(this.tableData[i].med_chrgitm_type == "05"){
|
328
|
|
- this.tableData[i].med_chrgitm_type = "治疗费"
|
329
|
|
- }
|
330
|
|
- if(this.tableData[i].med_chrgitm_type == "06"){
|
331
|
|
- this.tableData[i].med_chrgitm_type = "治疗费"
|
332
|
|
- }
|
333
|
|
- if(this.tableData[i].med_chrgitm_type == "08"){
|
334
|
|
- this.tableData[i].med_chrgitm_type = "材料费"
|
335
|
|
- }
|
336
|
|
- if(this.tableData[i].med_chrgitm_type == "09"){
|
337
|
|
- this.tableData[i].med_chrgitm_type = "西药费"
|
338
|
|
- }
|
339
|
|
- if(this.tableData[i].med_chrgitm_type == "11"){
|
340
|
|
- this.tableData[i].med_chrgitm_type = "中成费"
|
341
|
|
- }
|
342
|
|
- if(this.tableData[i].med_chrgitm_type == "14"){
|
343
|
|
- this.tableData[i].med_chrgitm_type = "其他费"
|
344
|
|
- }
|
345
|
|
-
|
346
|
|
- this.tableData[i].sum_count = this.getCount(this.tableData[i].child)
|
347
|
|
-
|
348
|
|
- this.tableData[i].find_price = this.getAllPrice(this.tableData[i].child)
|
|
332
|
+ exportList(){
|
|
333
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
334
|
+ for(let i=0;i<this.tableData.length;i++){
|
|
335
|
+ if(this.tableData[i].insutype == 310){
|
|
336
|
+ this.tableData[i].insutype = "职工"
|
|
337
|
+ }
|
|
338
|
+ if(this.tableData[i].insutype == 390){
|
|
339
|
+ this.tableData[i].insutype = "居民"
|
|
340
|
+ }
|
|
341
|
+
|
|
342
|
+ this.tableData[i].year = this.getTime(this.tableData[i].settle_accounts_date)
|
|
343
|
+ this.tableData[i].month = this.getTimeOne(this.tableData[i].settle_accounts_date)
|
|
344
|
+
|
|
345
|
+ if(this.tableData[i].med_chrgitm_type == "01"){
|
|
346
|
+ this.tableData[i].med_chrgitm_type = "床位费"
|
349
|
347
|
}
|
350
|
|
- const tHeader = ['姓名','身份证','医保类型','年','月','收费项目','数量','金额']
|
351
|
|
- const filterVal = ['name', 'id_card_no','insutype','year','month','med_chrgitm_type','sum_count','find_price']
|
352
|
|
-
|
353
|
|
- const data = this.formatJson(filterVal,this.tableData)
|
354
|
|
-
|
355
|
|
- excel.export_json_to_excel({
|
356
|
|
- header: tHeader,
|
357
|
|
- data,
|
358
|
|
- filename: '药品信息'
|
359
|
|
- })
|
360
|
|
- this.downloadLoading = false
|
361
|
|
-
|
362
|
|
- })
|
363
|
|
- },
|
364
|
|
- formatJson(filterVal, jsonData) {
|
365
|
|
- return jsonData.map(v => filterVal.map(j => v[j]))
|
366
|
|
- },
|
|
348
|
+ if(this.tableData[i].med_chrgitm_type == "02"){
|
|
349
|
+ this.tableData[i].med_chrgitm_type = "诊察费"
|
|
350
|
+ }
|
|
351
|
+ if(this.tableData[i].med_chrgitm_type == "03"){
|
|
352
|
+ this.tableData[i].med_chrgitm_type = "检查费"
|
|
353
|
+ }
|
|
354
|
+ if(this.tableData[i].med_chrgitm_type == "04"){
|
|
355
|
+ this.tableData[i].med_chrgitm_type = "化验费"
|
|
356
|
+ }
|
|
357
|
+ if(this.tableData[i].med_chrgitm_type == "05"){
|
|
358
|
+ this.tableData[i].med_chrgitm_type = "治疗费"
|
|
359
|
+ }
|
|
360
|
+ if(this.tableData[i].med_chrgitm_type == "06"){
|
|
361
|
+ this.tableData[i].med_chrgitm_type = "治疗费"
|
|
362
|
+ }
|
|
363
|
+ if(this.tableData[i].med_chrgitm_type == "08"){
|
|
364
|
+ this.tableData[i].med_chrgitm_type = "材料费"
|
|
365
|
+ }
|
|
366
|
+ if(this.tableData[i].med_chrgitm_type == "09"){
|
|
367
|
+ this.tableData[i].med_chrgitm_type = "西药费"
|
|
368
|
+ }
|
|
369
|
+ if(this.tableData[i].med_chrgitm_type == "11"){
|
|
370
|
+ this.tableData[i].med_chrgitm_type = "中成费"
|
|
371
|
+ }
|
|
372
|
+ if(this.tableData[i].med_chrgitm_type == "14"){
|
|
373
|
+ this.tableData[i].med_chrgitm_type = "其他费"
|
|
374
|
+ }
|
|
375
|
+
|
|
376
|
+ this.tableData[i].name = this.tableData[i].patient.name
|
|
377
|
+ this.tableData[i].id_card_no = this.tableData[i].patient.id_card_no
|
|
378
|
+ this.tableData[i].total_price = (this.tableData[i].cnt * this.tableData[i].pric).toFixed(2)
|
|
379
|
+ if(this.tableData[i].his_doctor_advice.id > 0){
|
|
380
|
+ this.tableData[i].his_advice_name = this.tableData[i].his_doctor_advice.advice_name
|
|
381
|
+ this.tableData[i].his_prescribing_number_unit = this.tableData[i].his_doctor_advice.prescribing_number_unit
|
|
382
|
+ }
|
|
383
|
+ if(this.tableData[i].his_prescription_project.id > 0){
|
|
384
|
+ this.tableData[i].his_advice_name = this.tableData[i].his_prescription_project.good_info.good_name
|
|
385
|
+ this.tableData[i].his_prescribing_number_unit = this.tableData[i].his_prescription_project.unit
|
|
386
|
+ }
|
|
387
|
+ if(this.tableData[i].order.insutype == 0){
|
|
388
|
+ this.tableData[i].insutype = "居民"
|
|
389
|
+ }
|
|
390
|
+ if(this.tableData[i].order.insutype == 310){
|
|
391
|
+ this.tableData[i].insutype = "职工"
|
|
392
|
+ }
|
|
393
|
+ if(this.tableData[i].order.insutype == 390){
|
|
394
|
+ this.tableData[i].insutype = "居民"
|
|
395
|
+ }
|
|
396
|
+
|
|
397
|
+ this.tableData[i].year = this.getTime(this.tableData[i].order.settle_accounts_date)
|
|
398
|
+ this.tableData[i].month = this.getTimeOne(this.tableData[i].order.settle_accounts_date)
|
|
399
|
+ }
|
|
400
|
+ const tHeader = ['姓名','身份证','医保类型','年','月','名称','单位','数量','金额']
|
|
401
|
+ const filterVal = ['name', 'id_card_no','insutype','year','month','his_advice_name','his_prescribing_number_unit','cnt','total_price']
|
|
402
|
+
|
|
403
|
+ const data = this.formatJson(filterVal,this.tableData)
|
|
404
|
+
|
|
405
|
+ excel.export_json_to_excel({
|
|
406
|
+ header: tHeader,
|
|
407
|
+ data,
|
|
408
|
+ filename: '药品信息'
|
|
409
|
+ })
|
|
410
|
+ this.downloadLoading = false
|
|
411
|
+
|
|
412
|
+ })
|
|
413
|
+ },
|
|
414
|
+ formatJson(filterVal, jsonData) {
|
|
415
|
+ return jsonData.map(v => filterVal.map(j => v[j]))
|
|
416
|
+ },
|
|
417
|
+ getDrugNumber(drug_id){
|
|
418
|
+
|
|
419
|
+ var id = ""
|
|
420
|
+ for(let i=0;i<this.drugList.length;i++){
|
|
421
|
+ if(this.drugList[i].id == drug_id){
|
|
422
|
+ id = this.drugList[i].id
|
|
423
|
+ }
|
|
424
|
+ }
|
|
425
|
+ return id
|
|
426
|
+ },
|
|
427
|
+ getGoodNumber(good_id){
|
|
428
|
+ var good_name = ""
|
|
429
|
+ for(let i=0;i<this.goodList.length;i++){
|
|
430
|
+ if(this.goodList[i].id == good_id){
|
|
431
|
+ good_name = this.goodList[i].good_name
|
|
432
|
+ }
|
|
433
|
+ }
|
|
434
|
+ return good_name
|
|
435
|
+ }
|
367
|
436
|
},
|
368
|
437
|
created() {
|
369
|
438
|
|