|
@@ -1,13 +1,13 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div id='invoice-print'>
|
3
|
3
|
<div style="display:flex;">
|
4
|
|
- <div style="position: absolute;top:80px;left:70px;">{{ list.order_number }}</div>
|
|
4
|
+ <div style="position: absolute;top:40px;left:50px;">{{ list.order_number }}</div>
|
5
|
5
|
<!-- <div>{{ list.id_card_no }}</div> -->
|
6
|
6
|
</div>
|
7
|
7
|
<div style="display:flex;justify-content: space-between;">
|
8
|
|
- <div style="position: absolute;top:100px;left:80px;"> {{ paramsObj.name }}</div>
|
|
8
|
+ <div style="position: absolute;top:60px;left:50px;"> {{ paramsObj.name }}</div>
|
9
|
9
|
</div>
|
10
|
|
- <div style="position: absolute;top:120px;left:80px">
|
|
10
|
+ <div style="position: absolute;top:90px;left:80px">
|
11
|
11
|
<div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
|
12
|
12
|
<div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
|
13
|
13
|
<div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
|
|
@@ -42,12 +42,12 @@
|
42
|
42
|
</span>
|
43
|
43
|
</div>
|
44
|
44
|
</div>
|
45
|
|
- <div style="position: absolute;top:300px;left:80px">{{ zhongwen }}</div>
|
46
|
|
- <div style="position: absolute;top:300px;left:300px">{{ list.psn_cash_money ? list.psn_cash_money : list.medfee_sumamt }}</div>
|
47
|
|
- <div style="position: absolute;top:320px;left:80px;width:100%">
|
|
45
|
+ <div style="position: absolute;top:280px;left:50px">{{ zhongwen }}</div>
|
|
46
|
+ <div style="position: absolute;top:280px;left:360px">{{ list.medfee_sumamt }}</div>
|
|
47
|
+ <div style="position: absolute;top:320px;left:50px;width:100%">
|
48
|
48
|
<div style="display:flex;">
|
49
|
|
- <div style="width:160px">医疗总费用:{{ list.psn_cash_money ? list.psn_cash_money : list.medfee_sumamt }}</div>
|
50
|
|
- <div style="width:160px">现金支出:{{ list.psn_cash_money ? list.psn_cash_money : list.medfee_sumamt }}</div>
|
|
49
|
+ <div style="width:160px">医疗总费用:{{ list.medfee_sumamt }}</div>
|
|
50
|
+ <div style="width:160px">现金支出:{{ list.psn_cash_money }}</div>
|
51
|
51
|
<div style="width:160px">上次账户:0</div>
|
52
|
52
|
<div style="width:160px">本次账户:0</div>
|
53
|
53
|
</div>
|
|
@@ -64,15 +64,15 @@
|
64
|
64
|
</div>
|
65
|
65
|
</div>
|
66
|
66
|
<div>
|
67
|
|
- <div style="position: absolute;top:380px;left:120px">{{ org_name }}</div>
|
68
|
|
- <div style="position: absolute;top:380px;left:300px">{{ paramsObj.chargeName }}</div>
|
69
|
|
- <div style="position: absolute;left:470px;top:380px;">
|
|
67
|
+ <div style="position: absolute;top:360px;left:50px">{{ org_name }}</div>
|
|
68
|
+ <div style="position: absolute;top:360px;left:260px">{{ paramsObj.chargeName }}</div>
|
|
69
|
+ <div style="position: absolute;left:370px;top:360px;">
|
70
|
70
|
<span>{{ paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
|
71
|
71
|
</div>
|
72
|
|
- <div style="position: absolute;left:530px;top:380px;">
|
|
72
|
+ <div style="position: absolute;left:420px;top:360px;">
|
73
|
73
|
<span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
|
74
|
74
|
</div>
|
75
|
|
- <div style="position: absolute;left:560px;top:380px;">
|
|
75
|
+ <div style="position: absolute;left:470px;top:360px;">
|
76
|
76
|
<span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
|
77
|
77
|
</div>
|
78
|
78
|
</div>
|
|
@@ -119,7 +119,7 @@ export default {
|
119
|
119
|
this.list = res.data.data
|
120
|
120
|
this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
|
121
|
121
|
this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
|
122
|
|
- this.smalltoBIG(this.list.psn_cash_money ? this.list.psn_cash_money : this.list.medfee_sumamt)
|
|
122
|
+ this.smalltoBIG(this.list.medfee_sumamt)
|
123
|
123
|
var data = new Date(res.data.data.date * 1000);
|
124
|
124
|
var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
|
125
|
125
|
var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
|