|
@@ -57,6 +57,14 @@
|
57
|
57
|
<div style="float: right;margin-bottom: 10px">
|
58
|
58
|
<el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
|
59
|
59
|
<el-button size="small" type="primary" @click="getFormData">下载对账报表</el-button>
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+ <el-button v-if="$store.getters.xt_user.org_id == 10644" size="small" type="primary" @click="getSHFormData(1)">下载本地职工对账报表</el-button>
|
|
63
|
+ <el-button v-if="$store.getters.xt_user.org_id == 10644" size="small" type="primary" @click="getSHFormData(2)">下载本地城乡对账报表</el-button>
|
|
64
|
+ <el-button v-if="$store.getters.xt_user.org_id == 10644" size="small" type="primary" @click="getSHFormData(3)">下载异地职工对账报表</el-button>
|
|
65
|
+ <el-button v-if="$store.getters.xt_user.org_id == 10644" size="small" type="primary" @click="getSHFormData(4)">下载异地城乡对账报表</el-button>
|
|
66
|
+
|
|
67
|
+
|
60
|
68
|
</div>
|
61
|
69
|
|
62
|
70
|
|
|
@@ -556,7 +564,71 @@
|
556
|
564
|
this.page = page;
|
557
|
565
|
this.getList()
|
558
|
566
|
|
559
|
|
- }, getFormData() {
|
|
567
|
+ }, getSHFormData(type){
|
|
568
|
+ switch (type){
|
|
569
|
+ case 1:
|
|
570
|
+ let params = {
|
|
571
|
+ 'start_time': this.getTimes(this.selection[0].start_time),
|
|
572
|
+ 'end_time': this.getTimes(this.selection[0].end_time),
|
|
573
|
+ 'insutype': this.selection[0].insutype
|
|
574
|
+ };
|
|
575
|
+ getCheckAccountFormData(params).then(response => {
|
|
576
|
+ if (response.data.state == 0) {
|
|
577
|
+ this.$message.error(response.data.msg);
|
|
578
|
+ return false
|
|
579
|
+ } else {
|
|
580
|
+ this.fromData = response.data.data.list;
|
|
581
|
+ var list = [];
|
|
582
|
+
|
|
583
|
+ for (let i = 0; i < this.fromData.length; i++) {
|
|
584
|
+ let obj = {
|
|
585
|
+ '结算金额': this.fromData[i].medfee_sumamt,
|
|
586
|
+ '姓名': this.fromData[i].psn_name,
|
|
587
|
+ '身份证': this.fromData[i].id_card_no,
|
|
588
|
+ '个人编号': this.fromData[i].psn_no,
|
|
589
|
+ '门诊流水号': this.fromData[i].mdtrt_id,
|
|
590
|
+ '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
|
|
591
|
+ '起付线': this.fromData[i].act_pay_dedc,
|
|
592
|
+ '统筹基金': this.fromData[i].fund_pay_sumamt,
|
|
593
|
+ '个人支付': this.fromData[i].psn_cash_pay,
|
|
594
|
+ '个账支付': this.fromData[i].acct_pay,
|
|
595
|
+ '现金支付': this.fromData[i].cash_pay,
|
|
596
|
+ '总费用': this.fromData[i].sumamt,
|
|
597
|
+ '冲销标志': '已结算'
|
|
598
|
+ };
|
|
599
|
+ list.push(obj)
|
|
600
|
+ }
|
|
601
|
+ var insutype_name = '';
|
|
602
|
+ if (this.query_insutype == '310') {
|
|
603
|
+ insutype_name = '职工基本医疗保险'
|
|
604
|
+ } else if (this.query_insutype == '390') {
|
|
605
|
+ insutype_name = '城乡居民基本医疗保险'
|
|
606
|
+ }
|
|
607
|
+
|
|
608
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
609
|
+ const tHeader = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志'];
|
|
610
|
+ const filterVal = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志'];
|
|
611
|
+ const data = this.formatJson(filterVal, list);
|
|
612
|
+ excel.export_json_to_excel({
|
|
613
|
+ header: tHeader,
|
|
614
|
+ data,
|
|
615
|
+ filename:this.getTimes(this.selection[0].start_time)+ '~' + this.getTimes(this.selection[0].end_time)+ insutype_name + '对账报表'
|
|
616
|
+ })
|
|
617
|
+ })
|
|
618
|
+ }
|
|
619
|
+ })
|
|
620
|
+ break
|
|
621
|
+ case 2:
|
|
622
|
+
|
|
623
|
+ break
|
|
624
|
+ case 3:
|
|
625
|
+
|
|
626
|
+ break
|
|
627
|
+ case 4:
|
|
628
|
+
|
|
629
|
+ break
|
|
630
|
+ }
|
|
631
|
+ },getFormData() {
|
560
|
632
|
if (this.selection.length == 0) {
|
561
|
633
|
this.$message.error('请选择要下载的对账记录');
|
562
|
634
|
return
|