|
@@ -89,23 +89,28 @@
|
89
|
89
|
</template>
|
90
|
90
|
</el-table-column>
|
91
|
91
|
|
92
|
|
- <el-table-column align="center" prop="item_name" label="参保地">
|
|
92
|
+ <el-table-column align="center" prop="item_name" label="病种名称">
|
93
|
93
|
<template slot-scope="scope">
|
94
|
|
- {{scope.row.clr_optins}}
|
|
94
|
+ {{getSickName(scope.row.his.sick_type)}}
|
95
|
95
|
</template>
|
96
|
96
|
</el-table-column>
|
97
|
97
|
|
98
|
|
-
|
99
|
|
- <el-table-column align="center" prop="item_name" label="病种名称">
|
|
98
|
+ <el-table-column align="center" prop="item_name" label="参保地">
|
100
|
99
|
<template slot-scope="scope">
|
101
|
|
- {{scope.row.sick_name}}
|
|
100
|
+<!-- {{scope.row.clr_optins}}-->
|
|
101
|
+ {{getName(scope.row.his.insuplc_admdvs) + '(' + scope.row.his.insuplc_admdvs +')'}}
|
|
102
|
+
|
102
|
103
|
</template>
|
103
|
104
|
</el-table-column>
|
104
|
105
|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
105
|
109
|
<el-table-column align="center" prop="item_name" label="结算类型">
|
106
|
110
|
<template slot-scope="scope">
|
107
|
|
- <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
|
108
|
|
- <div v-if="scope.row.is_medicine_insurance == 1">医保</div>
|
|
111
|
+ <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
|
|
112
|
+ <div v-if="scope.row.is_medicine_insurance == 1 ">{{getTypeName(scope.row)}}</div>
|
|
113
|
+
|
109
|
114
|
</template>
|
110
|
115
|
</el-table-column>
|
111
|
116
|
<el-table-column align="center" prop="item_name" label="处方类型">
|
|
@@ -272,20 +277,21 @@
|
272
|
277
|
</el-table-column>
|
273
|
278
|
<el-table-column align="center" prop="item_name" label="病种名称">
|
274
|
279
|
<template slot-scope="scope">
|
275
|
|
- {{scope.row.sick_name}}
|
|
280
|
+ {{getSickName(scope.row.his.sick_type)}}
|
276
|
281
|
</template>
|
277
|
282
|
</el-table-column>
|
278
|
283
|
|
279
|
284
|
<el-table-column align="center" prop="item_name" label="参保地">
|
280
|
285
|
<template slot-scope="scope">
|
281
|
|
- {{scope.row.clr_optins}}
|
|
286
|
+ {{getName(scope.row.his.insuplc_admdvs) + '(' + scope.row.his.insuplc_admdvs +')'}}
|
282
|
287
|
</template>
|
283
|
288
|
</el-table-column>
|
284
|
289
|
|
285
|
290
|
<el-table-column align="center" prop="item_name" label="结算类型">
|
286
|
291
|
<template slot-scope="scope">
|
287
|
292
|
<div v-if="scope.row.is_medicine_insurance == 0">自费</div>
|
288
|
|
- <div v-if="scope.row.is_medicine_insurance == 1">医保</div>
|
|
293
|
+ <div v-if="scope.row.is_medicine_insurance == 1 ">{{getTypeName(scope.row)}}</div>
|
|
294
|
+
|
289
|
295
|
</template>
|
290
|
296
|
</el-table-column>
|
291
|
297
|
<el-table-column align="center" prop="item_name" label="处方类型">
|
|
@@ -430,6 +436,8 @@ import { uParseTime } from '@/utils/tools'
|
430
|
436
|
tempArr: [],
|
431
|
437
|
sameRowArr: [],
|
432
|
438
|
tableData: [],
|
|
439
|
+ config:{},
|
|
440
|
+ sick:{},
|
433
|
441
|
chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
|
434
|
442
|
item_type: '0',
|
435
|
443
|
items: [
|
|
@@ -481,9 +489,58 @@ import { uParseTime } from '@/utils/tools'
|
481
|
489
|
unique(arr) {
|
482
|
490
|
const res = new Map()
|
483
|
491
|
return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
|
|
492
|
+ },getSickName(sick_id){
|
|
493
|
+ let name = ""
|
|
494
|
+ for(let i = 0;i < this.sick.length;i++){
|
|
495
|
+ if(sick_id == this.sick[i].id){
|
|
496
|
+ name = this.sick[i].class_name + "(" + this.sick[i].content_code +")"
|
|
497
|
+ }
|
|
498
|
+ }
|
|
499
|
+ return name
|
|
500
|
+ },getTypeName(row){
|
|
501
|
+ let name = ""
|
|
502
|
+ if(row.insutype == '390'){
|
|
503
|
+ // let a = config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
|
|
504
|
+ let a = this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+ // let aa= row.his.insuplc_admdvs.slice(0, 4); //参保地前4位编码
|
|
508
|
+ let b= row.his.insuplc_admdvs.slice(0, 3); //参保地前3位编码
|
|
509
|
+ if(a == b){
|
|
510
|
+ name = "本地城乡"
|
|
511
|
+ }else{
|
|
512
|
+ name = "异地城乡"
|
|
513
|
+ }
|
|
514
|
+
|
|
515
|
+ }else if(row.insutype == '310'){
|
|
516
|
+ // let a = config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
|
|
517
|
+ let a = this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+ // let aa= row.his.insuplc_admdvs.slice(0, 4); //参保地前4位编码
|
|
521
|
+ let b= row.his.insuplc_admdvs.slice(0, 3); //参保地前3位编码
|
|
522
|
+ if(a == b){
|
|
523
|
+ name = "本地职工"
|
|
524
|
+ }else{
|
|
525
|
+ name = "异地职工"
|
|
526
|
+ }
|
|
527
|
+
|
|
528
|
+ }else{
|
|
529
|
+ name = "其他"
|
|
530
|
+
|
|
531
|
+ }
|
|
532
|
+ return name
|
|
533
|
+ },getName(id){
|
|
534
|
+ var name = ""
|
|
535
|
+ var options = this.$store.getters.insuplc_admdvs
|
|
536
|
+ for(let i = 0; i < options.length; i++){
|
|
537
|
+ if(id == options[i].value){
|
|
538
|
+ name = options[i].label
|
|
539
|
+ }
|
|
540
|
+ }
|
|
541
|
+ return name
|
484
|
542
|
},
|
485
|
543
|
changeDate() {
|
486
|
|
- // console.log(this.chargeDate)
|
487
|
544
|
this.getSummarySettleList()
|
488
|
545
|
},
|
489
|
546
|
changeItem() {
|
|
@@ -514,6 +571,9 @@ import { uParseTime } from '@/utils/tools'
|
514
|
571
|
} else {
|
515
|
572
|
this.settle_loading = false
|
516
|
573
|
this.tableData = []
|
|
574
|
+ this.config = response.data.data.config
|
|
575
|
+ this.sick = response.data.data.sick
|
|
576
|
+
|
517
|
577
|
let data = response.data.data.patients
|
518
|
578
|
|
519
|
579
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -530,7 +590,6 @@ import { uParseTime } from '@/utils/tools'
|
530
|
590
|
|
531
|
591
|
data[i]['total'] = total
|
532
|
592
|
}
|
533
|
|
- console.log(data)
|
534
|
593
|
|
535
|
594
|
for (let i = 0; i < data.length; i++) {
|
536
|
595
|
for (let b = 0; b < data[i].orders.length; b++) {
|
|
@@ -548,7 +607,6 @@ import { uParseTime } from '@/utils/tools'
|
548
|
607
|
|
549
|
608
|
}
|
550
|
609
|
}
|
551
|
|
- console.log(this.tableData)
|
552
|
610
|
|
553
|
611
|
this.handleSpanTempArr()
|
554
|
612
|
}
|
|
@@ -632,7 +690,6 @@ import { uParseTime } from '@/utils/tools'
|
632
|
690
|
sums[index] = '合计'
|
633
|
691
|
return
|
634
|
692
|
}
|
635
|
|
- console.log(data)
|
636
|
693
|
const values = data.map(item => Number(item[column.property]))
|
637
|
694
|
if (column.property === 'total' || column.property === 'medfee_sumamt' || column.property === 'fund_pay_sumamt' || column.property === 'acct_pay' || column.property === 'maf_pay' || column.property === 'psn_cash_pay' || column.property === 'hifp_pay' || column.property === 'hifob_pay' || column.property === 'hifes_pay' || column.property === 'hifmi_pay' || column.property === 'oth_pay' || column.property === 'cvlserv_pay' || column.property === 'wechat_pay' || column.property === 'ali_pay' || column.property === 'band_card_pay' || column.property === 'jifen_pay' || column.property === 'cash_pay') {
|
638
|
695
|
sums[index] = values.reduce((prev, curr) => {
|
|
@@ -652,7 +709,6 @@ import { uParseTime } from '@/utils/tools'
|
652
|
709
|
return sums
|
653
|
710
|
},
|
654
|
711
|
export_detail() {
|
655
|
|
- console.log("~~~~~~~")
|
656
|
712
|
|
657
|
713
|
let list = []
|
658
|
714
|
// for (let i = 0; i < this.tableData.length; i++) {
|
|
@@ -757,6 +813,7 @@ import { uParseTime } from '@/utils/tools'
|
757
|
813
|
created() {
|
758
|
814
|
this.getSummarySettleList()
|
759
|
815
|
|
|
816
|
+
|
760
|
817
|
}
|
761
|
818
|
}
|
762
|
819
|
</script>
|