|
@@ -12,7 +12,12 @@
|
12
|
12
|
>打印</el-button
|
13
|
13
|
>
|
14
|
14
|
</template>
|
15
|
|
- <template v-if=" org_template_info.template_id == 2 || org_template_info.template_id == 0 " >
|
|
15
|
+ <template
|
|
16
|
+ v-if="
|
|
17
|
+ org_template_info.template_id == 2 ||
|
|
18
|
+ org_template_info.template_id == 0
|
|
19
|
+ "
|
|
20
|
+ >
|
16
|
21
|
<div>
|
17
|
22
|
<el-button
|
18
|
23
|
:loading="loading"
|
|
@@ -118,6 +123,16 @@
|
118
|
123
|
>打印</el-button
|
119
|
124
|
>
|
120
|
125
|
</template>
|
|
126
|
+ <template v-if="org_template_info.template_id == 9">
|
|
127
|
+ <el-button
|
|
128
|
+ :loading="loading"
|
|
129
|
+ size="small"
|
|
130
|
+ icon="el-icon-printer"
|
|
131
|
+ @click="printThisPage"
|
|
132
|
+ type="primary"
|
|
133
|
+ >打印</el-button
|
|
134
|
+ >
|
|
135
|
+ </template>
|
121
|
136
|
</div>
|
122
|
137
|
<div class="app-container ">
|
123
|
138
|
<!--<div class="order-print-btn"-->
|
|
@@ -179,28 +194,33 @@
|
179
|
194
|
v-if="org_template_info.template_id == 8"
|
180
|
195
|
>
|
181
|
196
|
</DialysisPrintOrderEight>
|
|
197
|
+ <DialysisPrintOrderNine
|
|
198
|
+ v-bind:childResponse="childResponse"
|
|
199
|
+ v-if="org_template_info.template_id == 9"
|
|
200
|
+ ></DialysisPrintOrderNine>
|
182
|
201
|
</div>
|
183
|
202
|
</div>
|
184
|
203
|
</template>
|
185
|
204
|
|
186
|
205
|
<script>
|
187
|
|
-import { getDialysisRecord } from '@/api/dialysis'
|
188
|
|
-import { getDataConfig } from '@/utils/data'
|
189
|
|
-import { jsGetAge, uParseTime } from '@/utils/tools'
|
190
|
|
-import LabelBox from './printItem/LabelBox'
|
191
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
192
|
|
-import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
193
|
|
-import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
194
|
|
-import DialysisPrintOrderThree from './template/dialysisPrintOrderThree'
|
195
|
|
-import DialysisPrintOrderFour from './template/DialysisPrintOrderFour'
|
196
|
|
-import DialysisPrintOrderFive from './template/DialysisPrintOrderFive'
|
197
|
|
-import DialysisPrintOrderSix from './template/DialysisPrintOrderSix'
|
198
|
|
-import DialysisPrintOrderSeven from './template/DialysisPrintOrderSeven'
|
199
|
|
-import DialysisPrintOrderEight from './template/DialysisPrintOrderEight'
|
200
|
|
-import print from 'print-js'
|
|
206
|
+import { getDialysisRecord } from "@/api/dialysis";
|
|
207
|
+import { getDataConfig } from "@/utils/data";
|
|
208
|
+import { jsGetAge, uParseTime } from "@/utils/tools";
|
|
209
|
+import LabelBox from "./printItem/LabelBox";
|
|
210
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
211
|
+import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
|
|
212
|
+import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
|
|
213
|
+import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
|
|
214
|
+import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
|
|
215
|
+import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
|
|
216
|
+import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
|
|
217
|
+import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
|
|
218
|
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
|
|
219
|
+import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
|
|
220
|
+import print from "print-js";
|
201
|
221
|
|
202
|
222
|
export default {
|
203
|
|
- name: 'dialysisPrintOrder',
|
|
223
|
+ name: "dialysisPrintOrder",
|
204
|
224
|
components: {
|
205
|
225
|
DialysisPrintOrderOne,
|
206
|
226
|
DialysisPrintOrderTwo,
|
|
@@ -210,14 +230,15 @@ export default {
|
210
|
230
|
DialysisPrintOrderSix,
|
211
|
231
|
DialysisPrintOrderSeven,
|
212
|
232
|
DialysisPrintOrderEight,
|
|
233
|
+ DialysisPrintOrderNine,
|
213
|
234
|
LabelBox,
|
214
|
235
|
BreadCrumb
|
215
|
236
|
},
|
216
|
237
|
data() {
|
217
|
238
|
return {
|
218
|
239
|
crumbs: [
|
219
|
|
- { path: false, name: '透析管理' },
|
220
|
|
- { path: false, name: '打印单' }
|
|
240
|
+ { path: false, name: "透析管理" },
|
|
241
|
+ { path: false, name: "打印单" }
|
221
|
242
|
],
|
222
|
243
|
childResponse: {},
|
223
|
244
|
operators: [],
|
|
@@ -228,21 +249,21 @@ export default {
|
228
|
249
|
},
|
229
|
250
|
operatorMaps: {},
|
230
|
251
|
complications: [
|
231
|
|
- '低血压',
|
232
|
|
- '高血压',
|
233
|
|
- '心律失常',
|
234
|
|
- '头晕',
|
235
|
|
- '头痛',
|
236
|
|
- '呕吐',
|
237
|
|
- '抽搐',
|
238
|
|
- '出血',
|
239
|
|
- '心衰',
|
240
|
|
- '腹痛'
|
|
252
|
+ "低血压",
|
|
253
|
+ "高血压",
|
|
254
|
+ "心律失常",
|
|
255
|
+ "头晕",
|
|
256
|
+ "头痛",
|
|
257
|
+ "呕吐",
|
|
258
|
+ "抽搐",
|
|
259
|
+ "出血",
|
|
260
|
+ "心衰",
|
|
261
|
+ "腹痛"
|
241
|
262
|
],
|
242
|
263
|
jilurow: 0,
|
243
|
264
|
advice_jilurow: 0,
|
244
|
265
|
loading: false,
|
245
|
|
- orgname: '',
|
|
266
|
+ orgname: "",
|
246
|
267
|
patientInfo_gender_1: false,
|
247
|
268
|
patientInfo_gender_2: false,
|
248
|
269
|
patientInfo_source_2: false,
|
|
@@ -255,30 +276,30 @@ export default {
|
255
|
276
|
dialysateFormulationOptions: {},
|
256
|
277
|
|
257
|
278
|
queryParams: {
|
258
|
|
- xtdate: '',
|
259
|
|
- xtno: ''
|
|
279
|
+ xtdate: "",
|
|
280
|
+ xtno: ""
|
260
|
281
|
},
|
261
|
282
|
patientInfo: {
|
262
|
|
- birth: '',
|
263
|
|
- age: '',
|
|
283
|
+ birth: "",
|
|
284
|
+ age: "",
|
264
|
285
|
DialysisSchedule: {
|
265
|
|
- device_number: { number: '' },
|
266
|
|
- device_zone: { name: '' }
|
|
286
|
+ device_number: { number: "" },
|
|
287
|
+ device_zone: { name: "" }
|
267
|
288
|
},
|
268
|
289
|
gender: 0
|
269
|
290
|
},
|
270
|
291
|
predialysis: {
|
271
|
|
- score: '',
|
272
|
|
- internal_fistula: '',
|
273
|
|
- internal_fistula_skin: '',
|
274
|
|
- catheter: '',
|
275
|
|
- blood_access_part_opera_name: ''
|
|
292
|
+ score: "",
|
|
293
|
+ internal_fistula: "",
|
|
294
|
+ internal_fistula_skin: "",
|
|
295
|
+ catheter: "",
|
|
296
|
+ blood_access_part_opera_name: ""
|
276
|
297
|
},
|
277
|
298
|
afterdialysis: {
|
278
|
|
- complications_index: ''
|
|
299
|
+ complications_index: ""
|
279
|
300
|
},
|
280
|
301
|
prescription: {
|
281
|
|
- dialysate_formulation_name: '',
|
|
302
|
+ dialysate_formulation_name: "",
|
282
|
303
|
device: {}
|
283
|
304
|
},
|
284
|
305
|
advices: [],
|
|
@@ -293,185 +314,205 @@ export default {
|
293
|
314
|
|
294
|
315
|
AlPanel: {
|
295
|
316
|
id: 0,
|
296
|
|
- name: '',
|
|
317
|
+ name: "",
|
297
|
318
|
type: 1,
|
298
|
319
|
shouji: 2,
|
299
|
320
|
weichi: 2,
|
300
|
321
|
zongliang: 2,
|
301
|
322
|
gaimingcheng: -1,
|
302
|
323
|
gaijiliang: -1,
|
303
|
|
- shouji_unit: 'mg',
|
304
|
|
- weichi_unit: 'mg/h',
|
305
|
|
- zongliang_unit: 'mg',
|
306
|
|
- gaimingcheng_unit: '',
|
307
|
|
- gaijiliang_unit: ''
|
|
324
|
+ shouji_unit: "mg",
|
|
325
|
+ weichi_unit: "mg/h",
|
|
326
|
+ zongliang_unit: "mg",
|
|
327
|
+ gaimingcheng_unit: "",
|
|
328
|
+ gaijiliang_unit: ""
|
308
|
329
|
}
|
309
|
|
- }
|
|
330
|
+ };
|
310
|
331
|
},
|
311
|
332
|
methods: {
|
312
|
333
|
getAdminUser(id) {
|
313
|
334
|
if (id == 0) {
|
314
|
|
- return ''
|
|
335
|
+ return "";
|
315
|
336
|
}
|
316
|
337
|
if (id == undefined) {
|
317
|
|
- return ''
|
|
338
|
+ return "";
|
318
|
339
|
}
|
319
|
340
|
for (let i = 0; i < this.adminUser.length; i++) {
|
320
|
341
|
if (this.adminUser[i].id == id) {
|
321
|
|
- return this.adminUser[i].name
|
|
342
|
+ return this.adminUser[i].name;
|
322
|
343
|
}
|
323
|
344
|
}
|
324
|
345
|
},
|
325
|
346
|
getTime(value, temp) {
|
326
|
347
|
if (value == 0) {
|
327
|
|
- return ''
|
|
348
|
+ return "";
|
328
|
349
|
}
|
329
|
350
|
if (value != undefined) {
|
330
|
|
- return uParseTime(value, temp)
|
|
351
|
+ return uParseTime(value, temp);
|
331
|
352
|
}
|
332
|
|
- return ''
|
|
353
|
+ return "";
|
333
|
354
|
},
|
334
|
355
|
printThisPage() {
|
335
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
336
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
356
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
357
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
337
|
358
|
|
338
|
|
- const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
339
|
|
- const style2 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
340
|
|
- const style3 = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 2px 5px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
341
|
|
- const style4 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
|
359
|
+ const style =
|
|
360
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
361
|
+ const style2 =
|
|
362
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
|
363
|
+ const style3 =
|
|
364
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 2px 5px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
365
|
+ const style4 =
|
|
366
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
342
|
367
|
|
343
|
368
|
if (this.org_template_info.template_id == 1) {
|
344
|
369
|
printJS({
|
345
|
|
- printable: 'dialysis-print-box',
|
346
|
|
- type: 'html',
|
|
370
|
+ printable: "dialysis-print-box",
|
|
371
|
+ type: "html",
|
347
|
372
|
style: style,
|
348
|
373
|
scanStyles: false
|
349
|
|
- })
|
|
374
|
+ });
|
350
|
375
|
} else if (this.org_template_info.template_id == 0) {
|
351
|
376
|
printJS({
|
352
|
|
- printable: 'dialysis-print-box-1',
|
353
|
|
- type: 'html',
|
|
377
|
+ printable: "dialysis-print-box-1",
|
|
378
|
+ type: "html",
|
354
|
379
|
style: style2,
|
355
|
380
|
scanStyles: false
|
356
|
|
- })
|
|
381
|
+ });
|
357
|
382
|
} else if (this.org_template_info.template_id == 2) {
|
358
|
383
|
printJS({
|
359
|
|
- printable: 'dialysis-print-box-1',
|
360
|
|
- type: 'html',
|
|
384
|
+ printable: "dialysis-print-box-1",
|
|
385
|
+ type: "html",
|
361
|
386
|
style: style4,
|
362
|
387
|
scanStyles: false
|
363
|
|
- })
|
|
388
|
+ });
|
364
|
389
|
} else if (this.org_template_info.template_id == 3) {
|
365
|
390
|
printJS({
|
366
|
|
- printable: 'dialysis-print-box',
|
367
|
|
- type: 'html',
|
|
391
|
+ printable: "dialysis-print-box",
|
|
392
|
+ type: "html",
|
368
|
393
|
style: style,
|
369
|
394
|
scanStyles: false
|
370
|
|
- })
|
|
395
|
+ });
|
371
|
396
|
} else if (this.org_template_info.template_id == 4) {
|
372
|
397
|
printJS({
|
373
|
|
- printable: 'dialysis-print-box',
|
374
|
|
- type: 'html',
|
|
398
|
+ printable: "dialysis-print-box",
|
|
399
|
+ type: "html",
|
375
|
400
|
style: style,
|
376
|
401
|
scanStyles: false
|
377
|
|
- })
|
|
402
|
+ });
|
378
|
403
|
} else if (this.org_template_info.template_id == 5) {
|
379
|
404
|
printJS({
|
380
|
|
- printable: 'dialysis-print-box-1',
|
381
|
|
- type: 'html',
|
|
405
|
+ printable: "dialysis-print-box-1",
|
|
406
|
+ type: "html",
|
382
|
407
|
style: style2,
|
383
|
408
|
scanStyles: false
|
384
|
|
- })
|
|
409
|
+ });
|
385
|
410
|
} else if (this.org_template_info.template_id == 6) {
|
386
|
411
|
printJS({
|
387
|
|
- printable: 'dialysis-print-box-1',
|
388
|
|
- type: 'html',
|
|
412
|
+ printable: "dialysis-print-box-1",
|
|
413
|
+ type: "html",
|
389
|
414
|
style: style2,
|
390
|
415
|
scanStyles: false
|
391
|
|
- })
|
|
416
|
+ });
|
392
|
417
|
} else if (this.org_template_info.template_id == 7) {
|
393
|
418
|
printJS({
|
394
|
|
- printable: 'dialysis-print-box',
|
395
|
|
- type: 'html',
|
|
419
|
+ printable: "dialysis-print-box",
|
|
420
|
+ type: "html",
|
396
|
421
|
style: style,
|
397
|
422
|
scanStyles: false
|
398
|
|
- })
|
|
423
|
+ });
|
399
|
424
|
} else if (this.org_template_info.template_id == 8) {
|
400
|
425
|
printJS({
|
401
|
|
- printable: 'dialysis-print-box',
|
402
|
|
- type: 'html',
|
|
426
|
+ printable: "dialysis-print-box",
|
|
427
|
+ type: "html",
|
|
428
|
+ style: style3,
|
|
429
|
+ scanStyles: false
|
|
430
|
+ });
|
|
431
|
+ } else if (this.org_template_info.template_id == 9) {
|
|
432
|
+ console.log(
|
|
433
|
+ "joasdjjaslkdjlasjdlkasj",
|
|
434
|
+ this.org_template_info.template_id
|
|
435
|
+ );
|
|
436
|
+ printJS({
|
|
437
|
+ printable: "dialysis-print-box",
|
|
438
|
+ type: "html",
|
403
|
439
|
style: style3,
|
404
|
440
|
scanStyles: false
|
405
|
|
- })
|
|
441
|
+ });
|
406
|
442
|
}
|
407
|
443
|
},
|
408
|
444
|
printThisOnePage() {
|
409
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
410
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
445
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
446
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
411
|
447
|
|
412
|
448
|
const style =
|
413
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
414
|
|
- const style2 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
415
|
|
- const style3 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
|
449
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
450
|
+ const style2 =
|
|
451
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
|
452
|
+ const style3 =
|
|
453
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
416
|
454
|
|
417
|
455
|
if (this.org_template_info.template_id == 1) {
|
418
|
456
|
printJS({
|
419
|
|
- printable: 'dialysis-print-box',
|
420
|
|
- type: 'html',
|
|
457
|
+ printable: "dialysis-print-box",
|
|
458
|
+ type: "html",
|
421
|
459
|
style: style,
|
422
|
460
|
scanStyles: false
|
423
|
|
- })
|
|
461
|
+ });
|
424
|
462
|
} else if (this.org_template_info.template_id == 2) {
|
425
|
463
|
printJS({
|
426
|
|
- printable: 'dialysis-print-box-1-1',
|
427
|
|
- type: 'html',
|
|
464
|
+ printable: "dialysis-print-box-1-1",
|
|
465
|
+ type: "html",
|
428
|
466
|
style: style3,
|
429
|
467
|
scanStyles: false
|
430
|
|
- })
|
|
468
|
+ });
|
431
|
469
|
} else if (
|
432
|
|
-
|
433
|
470
|
this.org_template_info.template_id == 0 ||
|
434
|
471
|
this.org_template_info.template_id == 5
|
435
|
472
|
) {
|
436
|
473
|
printJS({
|
437
|
|
- printable: 'dialysis-print-box-1-1',
|
438
|
|
- type: 'html',
|
|
474
|
+ printable: "dialysis-print-box-1-1",
|
|
475
|
+ type: "html",
|
439
|
476
|
style: style2,
|
440
|
477
|
scanStyles: false
|
441
|
|
- })
|
|
478
|
+ });
|
442
|
479
|
}
|
443
|
480
|
},
|
444
|
481
|
printThisTwoPage() {
|
445
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
446
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
482
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
483
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
447
|
484
|
|
448
|
485
|
const style =
|
449
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
|
486
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
450
|
487
|
const style2 =
|
451
|
|
- '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
452
|
|
- const style3 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
|
488
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
|
489
|
+ const style3 =
|
|
490
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 6px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
453
|
491
|
|
454
|
492
|
if (this.org_template_info.template_id == 1) {
|
455
|
493
|
printJS({
|
456
|
|
- printable: 'dialysis-print-box',
|
457
|
|
- type: 'html',
|
|
494
|
+ printable: "dialysis-print-box",
|
|
495
|
+ type: "html",
|
458
|
496
|
style: style,
|
459
|
497
|
scanStyles: false
|
460
|
|
- })
|
|
498
|
+ });
|
461
|
499
|
} else if (this.org_template_info.template_id == 2) {
|
462
|
500
|
printJS({
|
463
|
|
- printable: 'dialysis-print-box-1-2',
|
464
|
|
- type: 'html',
|
|
501
|
+ printable: "dialysis-print-box-1-2",
|
|
502
|
+ type: "html",
|
465
|
503
|
style: style3,
|
466
|
504
|
scanStyles: false
|
467
|
|
- })
|
468
|
|
- } else if (this.org_template_info.template_id == 0 || this.org_template_info.template_id == 5) {
|
|
505
|
+ });
|
|
506
|
+ } else if (
|
|
507
|
+ this.org_template_info.template_id == 0 ||
|
|
508
|
+ this.org_template_info.template_id == 5
|
|
509
|
+ ) {
|
469
|
510
|
printJS({
|
470
|
|
- printable: 'dialysis-print-box-1-2',
|
471
|
|
- type: 'html',
|
|
511
|
+ printable: "dialysis-print-box-1-2",
|
|
512
|
+ type: "html",
|
472
|
513
|
style: style2,
|
473
|
514
|
scanStyles: false
|
474
|
|
- })
|
|
515
|
+ });
|
475
|
516
|
}
|
476
|
517
|
},
|
477
|
518
|
getNumber() {
|
|
@@ -479,60 +520,60 @@ export default {
|
479
|
520
|
return (
|
480
|
521
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
481
|
522
|
this.dialysisOrder.DeviceNumber.number
|
482
|
|
- )
|
|
523
|
+ );
|
483
|
524
|
} else {
|
484
|
525
|
return (
|
485
|
526
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
486
|
527
|
this.patientInfo.DialysisSchedule.device_number.number
|
487
|
|
- )
|
|
528
|
+ );
|
488
|
529
|
}
|
489
|
530
|
},
|
490
|
531
|
|
491
|
532
|
getXuserName(id) {
|
492
|
533
|
if (id <= 0) {
|
493
|
|
- return ''
|
|
534
|
+ return "";
|
494
|
535
|
}
|
495
|
|
- var name = ''
|
496
|
|
- if (this.users == null || typeof this.users.length === 'undefined') {
|
497
|
|
- return name
|
|
536
|
+ var name = "";
|
|
537
|
+ if (this.users == null || typeof this.users.length === "undefined") {
|
|
538
|
+ return name;
|
498
|
539
|
}
|
499
|
|
- var leng = this.users.length
|
|
540
|
+ var leng = this.users.length;
|
500
|
541
|
if (leng == 0) {
|
501
|
|
- return name
|
|
542
|
+ return name;
|
502
|
543
|
}
|
503
|
544
|
for (let index = 0; index < leng; index++) {
|
504
|
545
|
if (this.users[index].id == id) {
|
505
|
|
- name = this.users[index].name
|
506
|
|
- break
|
|
546
|
+ name = this.users[index].name;
|
|
547
|
+ break;
|
507
|
548
|
}
|
508
|
549
|
}
|
509
|
|
- return name
|
|
550
|
+ return name;
|
510
|
551
|
},
|
511
|
552
|
setAdminUserES(id) {
|
512
|
|
- console.log(id)
|
|
553
|
+ console.log(id);
|
513
|
554
|
if (id == 0) {
|
514
|
|
- return ''
|
|
555
|
+ return "";
|
515
|
556
|
}
|
516
|
557
|
if (id in this.operatorMaps) {
|
517
|
|
- return this.operatorMaps[id].url
|
|
558
|
+ return this.operatorMaps[id].url;
|
518
|
559
|
} else {
|
519
|
|
- return ''
|
|
560
|
+ return "";
|
520
|
561
|
}
|
521
|
562
|
},
|
522
|
563
|
modeName(mode_id) {
|
523
|
|
- return typeof this.modeOptions[mode_id] !== 'undefined' &&
|
524
|
|
- typeof this.modeOptions[mode_id].name !== 'undefined'
|
|
564
|
+ return typeof this.modeOptions[mode_id] !== "undefined" &&
|
|
565
|
+ typeof this.modeOptions[mode_id].name !== "undefined"
|
525
|
566
|
? this.modeOptions[mode_id].name
|
526
|
|
- : ''
|
|
567
|
+ : "";
|
527
|
568
|
},
|
528
|
569
|
getDialysisRecord() {
|
529
|
|
- this.loading = true
|
|
570
|
+ this.loading = true;
|
530
|
571
|
|
531
|
572
|
getDialysisRecord(this.queryParams).then(response => {
|
532
|
573
|
if (response.data.state == 1) {
|
533
|
|
- this.childResponse = response
|
534
|
|
- this.org_template_info = response.data.data.org_template_info
|
535
|
|
- this.loading = false
|
|
574
|
+ this.childResponse = response;
|
|
575
|
+ this.org_template_info = response.data.data.org_template_info;
|
|
576
|
+ this.loading = false;
|
536
|
577
|
// this.adminUser = response.data.data.users
|
537
|
578
|
// this.users = response.data.data.users
|
538
|
579
|
// this.patientInfo = response.data.data.patientInfo
|
|
@@ -769,23 +810,23 @@ export default {
|
769
|
810
|
// }
|
770
|
811
|
// console.log(this.advice_groups)
|
771
|
812
|
} else {
|
772
|
|
- this.loading = false
|
773
|
|
- this.$message.error('请求数据失败')
|
774
|
|
- return false
|
|
813
|
+ this.loading = false;
|
|
814
|
+ this.$message.error("请求数据失败");
|
|
815
|
+ return false;
|
775
|
816
|
}
|
776
|
|
- })
|
|
817
|
+ });
|
777
|
818
|
},
|
778
|
819
|
bloodAccessParOperaName(id) {
|
779
|
820
|
if (id in this.bloodAccessParOpera) {
|
780
|
|
- return this.bloodAccessParOpera[id].name
|
|
821
|
+ return this.bloodAccessParOpera[id].name;
|
781
|
822
|
}
|
782
|
|
- return ''
|
|
823
|
+ return "";
|
783
|
824
|
},
|
784
|
825
|
dialysateFormulationName(id) {
|
785
|
826
|
if (id in this.dialysateFormulationOptions) {
|
786
|
|
- return this.dialysateFormulationOptions[id].name
|
|
827
|
+ return this.dialysateFormulationOptions[id].name;
|
787
|
828
|
}
|
788
|
|
- return ''
|
|
829
|
+ return "";
|
789
|
830
|
},
|
790
|
831
|
getAge: function(val) {
|
791
|
832
|
if (
|
|
@@ -793,12 +834,12 @@ export default {
|
793
|
834
|
this.org_template_info.template_id == 0
|
794
|
835
|
) {
|
795
|
836
|
if (val.age == 0) {
|
796
|
|
- return jsGetAge(val.birth, '-')
|
|
837
|
+ return jsGetAge(val.birth, "-");
|
797
|
838
|
} else {
|
798
|
|
- return val.age
|
|
839
|
+ return val.age;
|
799
|
840
|
}
|
800
|
841
|
} else {
|
801
|
|
- return jsGetAge(val.birth, '-')
|
|
842
|
+ return jsGetAge(val.birth, "-");
|
802
|
843
|
}
|
803
|
844
|
},
|
804
|
845
|
newAdviceGroupObject: function() {
|
|
@@ -813,81 +854,81 @@ export default {
|
813
|
854
|
// exec_time: 0,
|
814
|
855
|
// checker: 0,
|
815
|
856
|
}
|
816
|
|
- )
|
|
857
|
+ );
|
817
|
858
|
}
|
818
|
859
|
},
|
819
|
860
|
watch: {
|
820
|
|
- 'patientInfo.gender': function() {
|
|
861
|
+ "patientInfo.gender": function() {
|
821
|
862
|
if (this.patientInfo.gender == 1) {
|
822
|
|
- this.patientInfo_gender_1 = true
|
823
|
|
- this.patientInfo_gender_2 = false
|
|
863
|
+ this.patientInfo_gender_1 = true;
|
|
864
|
+ this.patientInfo_gender_2 = false;
|
824
|
865
|
} else if (this.patientInfo.gender == 2) {
|
825
|
|
- this.patientInfo_gender_2 = true
|
826
|
|
- this.patientInfo_gender_1 = false
|
|
866
|
+ this.patientInfo_gender_2 = true;
|
|
867
|
+ this.patientInfo_gender_1 = false;
|
827
|
868
|
} else {
|
828
|
|
- this.patientInfo_gender_2 = false
|
829
|
|
- this.patientInfo_gender_1 = false
|
|
869
|
+ this.patientInfo_gender_2 = false;
|
|
870
|
+ this.patientInfo_gender_1 = false;
|
830
|
871
|
}
|
831
|
872
|
},
|
832
|
|
- 'patientInfo.source': function() {
|
|
873
|
+ "patientInfo.source": function() {
|
833
|
874
|
if (this.patientInfo.source == 1) {
|
834
|
|
- this.patientInfo_source_1 = true
|
835
|
|
- this.patientInfo_source_2 = false
|
|
875
|
+ this.patientInfo_source_1 = true;
|
|
876
|
+ this.patientInfo_source_2 = false;
|
836
|
877
|
} else if (this.patientInfo.source == 2) {
|
837
|
|
- this.patientInfo_source_2 = true
|
838
|
|
- this.patientInfo_source_1 = false
|
|
878
|
+ this.patientInfo_source_2 = true;
|
|
879
|
+ this.patientInfo_source_1 = false;
|
839
|
880
|
} else {
|
840
|
|
- this.patientInfo_source_2 = false
|
841
|
|
- this.patientInfo_source_1 = false
|
|
881
|
+ this.patientInfo_source_2 = false;
|
|
882
|
+ this.patientInfo_source_1 = false;
|
842
|
883
|
}
|
843
|
884
|
}
|
844
|
885
|
},
|
845
|
886
|
created() {
|
846
|
|
- var xtuser = this.$store.getters.xt_user
|
847
|
|
- this.orgname = xtuser.org.org_name
|
|
887
|
+ var xtuser = this.$store.getters.xt_user;
|
|
888
|
+ this.orgname = xtuser.org.org_name;
|
848
|
889
|
// this.orgname = "遂溪方济医院";
|
849
|
|
- this.modeOptions = this.$store.getters.treatment_mode
|
850
|
|
- this.replacementWays = this.$store.getters.replacement_ways
|
851
|
|
- this.perfusionApparatus = this.$store.getters.perfusion_apparatus
|
852
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
890
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
|
891
|
+ this.replacementWays = this.$store.getters.replacement_ways;
|
|
892
|
+ this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
|
893
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
853
|
894
|
|
854
|
895
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
855
|
896
|
|
856
|
897
|
var bloodAccessParOpera = getDataConfig(
|
857
|
|
- 'hemodialysis',
|
858
|
|
- 'vascular_access_desc'
|
859
|
|
- )
|
|
898
|
+ "hemodialysis",
|
|
899
|
+ "vascular_access_desc"
|
|
900
|
+ );
|
860
|
901
|
for (var key in bloodAccessParOpera) {
|
861
|
902
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
862
|
|
- bloodAccessParOpera[key]
|
|
903
|
+ bloodAccessParOpera[key];
|
863
|
904
|
}
|
864
|
905
|
|
865
|
906
|
var dialysateFormulationOptions = getDataConfig(
|
866
|
|
- 'hemodialysis',
|
867
|
|
- 'dialysate_formulation'
|
868
|
|
- )
|
|
907
|
+ "hemodialysis",
|
|
908
|
+ "dialysate_formulation"
|
|
909
|
+ );
|
869
|
910
|
for (var key in dialysateFormulationOptions) {
|
870
|
911
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
871
|
|
- dialysateFormulationOptions[key]
|
|
912
|
+ dialysateFormulationOptions[key];
|
872
|
913
|
}
|
873
|
914
|
|
874
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate
|
875
|
|
- const xtno = this.$route.query && this.$route.query.xtno
|
|
915
|
+ const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
916
|
+ const xtno = this.$route.query && this.$route.query.xtno;
|
876
|
917
|
if (
|
877
|
|
- typeof xtdate === 'string' &&
|
|
918
|
+ typeof xtdate === "string" &&
|
878
|
919
|
xtdate.length > 0 &&
|
879
|
|
- typeof xtno === 'string' &&
|
|
920
|
+ typeof xtno === "string" &&
|
880
|
921
|
xtno.length > 0
|
881
|
922
|
) {
|
882
|
|
- this.queryParams.xtdate = xtdate
|
883
|
|
- this.queryParams.xtno = xtno
|
884
|
|
- this.getDialysisRecord()
|
|
923
|
+ this.queryParams.xtdate = xtdate;
|
|
924
|
+ this.queryParams.xtno = xtno;
|
|
925
|
+ this.getDialysisRecord();
|
885
|
926
|
} else {
|
886
|
|
- this.$message.error('参数不齐')
|
887
|
|
- return false
|
|
927
|
+ this.$message.error("参数不齐");
|
|
928
|
+ return false;
|
888
|
929
|
}
|
889
|
930
|
}
|
890
|
|
-}
|
|
931
|
+};
|
891
|
932
|
</script>
|
892
|
933
|
|
893
|
934
|
<style>
|