|
@@ -46,16 +46,16 @@
|
46
|
46
|
<el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
|
47
|
47
|
|
48
|
48
|
</el-popover> -->
|
49
|
|
- <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
|
|
49
|
+ <el-button size="small" type="primary" @click="dialogVisible = true">报表下载</el-button>
|
50
|
50
|
</div>
|
51
|
51
|
</div>
|
52
|
52
|
<el-table :data="tableData" border :row-style="{ color: '#303133' }"
|
53
|
53
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
54
|
|
- show-summary
|
|
54
|
+
|
55
|
55
|
v-loading="settle_loading"
|
56
|
56
|
max-height="600"
|
57
|
57
|
:span-method="merge"
|
58
|
|
- :summary-method="getTotal"
|
|
58
|
+
|
59
|
59
|
highlight-current-row>
|
60
|
60
|
|
61
|
61
|
<el-table-column align="center" prop="name" label="患者名字" fixed>
|
|
@@ -121,7 +121,16 @@
|
121
|
121
|
<div v-if="scope.row.med_type == '992102'">单病种(992102)</div>
|
122
|
122
|
</template>
|
123
|
123
|
</el-table-column>
|
124
|
|
- <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+<!-- <el-table-column align="center" prop="item_name" label="透析模式">-->
|
|
127
|
+<!-- <template slot-scope="scope">-->
|
|
128
|
+<!-- <div v-if="scope.row.sch.id == 0">未排版</div>-->
|
|
129
|
+<!-- <div v-if="scope.row.sch.id > 0">{{modeOptions[scope.row.sch.mode_id].name}}</div>-->
|
|
130
|
+<!-- </template>-->
|
|
131
|
+<!-- </el-table-column>-->
|
|
132
|
+
|
|
133
|
+ <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
|
125
|
134
|
<template slot-scope="scope">{{scope.row.medfee_sumamt.toFixed(2)}}</template>
|
126
|
135
|
</el-table-column>
|
127
|
136
|
<el-table-column align="center" prop="fund_pay_sumamt" label="基金支付金额">
|
|
@@ -257,193 +266,36 @@
|
257
|
266
|
|
258
|
267
|
</el-table>
|
259
|
268
|
|
260
|
|
- <el-table ref="report-table" :data="tableData" v-show="false" border :row-style="{ color: '#303133' }"
|
261
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
262
|
|
- show-summary
|
263
|
|
- v-loading="settle_loading"
|
264
|
|
- max-height="600"
|
265
|
|
- :span-method="merge"
|
266
|
|
- :summary-method="getTotal"
|
267
|
|
- highlight-current-row>
|
268
|
|
-
|
269
|
|
- <el-table-column align="center" prop="name" label="患者名字">
|
270
|
|
- <template slot-scope="scope">{{ scope.row.other_name }}</template>
|
271
|
|
- </el-table-column>
|
272
|
|
- <el-table-column align="center" prop="item_name" label="身份证">
|
273
|
|
- <template slot-scope="scope">
|
274
|
|
- {{scope.row.id_card_no}}
|
275
|
|
- </template>
|
276
|
|
- </el-table-column>
|
277
|
|
- <el-table-column align="center" prop="item_name" label="就诊号">
|
278
|
|
- <template slot-scope="scope">
|
279
|
|
- {{scope.row.mdtrt_id}}
|
280
|
|
- </template>
|
281
|
|
- </el-table-column>
|
282
|
|
- <el-table-column align="center" prop="item_name" label="治疗日期">
|
283
|
|
- <template slot-scope="scope">
|
284
|
|
- {{getTimes(scope.row.settle_accounts_date)}}
|
285
|
|
- </template>
|
286
|
|
- </el-table-column>
|
287
|
|
-
|
288
|
|
- <el-table-column align="center" prop="item_name" label="结算日期">
|
289
|
|
- <template slot-scope="scope">
|
290
|
|
- {{scope.row.setl_time?scope.row.setl_time.split(" ")[0]:getTimes(scope.row.settle_accounts_date)}}
|
291
|
|
- </template>
|
292
|
|
- </el-table-column>
|
293
|
|
- <el-table-column align="center" prop="item_name" label="病种名称">
|
294
|
|
- <template slot-scope="scope">
|
295
|
|
- {{getSickName(scope.row.his.sick_type)}}
|
296
|
|
- </template>
|
297
|
|
- </el-table-column>
|
298
|
|
-
|
299
|
|
- <el-table-column align="center" prop="item_name" label="参保地">
|
300
|
|
- <template slot-scope="scope">
|
301
|
|
- {{getName(scope.row.his.insuplc_admdvs) + '(' + scope.row.his.insuplc_admdvs +')'}}
|
302
|
|
- </template>
|
303
|
|
- </el-table-column>
|
304
|
|
-
|
305
|
|
- <el-table-column align="center" prop="item_name" label="结算类型">
|
306
|
|
- <template slot-scope="scope">
|
307
|
|
- <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
|
308
|
|
- <div v-if="scope.row.is_medicine_insurance == 1 ">{{getTypeName(scope.row)}}</div>
|
309
|
|
-
|
310
|
|
- </template>
|
311
|
|
- </el-table-column>
|
312
|
|
- <el-table-column align="center" prop="item_name" label="处方类型">
|
313
|
|
- <template slot-scope="scope">
|
314
|
|
- <div v-if="scope.row.med_type == '14'">门诊特殊病</div>
|
315
|
|
- <div v-if="scope.row.med_type == '11'">普通门诊</div>
|
316
|
|
- <div v-if="scope.row.med_type == '1112'">普通门诊</div>
|
317
|
|
- <div v-if="scope.row.med_type == '140104'">门诊特殊病(140104)</div>
|
318
|
|
- <div v-if="scope.row.med_type == '140201'">门诊特病(140201)</div>
|
319
|
|
- <div v-if="scope.row.med_type == '992102'">单病种(992102)</div>
|
320
|
|
- </template>
|
321
|
|
- </el-table-column>
|
322
|
|
- <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
|
323
|
|
- <template slot-scope="scope">{{scope.row.medfee_sumamt.toFixed(2)}}</template>
|
324
|
|
- </el-table-column>
|
325
|
|
- <el-table-column align="center" prop="fund_pay_sumamt" label="基金支付金额">
|
326
|
|
- <template slot-scope="scope">{{scope.row.fund_pay_sumamt.toFixed(2)}}</template>
|
327
|
|
- </el-table-column>
|
328
|
|
- <el-table-column align="center" prop="acct_pay" label="个人账户支付金额">
|
329
|
|
- <template slot-scope="scope">{{scope.row.acct_pay.toFixed(2)}}</template>
|
330
|
|
- </el-table-column>
|
331
|
|
- <el-table-column align="center" prop="psn_cash_pay" label="个人支付金额">
|
332
|
|
- <template slot-scope="scope">{{scope.row.psn_cash_pay.toFixed(2)}}</template>
|
333
|
|
- </el-table-column>
|
334
|
|
- <el-table-column align="center" prop="hifp_pay" label="基金统筹金额">
|
335
|
|
- <template slot-scope="scope">{{scope.row.hifp_pay.toFixed(2)}}</template>
|
336
|
|
- </el-table-column>
|
337
|
|
-
|
338
|
|
- <el-table-column align="center" prop="hifob_pay" label="大额基金支付">
|
339
|
|
- <template slot-scope="scope">{{scope.row.hifob_pay.toFixed(2)}}</template>
|
340
|
|
- </el-table-column>
|
341
|
|
- <el-table-column align="center" prop="preselfpay_amt" label="先行自付金额">
|
342
|
|
- <template slot-scope="scope">{{scope.row.preselfpay_amt.toFixed(2)}}</template>
|
343
|
|
- </el-table-column>
|
344
|
|
-
|
345
|
|
- <el-table-column align="center" prop="overlmt_self_pay" label="超限价金额">
|
346
|
|
- <template slot-scope="scope">{{scope.row.overlmt_self_pay.toFixed(2)}}</template>
|
347
|
|
- </el-table-column>
|
348
|
|
-
|
349
|
|
- <el-table-column align="center" prop="fulamt_ownpay_amt" label="全自费金额">
|
350
|
|
- <template slot-scope="scope">{{scope.row.fulamt_ownpay_amt.toFixed(2)}}</template>
|
351
|
|
- </el-table-column>
|
352
|
|
-
|
353
|
|
- <el-table-column align="center" prop="inscp_scp_amt" label="符合政策范围金额">
|
354
|
|
- <template slot-scope="scope">{{scope.row.inscp_scp_amt.toFixed(2)}}</template>
|
355
|
|
- </el-table-column>
|
356
|
|
-
|
357
|
|
- <el-table-column align="center" prop="maf_pay" label="医疗救助基金">
|
358
|
|
- <template slot-scope="scope">{{scope.row.maf_pay.toFixed(2)}}</template>
|
359
|
|
- </el-table-column>
|
360
|
|
-
|
361
|
|
- <el-table-column align="center" prop="hifes_pay" label="企业补充医疗保险基金支出">
|
362
|
|
- <template slot-scope="scope">{{scope.row.hifes_pay.toFixed(2)}}</template>
|
363
|
|
- </el-table-column>
|
364
|
|
-
|
365
|
|
-
|
366
|
|
- <el-table-column align="center" prop="hifmi_pay" label="居民大病保险资金支出">
|
367
|
|
- <template slot-scope="scope">{{scope.row.hifmi_pay.toFixed(2)}}</template>
|
368
|
|
- </el-table-column>
|
369
|
|
-
|
370
|
|
- <el-table-column align="center" prop="oth_pay" label="其他支付">
|
371
|
|
- <template slot-scope="scope">{{scope.row.oth_pay.toFixed(2)}}</template>
|
372
|
|
- </el-table-column>
|
373
|
|
-
|
374
|
|
- <el-table-column align="center" prop="cvlserv_pay" label="公务员医疗补助资金支出">
|
375
|
|
- <template slot-scope="scope">{{scope.row.cvlserv_pay.toFixed(2)}}</template>
|
376
|
|
- </el-table-column>
|
377
|
|
-
|
378
|
|
-
|
379
|
|
-
|
380
|
|
- <el-table-column align="center" prop="wechat_pay" label="发票号码">
|
381
|
|
- <template slot-scope="scope">{{scope.row.fa_piao_number}}</template>
|
382
|
|
- </el-table-column>
|
383
|
|
-
|
384
|
|
- <el-table-column align="center" prop="wechat_pay" label="发票编号">
|
385
|
|
- <template slot-scope="scope">{{scope.row.fa_piao_code}}</template>
|
386
|
|
- </el-table-column>
|
387
|
|
-
|
388
|
|
-
|
389
|
|
- <el-table-column align="center" prop="wechat_pay" label="微信支付">
|
390
|
|
- <template slot-scope="scope">{{scope.row.wechat_pay}}</template>
|
391
|
|
-
|
392
|
|
-<!-- <template slot-scope="scope" style="width: 100px">-->
|
393
|
|
-<!-- <el-input v-model="scope.row.wechat_pay" oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>-->
|
394
|
|
-<!-- </template>-->
|
395
|
|
- </el-table-column>
|
396
|
|
-
|
397
|
|
- <el-table-column align="center" prop="ali_pay" label="支付宝支付">
|
398
|
|
- <template slot-scope="scope">{{scope.row.ali_pay}}</template>
|
399
|
|
-<!-- <template slot-scope="scope" style="width: 100px">-->
|
400
|
|
-<!-- <el-input v-model="scope.row.ali_pay" oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>-->
|
401
|
|
-<!-- </template>-->
|
402
|
|
- </el-table-column>
|
403
|
|
-
|
404
|
|
- <el-table-column align="center" prop="band_card_pay" label="银行卡支付">
|
405
|
|
- <template slot-scope="scope">{{scope.row.band_card_pay}}</template>
|
406
|
|
-<!-- <template slot-scope="scope" style="width: 100px">-->
|
407
|
|
-<!-- <el-input v-model="scope.row.band_card_pay" oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>-->
|
408
|
|
-<!-- </template>-->
|
409
|
|
- </el-table-column>
|
410
|
|
-
|
411
|
|
- <el-table-column align="center" prop="jifen_pay" label="积分支付">
|
412
|
|
- <template slot-scope="scope">{{scope.row.jifen_pay}}</template>
|
413
|
|
-<!-- <template slot-scope="scope" style="width: 100px">-->
|
414
|
|
-<!-- <el-input v-model="scope.row.jifen_pay" oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>-->
|
415
|
|
-<!-- </template>-->
|
416
|
|
- </el-table-column>
|
417
|
|
-
|
418
|
|
- <el-table-column align="center" prop="cash_pay" label="现金支付">
|
419
|
|
- <template slot-scope="scope">{{scope.row.cash_pay}}</template>
|
420
|
|
-<!-- <template slot-scope="scope" style="width: 100px">-->
|
421
|
|
-<!-- <el-input v-model="scope.row.cash_pay" oninput="value=value.replace(/[^0-9.]/g,'')"></el-input>-->
|
422
|
|
-<!-- </template>-->
|
423
|
|
- </el-table-column>
|
424
|
|
-
|
425
|
|
-
|
426
|
|
- <el-table-column align="center" prop="card_desc" label="储值卡说明">
|
427
|
|
- <template slot-scope="scope">{{scope.row.card_desc}}</template>
|
428
|
|
- <!-- <template slot-scope="scope" style="width: 100px">-->
|
429
|
|
- <!-- <el-input v-model="scope.row.oth_desc"></el-input>-->
|
430
|
|
- <!-- </template>-->
|
431
|
|
- </el-table-column>
|
432
|
|
-
|
433
|
|
- <el-table-column align="center" prop="item_name" label="其他说明">
|
434
|
|
- <template slot-scope="scope">{{scope.row.oth_desc}}</template>
|
435
|
|
-<!-- <template slot-scope="scope" style="width: 100px">-->
|
436
|
|
-<!-- <el-input v-model="scope.row.oth_desc"></el-input>-->
|
437
|
|
-<!-- </template>-->
|
438
|
|
- </el-table-column>
|
439
|
|
-
|
440
|
|
- <el-table-column align="center" prop="total" label="费用总额">
|
441
|
|
- <template slot-scope="scope">
|
442
|
|
- <div>{{scope.row.total.toFixed(2)}}</div>
|
443
|
|
- </template>
|
444
|
|
- </el-table-column>
|
445
|
269
|
|
446
|
|
- </el-table>
|
|
270
|
+ <el-dialog
|
|
271
|
+ title="提示"
|
|
272
|
+ :visible.sync="dialogVisible"
|
|
273
|
+ width="30%"
|
|
274
|
+ >
|
|
275
|
+ <span>选择下载时间段</span>
|
|
276
|
+
|
|
277
|
+ <el-date-picker
|
|
278
|
+ v-model="chargeDate"
|
|
279
|
+ type="daterange"
|
|
280
|
+ value-format="yyyy-MM-dd"
|
|
281
|
+ range-separator="至"
|
|
282
|
+ start-placeholder="开始日期"
|
|
283
|
+ end-placeholder="结束日期">
|
|
284
|
+ </el-date-picker>
|
|
285
|
+
|
|
286
|
+ <span slot="footer" class="dialog-footer">
|
|
287
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
288
|
+ <el-button type="primary" @click="export_detail">确 定</el-button>
|
|
289
|
+ </span>
|
|
290
|
+ </el-dialog>
|
|
291
|
+
|
|
292
|
+ <el-pagination
|
|
293
|
+ @size-change="handleSizeChangeOne"
|
|
294
|
+ @current-change="handleCurrentChangeOne"
|
|
295
|
+ background
|
|
296
|
+ style="margin-top:20px;float: right"
|
|
297
|
+ :total="total"
|
|
298
|
+ ></el-pagination>
|
447
|
299
|
|
448
|
300
|
</div>
|
449
|
301
|
</template>
|
|
@@ -462,13 +314,20 @@ import { uParseTime } from '@/utils/tools'
|
462
|
314
|
},
|
463
|
315
|
data() {
|
464
|
316
|
return {
|
|
317
|
+ total:0,
|
|
318
|
+ limit:10,
|
|
319
|
+ page:1,
|
465
|
320
|
settle_loading:false,
|
466
|
321
|
crumbs: [],
|
467
|
322
|
tempArr: [],
|
468
|
323
|
sameRowArr: [],
|
|
324
|
+ dialogVisible:false,
|
|
325
|
+ modeOptions:this.$store.getters.treatment_mode,
|
469
|
326
|
tableData: [],
|
|
327
|
+ tableData_three: [],
|
470
|
328
|
config:{},
|
471
|
329
|
sick:{},
|
|
330
|
+ chargeDate_two:[moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
|
472
|
331
|
chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
|
473
|
332
|
item_type: '0',
|
474
|
333
|
items: [
|
|
@@ -485,6 +344,18 @@ import { uParseTime } from '@/utils/tools'
|
485
|
344
|
}
|
486
|
345
|
},
|
487
|
346
|
methods: {
|
|
347
|
+ handleSizeChangeOne(val) {
|
|
348
|
+ this.limit = val
|
|
349
|
+ this.GetRemindPatientList();
|
|
350
|
+ },
|
|
351
|
+ handleCurrentChangeOne(val) {
|
|
352
|
+ this.page = val;
|
|
353
|
+ this.GetRemindPatientList();
|
|
354
|
+ },
|
|
355
|
+ getMode(id){
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+ },
|
488
|
359
|
change(id,desc,type){
|
489
|
360
|
let params = {
|
490
|
361
|
id: id,
|
|
@@ -591,7 +462,10 @@ import { uParseTime } from '@/utils/tools'
|
591
|
462
|
start_time: start_time,
|
592
|
463
|
end_time: end_time,
|
593
|
464
|
type: this.item_type,
|
594
|
|
- keyword: this.keywords
|
|
465
|
+ keyword: this.keywords,
|
|
466
|
+ limit:this.limit,
|
|
467
|
+ page:this.page,
|
|
468
|
+ s_type: 1,
|
595
|
469
|
}
|
596
|
470
|
this.settle_loading = true
|
597
|
471
|
GetSummarySettle(params).then(response => {
|
|
@@ -603,9 +477,9 @@ import { uParseTime } from '@/utils/tools'
|
603
|
477
|
} else {
|
604
|
478
|
this.settle_loading = false
|
605
|
479
|
this.tableData = []
|
|
480
|
+ this.total = response.data.data.total
|
606
|
481
|
this.config = response.data.data.config
|
607
|
482
|
this.sick = response.data.data.sick
|
608
|
|
-
|
609
|
483
|
let data = response.data.data.patients
|
610
|
484
|
|
611
|
485
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -747,100 +621,252 @@ import { uParseTime } from '@/utils/tools'
|
747
|
621
|
return sums
|
748
|
622
|
},
|
749
|
623
|
export_detail() {
|
|
624
|
+ // this.getSummarySettleList()
|
|
625
|
+ let start_time = this.chargeDate[0]
|
|
626
|
+ let end_time = this.chargeDate[1]
|
|
627
|
+ let params = {
|
|
628
|
+ start_time: start_time,
|
|
629
|
+ end_time: end_time,
|
|
630
|
+ type: this.item_type,
|
|
631
|
+ keyword: this.keywords,
|
|
632
|
+ s_type:2,
|
|
633
|
+ }
|
|
634
|
+
|
|
635
|
+ GetSummarySettle(params).then(response => {
|
|
636
|
+ if (response.data.state == 0) {
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+ this.$message.error(response.data.msg)
|
|
640
|
+ return false
|
|
641
|
+ } else {
|
|
642
|
+ this.settle_loading = false
|
|
643
|
+ this.tableData_three = []
|
|
644
|
+ this.config = response.data.data.config
|
|
645
|
+ this.sick = response.data.data.sick
|
|
646
|
+
|
|
647
|
+ let data = response.data.data.patients
|
|
648
|
+
|
|
649
|
+ for (let i = 0; i < data.length; i++) {
|
|
650
|
+ let total = 0
|
|
651
|
+ for (let b = 0; b < data[i].orders.length; b++) {
|
|
652
|
+ let order = data[i].orders[b]
|
|
653
|
+ order['other_name'] = data[i].name
|
|
654
|
+ order['id'] = order.id
|
|
655
|
+ order['id_card_no'] = data[i].id_card_no
|
|
656
|
+ order['mdtrt_id'] =order.mdtrt_id
|
|
657
|
+ total = parseFloat((parseFloat(total.toString()) + parseFloat(data[i].orders[b].medfee_sumamt.toString())).toFixed(2).toString())
|
|
658
|
+ }
|
|
659
|
+ data[i]['total'] = total
|
|
660
|
+ }
|
|
661
|
+
|
|
662
|
+ for (let i = 0; i < data.length; i++) {
|
|
663
|
+ for (let b = 0; b < data[i].orders.length; b++) {
|
|
664
|
+ let order = data[i].orders[b]
|
|
665
|
+
|
|
666
|
+ if(b == 0){
|
|
667
|
+ order['total'] = data[i].total
|
|
668
|
+
|
|
669
|
+ }else{
|
|
670
|
+ order['total'] = 0
|
|
671
|
+
|
|
672
|
+ }
|
|
673
|
+ this.tableData_three.push(order)
|
|
674
|
+ }
|
|
675
|
+ }
|
|
676
|
+ }
|
|
677
|
+ })
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
750
|
681
|
|
751
|
682
|
let list = []
|
752
|
|
- // for (let i = 0; i < this.tableData.length; i++) {
|
753
|
|
- // let order = this.tableData[i]
|
754
|
|
- // let name = order.other_name
|
755
|
|
- // let id_card_no = order.id_card_no
|
756
|
|
- //
|
757
|
|
- // let time = ''
|
758
|
|
- // let balance_accounts = ""
|
759
|
|
- // let med_type = ""
|
760
|
|
- // let medfee_sumamt = ""
|
761
|
|
- // let fund_pay_sumamt = ""
|
762
|
|
- // let acct_pay = ""
|
763
|
|
- // let psn_cash_pay = ""
|
764
|
|
- // let hifes_pay = ""
|
765
|
|
- // let hifmi_pay = ""
|
766
|
|
- // let hifp_pay = ""
|
767
|
|
- // let hifob_pay = ""
|
768
|
|
- // let maf_pay = ""
|
769
|
|
- // let time2 = ""
|
770
|
|
- // time2 = this.getTimes(order.settle_accounts_date)
|
771
|
|
- //
|
772
|
|
- // let total = ""
|
773
|
|
- //
|
774
|
|
- // if(order.setl_time.length == 0){
|
775
|
|
- //
|
776
|
|
- // time = this.getTimes(order.settle_accounts_date)
|
777
|
|
- //
|
778
|
|
- // }else {
|
779
|
|
- //
|
780
|
|
- // time = order.setl_time.split(" ")[0]
|
781
|
|
- //
|
782
|
|
- // }
|
783
|
|
- //
|
784
|
|
- // if (order.is_medicine_insurance == 0) {
|
785
|
|
- // balance_accounts = '自费'
|
786
|
|
- // }
|
787
|
|
- //
|
788
|
|
- // if (order.is_medicine_insurance == 1) {
|
789
|
|
- // balance_accounts = '医保'
|
790
|
|
- // }
|
791
|
|
- //
|
792
|
|
- // if (order.med_type == '14') {
|
793
|
|
- // med_type = '门诊特殊病'
|
794
|
|
- // }
|
795
|
|
- //
|
796
|
|
- // if (order.med_type == '11') {
|
797
|
|
- // med_type = '普通门诊'
|
798
|
|
- // }
|
799
|
|
- //
|
800
|
|
- // medfee_sumamt = order.medfee_sumamt
|
801
|
|
- // fund_pay_sumamt = order.fund_pay_sumamt
|
802
|
|
- //
|
803
|
|
- // acct_pay = order.acct_pay
|
804
|
|
- //
|
805
|
|
- // psn_cash_pay = order.psn_cash_pay
|
806
|
|
- // hifes_pay = order.hifes_pay
|
807
|
|
- // hifmi_pay = order.hifmi_pay
|
808
|
|
- // hifp_pay = order.hifp_pay
|
809
|
|
- // hifob_pay = order.hifob_pay
|
810
|
|
- // maf_pay = order.maf_pay
|
811
|
|
- // total = order.total
|
812
|
|
- //
|
813
|
|
- //
|
814
|
|
- // let obj = {
|
815
|
|
- // '患者姓名': name,
|
816
|
|
- // '身份证': id_card_no,
|
817
|
|
- // '治疗日期': time2,
|
818
|
|
- // '结算日期': time,
|
819
|
|
- // '结算类型': balance_accounts,
|
820
|
|
- // '处方类型': med_type,
|
821
|
|
- // '医疗费总额': medfee_sumamt,
|
822
|
|
- // '基金支付金额': fund_pay_sumamt,
|
823
|
|
- // '基金统筹金额': hifp_pay,
|
824
|
|
- // '大额基金支付':hifob_pay,
|
825
|
|
- // '医疗救助基金':maf_pay,
|
826
|
|
- // '个人账户支付金额': acct_pay,
|
827
|
|
- // '个人支付基金': psn_cash_pay,
|
828
|
|
- // '企业补充医疗保险基金支出': hifes_pay,
|
829
|
|
- // '居民大病保险资金支出': hifmi_pay,
|
830
|
|
- // '费用总额':total,
|
831
|
|
- //
|
832
|
|
- // }
|
833
|
|
- // list.push(obj)
|
834
|
|
- // }
|
|
683
|
+ for (let i = 0; i < this.tableData_three.length; i++) {
|
|
684
|
+ let order = this.tableData_three[i]
|
|
685
|
+ let name = order.other_name
|
|
686
|
+ let id_card_no = order.id_card_no
|
|
687
|
+ let m_id = order.mdtrt_id
|
|
688
|
+ let setl_date = order.setl_time.split(" ")[0]
|
|
689
|
+ let setl_time = order.setl_time
|
|
690
|
+ let sick_name =this.getSickName(order.his.sick_type)
|
|
691
|
+ let cbd = this.getName(order.his.insuplc_admdvs) + "(" + order.his.insuplc_admdvs + ")"
|
|
692
|
+ let settle_type = ""
|
|
693
|
+ if(order.is_medicine_insurance == 0){
|
|
694
|
+ settle_type = "自费"
|
|
695
|
+ }else{
|
|
696
|
+ settle_type = this.getTypeName(order)
|
|
697
|
+ }
|
|
698
|
+
|
|
699
|
+ let med_name = ""
|
|
700
|
+ switch (order.med_type){
|
|
701
|
+ case "14":
|
|
702
|
+ med_name = "门诊特殊病"
|
|
703
|
+ break
|
|
704
|
+ case "11":
|
|
705
|
+ med_name = "普通门诊"
|
|
706
|
+
|
|
707
|
+ break
|
|
708
|
+ case "1112":
|
|
709
|
+ med_name = "普通门诊"
|
|
710
|
+
|
|
711
|
+ break
|
|
712
|
+ case "140104":
|
|
713
|
+ med_name = "城乡门诊特殊病(140104)"
|
|
714
|
+
|
|
715
|
+ break
|
|
716
|
+ case "140201":
|
|
717
|
+ med_name = "门诊特病(140201)"
|
|
718
|
+
|
|
719
|
+ break
|
|
720
|
+ case "992102":
|
|
721
|
+ med_name = "单病种(992102)"
|
|
722
|
+ break
|
|
723
|
+ }
|
|
724
|
+
|
|
725
|
+ let mode_name = ""
|
|
726
|
+ if(order.sch.id == 0){
|
|
727
|
+ mode_name = "未排班"
|
|
728
|
+ }else{
|
|
729
|
+ mode_name = this.modeOptions[order.sch.mode_id].name
|
|
730
|
+ }
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+ let balance_accounts = ""
|
|
735
|
+ let med_type = ""
|
|
736
|
+ let medfee_sumamt = ""
|
|
737
|
+ let fund_pay_sumamt = ""
|
|
738
|
+ let acct_pay = ""
|
|
739
|
+ let psn_cash_pay = ""
|
|
740
|
+ let hifes_pay = ""
|
|
741
|
+ let hifmi_pay = ""
|
|
742
|
+ let hifp_pay = ""
|
|
743
|
+ let hifob_pay = ""
|
|
744
|
+ let maf_pay = ""
|
|
745
|
+ let time2 = ""
|
|
746
|
+ time2 = this.getTimes(order.settle_accounts_date)
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+ medfee_sumamt = order.medfee_sumamt
|
|
750
|
+ fund_pay_sumamt = order.fund_pay_sumamt
|
|
751
|
+ acct_pay = order.acct_pay
|
|
752
|
+ psn_cash_pay = order.psn_cash_pay
|
|
753
|
+ hifp_pay = order.hifp_pay
|
|
754
|
+ hifob_pay = order.hifob_pay
|
|
755
|
+
|
|
756
|
+ let preselfpay_amt;
|
|
757
|
+ preselfpay_amt = order.preselfpay_amt
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+ let overlmt_self_pay;
|
|
761
|
+ overlmt_self_pay = order.overlmt_self_pay
|
|
762
|
+
|
|
763
|
+ let fulamt_ownpay_amt;
|
|
764
|
+ fulamt_ownpay_amt = order.fulamt_ownpay_amt
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+ let inscp_scp_amt;
|
|
768
|
+ inscp_scp_amt = order.inscp_scp_amt
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+ maf_pay = order.maf_pay
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+ hifes_pay = order.hifes_pay
|
|
776
|
+ hifmi_pay = order.hifmi_pay
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+ let oth_pay;
|
|
780
|
+ oth_pay = order.oth_pay
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+ let cvlserv_pay;
|
|
784
|
+ cvlserv_pay = order.cvlserv_pay
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+ let fa_piao_code;
|
|
789
|
+ fa_piao_code = order.fa_piao_code
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+ let fa_piao_number;
|
|
793
|
+ fa_piao_number = order.fa_piao_number
|
|
794
|
+
|
|
795
|
+ let ali_pay;
|
|
796
|
+ ali_pay = order.ali_pay
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+ let band_card_pay;
|
|
800
|
+ band_card_pay = order.band_card_pay
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+ let jifen_pay;
|
|
804
|
+ jifen_pay = order.jifen_pay
|
|
805
|
+
|
|
806
|
+ let wechat_pay;
|
|
807
|
+ wechat_pay = order.wechat_pay
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+ let cash_pay;
|
|
811
|
+ cash_pay = order.cash_pay
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+ let card_desc;
|
|
815
|
+ card_desc = order.card_desc
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+ let oth_desc;
|
|
819
|
+ oth_desc = order.oth_desc
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+ let obj = {
|
|
823
|
+ '患者姓名': name,
|
|
824
|
+ '身份证': id_card_no,
|
|
825
|
+ "就诊号": m_id,
|
|
826
|
+ '治疗日期': time2,
|
|
827
|
+ "结算日期": setl_date,
|
|
828
|
+ '结算时间': setl_time,
|
|
829
|
+ "病种名称":sick_name,
|
|
830
|
+ "参保地":cbd,
|
|
831
|
+ '结算类型': settle_type,
|
|
832
|
+ '处方类型': med_name,
|
|
833
|
+ // "透析模式": mode_name,
|
|
834
|
+ '医疗费总额': medfee_sumamt,
|
|
835
|
+ '基金支付金额': fund_pay_sumamt,
|
|
836
|
+ '个人账户支付金额': acct_pay,
|
|
837
|
+ '个人支付金额': psn_cash_pay,
|
|
838
|
+ '基金统筹金额': hifp_pay,
|
|
839
|
+ '大额基金支付':hifob_pay,
|
|
840
|
+ '先行自付金额': preselfpay_amt,
|
|
841
|
+ '超限价金额': overlmt_self_pay,
|
|
842
|
+ '全自费金额': fulamt_ownpay_amt,
|
|
843
|
+ '符合政策范围金额': inscp_scp_amt,
|
|
844
|
+ '医疗救助基金':maf_pay,
|
|
845
|
+ '企业补充医疗保险基金支出': hifes_pay,
|
|
846
|
+ '居民大病保险资金支出': hifmi_pay,
|
|
847
|
+ '其他支付': oth_pay,
|
|
848
|
+ '公务员医疗补助资金支出': cvlserv_pay,
|
|
849
|
+ '发票号码': fa_piao_number,
|
|
850
|
+ '发票编号': fa_piao_code,
|
|
851
|
+ '微信支付': wechat_pay,
|
|
852
|
+ '支付宝支付': ali_pay,
|
|
853
|
+ '银行卡支付': band_card_pay,
|
|
854
|
+ '积分支付': jifen_pay,
|
|
855
|
+ '现金支付': cash_pay,
|
|
856
|
+ '储值卡说明': card_desc,
|
|
857
|
+ '其他说明': oth_desc,
|
|
858
|
+ }
|
|
859
|
+ list.push(obj)
|
|
860
|
+ }
|
835
|
861
|
import('@/vendor/Export2Excel').then(excel => {
|
836
|
|
- const tHeader = [ '患者姓名','身份证', '治疗日期','结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金','企业补充医疗保险基金支出','居民大病保险资金支出', '费用总额']
|
837
|
|
- const filterVal = [ '患者姓名','身份证', '治疗日期','结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金','企业补充医疗保险基金支出','居民大病保险资金支出', '费用总额']
|
|
862
|
+ const tHeader = [ '患者姓名','身份证',"就诊号", '治疗日期','结算日期',"结算时间", "病种名称", "参保地",'结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金',"基金统筹金额","大额基金支付", "先行自付金额","超限价金额","全自费金额","符合政策范围金额","医疗救助基金",'企业补充医疗保险基金支出','居民大病保险资金支出',"其他支付", "公务员医疗补助资金支出","发票号码","发票编号","微信支付", "支付宝支付","银行卡支付","积分支付","现金支付","储值卡说明",'其他说明']
|
|
863
|
+ const filterVal = [ '患者姓名','身份证',"就诊号", '治疗日期','结算日期', "结算时间", "病种名称","参保地",'结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金',"基金统筹金额","大额基金支付","先行自付金额","超限价金额","全自费金额","符合政策范围金额","医疗救助基金",'企业补充医疗保险基金支出','居民大病保险资金支出',"其他支付", "公务员医疗补助资金支出","发票号码", "发票编号","微信支付","支付宝支付","银行卡支付","积分支付","现金支付","储值卡说明",'其他说明']
|
|
864
|
+
|
838
|
865
|
const data = this.formatJson(filterVal, list)
|
839
|
|
- excel.export_json_to_excel1({
|
|
866
|
+ excel.export_json_to_excel({
|
840
|
867
|
header: tHeader,
|
841
|
868
|
data,
|
842
|
|
- filename: '结算明细',
|
843
|
|
- ref:this.$refs['report-table'].$el
|
|
869
|
+ filename: '结算明细'
|
844
|
870
|
})
|
845
|
871
|
})
|
846
|
872
|
|