Bläddra i källkod

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 vecka sedan
förälder
incheckning
812e7cabfd

+ 7 - 7
src/router/modules/hospitalStation.js Visa fil

@@ -12,13 +12,13 @@ export default {
12 12
     isChild: true
13 13
   },
14 14
   children: [
15
-
16
-    {
17
-      path: '/hospitalStation/doctorDesk',
18
-      component: () => import('@/xt_pages/hospitalStation/doctorDesk'),
19
-      name: 'outpatientDoctorStationDoctorDesk',
20
-      meta: { title: 'outpatientDoctorStationDoctorDesk', noCache: true }
21
-    },
15
+    //
16
+    // {
17
+    //   path: '/hospitalStation/doctorDesk',
18
+    //   component: () => import('@/xt_pages/hospitalStation/doctorDesk'),
19
+    //   name: 'outpatientDoctorStationDoctorDesk',
20
+    //   meta: { title: 'outpatientDoctorStationDoctorDesk', noCache: true }
21
+    // },
22 22
     {
23 23
       path: '/hospitalStation/pastInquiries',
24 24
       component: () => import('@/xt_pages/hospitalStation/pastInquiries'),

+ 73 - 1
src/xt_pages/hospitalStation/costComparison.vue Visa fil

@@ -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

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Visa fil

@@ -3550,7 +3550,7 @@ export default {
3550 3550
         }
3551 3551
 
3552 3552
         if (this.hisPatientInfo.id_card_type == 1) {
3553
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480 &&  this.$store.getters.xt_user.org_id !=  10387  &&  this.$store.getters.xt_user.org_id !=  10598 &&  this.$store.getters.xt_user.org_id !=  10721 &&   this.$store.getters.xt_user.org_id !=  10726) {
3553
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480 &&  this.$store.getters.xt_user.org_id !=  10387  &&  this.$store.getters.xt_user.org_id !=  10598 &&  this.$store.getters.xt_user.org_id !=  10721 &&   this.$store.getters.xt_user.org_id !=  10726 &&   this.$store.getters.xt_user.org_id !=  10567 &&  this.$store.getters.xt_user.org_id !=  10697 &&   this.$store.getters.xt_user.org_id !=  10724) {
3554 3554
             this.pwdFormVisible = true
3555 3555
             this.pwd = ''
3556 3556
           } else {