Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 3 years ago
parent
commit
48051f30e0
1 changed files with 61 additions and 4 deletions
  1. 61 4
      src/xt_pages/outpatientCharges/summary.vue

+ 61 - 4
src/xt_pages/outpatientCharges/summary.vue View File

@@ -85,7 +85,9 @@
85 85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
86 86
         </el-table-column>
87 87
         <el-table-column align="center" prop="name" label="收费日期">
88
-          <template slot-scope="scope"> {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}</template>
88
+          <template slot-scope="scope">
89
+            {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
90
+          </template>
89 91
         </el-table-column>
90 92
         <el-table-column align="center" prop="name" label="收费员">
91 93
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
@@ -104,6 +106,10 @@
104 106
                        v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
105 107
               结算单
106 108
             </el-button>
109
+            <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
110
+                       v-if="scope.row.order_status == 2&& scope.row.result.id == 0">
111
+              上传结算清单
112
+            </el-button>
107 113
             <el-button size="mini" type="primary"
108 114
                        v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
109 115
                        @click="settlementPrint(scope.row)">结算单
@@ -235,6 +241,40 @@
235 241
       }
236 242
     },
237 243
     methods: {
244
+      uploadInfo(row) {
245
+        var that = this;
246
+        axios.get('http://127.0.0.1:9532/api/settlelist/get', {
247
+          params: {
248
+            order_id: row.id,
249
+            admin_user_id: this.$store.getters.xt_user.user.id
250
+          }
251
+        }).then(function (response) {
252
+          if (response.data.state == 0) {
253
+            that.$message.error(response.data.msg);
254
+            return false
255
+          } else {
256
+
257
+            if (response.data.data.failed_code == -10) {
258
+              // that.$message.error(response.data.data.msg)
259
+              that.$confirm(response.data.data.msg, '医保错误信息', {
260
+                confirmButtonText: '确 定',
261
+                type: 'warning'
262
+              }).then(() => {
263
+
264
+              }).catch(() => {
265
+              })
266
+
267
+            } else {
268
+              that.$message.success("上传成功");
269
+              row.result.id = response.data.data.result.id
270
+            }
271
+
272
+
273
+          }
274
+        }).catch(function (error) {
275
+        })
276
+      },
277
+
238 278
       fetchAllAdminUsers() {
239 279
         fetchAllAdminUsers().then(response => {
240 280
           if (response.data.state == 1) {
@@ -431,6 +471,22 @@
431 471
                 time = this.getTimes(order.settle_accounts_date)
432 472
               }
433 473
 
474
+              var hifmi_pay = 0.00;
475
+
476
+              if(order.setl_detail.length > 0){
477
+                var jsonObj = JSON.parse(order.setl_detail);
478
+                for (let i = 0; i < jsonObj.length; i++) {
479
+                  if (order.insutype == '310') {
480
+                    if (jsonObj[i].fund_pay_type == '310300') {
481
+                      hifmi_pay = jsonObj[i].fund_payamt
482
+                    }
483
+
484
+                  } else if (order.insutype == '390')
485
+                    if (order.fund_pay_type == '390200') {
486
+                      hifmi_pay = jsonObj[i].fund_payamt
487
+                    }
488
+                }
489
+              }
434 490
 
435 491
               let obj = {
436 492
                 '就诊号': order.mdtrt_id,
@@ -441,7 +497,7 @@
441 497
                 '实收金额': order.medfee_sumamt,
442 498
                 '医保统筹金额': order.fund_pay_sumamt,
443 499
                 '大额基金金额': order.hifob_pay,
444
-                '大病基金金额': order.hifmi_pay,
500
+                '大病基金金额': hifmi_pay,
445 501
                 '补充保险基金金额': order.hifes_pay,
446 502
                 '医疗救助基金金额': order.maf_pay,
447 503
                 '公务员基金': order.cvlserv_pay,
@@ -461,11 +517,12 @@
461 517
                 '收费状态': order_status,
462 518
                 '退费日期': ''
463 519
               };
520
+
464 521
               list.push(obj)
465 522
             }
466 523
             import('@/vendor/Export2Excel').then(excel => {
467
-              const tHeader = ['就诊号', '患者姓名', '开处时间','险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
468
-              const filterVal = ['就诊号', '患者姓名','开处时间','险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
524
+              const tHeader = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
525
+              const filterVal = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
469 526
               const data = this.formatJson(filterVal, list);
470 527
               excel.export_json_to_excel({
471 528
                 header: tHeader,