|
@@ -0,0 +1,633 @@
|
|
1
|
+<template>
|
|
2
|
+ <div>
|
|
3
|
+ <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print" style="position: relative;">
|
|
4
|
+ <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
|
|
5
|
+ <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
|
|
6
|
+ <div style="display:flex;">
|
|
7
|
+ <div>单据号:<span style="display:inline-block;width:200px;">{{info.order_number ? info.order_number : ''}}</span></div>
|
|
8
|
+ <div>透析号:<span style="display:inline-block;width:200px;">{{info.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span></div>
|
|
9
|
+ </div>
|
|
10
|
+ <div style="display:flex;justify-content: space-between;">
|
|
11
|
+ <div style="display:flex;">
|
|
12
|
+ <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient.name ? info.patient.name.indexOf("(") > -1 ? info.patient.name.substring(0,info.patient.name.indexOf("(")) : info.patient.name : ''}}</span></div>
|
|
13
|
+ <div>性别:<span style="display:inline-block;width:30px;">{{info.patient.gender == '1' ? '男' : '女'}}</span></div>
|
|
14
|
+ <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient.age ? info.patient.age : ''}}岁</span></div>
|
|
15
|
+ <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
|
|
16
|
+ </div>
|
|
17
|
+ <div style="margin-left:2px;">电脑号:<span style="display:inline-block;width:80px;">{{info.psn_no ? info.psn_no : ''}}</span></div>
|
|
18
|
+ <div>收费日期:<span style="display:inline-block;width:100px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span></div>
|
|
19
|
+ </div>
|
|
20
|
+ <div style="float:right">金额单位:元</div>
|
|
21
|
+ </div>
|
|
22
|
+ <div style="min-height: 300px;">
|
|
23
|
+ <table border='1' style="width:100%;" cellspacing="0">
|
|
24
|
+ <tr>
|
|
25
|
+ <td width="70">类别</td>
|
|
26
|
+ <td>项目</td>
|
|
27
|
+ <td min-width="180" style="min-width:60px;">规格</td>
|
|
28
|
+ <td width="40">单位</td>
|
|
29
|
+ <td width="40">数量</td>
|
|
30
|
+ <td width="60">单价</td>
|
|
31
|
+ <td width="70">总额</td>
|
|
32
|
+ <td width="130">小计</td>
|
|
33
|
+ </tr>
|
|
34
|
+ <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
|
|
35
|
+ <tr v-for="(subItem,index) in item.details" :key="index">
|
|
36
|
+ <td>
|
|
37
|
+ <span v-if="item.type == 1">药品费</span>
|
|
38
|
+ <span v-if="item.type == 2">治疗费</span>
|
|
39
|
+ <span v-if="item.type == 3">耗材费</span>
|
|
40
|
+ </td>
|
|
41
|
+ <td>
|
|
42
|
+ <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
|
|
43
|
+ <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
|
|
44
|
+ <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
|
|
45
|
+ </td>
|
|
46
|
+ <td>
|
|
47
|
+ <span v-if="item.type == 1"><span v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}} * </span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
|
|
48
|
+ <span v-if="item.type == 2"></span>
|
|
49
|
+ <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
|
|
50
|
+ </td>
|
|
51
|
+ <td>
|
|
52
|
+ <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
|
|
53
|
+ <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
|
|
54
|
+ <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
|
|
55
|
+ </td>
|
|
56
|
+ <td>
|
|
57
|
+ <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
|
|
58
|
+ <span v-if="item.type == 2">{{ subItem.project.count }}</span>
|
|
59
|
+ <span v-if="item.type == 3">{{ subItem.project.count }}</span>
|
|
60
|
+ </td>
|
|
61
|
+ <td>
|
|
62
|
+ <span v-if="item.type == 1">{{ subItem.pric }}</span>
|
|
63
|
+ <span v-if="item.type == 2">{{ subItem.pric }}</span>
|
|
64
|
+ <span v-if="item.type == 3">{{ subItem.pric }}</span>
|
|
65
|
+ </td>
|
|
66
|
+ <td>
|
|
67
|
+ <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
|
|
68
|
+ <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
|
|
69
|
+ <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
|
|
70
|
+ </td>
|
|
71
|
+ <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
|
|
72
|
+ </tr>
|
|
73
|
+ </div>
|
|
74
|
+ <tr>
|
|
75
|
+ <td colspan="7">
|
|
76
|
+ <div style="display:flex;flez-wrap:wrap;">
|
|
77
|
+ <div style="width:33%;" v-for="(item,index) in info.new_detail_list" :key="index">
|
|
78
|
+ <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
|
|
79
|
+ <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
|
|
80
|
+ <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
|
|
81
|
+ </div>
|
|
82
|
+ </div>
|
|
83
|
+ </td>
|
|
84
|
+ <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
|
|
85
|
+ </tr>
|
|
86
|
+ <tr>
|
|
87
|
+ <td colspan="7">
|
|
88
|
+ <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
|
|
89
|
+ <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</div>
|
|
90
|
+ <div style="width:33%;">基金支付金额:{{info.fund_pay_sumamt?info.fund_pay_sumamt:0}}元</div>
|
|
91
|
+ <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:0}}元</div>
|
|
92
|
+
|
|
93
|
+ </div>
|
|
94
|
+ <div style="display:flex;flez-wrap:wrap;font-size:16px;">
|
|
95
|
+ <div style="width:33%;">个人支付金额:{{info.psn_cash_pay?info.psn_cash_pay:0}}元</div>
|
|
96
|
+ <div style="width:33%;">个人账户金额:{{info.balc}}元</div>
|
|
97
|
+ </div>
|
|
98
|
+ </td>
|
|
99
|
+ <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
|
|
100
|
+ </tr>
|
|
101
|
+
|
|
102
|
+ </table>
|
|
103
|
+ </div>
|
|
104
|
+ <div style="float:right;margin:10px 0;display:flex;">
|
|
105
|
+ <div>操作人:<span style="width:100px;display:inline-block;">{{info.p_admin.user_name}}</span></div>
|
|
106
|
+ <div>操作日期:<span style="width:100px;display:inline-block;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span></div>
|
|
107
|
+ </div>
|
|
108
|
+ <img style="width:100%;" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
|
|
109
|
+ </div>
|
|
110
|
+ <div v-else id='prescription-print' class="prescription-print" style="position: relative;">
|
|
111
|
+ <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
|
|
112
|
+ <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
|
|
113
|
+ <div style="display:flex;">
|
|
114
|
+ <div>单据号:<span style="display:inline-block;width:200px;">{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</span></div>
|
|
115
|
+ <div>透析号:<span style="display:inline-block;width:200px;">{{balanceAccounts.patient ? balanceAccounts.patient.dialysis_no : ''}}</span></div>
|
|
116
|
+ </div>
|
|
117
|
+ <div style="display:flex;justify-content: space-between;">
|
|
118
|
+ <div style="display:flex;">
|
|
119
|
+ <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name.indexOf("(") > -1 ? balanceAccounts.patient.name.substring(0,balanceAccounts.patient.name.indexOf("(")) : balanceAccounts.patient.name : ''}}</span></div>
|
|
120
|
+ <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
|
|
121
|
+ <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
|
|
122
|
+ <div>费别:<span style="display:inline-block;width:80px;">自费</span>
|
|
123
|
+ </div>
|
|
124
|
+ <div>电脑号:<span style="display:inline-block;width:80px;"></span></div>
|
|
125
|
+ <div>收费日期:<span style="display:inline-block;width:100px;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
|
|
126
|
+ </div>
|
|
127
|
+ <div style="float:right">金额单位:元</div>
|
|
128
|
+ </div>
|
|
129
|
+ <div style="min-height: 300px;">
|
|
130
|
+ <table border='1' style="width:100%;" cellspacing="0">
|
|
131
|
+ <tr>
|
|
132
|
+ <td width="70">类别</td>
|
|
133
|
+ <td>项目</td>
|
|
134
|
+ <td min-width="180" style="min-width:60px;">规格</td>
|
|
135
|
+ <td width="40">单位</td>
|
|
136
|
+ <td width="40">数量</td>
|
|
137
|
+ <td width="60">单价</td>
|
|
138
|
+ <td width="70">总额</td>
|
|
139
|
+ <td width="130">小计</td>
|
|
140
|
+ </tr>
|
|
141
|
+ <div v-for="(item,i) in balanceAccounts.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
|
|
142
|
+ <tr v-for="(subItem,index) in item.details" :key="index">
|
|
143
|
+ <td>
|
|
144
|
+ <span v-if="item.type == 1">药品费</span>
|
|
145
|
+ <span v-if="item.type == 2">治疗费</span>
|
|
146
|
+ <span v-if="item.type == 3">耗材费</span>
|
|
147
|
+ </td>
|
|
148
|
+ <td>
|
|
149
|
+ <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
|
|
150
|
+ <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
|
|
151
|
+ <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
|
|
152
|
+ </td>
|
|
153
|
+ <td>
|
|
154
|
+ <span v-if="item.type == 1"><span v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}} * </span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
|
|
155
|
+ <span v-if="item.type == 2"></span>
|
|
156
|
+ <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
|
|
157
|
+ </td>
|
|
158
|
+ <td>
|
|
159
|
+ <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
|
|
160
|
+ <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
|
|
161
|
+ <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
|
|
162
|
+ </td>
|
|
163
|
+ <td>
|
|
164
|
+ <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
|
|
165
|
+ <span v-if="item.type == 2">{{ subItem.project.count }}</span>
|
|
166
|
+ <span v-if="item.type == 3">{{ subItem.project.count }}</span>
|
|
167
|
+ </td>
|
|
168
|
+ <td>
|
|
169
|
+ <span v-if="item.type == 1">{{ subItem.pric }}</span>
|
|
170
|
+ <span v-if="item.type == 2">{{ subItem.pric }}</span>
|
|
171
|
+ <span v-if="item.type == 3">{{ subItem.pric }}</span>
|
|
172
|
+ </td>
|
|
173
|
+ <td>
|
|
174
|
+ <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
|
|
175
|
+ <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
|
|
176
|
+ <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
|
|
177
|
+ </td>
|
|
178
|
+ <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
|
|
179
|
+ </tr>
|
|
180
|
+ </div>
|
|
181
|
+ <tr>
|
|
182
|
+ <td colspan="7">
|
|
183
|
+ <div style="display:flex;flez-wrap:wrap;">
|
|
184
|
+ <div style="width:33%;" v-for="(item,index) in balanceAccounts.new_detail_list" :key="index">
|
|
185
|
+ <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
|
|
186
|
+ <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
|
|
187
|
+ <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
|
|
188
|
+ </div>
|
|
189
|
+ </div>
|
|
190
|
+ </td>
|
|
191
|
+ <td>合计: {{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
|
|
192
|
+ </tr>
|
|
193
|
+ <tr>
|
|
194
|
+ <td colspan="7">
|
|
195
|
+ <div style="display:flex;flez-wrap:wrap;">
|
|
196
|
+ <div style="width:33%;">医疗费总额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
|
|
197
|
+ <div style="width:33%;">基金支付金额:0元</div>
|
|
198
|
+ <div style="width:33%;">个人账户支付金额:0元</div>
|
|
199
|
+
|
|
200
|
+ </div>
|
|
201
|
+ <div style="display:flex;flez-wrap:wrap;">
|
|
202
|
+ <div style="width:33%;">个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
|
|
203
|
+ <div style="width:33%;">个人账户金额:0元</div>
|
|
204
|
+ </div>
|
|
205
|
+ </td>
|
|
206
|
+ <td>合计:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
|
|
207
|
+ </tr>
|
|
208
|
+
|
|
209
|
+ </table>
|
|
210
|
+ </div>
|
|
211
|
+ <div style="float:right;margin:10px 0;display:flex;">
|
|
212
|
+ <div>操作人:<span style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span></div>
|
|
213
|
+ <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
|
|
214
|
+ </div>
|
|
215
|
+ <img style="width:100%;" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
|
|
216
|
+ </div>
|
|
217
|
+ </div>
|
|
218
|
+
|
|
219
|
+</template>
|
|
220
|
+<script>
|
|
221
|
+ import axios from 'axios'
|
|
222
|
+ import { getChargePrint } from '@/api/project/project'
|
|
223
|
+ import { uParseTime } from '@/utils/tools'
|
|
224
|
+
|
|
225
|
+ export default {
|
|
226
|
+ data() {
|
|
227
|
+ return {
|
|
228
|
+ list: {},
|
|
229
|
+ prescription: [],
|
|
230
|
+ patient: {},
|
|
231
|
+ orgname: '',
|
|
232
|
+
|
|
233
|
+ result: {},
|
|
234
|
+ org_code: '',
|
|
235
|
+ patient_name: '',
|
|
236
|
+ doctor_code: '',
|
|
237
|
+ doctor_name: '',
|
|
238
|
+
|
|
239
|
+ name_arr: [],
|
|
240
|
+ spec_arr: [],
|
|
241
|
+ count_arr: [],
|
|
242
|
+ price_arr: [],
|
|
243
|
+ total_arr: [],
|
|
244
|
+
|
|
245
|
+ }
|
|
246
|
+ },
|
|
247
|
+ props: {
|
|
248
|
+ paramsObj: Object,
|
|
249
|
+ info: Object,
|
|
250
|
+ balanceAccounts:Object
|
|
251
|
+ },
|
|
252
|
+ methods: {
|
|
253
|
+ getName(list) {
|
|
254
|
+ let new_list = []
|
|
255
|
+ for (let i = 0; i < list.length; i++) {
|
|
256
|
+ if (list[i].aac031 == '1') {
|
|
257
|
+ new_list.push(list[i])
|
|
258
|
+ }
|
|
259
|
+ }
|
|
260
|
+
|
|
261
|
+ switch (new_list[0].bcc334) {
|
|
262
|
+ case "A31001":
|
|
263
|
+ return "深圳医保1档"
|
|
264
|
+ break
|
|
265
|
+ case "A31002":
|
|
266
|
+ return "深圳医保2档"
|
|
267
|
+
|
|
268
|
+ break
|
|
269
|
+ case "A31003":
|
|
270
|
+ return "深圳医保3档"
|
|
271
|
+
|
|
272
|
+ break
|
|
273
|
+ case "A31004":
|
|
274
|
+ return "二档(少儿)"
|
|
275
|
+
|
|
276
|
+ break
|
|
277
|
+ case "A31005":
|
|
278
|
+ return "学生二档"
|
|
279
|
+
|
|
280
|
+ break
|
|
281
|
+ case "A31006":
|
|
282
|
+ return "大学生二档"
|
|
283
|
+
|
|
284
|
+ break
|
|
285
|
+ case "A32001":
|
|
286
|
+ return "在职公务员"
|
|
287
|
+ break
|
|
288
|
+ case "A32002":
|
|
289
|
+ return "在职驻深公务员"
|
|
290
|
+
|
|
291
|
+ break
|
|
292
|
+ case "A39301":
|
|
293
|
+ return "家属统筹医疗"
|
|
294
|
+
|
|
295
|
+ break
|
|
296
|
+ case "A41001":
|
|
297
|
+ return "工伤在职"
|
|
298
|
+
|
|
299
|
+ break
|
|
300
|
+ case "A51001":
|
|
301
|
+ return "生育在职"
|
|
302
|
+
|
|
303
|
+ break
|
|
304
|
+ case "A52001":
|
|
305
|
+ return "生育医疗一档"
|
|
306
|
+
|
|
307
|
+ break
|
|
308
|
+ case "A52002":
|
|
309
|
+ return "生育医疗一档"
|
|
310
|
+
|
|
311
|
+ break
|
|
312
|
+ case "C31001":
|
|
313
|
+ return "一档医疗退休"
|
|
314
|
+
|
|
315
|
+ break
|
|
316
|
+ case "C31002":
|
|
317
|
+ return "二档医疗退休"
|
|
318
|
+ break
|
|
319
|
+
|
|
320
|
+ }
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+ },
|
|
325
|
+ getValue(item) {
|
|
326
|
+ return this.getItemName(item.aka111) + ': ' + item.bka058 + '元'
|
|
327
|
+ },
|
|
328
|
+ getItemName(number) {
|
|
329
|
+ switch (number) {
|
|
330
|
+ case '01':
|
|
331
|
+ return '床位费'
|
|
332
|
+ break
|
|
333
|
+ case '02':
|
|
334
|
+ return '西药费'
|
|
335
|
+
|
|
336
|
+ break
|
|
337
|
+ case '03':
|
|
338
|
+ return '中药费'
|
|
339
|
+
|
|
340
|
+ break
|
|
341
|
+ case '04':
|
|
342
|
+ return '中成药费'
|
|
343
|
+
|
|
344
|
+ break
|
|
345
|
+ case '05':
|
|
346
|
+ return '中草药费'
|
|
347
|
+
|
|
348
|
+ break
|
|
349
|
+ case '06':
|
|
350
|
+ return '检查费'
|
|
351
|
+
|
|
352
|
+ break
|
|
353
|
+ case '07':
|
|
354
|
+ return '治疗费'
|
|
355
|
+
|
|
356
|
+ break
|
|
357
|
+ case '08':
|
|
358
|
+ return '放射费'
|
|
359
|
+
|
|
360
|
+ break
|
|
361
|
+ case '09':
|
|
362
|
+ return '手术费'
|
|
363
|
+
|
|
364
|
+ break
|
|
365
|
+ case '10':
|
|
366
|
+ return '化验费'
|
|
367
|
+
|
|
368
|
+ break
|
|
369
|
+ case '11':
|
|
370
|
+ return '输血费'
|
|
371
|
+
|
|
372
|
+ break
|
|
373
|
+ case '12':
|
|
374
|
+ return '输氧费'
|
|
375
|
+
|
|
376
|
+ break
|
|
377
|
+ case '13':
|
|
378
|
+ return '其它费'
|
|
379
|
+
|
|
380
|
+ break
|
|
381
|
+ case '14':
|
|
382
|
+ return '麻醉费'
|
|
383
|
+
|
|
384
|
+ break
|
|
385
|
+ case '15':
|
|
386
|
+ return '材料费'
|
|
387
|
+
|
|
388
|
+ break
|
|
389
|
+ case '16':
|
|
390
|
+ return '特殊检查费'
|
|
391
|
+
|
|
392
|
+ break
|
|
393
|
+ case '17':
|
|
394
|
+ return '特殊治疗费'
|
|
395
|
+
|
|
396
|
+ break
|
|
397
|
+ case '18':
|
|
398
|
+ return '诊疗费(诊查费)'
|
|
399
|
+
|
|
400
|
+ break
|
|
401
|
+ case '19':
|
|
402
|
+ return '护理费'
|
|
403
|
+
|
|
404
|
+ break
|
|
405
|
+ case '20':
|
|
406
|
+ return '诊金'
|
|
407
|
+
|
|
408
|
+ break
|
|
409
|
+ case '21':
|
|
410
|
+ return '检查费(CT)'
|
|
411
|
+
|
|
412
|
+ break
|
|
413
|
+ case '22':
|
|
414
|
+ return '检查费(MRT)'
|
|
415
|
+
|
|
416
|
+ break
|
|
417
|
+ case '23':
|
|
418
|
+ return '检查费(其他)'
|
|
419
|
+
|
|
420
|
+ break
|
|
421
|
+ case '24':
|
|
422
|
+ return '特需服务费'
|
|
423
|
+
|
|
424
|
+ break
|
|
425
|
+ case '25':
|
|
426
|
+ return '杂费'
|
|
427
|
+
|
|
428
|
+ break
|
|
429
|
+ case '26':
|
|
430
|
+ return '挂号费'
|
|
431
|
+ break
|
|
432
|
+ case '99':
|
|
433
|
+ return '诊疗费'
|
|
434
|
+ break
|
|
435
|
+
|
|
436
|
+ }
|
|
437
|
+
|
|
438
|
+ },
|
|
439
|
+ getChargePrint(record_date, patient_id, prescription_id) {
|
|
440
|
+ var params = {
|
|
441
|
+ record_date: record_date,
|
|
442
|
+ patient_id: patient_id,
|
|
443
|
+ prescription_id: prescription_id
|
|
444
|
+ }
|
|
445
|
+ console.log('params', params)
|
|
446
|
+ getChargePrint(params).then(response => {
|
|
447
|
+ if (response.data.state == 1) {
|
|
448
|
+ var list = response.data.data.list
|
|
449
|
+ console.log('list9999999999', list)
|
|
450
|
+ this.list = list
|
|
451
|
+ var prescription = response.data.data.prescription
|
|
452
|
+ console.log('prescription', prescription)
|
|
453
|
+ this.prescription = prescription
|
|
454
|
+ var patient = response.data.data.patient
|
|
455
|
+ console.log('patient', patient)
|
|
456
|
+ this.patient = patient
|
|
457
|
+ var histpatient = response.data.data.hisPatient
|
|
458
|
+ console.log('hispatient', histpatient)
|
|
459
|
+ }
|
|
460
|
+ })
|
|
461
|
+ },
|
|
462
|
+ getTime(value, temp) {
|
|
463
|
+ if (value != undefined) {
|
|
464
|
+ return uParseTime(value, temp)
|
|
465
|
+ }
|
|
466
|
+ return ''
|
|
467
|
+ },
|
|
468
|
+ },
|
|
469
|
+ mounted() {
|
|
470
|
+ this.org_id = this.$store.getters.xt_user.org_id
|
|
471
|
+ if (this.org_id == 9504 || this.org_id == 10028 || this.org_id == 10138) {
|
|
472
|
+ var xtuser = this.$store.getters.xt_user
|
|
473
|
+ this.orgname = xtuser.org.org_name
|
|
474
|
+ var form = {
|
|
475
|
+ 'order_id': this.paramsObj.order_id,
|
|
476
|
+ 'patient_id': this.paramsObj.patient_id,
|
|
477
|
+ 'record_time': this.paramsObj.record_date,
|
|
478
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id
|
|
479
|
+ }
|
|
480
|
+ var that = this
|
|
481
|
+ axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
|
|
482
|
+ params: form
|
|
483
|
+ })
|
|
484
|
+ .then(function(response) {
|
|
485
|
+ if (response.data.state == 0) {
|
|
486
|
+ // that.$message.error(response.data.msg)
|
|
487
|
+ return false
|
|
488
|
+ } else {
|
|
489
|
+ if (response.data.data.failed_code == -10) {
|
|
490
|
+ // that.$message.error(response.data.data.msg)
|
|
491
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
492
|
+ confirmButtonText: '确 定',
|
|
493
|
+ type: 'warning'
|
|
494
|
+ }).then(() => {
|
|
495
|
+
|
|
496
|
+ }).catch(() => {
|
|
497
|
+ })
|
|
498
|
+ } else {
|
|
499
|
+ that.result = response.data.data.result
|
|
500
|
+
|
|
501
|
+ that.org_code = response.data.data.org_code
|
|
502
|
+ that.patient_name = response.data.data.patient_name
|
|
503
|
+ that.doctor_code = response.data.data.doctor_code
|
|
504
|
+ that.doctor_name = response.data.data.doctor_name
|
|
505
|
+ that.name_arr = []
|
|
506
|
+ that.spec_arr = []
|
|
507
|
+ that.count_arr = []
|
|
508
|
+ that.price_arr = []
|
|
509
|
+ that.total_arr = []
|
|
510
|
+ for (let i = 0; i < that.result.transBody.outputlist1.length; i++) {
|
|
511
|
+ that.name_arr.push(that.result.transBody.outputlist1[i].ake006)
|
|
512
|
+ that.spec_arr.push(that.result.transBody.outputlist1[i].aka074)
|
|
513
|
+ that.count_arr.push(that.result.transBody.outputlist1[i].akc226)
|
|
514
|
+ that.price_arr.push(that.result.transBody.outputlist1[i].akc225)
|
|
515
|
+ that.total_arr.push(that.result.transBody.outputlist1[i].akc264)
|
|
516
|
+ }
|
|
517
|
+
|
|
518
|
+ }
|
|
519
|
+
|
|
520
|
+ }
|
|
521
|
+ })
|
|
522
|
+ .catch(function(error) {
|
|
523
|
+
|
|
524
|
+ })
|
|
525
|
+
|
|
526
|
+ } else {
|
|
527
|
+ var record_date = this.paramsObj.record_date
|
|
528
|
+ console.log('record_date', record_date)
|
|
529
|
+ var patient_id = this.paramsObj.patient_id
|
|
530
|
+ console.log('patient_id', patient_id)
|
|
531
|
+ var prescription_id = this.paramsObj.prescription_id
|
|
532
|
+ this.getChargePrint(record_date, patient_id, prescription_id)
|
|
533
|
+ var xtuser = this.$store.getters.xt_user
|
|
534
|
+ this.orgname = xtuser.org.org_name
|
|
535
|
+
|
|
536
|
+ }
|
|
537
|
+
|
|
538
|
+ },
|
|
539
|
+ watch: {
|
|
540
|
+ paramsObj: {//深度监听,可监听到对象、数组的变化
|
|
541
|
+ handler(val, oldVal) {
|
|
542
|
+ this.paramsObj = val
|
|
543
|
+ this.patient_id = this.paramsObj.patient_id
|
|
544
|
+ var record_date = this.paramsObj.record
|
|
545
|
+ this.record_date = record_date
|
|
546
|
+ var prescription_id = this.paramsObj.prescription_id
|
|
547
|
+ this.prescription_id = prescription_id
|
|
548
|
+
|
|
549
|
+ },
|
|
550
|
+ deep: true
|
|
551
|
+ }
|
|
552
|
+ }
|
|
553
|
+ }
|
|
554
|
+</script>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+<style lang="scss" scoped>
|
|
558
|
+ .prescription-print {
|
|
559
|
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
560
|
+ -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
561
|
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
562
|
+ margin-bottom: 20px;
|
|
563
|
+ padding: 20px 10px;
|
|
564
|
+ }
|
|
565
|
+
|
|
566
|
+ .printTitle {
|
|
567
|
+ font-size: 22px;
|
|
568
|
+ text-align: center;
|
|
569
|
+ font-weight: bold;
|
|
570
|
+ }
|
|
571
|
+
|
|
572
|
+ .infoMain {
|
|
573
|
+ display: flex;
|
|
574
|
+ flex-wrap: wrap;
|
|
575
|
+ padding: 0 10px;
|
|
576
|
+ margin-top: 10px;
|
|
577
|
+ }
|
|
578
|
+
|
|
579
|
+ .infoMain .infoP {
|
|
580
|
+ width: 33%;
|
|
581
|
+ line-height: 24px;
|
|
582
|
+ }
|
|
583
|
+
|
|
584
|
+ .chargeBox {
|
|
585
|
+ border: 1px solid #000;
|
|
586
|
+ }
|
|
587
|
+
|
|
588
|
+ .chargeUl {
|
|
589
|
+ display: flex;
|
|
590
|
+ justify-content: space-between;
|
|
591
|
+ text-align: center;
|
|
592
|
+ }
|
|
593
|
+
|
|
594
|
+ .chargeUl p {
|
|
595
|
+ height: 40px;
|
|
596
|
+ line-height: 40px;
|
|
597
|
+ }
|
|
598
|
+
|
|
599
|
+ .chargeP {
|
|
600
|
+ height: 40px;
|
|
601
|
+ line-height: 40px;
|
|
602
|
+ }
|
|
603
|
+
|
|
604
|
+ .moneyBox {
|
|
605
|
+ display: flex;
|
|
606
|
+ justify-content: space-between;
|
|
607
|
+ padding: 0 10px;
|
|
608
|
+ background: #eee;
|
|
609
|
+ height: 40px;
|
|
610
|
+ align-items: center;
|
|
611
|
+ border: 1px solid #000;
|
|
612
|
+ border-top: none
|
|
613
|
+ }
|
|
614
|
+
|
|
615
|
+ .actionBar {
|
|
616
|
+ display: flex;
|
|
617
|
+ justify-content: space-between;
|
|
618
|
+ line-height: 24px;
|
|
619
|
+ padding: 0 10px;
|
|
620
|
+ }
|
|
621
|
+
|
|
622
|
+ .actionBar div {
|
|
623
|
+ width: 150px;
|
|
624
|
+ }
|
|
625
|
+
|
|
626
|
+ table {
|
|
627
|
+
|
|
628
|
+ td {
|
|
629
|
+ padding: 10px 5px;
|
|
630
|
+ }
|
|
631
|
+
|
|
632
|
+ }
|
|
633
|
+</style>
|