|
@@ -1,18 +1,18 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
3
|
3
|
<div id='prescription-print' class="prescription-print">
|
4
|
|
- <div>
|
|
4
|
+ <div v-for='(i,index) in pageArr.length'>
|
5
|
5
|
<div class="printTitle"> 血液透析中心医药费收据及收费项目清单</div>
|
6
|
6
|
<div class="infoMain">
|
7
|
7
|
<div class="infoP">医院(药店)编号:{{info.org_code}}</div>
|
8
|
8
|
<div class="infoP">名称:{{info.org_name}}</div>
|
9
|
9
|
<div class="infoP">医生工号:{{info.doctor_code}}</div>
|
10
|
10
|
<div class="infoP">门诊流水号:{{info.transBody.akc190}}</div>
|
11
|
|
- <div class="infoP">科别: 全科</div>
|
|
11
|
+ <div class="infoP">科别: {{info.department}}</div>
|
12
|
12
|
<div class="infoP">处方单据号:{{info.order_number}}</div>
|
13
|
13
|
<div class="infoP">姓名:{{info.patient_name}}</div>
|
14
|
14
|
<div class="infoP">医疗账号:{{info.health_card_no}}</div>
|
15
|
|
- <div class="infoP">医疗类别:普通</div>
|
|
15
|
+ <div class="infoP">医疗类别:{{info.yiliao_leibie}}</div>
|
16
|
16
|
</div>
|
17
|
17
|
<div class="chargeBox">
|
18
|
18
|
<div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
|
|
@@ -32,55 +32,55 @@
|
32
|
32
|
<div style="width:20%;">
|
33
|
33
|
<div class="chargeUl" v-for="(item,index) in info.transBody.outputlist2" :key="index">
|
34
|
34
|
<p style="width:50%;">{{getItemName(item.aka111)}}</p>
|
35
|
|
- <p style="width:50%;">{{item.bka058}}</p>
|
|
35
|
+ <p style="width:50%;">{{item.bka058?item.bka058:0}}元</p>
|
36
|
36
|
</div>
|
37
|
37
|
<div class="chargeUl" style="border-top:1px solid #000;">
|
38
|
38
|
<p style="width:50%;">费用合计</p>
|
39
|
|
- <p style="width:50%;">{{info.transBody.akc264}}</p>
|
|
39
|
+ <p style="width:50%;">{{info.transBody.akc264?info.transBody.akc264:0}}元</p>
|
40
|
40
|
</div>
|
41
|
41
|
<div class="chargeUl" style="border-top:1px solid #000;">
|
42
|
42
|
<p style="width:50%;">记账支付</p>
|
43
|
|
- <p style="width:50%;">{{info.transBody.akb068}}</p>
|
|
43
|
+ <p style="width:50%;">{{info.transBody.akb068?info.transBody.akb068:0}}元</p>
|
44
|
44
|
</div>
|
45
|
45
|
<div class="chargeUl" style="border-top:1px solid #000;">
|
46
|
46
|
<p style="width:50%;">个人账号</p>
|
47
|
|
- <p style="width:50%;">{{info.transBody.akc266}}</p>
|
|
47
|
+ <p style="width:50%;">{{info.transBody.akc266?info.transBody.akc266:0}}元</p>
|
48
|
48
|
</div>
|
49
|
49
|
<div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
|
50
|
50
|
<p style="width:50%;">现金支付</p>
|
51
|
|
- <p style="width:50%;">{{info.transBody.akb067}}</p>
|
|
51
|
+ <p style="width:50%;">{{info.transBody.akb067?info.transBody.akb067:0}}元</p>
|
52
|
52
|
</div>
|
53
|
53
|
</div>
|
54
|
|
- <div style="width:80%;display:flex;height:300px;">
|
|
54
|
+ <div style="width:80%;display:flex;max-height:500px;">
|
55
|
55
|
|
56
|
56
|
<div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
|
57
|
|
- <p v-for="(item,i) in info.name_arr" :key="i" class="chargeP">
|
|
57
|
+ <p v-for="(item,i) in info.name_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="i" class="chargeP">
|
58
|
58
|
{{item}}</p>
|
59
|
59
|
</div>
|
60
|
60
|
<div style="border-right:1px solid #000;width:15%;text-align:center;">
|
61
|
|
- <p v-for="(item,y) in info.spec_arr" :key="y" class="chargeP">
|
|
61
|
+ <p v-for="(item,y) in info.spec_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="y" class="chargeP">
|
62
|
62
|
{{item}}</p>
|
63
|
63
|
</div>
|
64
|
64
|
<div style="border-right:1px solid #000;width:15%;text-align:center;">
|
65
|
|
- <p v-for="(item,z) in info.count_arr" :key="z" class="chargeP">
|
|
65
|
+ <p v-for="(item,z) in info.count_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="z" class="chargeP">
|
66
|
66
|
{{item}}次</p>
|
67
|
67
|
</div>
|
68
|
68
|
<div style="border-right:1px solid #000;width:15%;text-align:center;">
|
69
|
|
- <p v-for="(item,f) in info.price_arr" :key="f" class="chargeP">{{item}}</p>
|
|
69
|
+ <p v-for="(item,f) in info.price_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="f" class="chargeP">{{item}}元</p>
|
70
|
70
|
</div>
|
71
|
71
|
<div style="width:15%;text-align:center;">
|
72
|
|
- <p v-for="(item,d) in info.total_arr" :key="d" class="chargeP">{{item}}</p>
|
|
72
|
+ <p v-for="(item,d) in info.total_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="d" class="chargeP">{{item}}元</p>
|
73
|
73
|
</div>
|
74
|
74
|
</div>
|
75
|
75
|
</div>
|
76
|
76
|
|
77
|
77
|
</div>
|
78
|
78
|
<div class="moneyBox">
|
79
|
|
- <p>实收金:{{info.transBody.akc264}}</p>
|
80
|
|
- <p>记账前金额:{{0.00}}</p>
|
81
|
|
- <p>扣款金额:{{0.00}}</p>
|
82
|
|
- <p>记账后金额:{{0.00}}</p>
|
83
|
|
- <p>找赎金:{{0.00}}</p>
|
|
79
|
+ <p>实收金:{{info.transBody.akc264}}元</p>
|
|
80
|
+ <p>记账前金额:{{0.00}}元</p>
|
|
81
|
+ <p>扣款金额:{{0.00}}元</p>
|
|
82
|
+ <p>记账后金额:{{0.00}}元</p>
|
|
83
|
+ <p>找赎金:{{0.00}}元</p>
|
84
|
84
|
</div>
|
85
|
85
|
<div class="actionBar">
|
86
|
86
|
<div>收费员:{{info.doctor_name}}</div>
|
|
@@ -114,7 +114,10 @@
|
114
|
114
|
spec_arr: [],
|
115
|
115
|
count_arr: [],
|
116
|
116
|
price_arr: [],
|
117
|
|
- total_arr: []
|
|
117
|
+ total_arr: [],
|
|
118
|
+
|
|
119
|
+ page:1,
|
|
120
|
+ pageArr:[],
|
118
|
121
|
|
119
|
122
|
}
|
120
|
123
|
},
|
|
@@ -230,11 +233,34 @@
|
230
|
233
|
}
|
231
|
234
|
|
232
|
235
|
},
|
|
236
|
+ getPage(){
|
|
237
|
+ if(this.info.name_arr.length <= 13){
|
|
238
|
+ this.page = 1
|
|
239
|
+ this.pageArr.push(this.info.name_arr.length)
|
|
240
|
+ }else if(this.info.name_arr.length > 13){
|
|
241
|
+ this.page = parseInt(this.info.name_arr.length / 13)
|
|
242
|
+ let num = this.info.name_arr.length % 13
|
|
243
|
+ for (var i=0;i<this.page;i++){
|
|
244
|
+ this.pageArr.push(13)
|
|
245
|
+ }
|
|
246
|
+ if(num != 0){
|
|
247
|
+ this.pageArr.push(num)
|
|
248
|
+ }
|
|
249
|
+ }
|
|
250
|
+ }
|
233
|
251
|
},
|
234
|
252
|
created() {
|
235
|
253
|
|
236
|
254
|
|
237
|
255
|
},
|
|
256
|
+ watch:{
|
|
257
|
+ info: {
|
|
258
|
+ handler(newVal) {
|
|
259
|
+ this.getPage()
|
|
260
|
+ },
|
|
261
|
+ deep: true
|
|
262
|
+ }
|
|
263
|
+ }
|
238
|
264
|
|
239
|
265
|
}
|
240
|
266
|
</script>
|