|
@@ -83,320 +83,15 @@ export default {
|
83
|
83
|
printThisPage() {
|
84
|
84
|
var ptime = Math.round(new Date().getTime() / 1000)
|
85
|
85
|
this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
86
|
|
-
|
87
|
|
- if (
|
88
|
|
- this.$store.getters.xt_user.org_id == 10138 ||
|
89
|
|
- this.$store.getters.xt_user.org_id == 4 ||
|
90
|
|
- this.$store.getters.xt_user.org_id == 10278
|
91
|
|
- ) {
|
92
|
|
- setTimeout(() => {
|
93
|
|
- const style =
|
94
|
|
- '@media print {#statement-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}'
|
95
|
|
- const style2 =
|
96
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}'
|
97
|
|
- const style3 =
|
98
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}'
|
99
|
|
- const style4 =
|
100
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}'
|
101
|
|
- const style5 =
|
102
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}'
|
103
|
|
- const style6 =
|
104
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}'
|
105
|
|
- const style7 =
|
106
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}'
|
107
|
|
- const style8 =
|
108
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}'
|
109
|
|
- const style9 =
|
110
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}'
|
111
|
|
- const style10 =
|
112
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}'
|
113
|
|
- const style11 =
|
114
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}'
|
115
|
|
- const style12 =
|
116
|
|
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}'
|
117
|
|
- if (this.num >= 13) {
|
118
|
|
- printJS({
|
119
|
|
- printable: 'prescription-print',
|
120
|
|
- type: 'html',
|
121
|
|
- style: style,
|
122
|
|
- scanStyles: false
|
123
|
|
- })
|
124
|
|
- } else if (this.num == 12) {
|
125
|
|
- printJS({
|
126
|
|
- printable: 'prescription-print',
|
127
|
|
- type: 'html',
|
128
|
|
- style: style2,
|
129
|
|
- scanStyles: false
|
130
|
|
- })
|
131
|
|
- } else if (this.num == 11) {
|
132
|
|
- printJS({
|
133
|
|
- printable: 'prescription-print',
|
134
|
|
- type: 'html',
|
135
|
|
- style: style3,
|
136
|
|
- scanStyles: false
|
137
|
|
- })
|
138
|
|
- } else if (this.num == 10) {
|
139
|
|
- printJS({
|
140
|
|
- printable: 'prescription-print',
|
141
|
|
- type: 'html',
|
142
|
|
- style: style4,
|
143
|
|
- scanStyles: false
|
144
|
|
- })
|
145
|
|
- } else if (this.num == 9) {
|
146
|
|
- printJS({
|
147
|
|
- printable: 'prescription-print',
|
148
|
|
- type: 'html',
|
149
|
|
- style: style5,
|
150
|
|
- scanStyles: false
|
151
|
|
- })
|
152
|
|
- } else if (this.num == 8) {
|
153
|
|
- printJS({
|
154
|
|
- printable: 'prescription-print',
|
155
|
|
- type: 'html',
|
156
|
|
- style: style6,
|
157
|
|
- scanStyles: false
|
158
|
|
- })
|
159
|
|
- } else if (this.num == 7) {
|
160
|
|
- printJS({
|
161
|
|
- printable: 'prescription-print',
|
162
|
|
- type: 'html',
|
163
|
|
- style: style7,
|
164
|
|
- scanStyles: false
|
165
|
|
- })
|
166
|
|
- } else if (this.num == 6) {
|
167
|
|
- printJS({
|
168
|
|
- printable: 'prescription-print',
|
169
|
|
- type: 'html',
|
170
|
|
- style: style8,
|
171
|
|
- scanStyles: false
|
172
|
|
- })
|
173
|
|
- } else if (this.num == 5) {
|
174
|
|
- printJS({
|
175
|
|
- printable: 'prescription-print',
|
176
|
|
- type: 'html',
|
177
|
|
- style: style9,
|
178
|
|
- scanStyles: false
|
179
|
|
- })
|
180
|
|
- } else if (this.num == 4) {
|
181
|
|
- printJS({
|
182
|
|
- printable: 'prescription-print',
|
183
|
|
- type: 'html',
|
184
|
|
- style: style10,
|
185
|
|
- scanStyles: false
|
186
|
|
- })
|
187
|
|
- } else if (this.num == 3) {
|
188
|
|
- printJS({
|
189
|
|
- printable: 'prescription-print',
|
190
|
|
- type: 'html',
|
191
|
|
- style: style11,
|
192
|
|
- scanStyles: false
|
193
|
|
- })
|
194
|
|
- } else if (this.num <= 2) {
|
195
|
|
- printJS({
|
196
|
|
- printable: 'prescription-print',
|
197
|
|
- type: 'html',
|
198
|
|
- style: style12,
|
199
|
|
- scanStyles: false
|
200
|
|
- })
|
201
|
|
- }
|
202
|
|
- }, 500)
|
203
|
|
- } else if (
|
204
|
|
- this.$store.getters.xt_user.org_id == 9504 ||
|
205
|
|
- this.$store.getters.xt_user.org_id == 10028
|
206
|
|
- ) {
|
207
|
|
- const style =
|
208
|
|
- '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}'
|
209
|
|
- printJS({
|
210
|
|
- printable: 'prescription-print',
|
211
|
|
- type: 'html',
|
212
|
|
- style: style,
|
213
|
|
- scanStyles: false
|
214
|
|
- })
|
215
|
|
- } else {
|
216
|
|
- // 医保环境打印格式
|
217
|
|
- if (
|
218
|
|
- this.$store.getters.xt_user.org_id == 9919 ||
|
219
|
|
- this.$store.getters.xt_user.org_id == 10106
|
220
|
|
- ) {
|
221
|
|
- const style =
|
222
|
|
- '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}'
|
223
|
|
- printJS({
|
224
|
|
- printable: 'statement-print',
|
225
|
|
- type: 'html',
|
226
|
|
- style: style,
|
227
|
|
- scanStyles: false
|
228
|
|
- })
|
229
|
|
- } else if (
|
230
|
|
- // this.$store.getters.xt_user.org_id == 0 ||
|
231
|
|
- this.$store.getters.xt_user.org_id == 10191
|
232
|
|
- ) {
|
233
|
|
- const style =
|
234
|
|
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
|
235
|
|
- printJS({
|
236
|
|
- printable: 'statement-print',
|
237
|
|
- type: 'html',
|
238
|
|
- style: style,
|
239
|
|
- scanStyles: false
|
240
|
|
- })
|
241
|
|
- // const style =
|
242
|
|
- // "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
|
243
|
|
- // printJS({
|
244
|
|
- // printable: "statement-print",
|
245
|
|
- // type: "html",
|
246
|
|
- // style: style,
|
247
|
|
- // scanStyles: false,
|
248
|
|
- // });
|
249
|
|
- } else {
|
250
|
|
- const style =
|
251
|
|
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
|
252
|
|
- printJS({
|
253
|
|
- printable: 'statement-print',
|
254
|
|
- type: 'html',
|
255
|
|
- style: style,
|
256
|
|
- scanStyles: false
|
257
|
|
- })
|
258
|
|
- }
|
259
|
|
- }
|
260
|
|
-
|
261
|
|
- // if (this.org_template_info.template_id == 1) {
|
262
|
|
- // printJS({
|
263
|
|
- // printable: "dialysis-print-box",
|
264
|
|
- // type: "html",
|
265
|
|
- // style: style,
|
266
|
|
- // scanStyles: false
|
267
|
|
- // });
|
268
|
|
- // }
|
269
|
|
- },
|
270
|
|
- getAllDoctorList() {
|
271
|
|
- getAllDoctorList().then((response) => {
|
272
|
|
- if (response.data.state == 1) {
|
273
|
|
- var doctor = response.data.data.doctor
|
274
|
|
-
|
275
|
|
- this.doctorList = doctor
|
276
|
|
- }
|
|
86
|
+ const style =
|
|
87
|
+ '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
|
|
88
|
+ printJS({
|
|
89
|
+ printable: 'statement-print',
|
|
90
|
+ type: 'html',
|
|
91
|
+ style: style,
|
|
92
|
+ scanStyles: false
|
277
|
93
|
})
|
278
|
94
|
|
279
|
|
- }, getType(med_chrgitm_type) {
|
280
|
|
- switch (med_chrgitm_type) {
|
281
|
|
- case '01':
|
282
|
|
- return '床位费'
|
283
|
|
- break
|
284
|
|
- case '02':
|
285
|
|
- return '诊察费'
|
286
|
|
-
|
287
|
|
- break
|
288
|
|
- case '03':
|
289
|
|
- return '检查费'
|
290
|
|
-
|
291
|
|
- break
|
292
|
|
- case '04':
|
293
|
|
- return '化验费'
|
294
|
|
- break
|
295
|
|
- case '05':
|
296
|
|
- return '治疗费'
|
297
|
|
-
|
298
|
|
- break
|
299
|
|
- case '06':
|
300
|
|
- return '手术费'
|
301
|
|
-
|
302
|
|
- break
|
303
|
|
- case '07':
|
304
|
|
- return '护理费'
|
305
|
|
- break
|
306
|
|
- case '08':
|
307
|
|
- return '材料费'
|
308
|
|
-
|
309
|
|
- break
|
310
|
|
- case '09':
|
311
|
|
- return '西药费'
|
312
|
|
-
|
313
|
|
- break
|
314
|
|
- case '10':
|
315
|
|
- return '中药饮片费'
|
316
|
|
-
|
317
|
|
- break
|
318
|
|
- case '11':
|
319
|
|
- return '中成药费'
|
320
|
|
-
|
321
|
|
- break
|
322
|
|
- case '12':
|
323
|
|
- return '一般诊疗费'
|
324
|
|
-
|
325
|
|
- break
|
326
|
|
- case '13':
|
327
|
|
- return '挂号费'
|
328
|
|
-
|
329
|
|
- break
|
330
|
|
- case '14':
|
331
|
|
- return '其他费'
|
332
|
|
-
|
333
|
|
- break
|
334
|
|
-
|
335
|
|
- }
|
336
|
|
-
|
337
|
|
- },
|
338
|
|
- getAllHisPatientList() {
|
339
|
|
- const params = {
|
340
|
|
- record_date: this.record_date
|
341
|
|
- }
|
342
|
|
- getAllHisPatientList(params).then((response) => {
|
343
|
|
- if (response.data.state == 1) {
|
344
|
|
- this.patientTableData = response.data.data.list
|
345
|
|
- this.patientTableDataTwo = response.data.data.list
|
346
|
|
-
|
347
|
|
- let cal_one = 0
|
348
|
|
- let cal_two = 0
|
349
|
|
- for (let i = 0; i < response.data.data.list.length; i++) {
|
350
|
|
- if (
|
351
|
|
- response.data.data.list[i].prescription == null ||
|
352
|
|
- response.data.data.list[i].prescription.length == 0
|
353
|
|
- ) {
|
354
|
|
- cal_one = cal_one + 1
|
355
|
|
- }
|
356
|
|
- if (
|
357
|
|
- response.data.data.list[i].prescription != null &&
|
358
|
|
- response.data.data.list[i].prescription.length > 0
|
359
|
|
- ) {
|
360
|
|
- cal_two = cal_two + 1
|
361
|
|
- }
|
362
|
|
- }
|
363
|
|
- // this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
364
|
|
- // console.log(this.patientTableData[0])
|
365
|
|
- // this.choosePatient(this.patientTableData[0])
|
366
|
|
- this.cal_one = cal_one
|
367
|
|
- this.cal_two = cal_two
|
368
|
|
- }
|
369
|
|
- })
|
370
|
|
- },
|
371
|
|
-
|
372
|
|
- changePatient(row) {
|
373
|
|
- console.log('row', row)
|
374
|
|
- this.patient_id = row.patient_id
|
375
|
|
- this.record_date = this.record_date
|
376
|
|
- this.prescription_id = this.prescription_id
|
377
|
|
- // var params = {
|
378
|
|
- // patient_id:row.patient_id,
|
379
|
|
- // record_date:this.record_date,
|
380
|
|
- // prescription_id:this.prescription_id,
|
381
|
|
- // }
|
382
|
|
- // getPrescriptionPrint(params).then(response=>{
|
383
|
|
- // if(response.data.state == 1){
|
384
|
|
- // var advicePrint = response.data.data.advicePrint
|
385
|
|
- // console.log("adviceprint",advicePrint)
|
386
|
|
- // this.advicePrint = advicePrint
|
387
|
|
- // // var hisPatient = response.data.data.hisPatient
|
388
|
|
- // // console.log("hispatient",hisPatient)
|
389
|
|
- // // this.hisPatient = hisPatient
|
390
|
|
- // var patient = response.data.data.patient
|
391
|
|
- // console.log("patient",patient)
|
392
|
|
- // this.patient = patient
|
393
|
|
- // var doctorPorject = response.data.data.doctorPorject
|
394
|
|
- // console.log("doctorporject",doctorPorject)
|
395
|
|
- // }
|
396
|
|
- // })
|
397
|
|
- },
|
398
|
|
- getTimes(time) {
|
399
|
|
- return uParseTime(time, '{y}-{m}-{d}')
|
400
|
95
|
}, getTotal: function(items) {
|
401
|
96
|
let total = 0
|
402
|
97
|
for (let i = 0; i < items.length; i++) {
|
|
@@ -408,7 +103,7 @@ export default {
|
408
|
103
|
var list = []
|
409
|
104
|
for (let a = 0; a < details.length; a++) {
|
410
|
105
|
let obj = {}
|
411
|
|
- if(details[a].advice_id > 0 && details[a].project_id == 0) {
|
|
106
|
+ if (details[a].advice_id > 0 && details[a].project_id == 0) {
|
412
|
107
|
obj['yibao_code'] = details[a].advice.drug.medical_insurance_number
|
413
|
108
|
obj['yiyuan_code'] = details[a].advice.drug.id
|
414
|
109
|
obj['name'] = details[a].advice.advice_name
|
|
@@ -423,12 +118,12 @@ export default {
|
423
|
118
|
list.push(obj)
|
424
|
119
|
}
|
425
|
120
|
|
426
|
|
- if(details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 2) {
|
|
121
|
+ if (details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 2) {
|
427
|
122
|
obj['yibao_code'] = details[a].project.project.medical_code
|
428
|
123
|
obj['yiyuan_code'] = details[a].project.project.id
|
429
|
124
|
obj['name'] = details[a].project.project.project_name
|
430
|
125
|
obj['unit'] = details[a].project.project.unit
|
431
|
|
- obj['spec'] = ""
|
|
126
|
+ obj['spec'] = ''
|
432
|
127
|
obj['count'] = details[a].cnt
|
433
|
128
|
obj['price'] = parseFloat(details[a].pric)
|
434
|
129
|
obj['psn_pay'] = (details[a].selfpay_prop * details[a].det_item_fee_sumamt).toFixed(2)
|
|
@@ -436,7 +131,7 @@ export default {
|
436
|
131
|
list.push(obj)
|
437
|
132
|
}
|
438
|
133
|
|
439
|
|
- if(details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 3) {
|
|
134
|
+ if (details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 3) {
|
440
|
135
|
obj['yibao_code'] = details[a].project.good_info.medical_insurance_number
|
441
|
136
|
obj['yiyuan_code'] = details[a].project.good_info.id
|
442
|
137
|
obj['name'] = details[a].project.good_info.good_name
|
|
@@ -544,7 +239,7 @@ export default {
|
544
|
239
|
console.log('this.num', this.num)
|
545
|
240
|
}
|
546
|
241
|
})
|
547
|
|
- } else if (this.org_id == 10028 || this.org_id == 9504) {
|
|
242
|
+ } else if (this.org_id == 10028 || this.org_id == 9504) {
|
548
|
243
|
getPrivateExpenses(params).then((response) => {
|
549
|
244
|
if (response.data.state == 0) {
|
550
|
245
|
// this.$message.error(response.data.msg)
|
|
@@ -715,7 +410,7 @@ export default {
|
715
|
410
|
let obj9 = {
|
716
|
411
|
details: [],
|
717
|
412
|
med_chrgitm_name: that.getType(med_chrgitm_types[i]),
|
718
|
|
- total:0,
|
|
413
|
+ total: 0
|
719
|
414
|
}
|
720
|
415
|
|
721
|
416
|
// if(med_chrgitm_types[i] == '09'){
|
|
@@ -811,7 +506,6 @@ export default {
|
811
|
506
|
})
|
812
|
507
|
}
|
813
|
508
|
} else {
|
814
|
|
- console.log(this.org_id)
|
815
|
509
|
if (this.org_id == 0) {
|
816
|
510
|
let params = {
|
817
|
511
|
order_id: obj.order_id,
|
|
@@ -1103,7 +797,6 @@ export default {
|
1103
|
797
|
that.info['otherSelfTotal'] =
|
1104
|
798
|
response.data.data.otherSelfTotal
|
1105
|
799
|
|
1106
|
|
-
|
1107
|
800
|
//org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
|
1108
|
801
|
var list = []
|
1109
|
802
|
//获取所有项目类型进行去重
|
|
@@ -1121,7 +814,7 @@ export default {
|
1121
|
814
|
let obj9 = {
|
1122
|
815
|
details: [],
|
1123
|
816
|
med_chrgitm_name: that.getType(med_chrgitm_types[i]),
|
1124
|
|
- total:0,
|
|
817
|
+ total: 0
|
1125
|
818
|
}
|
1126
|
819
|
|
1127
|
820
|
let tempDetails = []
|
|
@@ -1137,7 +830,6 @@ export default {
|
1137
|
830
|
that.info['new_list'] = list
|
1138
|
831
|
//org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
|
1139
|
832
|
|
1140
|
|
-
|
1141
|
833
|
let obj = {
|
1142
|
834
|
type: 1,
|
1143
|
835
|
details: [],
|