|
@@ -1,9 +1,9 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div id='invoice-print'>
|
3
|
|
-
|
|
3
|
+
|
4
|
4
|
<div style="display:flex;justify-content: space-between;">
|
5
|
5
|
<!-- 机构名称 -->
|
6
|
|
- <div>{{ list.department_name }}</div>
|
|
6
|
+ <div>{{ list.org_name }}</div>
|
7
|
7
|
<!-- 单据号 -->
|
8
|
8
|
<div style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
|
9
|
9
|
<div></div>
|
|
@@ -18,20 +18,20 @@
|
18
|
18
|
<!-- 个人电脑编号 -->
|
19
|
19
|
<div style="position: absolute;top:90px;left:240px;"></div>
|
20
|
20
|
<!-- 科室 -->
|
21
|
|
- <div style="position: absolute;top:90px;left:240px;"></div>
|
|
21
|
+ <div style="position: absolute;top:90px;left:240px;">{{'血透'}}</div>
|
22
|
22
|
<!-- 床号 -->
|
23
|
23
|
<div style="position: absolute;top:90px;left:240px;"></div>
|
24
|
24
|
</div>
|
25
|
25
|
|
26
|
26
|
<div style="display:flex;justify-content: space-between;">
|
27
|
27
|
<!-- 住院号 -->
|
28
|
|
- <div style="position: absolute;top:90px;left:120px;"> {{ list.number }}</div>
|
|
28
|
+ <div style="position: absolute;top:90px;left:120px;"> {{ list.his_hospital_record.number?list.order.mdtrt_id:'' }}</div>
|
29
|
29
|
<!-- 入院日期 -->
|
30
|
|
- <div style="position: absolute;top:90px;left:240px;"></div>
|
|
30
|
+ <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.in_hosptial_time?list.his_hospital_record.in_hosptial_time.spilt(' ')[0]:''}}</div>
|
31
|
31
|
<!-- 出院日期 -->
|
32
|
|
- <div style="position: absolute;top:90px;left:240px;"></div>
|
|
32
|
+ <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.out_hosptial_time?list.his_hospital_record.out_hosptial_time.spilt(' ')[0]:''}}</div>
|
33
|
33
|
<!-- 住院天数 -->
|
34
|
|
- <div style="position: absolute;top:90px;left:240px;"></div>
|
|
34
|
+ <div style="position: absolute;top:90px;left:240px;">{{getDay(list.his_hospital_record.in_hosptial_time.split(' ')[0] ,list.his_hospital_record.out_hosptial_time.split(' ')[0])}}</div>
|
35
|
35
|
</div>
|
36
|
36
|
|
37
|
37
|
<!-- <div style="display:flex;justify-content: space-between;">
|
|
@@ -47,37 +47,37 @@
|
47
|
47
|
<div style="position: absolute;top:160px;left:180px">检查费</div>
|
48
|
48
|
<div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
|
49
|
49
|
<div style="position: absolute;top:160px;left:340px">护理费</div>
|
50
|
|
- <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>
|
|
50
|
+ <div style="position: absolute;top:160px;left:420px"></div>
|
51
|
51
|
<div style="position: absolute;top:160px;left:500px">麻醉费</div>
|
52
|
|
- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>
|
|
52
|
+ <div style="position: absolute;top:160px;left:580px"></div>
|
53
|
53
|
</div>
|
54
|
54
|
<div style="display:flex;justify-content: space-between;">
|
55
|
55
|
<div style="position: absolute;top:190px;left:40px">中成药费</div>
|
56
|
|
- <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
|
|
56
|
+ <div style="position: absolute;top:190px;left:110px"></div>
|
57
|
57
|
<div style="position: absolute;top:190px;left:180px">治疗费</div>
|
58
|
|
- <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>
|
|
58
|
+ <div style="position: absolute;top:190px;left:260px">{{list.treatCostTotal}}</div>
|
59
|
59
|
<div style="position: absolute;top:190px;left:340px">CT核磁</div>
|
60
|
|
- <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>
|
|
60
|
+ <div style="position: absolute;top:190px;left:420px"></div>
|
61
|
61
|
<div style="position: absolute;top:190px;left:500px">床位费</div>
|
62
|
|
- <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>
|
|
62
|
+ <div style="position: absolute;top:190px;left:580px"></div>
|
63
|
63
|
</div>
|
64
|
64
|
<div style="display:flex;justify-content: space-between;">
|
65
|
65
|
<div style="position: absolute;top:220px;left:40px">中草药费</div>
|
66
|
|
- <div style="position: absolute;top:220px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
|
|
66
|
+ <div style="position: absolute;top:220px;left:110px"></div>
|
67
|
67
|
<div style="position: absolute;top:220px;left:180px">手术费</div>
|
68
|
|
- <div style="position: absolute;top:220px;left:260px">{{ list.laboratoryCostTotal }}</div>
|
|
68
|
+ <div style="position: absolute;top:220px;left:260px">{{ list.operationCostTotal }}</div>
|
69
|
69
|
<div style="position: absolute;top:220px;left:340px">输血费</div>
|
70
|
|
- <div style="position: absolute;top:220px;left:420px">{{ list.operationCostTotal }}</div>
|
|
70
|
+ <div style="position: absolute;top:220px;left:420px"></div>
|
71
|
71
|
<div style="position: absolute;top:220px;left:500px">取暖费</div>
|
72
|
|
- <div style="position: absolute;top:220px;left:580px">{{ list.otherCostTotal }}</div>
|
|
72
|
+ <div style="position: absolute;top:220px;left:580px"></div>
|
73
|
73
|
</div>
|
74
|
74
|
<div style="display:flex;justify-content: space-between;">
|
75
|
75
|
<div style="position: absolute;top:250px;left:40px">高压氧费</div>
|
76
|
|
- <div style="position: absolute;top:250px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
|
|
76
|
+ <div style="position: absolute;top:250px;left:110px"></div>
|
77
|
77
|
<div style="position: absolute;top:250px;left:180px">化验费</div>
|
78
|
78
|
<div style="position: absolute;top:250px;left:260px">{{ list.laboratoryCostTotal }}</div>
|
79
|
79
|
<div style="position: absolute;top:250px;left:340px">氧气费</div>
|
80
|
|
- <div style="position: absolute;top:250px;left:420px">{{ list.operationCostTotal }}</div>
|
|
80
|
+ <div style="position: absolute;top:250px;left:420px"></div>
|
81
|
81
|
<div style="position: absolute;top:250px;left:500px">其他</div>
|
82
|
82
|
<div style="position: absolute;top:250px;left:580px">{{ list.otherCostTotal }}</div>
|
83
|
83
|
</div>
|
|
@@ -139,57 +139,63 @@
|
139
|
139
|
|
140
|
140
|
<div style="position: absolute;top:310px;left:320px">
|
141
|
141
|
<!-- 个人账户支付 -->
|
|
142
|
+ {{list.order.acct_pay?list.order.acct_pay:''}}
|
142
|
143
|
</div>
|
143
|
144
|
<div style="position: absolute;top:310px;left:380px">
|
144
|
145
|
<!-- 统筹支付 -->
|
145
|
|
-
|
|
146
|
+ {{list.order.hifp_pay?list.order.hifp_pay:''}}
|
146
|
147
|
</div>
|
147
|
148
|
<div style="position: absolute;top:310px;left:500px">
|
148
|
|
- <!-- 现金支付 -->
|
|
149
|
+ {{list.order.psn_cash_pay?list.order.psn_cash_pay:''}}
|
|
150
|
+ <!-- 现金支付 -->
|
149
|
151
|
</div>
|
150
|
152
|
<div style="position: absolute;top:340px;left:320px">
|
151
|
|
- <!-- 公务员补助 -->
|
|
153
|
+ {{list.order.cvlserv_pay?list.order.cvlserv_pay:''}}
|
|
154
|
+ <!-- 公务员补助 -->
|
152
|
155
|
</div>
|
153
|
156
|
<div style="position: absolute;top:340px;left:380px">
|
154
|
|
- <!-- 医疗救助 -->
|
155
|
|
-
|
|
157
|
+ {{list.order.maf_pay?list.order.maf_pay:''}}
|
|
158
|
+ <!-- 医疗救助 -->
|
156
|
159
|
</div>
|
157
|
160
|
<div style="position: absolute;top:340px;left:500px">
|
158
|
161
|
<!-- 大病 -->
|
159
|
|
-
|
|
162
|
+ {{list.order.hifmi_pay?list.order.hifmi_pay:''}}
|
|
163
|
+
|
|
164
|
+
|
160
|
165
|
</div>
|
161
|
166
|
<div style="position: absolute;top:340px;left:560px">
|
162
|
167
|
<!-- 其他基金支付 -->
|
163
|
|
-
|
|
168
|
+ {{list.order.oth_pay?list.order.oth_pay:''}}
|
|
169
|
+
|
164
|
170
|
</div>
|
165
|
171
|
<div style="position: absolute;top:370px;left:320px">
|
166
|
172
|
<!-- 预交款合计 -->
|
167
|
|
-
|
|
173
|
+
|
168
|
174
|
</div>
|
169
|
175
|
<div style="position: absolute;top:370px;left:380px">
|
170
|
176
|
<!-- 补交款 -->
|
171
|
|
-
|
172
|
177
|
</div>
|
173
|
178
|
<div style="position: absolute;top:370px;left:500px">
|
174
|
179
|
<!-- 应退款 -->
|
175
|
|
-
|
176
|
180
|
</div>
|
177
|
181
|
<div>
|
178
|
182
|
<div style="position: absolute;top:400px;left:40px">
|
179
|
183
|
<!-- 开票日期 -->
|
180
|
|
-
|
|
184
|
+ {{printDate}}
|
|
185
|
+
|
181
|
186
|
</div>
|
182
|
187
|
<div style="position: absolute;top:400px;left:280px">
|
183
|
188
|
<!-- 结算日期: -->
|
|
189
|
+ {{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
|
184
|
190
|
</div>
|
185
|
191
|
<div style="position: absolute;top:400px;left:580px">
|
186
|
192
|
<!-- 经手人: -->
|
|
193
|
+ {{list.admin_user_name}}
|
187
|
194
|
</div>
|
188
|
195
|
</div>
|
189
|
196
|
</div>
|
190
|
197
|
</template>
|
191
|
198
|
|
192
|
|
-
|
193
|
199
|
<script>
|
194
|
200
|
import { getInvoice } from '@/api/project/project'
|
195
|
201
|
export default {
|
|
@@ -222,6 +228,19 @@ export default {
|
222
|
228
|
this.org_name = this.$store.getters.xt_user.org.org_name
|
223
|
229
|
},
|
224
|
230
|
methods:{
|
|
231
|
+ getDay(dateString1,dateString2){
|
|
232
|
+ var startDate = Date.parse(dateString1);
|
|
233
|
+ var endDate = Date.parse(dateString2);
|
|
234
|
+ if (startDate>endDate){
|
|
235
|
+ return 0;
|
|
236
|
+ }
|
|
237
|
+ if (startDate==endDate){
|
|
238
|
+ return 1;
|
|
239
|
+ }
|
|
240
|
+ var days=(endDate - startDate)/(1*24*60*60*1000);
|
|
241
|
+ return days;
|
|
242
|
+
|
|
243
|
+ },
|
225
|
244
|
getInvoice(params){
|
226
|
245
|
getInvoice(params).then((res) => {
|
227
|
246
|
console.log('res',res)
|