|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
3
|
|
- <div id='prescription-print' class="prescription-print">
|
|
3
|
+ <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print">
|
4
|
4
|
<div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
|
5
|
5
|
<div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
|
6
|
6
|
<div class="infoMain">
|
|
@@ -133,12 +133,118 @@
|
133
|
133
|
</div>
|
134
|
134
|
|
135
|
135
|
</div>
|
|
136
|
+ <div v-else id='prescription-print' class="prescription-print">
|
|
137
|
+ <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
|
|
138
|
+ <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
|
|
139
|
+ <div class="infoMain">
|
|
140
|
+ <div class="infoP">医院(药店)编号:{{balanceAccounts.org_config.code}}</div>
|
|
141
|
+ <div class="infoP">名称:{{balanceAccounts.org_config.org_name}}</div>
|
|
142
|
+ <div class="infoP">医生工号:</div>
|
|
143
|
+ <div class="infoP">门诊流水号:{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</div>
|
|
144
|
+ <div class="infoP">科别: {{balanceAccounts.order.department_name ? balanceAccounts.order.department_name : ''}}</div>
|
|
145
|
+ <div class="infoP">处方单据号:{{balanceAccounts.order.number ? balanceAccounts.order.number : ''}}</div>
|
|
146
|
+ <div class="infoP">姓名:{{balanceAccounts.patient ? balanceAccounts.patient.name : ''}}</div>
|
|
147
|
+ <div class="infoP">医疗账号:</div>
|
|
148
|
+ <div class="infoP">医疗类别:自费</div>
|
|
149
|
+ </div>
|
|
150
|
+ <div class="chargeBox">
|
|
151
|
+ <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
|
|
152
|
+ <div class="chargeUl" style="width:20%;">
|
|
153
|
+ <p style="width:50%;border-right:1px solid #000;">费用类型</p>
|
|
154
|
+ <p style="width:50%;border-right:1px solid #000;">金额</p>
|
|
155
|
+ </div>
|
|
156
|
+ <div class="chargeUl" style="width:80%;">
|
|
157
|
+ <p style="width:40%;border-right:1px solid #000;">明细名称</p>
|
|
158
|
+ <p style="width:15%;border-right:1px solid #000;">规格</p>
|
|
159
|
+ <p style="width:15%;border-right:1px solid #000;">数量</p>
|
|
160
|
+ <p style="width:15%;border-right:1px solid #000;">单价</p>
|
|
161
|
+ <p style="width:15%;">金额</p>
|
|
162
|
+ </div>
|
|
163
|
+ </div>
|
|
164
|
+ <div style="display:flex;justify-content: space-between;">
|
|
165
|
+ <div style="width:20%;">
|
|
166
|
+ <div class="chargeUl" v-for="(item,i) in balanceAccounts.new_detail_list" :key="i">
|
|
167
|
+ <p style="width:50%;">
|
|
168
|
+ <span v-if="item.type == 1">药品费</span>
|
|
169
|
+ <span v-if="item.type == 2">治疗费</span>
|
|
170
|
+ <span v-if="item.type == 3">耗材费</span>
|
|
171
|
+ </p>
|
|
172
|
+ <p style="width:50%;">{{item.total?item.total:0}}元</p>
|
|
173
|
+ </div>
|
|
174
|
+ <div class="chargeUl" style="border-top:1px solid #000;">
|
|
175
|
+ <p style="width:50%;">费用合计</p>
|
|
176
|
+ <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
|
|
177
|
+ </div>
|
|
178
|
+ <div class="chargeUl" style="border-top:1px solid #000;">
|
|
179
|
+ <p style="width:50%;">记账支付</p>
|
|
180
|
+ <p style="width:50%;">0元</p>
|
|
181
|
+ </div>
|
|
182
|
+ <div class="chargeUl" style="border-top:1px solid #000;">
|
|
183
|
+ <p style="width:50%;">个人账号</p>
|
|
184
|
+ <p style="width:50%;">0元</p>
|
|
185
|
+ </div>
|
|
186
|
+ <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
|
|
187
|
+ <p style="width:50%;">现金支付</p>
|
|
188
|
+ <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
|
|
189
|
+ </div>
|
|
190
|
+ </div>
|
|
191
|
+ <div style="width:80%;max-height:500px;">
|
|
192
|
+ <div style="display:flex;" v-for="(item,i) in balanceAccounts.order_info.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
|
|
193
|
+ <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
|
|
194
|
+ <p class="chargeP">
|
|
195
|
+ <span v-if='item.advice_id > 0'>{{item.advice.advice_name}}</span>
|
|
196
|
+ <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
|
|
197
|
+ <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
|
|
198
|
+ </p>
|
|
199
|
+ </div>
|
|
200
|
+ <div style="border-right:1px solid #000;width:15%;text-align:center;">
|
|
201
|
+ <p class="chargeP">
|
|
202
|
+ <span v-if='item.advice_id > 0'>{{item.advice.drug.drug_spec}}</span>
|
|
203
|
+ <span v-if='item.project.type == 2'>{{item.project.project.unit}}</span>
|
|
204
|
+ <span v-if='item.project.type == 3'>{{item.project.unit}}</span>
|
|
205
|
+ </p>
|
|
206
|
+ </div>
|
|
207
|
+ <div style="border-right:1px solid #000;width:15%;text-align:center;">
|
|
208
|
+ <p class="chargeP">
|
|
209
|
+ <span>{{item.cnt}}次</span>
|
|
210
|
+ </p>
|
|
211
|
+ </div>
|
|
212
|
+ <div style="border-right:1px solid #000;width:15%;text-align:center;">
|
|
213
|
+ <p class="chargeP">
|
|
214
|
+ <span>{{item.pric}}元</span>
|
|
215
|
+ </p>
|
|
216
|
+ </div>
|
|
217
|
+ <div style="width:15%;text-align:center;">
|
|
218
|
+ <p class="chargeP">
|
|
219
|
+ <span>{{item.cnt * item.pric}}元</span>
|
|
220
|
+ </p>
|
|
221
|
+ </div>
|
|
222
|
+ </div>
|
|
223
|
+ </div>
|
|
224
|
+ </div>
|
|
225
|
+
|
|
226
|
+ </div>
|
|
227
|
+ <div class="moneyBox">
|
|
228
|
+ <p>实收金:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
|
|
229
|
+ <p>记账前金额:{{0.00}}元</p>
|
|
230
|
+ <p>扣款金额:{{0.00}}元</p>
|
|
231
|
+ <p>记账后金额:{{0.00}}元</p>
|
|
232
|
+ <p>找赎金:{{0.00}}元</p>
|
|
233
|
+ </div>
|
|
234
|
+ <div class="actionBar">
|
|
235
|
+ <div>收费员:{{balanceAccounts.current_admin.user_name}}</div>
|
|
236
|
+ <div>日期:{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</div>
|
|
237
|
+ </div>
|
|
238
|
+ </div>
|
|
239
|
+
|
|
240
|
+ </div>
|
136
|
241
|
</div>
|
137
|
242
|
|
138
|
243
|
</template>
|
139
|
244
|
<script>
|
140
|
245
|
import axios from 'axios'
|
141
|
246
|
import { getChargePrint } from '@/api/project/project'
|
|
247
|
+ import { uParseTime } from '@/utils/tools'
|
142
|
248
|
|
143
|
249
|
export default {
|
144
|
250
|
data() {
|
|
@@ -166,7 +272,9 @@
|
166
|
272
|
}
|
167
|
273
|
},
|
168
|
274
|
props: {
|
169
|
|
- info: Object
|
|
275
|
+ paramsObj: Object,
|
|
276
|
+ info: Object,
|
|
277
|
+ balanceAccounts:Object
|
170
|
278
|
},
|
171
|
279
|
methods: {
|
172
|
280
|
getItemName(number) {
|
|
@@ -278,22 +386,48 @@
|
278
|
386
|
|
279
|
387
|
},
|
280
|
388
|
getPage(){
|
281
|
|
- this.page = 1
|
282
|
|
- this.pageArr = []
|
283
|
|
- if(this.info.order_infos.length <= 13){
|
284
|
|
- this.page = 1
|
285
|
|
- this.pageArr.push(this.info.order_infos.length)
|
286
|
|
- console.log('this.pageArr',this.pageArr)
|
287
|
|
- }else if(this.info.order_infos.length > 13){
|
288
|
|
- this.page = parseInt(this.info.order_infos.length / 13)
|
289
|
|
- let num = this.info.order_infos.length % 13
|
290
|
|
- for (var i=0;i<this.page;i++){
|
291
|
|
- this.pageArr.push(13)
|
292
|
|
- }
|
293
|
|
- if(num != 0){
|
294
|
|
- this.pageArr.push(num)
|
295
|
|
- }
|
|
389
|
+ if(this.paramsObj.balance_accounts_type != 2){
|
|
390
|
+ this.page = 1
|
|
391
|
+ this.pageArr = []
|
|
392
|
+ if(this.info.order_infos.length <= 13){
|
|
393
|
+ this.page = 1
|
|
394
|
+ this.pageArr.push(this.info.order_infos.length)
|
|
395
|
+ console.log('this.pageArr',this.pageArr)
|
|
396
|
+ }else if(this.info.order_infos.length > 13){
|
|
397
|
+ this.page = parseInt(this.info.order_infos.length / 13)
|
|
398
|
+ let num = this.info.order_infos.length % 13
|
|
399
|
+ for (var i=0;i<this.page;i++){
|
|
400
|
+ this.pageArr.push(13)
|
|
401
|
+ }
|
|
402
|
+ if(num != 0){
|
|
403
|
+ this.pageArr.push(num)
|
|
404
|
+ }
|
|
405
|
+ }
|
|
406
|
+ }else{
|
|
407
|
+ this.page = 1
|
|
408
|
+ this.pageArr = []
|
|
409
|
+ if(this.balanceAccounts.order_info.length <= 13){
|
|
410
|
+ this.page = 1
|
|
411
|
+ this.pageArr.push(this.balanceAccounts.order_info.length)
|
|
412
|
+ console.log('this.pageArr',this.pageArr)
|
|
413
|
+ }else if(this.balanceAccounts.order_info.length > 13){
|
|
414
|
+ this.page = parseInt(this.balanceAccounts.order_info.length / 13)
|
|
415
|
+ let num = this.balanceAccounts.order_info.length % 13
|
|
416
|
+ for (var i=0;i<this.page;i++){
|
|
417
|
+ this.pageArr.push(13)
|
|
418
|
+ }
|
|
419
|
+ if(num != 0){
|
|
420
|
+ this.pageArr.push(num)
|
|
421
|
+ }
|
|
422
|
+ }
|
|
423
|
+ }
|
|
424
|
+
|
|
425
|
+ },
|
|
426
|
+ getTime(value, temp) {
|
|
427
|
+ if (value != undefined) {
|
|
428
|
+ return uParseTime(value, temp)
|
296
|
429
|
}
|
|
430
|
+ return ''
|
297
|
431
|
}
|
298
|
432
|
},
|
299
|
433
|
created() {
|
|
@@ -306,7 +440,11 @@
|
306
|
440
|
this.getPage()
|
307
|
441
|
},
|
308
|
442
|
deep: true,
|
309
|
|
- }
|
|
443
|
+ },
|
|
444
|
+ balanceAccounts(){
|
|
445
|
+ this.getPage()
|
|
446
|
+ },
|
|
447
|
+ deep: true
|
310
|
448
|
}
|
311
|
449
|
|
312
|
450
|
}
|