|
@@ -0,0 +1,222 @@
|
|
1
|
+<template>
|
|
2
|
+ <div id="list-print" class="list-print">
|
|
3
|
+ <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
|
|
4
|
+ <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
|
|
5
|
+ <div class="listInfo">
|
|
6
|
+ <div>患者姓名:{{patient.name}}</div>
|
|
7
|
+ <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
|
|
8
|
+ <div>身份证号:{{patient.id_card_no}}</div>
|
|
9
|
+ <div>年龄:{{patient.age}} 岁</div>
|
|
10
|
+ <div>开方日期:{{getTimes(order.ctime)}}</div>
|
|
11
|
+ </div>
|
|
12
|
+ <div class="listInfo">
|
|
13
|
+ <div>结算类型:{{order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
|
|
14
|
+ <div>就诊流水号:{{ order.mdtrt_id }}</div>
|
|
15
|
+ <div>透析号:{{patient.dialysis_no}}</div>
|
|
16
|
+ <div>发票号:{{order.fa_piao_number}}</div>
|
|
17
|
+ </div>
|
|
18
|
+ <div class="listInfo">
|
|
19
|
+ <div>总金额:{{ order.medfee_sumamt }}</div>
|
|
20
|
+ <div>个人支付金额:{{ order.psn_part_amt }}</div>
|
|
21
|
+ <div>基金支付金额:{{ order.fund_pay_sumamt }}</div>
|
|
22
|
+ <div>收费日期:{{getTimes(order.settle_accounts_date)}}</div>
|
|
23
|
+ </div>
|
|
24
|
+
|
|
25
|
+ <table class="listTable" style="text-align: center;">
|
|
26
|
+ <tr style="border-bottom: 1px solid black;">
|
|
27
|
+ <td style="width:30%">医保编码</td>
|
|
28
|
+ <td style="width:25%">项目名称</td>
|
|
29
|
+ <td style="width:15%">规格</td>
|
|
30
|
+ <td style="width:5%">数量</td>
|
|
31
|
+ <td style="width:5%">单位</td>
|
|
32
|
+ <td style="width:8%">单价(元)</td>
|
|
33
|
+ <td style="width:8%">金额(元)</td>
|
|
34
|
+ </tr>
|
|
35
|
+ <tr v-for="(item,index) in list" style="line-height: 30px;">
|
|
36
|
+ <!-- <template v-if="index == (list.length)-1">
|
|
37
|
+ <tr style="border-bottom: 1px solid black;"></tr>
|
|
38
|
+ </template> -->
|
|
39
|
+ <td style="width:30%">{{item.code}}</td>
|
|
40
|
+ <td style="width:25%">{{item.name}}</td>
|
|
41
|
+ <td style="width:15%">{{item.spec}}</td>
|
|
42
|
+ <td style="width:5%">{{item.count}}</td>
|
|
43
|
+ <td style="width:5%">{{item.unit}}</td>
|
|
44
|
+ <td style="width:8%">{{(item.price*1).toFixed(2)}}</td>
|
|
45
|
+ <td style="width:8%">{{(item.price * item.count).toFixed(2)}}</td>
|
|
46
|
+ </tr>
|
|
47
|
+ </table>
|
|
48
|
+ <div style="border-top: 1px solid black;">
|
|
49
|
+ <div style="text-align: right;">
|
|
50
|
+ 合计金额:{{order.medfee_sumamt}}
|
|
51
|
+ </div>
|
|
52
|
+ </div>
|
|
53
|
+ </div>
|
|
54
|
+ </div>
|
|
55
|
+</template>
|
|
56
|
+
|
|
57
|
+<script>
|
|
58
|
+import { uParseTime } from '@/utils/tools'
|
|
59
|
+
|
|
60
|
+export default {
|
|
61
|
+ props: {
|
|
62
|
+ list: {
|
|
63
|
+ type: Array,
|
|
64
|
+ default: function () {
|
|
65
|
+ return [];
|
|
66
|
+ }
|
|
67
|
+ },
|
|
68
|
+ patient: {
|
|
69
|
+ type: Object,
|
|
70
|
+ default: function () {
|
|
71
|
+ return {};
|
|
72
|
+ }
|
|
73
|
+ }, order: {
|
|
74
|
+ type: Object,
|
|
75
|
+ default: function () {
|
|
76
|
+ return {};
|
|
77
|
+ }
|
|
78
|
+ }, admin: {
|
|
79
|
+ type: Object,
|
|
80
|
+ default: function () {
|
|
81
|
+ return {};
|
|
82
|
+ }
|
|
83
|
+ },
|
|
84
|
+ },
|
|
85
|
+ data(){
|
|
86
|
+ return{
|
|
87
|
+ page:1,
|
|
88
|
+ pageArr:[],
|
|
89
|
+ org_id:'',
|
|
90
|
+ list:[]
|
|
91
|
+ }
|
|
92
|
+ },
|
|
93
|
+ // mounted(){
|
|
94
|
+ // this.getPage()
|
|
95
|
+ // },
|
|
96
|
+ methods:{
|
|
97
|
+ getMedicineInsuranceKind(type){
|
|
98
|
+ switch (type) {
|
|
99
|
+ case "01":
|
|
100
|
+ return '甲类';
|
|
101
|
+ case "02":
|
|
102
|
+ return '乙类';
|
|
103
|
+ case "03":
|
|
104
|
+ return '自费';
|
|
105
|
+ break;
|
|
106
|
+ }
|
|
107
|
+
|
|
108
|
+ },
|
|
109
|
+ getNowTime: function () {
|
|
110
|
+ let dateTime
|
|
111
|
+ let yy = new Date().getFullYear()
|
|
112
|
+ let mm = new Date().getMonth() + 1
|
|
113
|
+ let dd = new Date().getDate()
|
|
114
|
+ let hh = new Date().getHours()
|
|
115
|
+ let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
|
|
116
|
+ :
|
|
117
|
+ new Date().getMinutes()
|
|
118
|
+ let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
|
|
119
|
+ :
|
|
120
|
+ new Date().getSeconds()
|
|
121
|
+ dateTime = yy + '-' + mm + '-' + dd
|
|
122
|
+ return dateTime
|
|
123
|
+ },
|
|
124
|
+ getTimes(time) {
|
|
125
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
|
126
|
+ },
|
|
127
|
+ getPage(){
|
|
128
|
+
|
|
129
|
+ if(this.list.length <= 17){
|
|
130
|
+ this.page = 1
|
|
131
|
+ this.pageArr.push(this.list.length)
|
|
132
|
+ }else if(this.list.length > 17){
|
|
133
|
+ this.page = parseInt(this.list.length / 17)
|
|
134
|
+ let num = this.list.length % 17
|
|
135
|
+ for (var i=0;i<this.page;i++){
|
|
136
|
+ this.pageArr.push(17)
|
|
137
|
+ }
|
|
138
|
+ if(num != 0){
|
|
139
|
+ this.pageArr.push(num)
|
|
140
|
+ }
|
|
141
|
+ }
|
|
142
|
+
|
|
143
|
+ console.log('this.pageArr',this.pageArr);
|
|
144
|
+ },
|
|
145
|
+ getlist(){
|
|
146
|
+ // if(this.list.length <= 17){
|
|
147
|
+ this.page = 1
|
|
148
|
+ this.pageArr.push(this.list.length)
|
|
149
|
+ console.log('this.pageArr',this.pageArr);
|
|
150
|
+ // }else if(this.list.length > 17){
|
|
151
|
+ // this.page = parseInt(this.list.length / 17)
|
|
152
|
+ // let num = this.list.length % 17
|
|
153
|
+ // for (var i=0;i<this.page;i++){
|
|
154
|
+ // this.pageArr.push(17)
|
|
155
|
+ // }
|
|
156
|
+ // if(num != 0){
|
|
157
|
+ // this.pageArr.push(num)
|
|
158
|
+ // }
|
|
159
|
+ // }
|
|
160
|
+ }
|
|
161
|
+ },
|
|
162
|
+ created(){
|
|
163
|
+
|
|
164
|
+ this.org_id = this.$store.getters.xt_user.org_id
|
|
165
|
+ },
|
|
166
|
+ watch:{
|
|
167
|
+ list: {
|
|
168
|
+ handler(newVal) {
|
|
169
|
+ // this.list = newVal
|
|
170
|
+ this.getPage()
|
|
171
|
+ // this.getlist()
|
|
172
|
+ },
|
|
173
|
+ deep: true
|
|
174
|
+ }
|
|
175
|
+ }
|
|
176
|
+
|
|
177
|
+}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+</script>
|
|
181
|
+
|
|
182
|
+<style lang="scss" scoped>
|
|
183
|
+.list-print{
|
|
184
|
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
185
|
+ -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
186
|
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
187
|
+ margin-bottom: 20px;
|
|
188
|
+ padding:20px 10px;
|
|
189
|
+}
|
|
190
|
+.listTitle{
|
|
191
|
+ font-size: 24px;
|
|
192
|
+ text-align: center;
|
|
193
|
+ font-weight: bold;
|
|
194
|
+ margin-bottom: 10px;
|
|
195
|
+}
|
|
196
|
+.listInfo{
|
|
197
|
+ display: flex;
|
|
198
|
+ font-size: 16px;
|
|
199
|
+ justify-content: space-between;
|
|
200
|
+ margin: 10px 0;
|
|
201
|
+}
|
|
202
|
+.listTable{
|
|
203
|
+ width: 100%;
|
|
204
|
+ text-align: center;
|
|
205
|
+ border-collapse: collapse;
|
|
206
|
+ line-height: 20px;
|
|
207
|
+ font-size: 14px;
|
|
208
|
+ border-color: #000;
|
|
209
|
+ text-align: left;
|
|
210
|
+}
|
|
211
|
+.listTable tr td {
|
|
212
|
+ padding: 0 5px;
|
|
213
|
+}
|
|
214
|
+.tableBottom{
|
|
215
|
+ font-size: 12px;
|
|
216
|
+ display: flex;
|
|
217
|
+ margin-top: 20px;
|
|
218
|
+}
|
|
219
|
+.tableBottomOne{
|
|
220
|
+ margin-right: 20px;
|
|
221
|
+}
|
|
222
|
+</style>
|