|
@@ -0,0 +1,776 @@
|
|
1
|
+<template>
|
|
2
|
+ <!-- 打印 -->
|
|
3
|
+ <div>
|
|
4
|
+ <template>
|
|
5
|
+ <el-button
|
|
6
|
+ style="position: fixed; right: 25px; z-index: 999"
|
|
7
|
+ :loading="loading"
|
|
8
|
+ size="small"
|
|
9
|
+ icon="el-icon-printer"
|
|
10
|
+ @click="printThisPage"
|
|
11
|
+ type="primary"
|
|
12
|
+ >打印
|
|
13
|
+ </el-button
|
|
14
|
+ >
|
|
15
|
+ </template>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+ <div class="dialysisPage" style="padding-top: 40px">
|
|
20
|
+
|
|
21
|
+<!-- <batch-print-three-->
|
|
22
|
+<!-- :info="info"-->
|
|
23
|
+<!-- v-if="org_id == 10138 || org_id == 0 || org_id == 10278"-->
|
|
24
|
+<!-- ></batch-print-three>-->
|
|
25
|
+ <batch-print
|
|
26
|
+ :info="info"
|
|
27
|
+ v-if="org_id == 10138 || org_id == 0 || org_id == 10278"
|
|
28
|
+ >
|
|
29
|
+
|
|
30
|
+ </batch-print>
|
|
31
|
+
|
|
32
|
+ </div>
|
|
33
|
+ </div>
|
|
34
|
+</template>
|
|
35
|
+
|
|
36
|
+<script>
|
|
37
|
+import {uParseTime} from "@/utils/tools";
|
|
38
|
+import axios from "axios";
|
|
39
|
+import print from "print-js";
|
|
40
|
+
|
|
41
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
42
|
+import printOne from "./statementTemplate/printOne";
|
|
43
|
+import privateChargePrint from "./statementTemplate/privateChargePrint";
|
|
44
|
+
|
|
45
|
+import printTwo from "./statementTemplate/printTwo";
|
|
46
|
+import printThree from "./statementTemplate/printThree";
|
|
47
|
+import printFour from "./statementTemplate/printFour";
|
|
48
|
+import printFive from "./statementTemplate/printFive";
|
|
49
|
+import testVue from "./statementTemplate/test";
|
|
50
|
+import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
|
|
51
|
+import {getBatchSettleAccount} from "@/api/his/his";
|
|
52
|
+import printSeven from "./statementTemplate/printSeven";
|
|
53
|
+import Print10191 from "./statementTemplate/print10191";
|
|
54
|
+import printTen from "./statementTemplate/printTen";
|
|
55
|
+import BatchPrintThree from '../outpatientDoctorStation/batch_print_template/batchPrintThree'
|
|
56
|
+import BatchPrint from './statementTemplate/batchPrint'
|
|
57
|
+
|
|
58
|
+// import PrintOther from '../hospitalStation/statementTemplate/printOther'
|
|
59
|
+export default {
|
|
60
|
+ name: "batchStatementPrint",
|
|
61
|
+ components: {
|
|
62
|
+ BatchPrint,
|
|
63
|
+ BatchPrintThree,
|
|
64
|
+ Print10191,
|
|
65
|
+ printSeven,
|
|
66
|
+ BreadCrumb,
|
|
67
|
+ printOne,
|
|
68
|
+ privateChargePrint,
|
|
69
|
+ printTwo,
|
|
70
|
+ printThree,
|
|
71
|
+ printFour,
|
|
72
|
+ testVue,
|
|
73
|
+ printFive,
|
|
74
|
+ printTen
|
|
75
|
+ },
|
|
76
|
+ props: {
|
|
77
|
+ paramsObj: Object,
|
|
78
|
+ },
|
|
79
|
+ data() {
|
|
80
|
+ return {
|
|
81
|
+ crumbs: [
|
|
82
|
+ {path: false, name: "门诊医生站"},
|
|
83
|
+ {path: false, name: "打印"},
|
|
84
|
+ ],
|
|
85
|
+ record_date: "",
|
|
86
|
+ patientTableData: [],
|
|
87
|
+ advicePrint: [],
|
|
88
|
+ hisPatient: {},
|
|
89
|
+ patient: {},
|
|
90
|
+ search_input: "",
|
|
91
|
+ loading: false,
|
|
92
|
+ patient_id: 0,
|
|
93
|
+ prescription_id: 0,
|
|
94
|
+ ids: "",
|
|
95
|
+ info: null,
|
|
96
|
+ org_id: "",
|
|
97
|
+ balanceAccounts: {},
|
|
98
|
+ };
|
|
99
|
+ },
|
|
100
|
+ methods: {
|
|
101
|
+ printThisPage() {
|
|
102
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
103
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
|
104
|
+
|
|
105
|
+ if (
|
|
106
|
+ this.$store.getters.xt_user.org_id == 10138 ||
|
|
107
|
+ this.$store.getters.xt_user.org_id == 4 ||
|
|
108
|
+ this.$store.getters.xt_user.org_id == 10278
|
|
109
|
+ ) {
|
|
110
|
+ setTimeout(() => {
|
|
111
|
+ const style =
|
|
112
|
+ "@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%;}}}";
|
|
113
|
+ const style2 =
|
|
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: 50%;}}}";
|
|
115
|
+ const style3 =
|
|
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: 55%;}}}";
|
|
117
|
+ const style4 =
|
|
118
|
+ "@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%;}}}";
|
|
119
|
+ const style5 =
|
|
120
|
+ "@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%;}}}";
|
|
121
|
+ const style6 =
|
|
122
|
+ "@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%;}}}";
|
|
123
|
+ const style7 =
|
|
124
|
+ "@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%;}}}";
|
|
125
|
+ const style8 =
|
|
126
|
+ "@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%;}}}";
|
|
127
|
+ const style9 =
|
|
128
|
+ "@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%;}}}";
|
|
129
|
+ const style10 =
|
|
130
|
+ "@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%;}}}";
|
|
131
|
+ const style11 =
|
|
132
|
+ "@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%;}}}";
|
|
133
|
+ const style12 =
|
|
134
|
+ "@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%;}}}";
|
|
135
|
+ if (this.num >= 13) {
|
|
136
|
+ printJS({
|
|
137
|
+ printable: "prescription-print",
|
|
138
|
+ type: "html",
|
|
139
|
+ style: style,
|
|
140
|
+ scanStyles: false,
|
|
141
|
+ });
|
|
142
|
+ } else if (this.num == 12) {
|
|
143
|
+ printJS({
|
|
144
|
+ printable: "prescription-print",
|
|
145
|
+ type: "html",
|
|
146
|
+ style: style2,
|
|
147
|
+ scanStyles: false,
|
|
148
|
+ });
|
|
149
|
+ } else if (this.num == 11) {
|
|
150
|
+ printJS({
|
|
151
|
+ printable: "prescription-print",
|
|
152
|
+ type: "html",
|
|
153
|
+ style: style3,
|
|
154
|
+ scanStyles: false,
|
|
155
|
+ });
|
|
156
|
+ } else if (this.num == 10) {
|
|
157
|
+ printJS({
|
|
158
|
+ printable: "prescription-print",
|
|
159
|
+ type: "html",
|
|
160
|
+ style: style4,
|
|
161
|
+ scanStyles: false,
|
|
162
|
+ });
|
|
163
|
+ } else if (this.num == 9) {
|
|
164
|
+ printJS({
|
|
165
|
+ printable: "prescription-print",
|
|
166
|
+ type: "html",
|
|
167
|
+ style: style5,
|
|
168
|
+ scanStyles: false,
|
|
169
|
+ });
|
|
170
|
+ } else if (this.num == 8) {
|
|
171
|
+ printJS({
|
|
172
|
+ printable: "prescription-print",
|
|
173
|
+ type: "html",
|
|
174
|
+ style: style6,
|
|
175
|
+ scanStyles: false,
|
|
176
|
+ });
|
|
177
|
+ } else if (this.num == 7) {
|
|
178
|
+ printJS({
|
|
179
|
+ printable: "prescription-print",
|
|
180
|
+ type: "html",
|
|
181
|
+ style: style7,
|
|
182
|
+ scanStyles: false,
|
|
183
|
+ });
|
|
184
|
+ } else if (this.num == 6) {
|
|
185
|
+ printJS({
|
|
186
|
+ printable: "prescription-print",
|
|
187
|
+ type: "html",
|
|
188
|
+ style: style8,
|
|
189
|
+ scanStyles: false,
|
|
190
|
+ });
|
|
191
|
+ } else if (this.num == 5) {
|
|
192
|
+ printJS({
|
|
193
|
+ printable: "prescription-print",
|
|
194
|
+ type: "html",
|
|
195
|
+ style: style9,
|
|
196
|
+ scanStyles: false,
|
|
197
|
+ });
|
|
198
|
+ } else if (this.num == 4) {
|
|
199
|
+ printJS({
|
|
200
|
+ printable: "prescription-print",
|
|
201
|
+ type: "html",
|
|
202
|
+ style: style10,
|
|
203
|
+ scanStyles: false,
|
|
204
|
+ });
|
|
205
|
+ } else if (this.num == 3) {
|
|
206
|
+ printJS({
|
|
207
|
+ printable: "prescription-print",
|
|
208
|
+ type: "html",
|
|
209
|
+ style: style11,
|
|
210
|
+ scanStyles: false,
|
|
211
|
+ });
|
|
212
|
+ } else if (this.num <= 2) {
|
|
213
|
+ printJS({
|
|
214
|
+ printable: "prescription-print",
|
|
215
|
+ type: "html",
|
|
216
|
+ style: style12,
|
|
217
|
+ scanStyles: false,
|
|
218
|
+ });
|
|
219
|
+ }
|
|
220
|
+ }, 500);
|
|
221
|
+ } else if (
|
|
222
|
+ this.$store.getters.xt_user.org_id == 9504 ||
|
|
223
|
+ this.$store.getters.xt_user.org_id == 10028
|
|
224
|
+ ) {
|
|
225
|
+ const style =
|
|
226
|
+ "@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;}}";
|
|
227
|
+ printJS({
|
|
228
|
+ printable: "prescription-print",
|
|
229
|
+ type: "html",
|
|
230
|
+ style: style,
|
|
231
|
+ scanStyles: false,
|
|
232
|
+ });
|
|
233
|
+ } else {
|
|
234
|
+ // 医保环境打印格式
|
|
235
|
+ if (
|
|
236
|
+ this.$store.getters.xt_user.org_id == 9919 ||
|
|
237
|
+ this.$store.getters.xt_user.org_id == 10106
|
|
238
|
+ ) {
|
|
239
|
+ const style =
|
|
240
|
+ "@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;}}";
|
|
241
|
+ printJS({
|
|
242
|
+ printable: "statement-print",
|
|
243
|
+ type: "html",
|
|
244
|
+ style: style,
|
|
245
|
+ scanStyles: false,
|
|
246
|
+ });
|
|
247
|
+ } else if (
|
|
248
|
+ this.$store.getters.xt_user.org_id == 0 ||
|
|
249
|
+ this.$store.getters.xt_user.org_id == 10191
|
|
250
|
+ ) {
|
|
251
|
+ const style =
|
|
252
|
+ "@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%;}}}";
|
|
253
|
+ printJS({
|
|
254
|
+ printable: "statement-print",
|
|
255
|
+ type: "html",
|
|
256
|
+ style: style,
|
|
257
|
+ scanStyles: false,
|
|
258
|
+ });
|
|
259
|
+ // const style =
|
|
260
|
+ // "@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;}}";
|
|
261
|
+ // printJS({
|
|
262
|
+ // printable: "statement-print",
|
|
263
|
+ // type: "html",
|
|
264
|
+ // style: style,
|
|
265
|
+ // scanStyles: false,
|
|
266
|
+ // });
|
|
267
|
+ } else {
|
|
268
|
+ const style =
|
|
269
|
+ "@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%;}}}";
|
|
270
|
+ printJS({
|
|
271
|
+ printable: "statement-print",
|
|
272
|
+ type: "html",
|
|
273
|
+ style: style,
|
|
274
|
+ scanStyles: false,
|
|
275
|
+ });
|
|
276
|
+ }
|
|
277
|
+ }
|
|
278
|
+
|
|
279
|
+ // if (this.org_template_info.template_id == 1) {
|
|
280
|
+ // printJS({
|
|
281
|
+ // printable: "dialysis-print-box",
|
|
282
|
+ // type: "html",
|
|
283
|
+ // style: style,
|
|
284
|
+ // scanStyles: false
|
|
285
|
+ // });
|
|
286
|
+ // }
|
|
287
|
+ },
|
|
288
|
+ getAllDoctorList() {
|
|
289
|
+ getAllDoctorList().then((response) => {
|
|
290
|
+ if (response.data.state == 1) {
|
|
291
|
+ var doctor = response.data.data.doctor;
|
|
292
|
+
|
|
293
|
+ this.doctorList = doctor;
|
|
294
|
+ }
|
|
295
|
+ });
|
|
296
|
+ },
|
|
297
|
+ getAllHisPatientList() {
|
|
298
|
+ const params = {
|
|
299
|
+ record_date: this.record_date,
|
|
300
|
+ };
|
|
301
|
+ getAllHisPatientList(params).then((response) => {
|
|
302
|
+ if (response.data.state == 1) {
|
|
303
|
+ this.patientTableData = response.data.data.list;
|
|
304
|
+ this.patientTableDataTwo = response.data.data.list;
|
|
305
|
+
|
|
306
|
+ console.log("222", this.patientTableData);
|
|
307
|
+ let cal_one = 0;
|
|
308
|
+ let cal_two = 0;
|
|
309
|
+ for (let i = 0; i < response.data.data.list.length; i++) {
|
|
310
|
+ if (
|
|
311
|
+ response.data.data.list[i].prescription == null ||
|
|
312
|
+ response.data.data.list[i].prescription.length == 0
|
|
313
|
+ ) {
|
|
314
|
+ cal_one = cal_one + 1;
|
|
315
|
+ }
|
|
316
|
+ if (
|
|
317
|
+ response.data.data.list[i].prescription != null &&
|
|
318
|
+ response.data.data.list[i].prescription.length > 0
|
|
319
|
+ ) {
|
|
320
|
+ cal_two = cal_two + 1;
|
|
321
|
+ }
|
|
322
|
+ }
|
|
323
|
+ // this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
|
324
|
+ // console.log(this.patientTableData[0])
|
|
325
|
+ // this.choosePatient(this.patientTableData[0])
|
|
326
|
+ this.cal_one = cal_one;
|
|
327
|
+ this.cal_two = cal_two;
|
|
328
|
+ }
|
|
329
|
+ });
|
|
330
|
+ },
|
|
331
|
+
|
|
332
|
+ changePatient(row) {
|
|
333
|
+ console.log("row", row);
|
|
334
|
+ this.patient_id = row.patient_id;
|
|
335
|
+ this.record_date = this.record_date;
|
|
336
|
+ this.prescription_id = this.prescription_id;
|
|
337
|
+ // var params = {
|
|
338
|
+ // patient_id:row.patient_id,
|
|
339
|
+ // record_date:this.record_date,
|
|
340
|
+ // prescription_id:this.prescription_id,
|
|
341
|
+ // }
|
|
342
|
+ // getPrescriptionPrint(params).then(response=>{
|
|
343
|
+ // if(response.data.state == 1){
|
|
344
|
+ // var advicePrint = response.data.data.advicePrint
|
|
345
|
+ // console.log("adviceprint",advicePrint)
|
|
346
|
+ // this.advicePrint = advicePrint
|
|
347
|
+ // // var hisPatient = response.data.data.hisPatient
|
|
348
|
+ // // console.log("hispatient",hisPatient)
|
|
349
|
+ // // this.hisPatient = hisPatient
|
|
350
|
+ // var patient = response.data.data.patient
|
|
351
|
+ // console.log("patient",patient)
|
|
352
|
+ // this.patient = patient
|
|
353
|
+ // var doctorPorject = response.data.data.doctorPorject
|
|
354
|
+ // console.log("doctorporject",doctorPorject)
|
|
355
|
+ // }
|
|
356
|
+ // })
|
|
357
|
+ },
|
|
358
|
+ getTimes(time) {
|
|
359
|
+ return uParseTime(time, "{y}-{m}-{d}");
|
|
360
|
+ },
|
|
361
|
+ searchAction() {
|
|
362
|
+ },
|
|
363
|
+ getInfo(obj) {
|
|
364
|
+ var that = this;
|
|
365
|
+ var params = obj
|
|
366
|
+ getBatchSettleAccount(params).then((response) => {
|
|
367
|
+ if (response.data.state == 0) {
|
|
368
|
+ this.$message.error(response.data.msg)
|
|
369
|
+ return false;
|
|
370
|
+ } else {
|
|
371
|
+ var orders = response.data.data.orders
|
|
372
|
+
|
|
373
|
+ for(let i = 0; i < orders.length; i++){
|
|
374
|
+
|
|
375
|
+ let obj = {
|
|
376
|
+ type: 1,
|
|
377
|
+ details: [],
|
|
378
|
+ total: 0,
|
|
379
|
+ };
|
|
380
|
+ let obj2 = {
|
|
381
|
+ type: 2,
|
|
382
|
+ details: [],
|
|
383
|
+ total: 0,
|
|
384
|
+ };
|
|
385
|
+ let obj3 = {
|
|
386
|
+ type: 3,
|
|
387
|
+ details: [],
|
|
388
|
+ total: 0,
|
|
389
|
+ };
|
|
390
|
+
|
|
391
|
+ let obj4 = {
|
|
392
|
+ type: 4,
|
|
393
|
+ details: [],
|
|
394
|
+ total: 0,
|
|
395
|
+ };
|
|
396
|
+ let num = 0;
|
|
397
|
+ orders[i].order_infos.map((item) => {
|
|
398
|
+ if (item.advice_id > 0) {
|
|
399
|
+ obj.details.push(item);
|
|
400
|
+ obj.total += item.pric * item.advice.prescribing_number;
|
|
401
|
+ num++;
|
|
402
|
+ } else {
|
|
403
|
+ if (item.project.type == 2) {
|
|
404
|
+ obj2.details.push(item);
|
|
405
|
+ obj2.total += item.pric * item.project.count;
|
|
406
|
+ num++;
|
|
407
|
+ } else {
|
|
408
|
+ obj3.details.push(item);
|
|
409
|
+ obj3.total += item.pric * item.project.count;
|
|
410
|
+ num++;
|
|
411
|
+ }
|
|
412
|
+ }
|
|
413
|
+ });
|
|
414
|
+
|
|
415
|
+ orders[i]["new_detail_list"] = [];
|
|
416
|
+ orders[i]["new_detail_list"].push(obj);
|
|
417
|
+ orders[i]["new_detail_list"].push(obj2);
|
|
418
|
+ orders[i]["new_detail_list"].push(obj3);
|
|
419
|
+ // that.info.new_detail_list.push(obj4)
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+ }
|
|
424
|
+ this.info = orders
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+ // var that = this;
|
|
428
|
+ //
|
|
429
|
+ // that.info = response.data.data.info;
|
|
430
|
+ // that.p_admin = response.data.data.printor_admin;
|
|
431
|
+ // that.charge_admin = response.data.data.charge_admin;
|
|
432
|
+ // that.info["p_admin"] = that.p_admin;
|
|
433
|
+ // that.info["charge_admin"] = that.charge_admin;
|
|
434
|
+ // that.info["order_number"] = response.data.data.order_number;
|
|
435
|
+ // that.info["patient"] = response.data.data.patient;
|
|
436
|
+ // that.info["date"] = response.data.data.date;
|
|
437
|
+ // that.info["number"] = response.data.data.number;
|
|
438
|
+ // that.info["order_infos"] = response.data.data.order_infos;
|
|
439
|
+ // that.info["diagnosis"] = response.data.data.diagnosis;
|
|
440
|
+ // that.info["fixmedins_name"] = response.data.data.org_name;
|
|
441
|
+ // that.info["fixmedins_code"] = response.data.data.org_code;
|
|
442
|
+ // // that.info["doctor_code"] = response.data.data.doctor_code;
|
|
443
|
+ // // that.info["department"] = response.data.data.department;
|
|
444
|
+ // // that.info["health_card_no"] = response.data.data.health_card_no;
|
|
445
|
+ //
|
|
446
|
+ // that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
|
447
|
+ // that.info["bed_cost_self_total"] =
|
|
448
|
+ // response.data.data.bedCostSelfTotal;
|
|
449
|
+ // that.info["bed_cost_part_self_total"] =
|
|
450
|
+ // response.data.data.bedCostPartSelfTotal;
|
|
451
|
+ //
|
|
452
|
+ // that.info["operation_cost_total"] =
|
|
453
|
+ // response.data.data.operationCostTotal;
|
|
454
|
+ // that.info["operation_cost_self_total"] =
|
|
455
|
+ // response.data.data.operationCostSelfTotal;
|
|
456
|
+ // that.info["operation_cost_part_self_total"] =
|
|
457
|
+ // response.data.data.operationCostPartSelfTotal;
|
|
458
|
+ //
|
|
459
|
+ // that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
|
460
|
+ // that.info["other_cost_self_total"] =
|
|
461
|
+ // response.data.data.otherCostSelfTotal;
|
|
462
|
+ // that.info["other_cost_part_self_total"] =
|
|
463
|
+ // response.data.data.otherCostPartSelfTotal;
|
|
464
|
+ //
|
|
465
|
+ // that.info["material_cost_total"] =
|
|
466
|
+ // response.data.data.materialCostTotal;
|
|
467
|
+ // that.info["material_cost_self_total"] =
|
|
468
|
+ // response.data.data.materialCostSelfTotal;
|
|
469
|
+ // that.info["material_cost_part_self_total"] =
|
|
470
|
+ // response.data.data.materialCostPartSelfTotal;
|
|
471
|
+ //
|
|
472
|
+ // that.info["western_medicine_cost_total"] =
|
|
473
|
+ // response.data.data.westernMedicineCostTotal;
|
|
474
|
+ // that.info["western_medicine_cost_self_total"] =
|
|
475
|
+ // response.data.data.westernMedicineCostSelfTotal;
|
|
476
|
+ // that.info["western_medicine_cost_part_self_total"] =
|
|
477
|
+ // response.data.data.westernMedicineCostPartSelfTotal;
|
|
478
|
+ //
|
|
479
|
+ // that.info["chinese_traditional_medicine_cost_total"] =
|
|
480
|
+ // response.data.data.chineseTraditionalMedicineCostTotal;
|
|
481
|
+ // that.info["chinese_traditional_medicine_cost_self_total"] =
|
|
482
|
+ // response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
483
|
+ // that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
|
484
|
+ // response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
485
|
+ //
|
|
486
|
+ // that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
|
487
|
+ // that.info["check_cost_self_total"] =
|
|
488
|
+ // response.data.data.checkCostSelfTotal;
|
|
489
|
+ // that.info["check_cost_part_self_total"] =
|
|
490
|
+ // response.data.data.checkCostPartSelfTotal;
|
|
491
|
+ //
|
|
492
|
+ // that.info["laboratory_cost_total"] =
|
|
493
|
+ // response.data.data.laboratoryCostTotal;
|
|
494
|
+ // that.info["laboratory_cost_self_total"] =
|
|
495
|
+ // response.data.data.laboratoryCostSelfTotal;
|
|
496
|
+ // that.info["laboratory_cost_part_self_total"] =
|
|
497
|
+ // response.data.data.laboratoryCostPartSelfTotal;
|
|
498
|
+ //
|
|
499
|
+ // that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
|
500
|
+ // that.info["treat_cost_self_total"] =
|
|
501
|
+ // response.data.data.treatCostSelfTotal;
|
|
502
|
+ // that.info["treat_cost_part_self_total"] =
|
|
503
|
+ // response.data.data.treatCostPartSelfTotal;
|
|
504
|
+ // that.info["date"] = response.data.data.date;
|
|
505
|
+ // // that.info["number"] = response.data.data.number;
|
|
506
|
+ // that.info["order_infos"] = response.data.data.order_infos;
|
|
507
|
+ // that.info["diagnosis"] = response.data.data.diagnosis;
|
|
508
|
+ //
|
|
509
|
+ // let list = []
|
|
510
|
+ // for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
511
|
+ // let order = response.data.data.order_infos[i]
|
|
512
|
+ // let obj = {
|
|
513
|
+ // name: "",
|
|
514
|
+ // spec: "",
|
|
515
|
+ // cnt: "",
|
|
516
|
+ // det_item_fee_sumamt: "",
|
|
517
|
+ // }
|
|
518
|
+ //
|
|
519
|
+ // if (order.advice_id > 0 && order.project_id == 0) {
|
|
520
|
+ // obj.name = order.advice.advice_name
|
|
521
|
+ // let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
|
|
522
|
+ // obj.spec = spec
|
|
523
|
+ // obj.cnt = order.cnt
|
|
524
|
+ // obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
525
|
+ // list.push(obj)
|
|
526
|
+ //
|
|
527
|
+ // } else if (order.advice_id == 0 && order.project_id > 0) {
|
|
528
|
+ // if (order.project.type == 2) {
|
|
529
|
+ // obj.name = order.project.project.project_name
|
|
530
|
+ // obj.spec = ""
|
|
531
|
+ // obj.cnt = order.cnt
|
|
532
|
+ // obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
533
|
+ //
|
|
534
|
+ // } else {
|
|
535
|
+ // obj.name = order.project.good_info.good_name
|
|
536
|
+ // obj.spec = order.project.good_info.specification_name
|
|
537
|
+ // obj.cnt = order.cnt
|
|
538
|
+ // obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
539
|
+ // }
|
|
540
|
+ // list.push(obj)
|
|
541
|
+ // }
|
|
542
|
+ //
|
|
543
|
+ // }
|
|
544
|
+ //
|
|
545
|
+ // console.log(list)
|
|
546
|
+ // let len = list.length / 2
|
|
547
|
+ // let L_list = []
|
|
548
|
+ // let R_list = []
|
|
549
|
+ // len = Math.trunc(len)
|
|
550
|
+ // for (let i = 0; i < len; i++) {
|
|
551
|
+ // L_list.push(list[i])
|
|
552
|
+ // }
|
|
553
|
+ // console.log(len)
|
|
554
|
+ // for (let i = len; i < list.length; i++) {
|
|
555
|
+ // console.log(list[i])
|
|
556
|
+ // R_list.push(list[i])
|
|
557
|
+ // }
|
|
558
|
+ // console.log(L_list)
|
|
559
|
+ // console.log(R_list)
|
|
560
|
+ //
|
|
561
|
+ // that.info["L_list"] = L_list
|
|
562
|
+ // that.info["R_list"] = R_list
|
|
563
|
+
|
|
564
|
+ }
|
|
565
|
+ });
|
|
566
|
+ }
|
|
567
|
+
|
|
568
|
+ },
|
|
569
|
+
|
|
570
|
+ created() {
|
|
571
|
+ this.getInfo(this.paramsObj);
|
|
572
|
+ this.org_id = this.$store.getters.xt_user.org_id;
|
|
573
|
+
|
|
574
|
+ },
|
|
575
|
+ watch: {
|
|
576
|
+ paramsObj: {
|
|
577
|
+ //深度监听,可监听到对象、数组的变化
|
|
578
|
+ handler(val, oldVal) {
|
|
579
|
+ this.paramsObj = val;
|
|
580
|
+ this.getInfo(this.paramsObj);
|
|
581
|
+ },
|
|
582
|
+ deep: true,
|
|
583
|
+ immediate: true,
|
|
584
|
+ },
|
|
585
|
+ },
|
|
586
|
+};
|
|
587
|
+</script>
|
|
588
|
+
|
|
589
|
+<style>
|
|
590
|
+.dialysis-print-order {
|
|
591
|
+ width: 960px;
|
|
592
|
+ margin: 0 auto;
|
|
593
|
+}
|
|
594
|
+
|
|
595
|
+.dialysis-print-order .order-yy-name {
|
|
596
|
+ margin: auto;
|
|
597
|
+ text-align: center;
|
|
598
|
+ font-size: 20px;
|
|
599
|
+ letter-spacing: 5px;
|
|
600
|
+}
|
|
601
|
+
|
|
602
|
+.dialysis-print-order .order-title {
|
|
603
|
+ margin: auto;
|
|
604
|
+ font-weight: 600;
|
|
605
|
+ text-align: center;
|
|
606
|
+ font-size: 22px;
|
|
607
|
+ padding: 10px;
|
|
608
|
+}
|
|
609
|
+
|
|
610
|
+.dialysis-print-order .table-box {
|
|
611
|
+ width: 100%;
|
|
612
|
+ line-height: 23px;
|
|
613
|
+ font-size: 14px;
|
|
614
|
+}
|
|
615
|
+
|
|
616
|
+.dialysis-print-order .print-table {
|
|
617
|
+ width: 100%;
|
|
618
|
+ text-align: center;
|
|
619
|
+ border-collapse: collapse;
|
|
620
|
+ line-height: 40px;
|
|
621
|
+ font-size: 14px;
|
|
622
|
+ border-color: #000;
|
|
623
|
+}
|
|
624
|
+
|
|
625
|
+.dialysis-print-order .print-table-no {
|
|
626
|
+ width: 100%;
|
|
627
|
+ text-align: center;
|
|
628
|
+ border-collapse: collapse;
|
|
629
|
+ font-size: 14px;
|
|
630
|
+}
|
|
631
|
+
|
|
632
|
+.dialysis-print-order .under-line {
|
|
633
|
+ border-bottom: 1px solid #999;
|
|
634
|
+ width: 95%;
|
|
635
|
+ text-align: center;
|
|
636
|
+ margin-left: 2px;
|
|
637
|
+}
|
|
638
|
+
|
|
639
|
+.dialysis-print-order .title-box {
|
|
640
|
+ text-align: center;
|
|
641
|
+ font-size: 16px;
|
|
642
|
+}
|
|
643
|
+
|
|
644
|
+.dialysis-print-order .radio-lebel-box {
|
|
645
|
+ font-weight: 400;
|
|
646
|
+ cursor: pointer;
|
|
647
|
+}
|
|
648
|
+
|
|
649
|
+.dialysis-print-order .radio-no {
|
|
650
|
+ opacity: 0;
|
|
651
|
+ outline: none;
|
|
652
|
+ position: absolute;
|
|
653
|
+ margin: 0;
|
|
654
|
+ width: 0;
|
|
655
|
+ height: 0;
|
|
656
|
+ z-index: -1;
|
|
657
|
+}
|
|
658
|
+
|
|
659
|
+.dialysis-print-order .radio-inner {
|
|
660
|
+ white-space: nowrap;
|
|
661
|
+ cursor: pointer;
|
|
662
|
+ outline: none;
|
|
663
|
+ display: inline-block;
|
|
664
|
+ line-height: 1;
|
|
665
|
+ position: relative;
|
|
666
|
+ vertical-align: middle;
|
|
667
|
+}
|
|
668
|
+
|
|
669
|
+.dialysis-print-order .radio-fang {
|
|
670
|
+ display: inline-block;
|
|
671
|
+ position: relative;
|
|
672
|
+ border: 1px solid #000;
|
|
673
|
+ box-sizing: border-box;
|
|
674
|
+ width: 14px;
|
|
675
|
+ height: 14px;
|
|
676
|
+ background-color: #fff;
|
|
677
|
+ z-index: 1;
|
|
678
|
+ transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
|
|
679
|
+ background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
|
|
680
|
+}
|
|
681
|
+
|
|
682
|
+.dialysis-print-order .is-checked-radio::after {
|
|
683
|
+ content: "√";
|
|
684
|
+ font-size: 15px;
|
|
685
|
+}
|
|
686
|
+
|
|
687
|
+.dialysis-print-order .print-table-no tr td {
|
|
688
|
+ padding: 8px 5px;
|
|
689
|
+ line-height: 25px;
|
|
690
|
+}
|
|
691
|
+
|
|
692
|
+.dialysis-print-order .print-table tr td {
|
|
693
|
+ padding: 1px 1px;
|
|
694
|
+ /*line-height: 25px;*/
|
|
695
|
+}
|
|
696
|
+
|
|
697
|
+.es-img {
|
|
698
|
+ height: 30px;
|
|
699
|
+}
|
|
700
|
+
|
|
701
|
+.advice-name {
|
|
702
|
+ text-align: left;
|
|
703
|
+}
|
|
704
|
+
|
|
705
|
+.advice-children {
|
|
706
|
+ display: flex;
|
|
707
|
+}
|
|
708
|
+
|
|
709
|
+.title-box-pro {
|
|
710
|
+ border: 0 #fff;
|
|
711
|
+ line-height: 25px;
|
|
712
|
+ height: 25px;
|
|
713
|
+ text-align: left;
|
|
714
|
+ padding-left: 10px !important;
|
|
715
|
+}
|
|
716
|
+
|
|
717
|
+.title-box-pro-tr {
|
|
718
|
+ border: 0 #fff;
|
|
719
|
+}
|
|
720
|
+
|
|
721
|
+.text-align-left {
|
|
722
|
+ text-align: left !important;
|
|
723
|
+ padding-left: 10px !important;
|
|
724
|
+ font-size: 14px !important;
|
|
725
|
+ line-height: 25px;
|
|
726
|
+}
|
|
727
|
+
|
|
728
|
+.print-table-tr-new td {
|
|
729
|
+ line-height: 20px !important;
|
|
730
|
+}
|
|
731
|
+
|
|
732
|
+.border-top-solid {
|
|
733
|
+ border: solid 1px #000;
|
|
734
|
+}
|
|
735
|
+
|
|
736
|
+.print-template-two tr {
|
|
737
|
+ line-height: 30px;
|
|
738
|
+}
|
|
739
|
+
|
|
740
|
+.table-box1 {
|
|
741
|
+ border: 1px solid #000;
|
|
742
|
+ width: 100%;
|
|
743
|
+ line-height: 30px;
|
|
744
|
+ font-size: 14px;
|
|
745
|
+ border-collapse: collapse;
|
|
746
|
+}
|
|
747
|
+
|
|
748
|
+.table-box1 tr {
|
|
749
|
+ border-bottom: 1px solid #000;
|
|
750
|
+}
|
|
751
|
+</style>
|
|
752
|
+
|
|
753
|
+<style lang="scss">
|
|
754
|
+.newContainer {
|
|
755
|
+
|
|
756
|
+.dialysisPage::-webkit-scrollbar {
|
|
757
|
+ height: 15px;
|
|
758
|
+}
|
|
759
|
+
|
|
760
|
+.el-date-editor {
|
|
761
|
+
|
|
762
|
+.el-input__inner {
|
|
763
|
+ padding-right: 0px;
|
|
764
|
+}
|
|
765
|
+
|
|
766
|
+}
|
|
767
|
+.el-table td,
|
|
768
|
+.el-table th {
|
|
769
|
+ text-align: center;
|
|
770
|
+}
|
|
771
|
+
|
|
772
|
+}
|
|
773
|
+.newContainer::-webkit-scrollbar {
|
|
774
|
+ height: 15px !important;
|
|
775
|
+}
|
|
776
|
+</style>
|