|
@@ -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"
|
|
@@ -184,23 +189,23 @@
|
184
|
189
|
</template>
|
185
|
190
|
|
186
|
191
|
<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'
|
|
192
|
+import { getDialysisRecord } from "@/api/dialysis";
|
|
193
|
+import { getDataConfig } from "@/utils/data";
|
|
194
|
+import { jsGetAge, uParseTime } from "@/utils/tools";
|
|
195
|
+import LabelBox from "./printItem/LabelBox";
|
|
196
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
197
|
+import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
|
|
198
|
+import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
|
|
199
|
+import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
|
|
200
|
+import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
|
|
201
|
+import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
|
|
202
|
+import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
|
|
203
|
+import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
|
|
204
|
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
|
|
205
|
+import print from "print-js";
|
201
|
206
|
|
202
|
207
|
export default {
|
203
|
|
- name: 'dialysisPrintOrder',
|
|
208
|
+ name: "dialysisPrintOrder",
|
204
|
209
|
components: {
|
205
|
210
|
DialysisPrintOrderOne,
|
206
|
211
|
DialysisPrintOrderTwo,
|
|
@@ -216,8 +221,8 @@ export default {
|
216
|
221
|
data() {
|
217
|
222
|
return {
|
218
|
223
|
crumbs: [
|
219
|
|
- { path: false, name: '透析管理' },
|
220
|
|
- { path: false, name: '打印单' }
|
|
224
|
+ { path: false, name: "透析管理" },
|
|
225
|
+ { path: false, name: "打印单" }
|
221
|
226
|
],
|
222
|
227
|
childResponse: {},
|
223
|
228
|
operators: [],
|
|
@@ -228,21 +233,21 @@ export default {
|
228
|
233
|
},
|
229
|
234
|
operatorMaps: {},
|
230
|
235
|
complications: [
|
231
|
|
- '低血压',
|
232
|
|
- '高血压',
|
233
|
|
- '心律失常',
|
234
|
|
- '头晕',
|
235
|
|
- '头痛',
|
236
|
|
- '呕吐',
|
237
|
|
- '抽搐',
|
238
|
|
- '出血',
|
239
|
|
- '心衰',
|
240
|
|
- '腹痛'
|
|
236
|
+ "低血压",
|
|
237
|
+ "高血压",
|
|
238
|
+ "心律失常",
|
|
239
|
+ "头晕",
|
|
240
|
+ "头痛",
|
|
241
|
+ "呕吐",
|
|
242
|
+ "抽搐",
|
|
243
|
+ "出血",
|
|
244
|
+ "心衰",
|
|
245
|
+ "腹痛"
|
241
|
246
|
],
|
242
|
247
|
jilurow: 0,
|
243
|
248
|
advice_jilurow: 0,
|
244
|
249
|
loading: false,
|
245
|
|
- orgname: '',
|
|
250
|
+ orgname: "",
|
246
|
251
|
patientInfo_gender_1: false,
|
247
|
252
|
patientInfo_gender_2: false,
|
248
|
253
|
patientInfo_source_2: false,
|
|
@@ -255,30 +260,30 @@ export default {
|
255
|
260
|
dialysateFormulationOptions: {},
|
256
|
261
|
|
257
|
262
|
queryParams: {
|
258
|
|
- xtdate: '',
|
259
|
|
- xtno: ''
|
|
263
|
+ xtdate: "",
|
|
264
|
+ xtno: ""
|
260
|
265
|
},
|
261
|
266
|
patientInfo: {
|
262
|
|
- birth: '',
|
263
|
|
- age: '',
|
|
267
|
+ birth: "",
|
|
268
|
+ age: "",
|
264
|
269
|
DialysisSchedule: {
|
265
|
|
- device_number: { number: '' },
|
266
|
|
- device_zone: { name: '' }
|
|
270
|
+ device_number: { number: "" },
|
|
271
|
+ device_zone: { name: "" }
|
267
|
272
|
},
|
268
|
273
|
gender: 0
|
269
|
274
|
},
|
270
|
275
|
predialysis: {
|
271
|
|
- score: '',
|
272
|
|
- internal_fistula: '',
|
273
|
|
- internal_fistula_skin: '',
|
274
|
|
- catheter: '',
|
275
|
|
- blood_access_part_opera_name: ''
|
|
276
|
+ score: "",
|
|
277
|
+ internal_fistula: "",
|
|
278
|
+ internal_fistula_skin: "",
|
|
279
|
+ catheter: "",
|
|
280
|
+ blood_access_part_opera_name: ""
|
276
|
281
|
},
|
277
|
282
|
afterdialysis: {
|
278
|
|
- complications_index: ''
|
|
283
|
+ complications_index: ""
|
279
|
284
|
},
|
280
|
285
|
prescription: {
|
281
|
|
- dialysate_formulation_name: '',
|
|
286
|
+ dialysate_formulation_name: "",
|
282
|
287
|
device: {}
|
283
|
288
|
},
|
284
|
289
|
advices: [],
|
|
@@ -293,185 +298,194 @@ export default {
|
293
|
298
|
|
294
|
299
|
AlPanel: {
|
295
|
300
|
id: 0,
|
296
|
|
- name: '',
|
|
301
|
+ name: "",
|
297
|
302
|
type: 1,
|
298
|
303
|
shouji: 2,
|
299
|
304
|
weichi: 2,
|
300
|
305
|
zongliang: 2,
|
301
|
306
|
gaimingcheng: -1,
|
302
|
307
|
gaijiliang: -1,
|
303
|
|
- shouji_unit: 'mg',
|
304
|
|
- weichi_unit: 'mg/h',
|
305
|
|
- zongliang_unit: 'mg',
|
306
|
|
- gaimingcheng_unit: '',
|
307
|
|
- gaijiliang_unit: ''
|
|
308
|
+ shouji_unit: "mg",
|
|
309
|
+ weichi_unit: "mg/h",
|
|
310
|
+ zongliang_unit: "mg",
|
|
311
|
+ gaimingcheng_unit: "",
|
|
312
|
+ gaijiliang_unit: ""
|
308
|
313
|
}
|
309
|
|
- }
|
|
314
|
+ };
|
310
|
315
|
},
|
311
|
316
|
methods: {
|
312
|
317
|
getAdminUser(id) {
|
313
|
318
|
if (id == 0) {
|
314
|
|
- return ''
|
|
319
|
+ return "";
|
315
|
320
|
}
|
316
|
321
|
if (id == undefined) {
|
317
|
|
- return ''
|
|
322
|
+ return "";
|
318
|
323
|
}
|
319
|
324
|
for (let i = 0; i < this.adminUser.length; i++) {
|
320
|
325
|
if (this.adminUser[i].id == id) {
|
321
|
|
- return this.adminUser[i].name
|
|
326
|
+ return this.adminUser[i].name;
|
322
|
327
|
}
|
323
|
328
|
}
|
324
|
329
|
},
|
325
|
330
|
getTime(value, temp) {
|
326
|
331
|
if (value == 0) {
|
327
|
|
- return ''
|
|
332
|
+ return "";
|
328
|
333
|
}
|
329
|
334
|
if (value != undefined) {
|
330
|
|
- return uParseTime(value, temp)
|
|
335
|
+ return uParseTime(value, temp);
|
331
|
336
|
}
|
332
|
|
- return ''
|
|
337
|
+ return "";
|
333
|
338
|
},
|
334
|
339
|
printThisPage() {
|
335
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
336
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
340
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
341
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
337
|
342
|
|
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;}'
|
|
343
|
+ const style =
|
|
344
|
+ '@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;}';
|
|
345
|
+ const style2 =
|
|
346
|
+ '@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;}';
|
|
347
|
+ const style3 =
|
|
348
|
+ '@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;}';
|
|
349
|
+ const style4 =
|
|
350
|
+ '@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
|
351
|
|
343
|
352
|
if (this.org_template_info.template_id == 1) {
|
344
|
353
|
printJS({
|
345
|
|
- printable: 'dialysis-print-box',
|
346
|
|
- type: 'html',
|
|
354
|
+ printable: "dialysis-print-box",
|
|
355
|
+ type: "html",
|
347
|
356
|
style: style,
|
348
|
357
|
scanStyles: false
|
349
|
|
- })
|
|
358
|
+ });
|
350
|
359
|
} else if (this.org_template_info.template_id == 0) {
|
351
|
360
|
printJS({
|
352
|
|
- printable: 'dialysis-print-box-1',
|
353
|
|
- type: 'html',
|
|
361
|
+ printable: "dialysis-print-box-1",
|
|
362
|
+ type: "html",
|
354
|
363
|
style: style2,
|
355
|
364
|
scanStyles: false
|
356
|
|
- })
|
|
365
|
+ });
|
357
|
366
|
} else if (this.org_template_info.template_id == 2) {
|
358
|
367
|
printJS({
|
359
|
|
- printable: 'dialysis-print-box-1',
|
360
|
|
- type: 'html',
|
|
368
|
+ printable: "dialysis-print-box-1",
|
|
369
|
+ type: "html",
|
361
|
370
|
style: style4,
|
362
|
371
|
scanStyles: false
|
363
|
|
- })
|
|
372
|
+ });
|
364
|
373
|
} else if (this.org_template_info.template_id == 3) {
|
365
|
374
|
printJS({
|
366
|
|
- printable: 'dialysis-print-box',
|
367
|
|
- type: 'html',
|
|
375
|
+ printable: "dialysis-print-box",
|
|
376
|
+ type: "html",
|
368
|
377
|
style: style,
|
369
|
378
|
scanStyles: false
|
370
|
|
- })
|
|
379
|
+ });
|
371
|
380
|
} else if (this.org_template_info.template_id == 4) {
|
372
|
381
|
printJS({
|
373
|
|
- printable: 'dialysis-print-box',
|
374
|
|
- type: 'html',
|
|
382
|
+ printable: "dialysis-print-box",
|
|
383
|
+ type: "html",
|
375
|
384
|
style: style,
|
376
|
385
|
scanStyles: false
|
377
|
|
- })
|
|
386
|
+ });
|
378
|
387
|
} else if (this.org_template_info.template_id == 5) {
|
379
|
388
|
printJS({
|
380
|
|
- printable: 'dialysis-print-box-1',
|
381
|
|
- type: 'html',
|
|
389
|
+ printable: "dialysis-print-box-1",
|
|
390
|
+ type: "html",
|
382
|
391
|
style: style2,
|
383
|
392
|
scanStyles: false
|
384
|
|
- })
|
|
393
|
+ });
|
385
|
394
|
} else if (this.org_template_info.template_id == 6) {
|
386
|
395
|
printJS({
|
387
|
|
- printable: 'dialysis-print-box-1',
|
388
|
|
- type: 'html',
|
|
396
|
+ printable: "dialysis-print-box-1",
|
|
397
|
+ type: "html",
|
389
|
398
|
style: style2,
|
390
|
399
|
scanStyles: false
|
391
|
|
- })
|
|
400
|
+ });
|
392
|
401
|
} else if (this.org_template_info.template_id == 7) {
|
393
|
402
|
printJS({
|
394
|
|
- printable: 'dialysis-print-box',
|
395
|
|
- type: 'html',
|
|
403
|
+ printable: "dialysis-print-box",
|
|
404
|
+ type: "html",
|
396
|
405
|
style: style,
|
397
|
406
|
scanStyles: false
|
398
|
|
- })
|
|
407
|
+ });
|
399
|
408
|
} else if (this.org_template_info.template_id == 8) {
|
400
|
409
|
printJS({
|
401
|
|
- printable: 'dialysis-print-box',
|
402
|
|
- type: 'html',
|
|
410
|
+ printable: "dialysis-print-box",
|
|
411
|
+ type: "html",
|
403
|
412
|
style: style3,
|
404
|
413
|
scanStyles: false
|
405
|
|
- })
|
|
414
|
+ });
|
406
|
415
|
}
|
407
|
416
|
},
|
408
|
417
|
printThisOnePage() {
|
409
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
410
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
418
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
419
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
411
|
420
|
|
412
|
421
|
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;}'
|
|
422
|
+ '@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;}';
|
|
423
|
+ const style2 =
|
|
424
|
+ '@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;}';
|
|
425
|
+ const style3 =
|
|
426
|
+ '@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
|
427
|
|
417
|
428
|
if (this.org_template_info.template_id == 1) {
|
418
|
429
|
printJS({
|
419
|
|
- printable: 'dialysis-print-box',
|
420
|
|
- type: 'html',
|
|
430
|
+ printable: "dialysis-print-box",
|
|
431
|
+ type: "html",
|
421
|
432
|
style: style,
|
422
|
433
|
scanStyles: false
|
423
|
|
- })
|
|
434
|
+ });
|
424
|
435
|
} else if (this.org_template_info.template_id == 2) {
|
425
|
436
|
printJS({
|
426
|
|
- printable: 'dialysis-print-box-1-1',
|
427
|
|
- type: 'html',
|
|
437
|
+ printable: "dialysis-print-box-1-1",
|
|
438
|
+ type: "html",
|
428
|
439
|
style: style3,
|
429
|
440
|
scanStyles: false
|
430
|
|
- })
|
|
441
|
+ });
|
431
|
442
|
} else if (
|
432
|
|
-
|
433
|
443
|
this.org_template_info.template_id == 0 ||
|
434
|
444
|
this.org_template_info.template_id == 5
|
435
|
445
|
) {
|
436
|
446
|
printJS({
|
437
|
|
- printable: 'dialysis-print-box-1-1',
|
438
|
|
- type: 'html',
|
|
447
|
+ printable: "dialysis-print-box-1-1",
|
|
448
|
+ type: "html",
|
439
|
449
|
style: style2,
|
440
|
450
|
scanStyles: false
|
441
|
|
- })
|
|
451
|
+ });
|
442
|
452
|
}
|
443
|
453
|
},
|
444
|
454
|
printThisTwoPage() {
|
445
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
446
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
455
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
456
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
447
|
457
|
|
448
|
458
|
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;}'
|
|
459
|
+ '@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
|
460
|
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;}'
|
|
461
|
+ '@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;}';
|
|
462
|
+ const style3 =
|
|
463
|
+ '@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
|
464
|
|
454
|
465
|
if (this.org_template_info.template_id == 1) {
|
455
|
466
|
printJS({
|
456
|
|
- printable: 'dialysis-print-box',
|
457
|
|
- type: 'html',
|
|
467
|
+ printable: "dialysis-print-box",
|
|
468
|
+ type: "html",
|
458
|
469
|
style: style,
|
459
|
470
|
scanStyles: false
|
460
|
|
- })
|
|
471
|
+ });
|
461
|
472
|
} else if (this.org_template_info.template_id == 2) {
|
462
|
473
|
printJS({
|
463
|
|
- printable: 'dialysis-print-box-1-2',
|
464
|
|
- type: 'html',
|
|
474
|
+ printable: "dialysis-print-box-1-2",
|
|
475
|
+ type: "html",
|
465
|
476
|
style: style3,
|
466
|
477
|
scanStyles: false
|
467
|
|
- })
|
468
|
|
- } else if (this.org_template_info.template_id == 0 || this.org_template_info.template_id == 5) {
|
|
478
|
+ });
|
|
479
|
+ } else if (
|
|
480
|
+ this.org_template_info.template_id == 0 ||
|
|
481
|
+ this.org_template_info.template_id == 5
|
|
482
|
+ ) {
|
469
|
483
|
printJS({
|
470
|
|
- printable: 'dialysis-print-box-1-2',
|
471
|
|
- type: 'html',
|
|
484
|
+ printable: "dialysis-print-box-1-2",
|
|
485
|
+ type: "html",
|
472
|
486
|
style: style2,
|
473
|
487
|
scanStyles: false
|
474
|
|
- })
|
|
488
|
+ });
|
475
|
489
|
}
|
476
|
490
|
},
|
477
|
491
|
getNumber() {
|
|
@@ -479,60 +493,60 @@ export default {
|
479
|
493
|
return (
|
480
|
494
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
481
|
495
|
this.dialysisOrder.DeviceNumber.number
|
482
|
|
- )
|
|
496
|
+ );
|
483
|
497
|
} else {
|
484
|
498
|
return (
|
485
|
499
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
486
|
500
|
this.patientInfo.DialysisSchedule.device_number.number
|
487
|
|
- )
|
|
501
|
+ );
|
488
|
502
|
}
|
489
|
503
|
},
|
490
|
504
|
|
491
|
505
|
getXuserName(id) {
|
492
|
506
|
if (id <= 0) {
|
493
|
|
- return ''
|
|
507
|
+ return "";
|
494
|
508
|
}
|
495
|
|
- var name = ''
|
496
|
|
- if (this.users == null || typeof this.users.length === 'undefined') {
|
497
|
|
- return name
|
|
509
|
+ var name = "";
|
|
510
|
+ if (this.users == null || typeof this.users.length === "undefined") {
|
|
511
|
+ return name;
|
498
|
512
|
}
|
499
|
|
- var leng = this.users.length
|
|
513
|
+ var leng = this.users.length;
|
500
|
514
|
if (leng == 0) {
|
501
|
|
- return name
|
|
515
|
+ return name;
|
502
|
516
|
}
|
503
|
517
|
for (let index = 0; index < leng; index++) {
|
504
|
518
|
if (this.users[index].id == id) {
|
505
|
|
- name = this.users[index].name
|
506
|
|
- break
|
|
519
|
+ name = this.users[index].name;
|
|
520
|
+ break;
|
507
|
521
|
}
|
508
|
522
|
}
|
509
|
|
- return name
|
|
523
|
+ return name;
|
510
|
524
|
},
|
511
|
525
|
setAdminUserES(id) {
|
512
|
|
- console.log(id)
|
|
526
|
+ console.log(id);
|
513
|
527
|
if (id == 0) {
|
514
|
|
- return ''
|
|
528
|
+ return "";
|
515
|
529
|
}
|
516
|
530
|
if (id in this.operatorMaps) {
|
517
|
|
- return this.operatorMaps[id].url
|
|
531
|
+ return this.operatorMaps[id].url;
|
518
|
532
|
} else {
|
519
|
|
- return ''
|
|
533
|
+ return "";
|
520
|
534
|
}
|
521
|
535
|
},
|
522
|
536
|
modeName(mode_id) {
|
523
|
|
- return typeof this.modeOptions[mode_id] !== 'undefined' &&
|
524
|
|
- typeof this.modeOptions[mode_id].name !== 'undefined'
|
|
537
|
+ return typeof this.modeOptions[mode_id] !== "undefined" &&
|
|
538
|
+ typeof this.modeOptions[mode_id].name !== "undefined"
|
525
|
539
|
? this.modeOptions[mode_id].name
|
526
|
|
- : ''
|
|
540
|
+ : "";
|
527
|
541
|
},
|
528
|
542
|
getDialysisRecord() {
|
529
|
|
- this.loading = true
|
|
543
|
+ this.loading = true;
|
530
|
544
|
|
531
|
545
|
getDialysisRecord(this.queryParams).then(response => {
|
532
|
546
|
if (response.data.state == 1) {
|
533
|
|
- this.childResponse = response
|
534
|
|
- this.org_template_info = response.data.data.org_template_info
|
535
|
|
- this.loading = false
|
|
547
|
+ this.childResponse = response;
|
|
548
|
+ this.org_template_info = response.data.data.org_template_info;
|
|
549
|
+ this.loading = false;
|
536
|
550
|
// this.adminUser = response.data.data.users
|
537
|
551
|
// this.users = response.data.data.users
|
538
|
552
|
// this.patientInfo = response.data.data.patientInfo
|
|
@@ -769,23 +783,23 @@ export default {
|
769
|
783
|
// }
|
770
|
784
|
// console.log(this.advice_groups)
|
771
|
785
|
} else {
|
772
|
|
- this.loading = false
|
773
|
|
- this.$message.error('请求数据失败')
|
774
|
|
- return false
|
|
786
|
+ this.loading = false;
|
|
787
|
+ this.$message.error("请求数据失败");
|
|
788
|
+ return false;
|
775
|
789
|
}
|
776
|
|
- })
|
|
790
|
+ });
|
777
|
791
|
},
|
778
|
792
|
bloodAccessParOperaName(id) {
|
779
|
793
|
if (id in this.bloodAccessParOpera) {
|
780
|
|
- return this.bloodAccessParOpera[id].name
|
|
794
|
+ return this.bloodAccessParOpera[id].name;
|
781
|
795
|
}
|
782
|
|
- return ''
|
|
796
|
+ return "";
|
783
|
797
|
},
|
784
|
798
|
dialysateFormulationName(id) {
|
785
|
799
|
if (id in this.dialysateFormulationOptions) {
|
786
|
|
- return this.dialysateFormulationOptions[id].name
|
|
800
|
+ return this.dialysateFormulationOptions[id].name;
|
787
|
801
|
}
|
788
|
|
- return ''
|
|
802
|
+ return "";
|
789
|
803
|
},
|
790
|
804
|
getAge: function(val) {
|
791
|
805
|
if (
|
|
@@ -793,12 +807,12 @@ export default {
|
793
|
807
|
this.org_template_info.template_id == 0
|
794
|
808
|
) {
|
795
|
809
|
if (val.age == 0) {
|
796
|
|
- return jsGetAge(val.birth, '-')
|
|
810
|
+ return jsGetAge(val.birth, "-");
|
797
|
811
|
} else {
|
798
|
|
- return val.age
|
|
812
|
+ return val.age;
|
799
|
813
|
}
|
800
|
814
|
} else {
|
801
|
|
- return jsGetAge(val.birth, '-')
|
|
815
|
+ return jsGetAge(val.birth, "-");
|
802
|
816
|
}
|
803
|
817
|
},
|
804
|
818
|
newAdviceGroupObject: function() {
|
|
@@ -813,81 +827,81 @@ export default {
|
813
|
827
|
// exec_time: 0,
|
814
|
828
|
// checker: 0,
|
815
|
829
|
}
|
816
|
|
- )
|
|
830
|
+ );
|
817
|
831
|
}
|
818
|
832
|
},
|
819
|
833
|
watch: {
|
820
|
|
- 'patientInfo.gender': function() {
|
|
834
|
+ "patientInfo.gender": function() {
|
821
|
835
|
if (this.patientInfo.gender == 1) {
|
822
|
|
- this.patientInfo_gender_1 = true
|
823
|
|
- this.patientInfo_gender_2 = false
|
|
836
|
+ this.patientInfo_gender_1 = true;
|
|
837
|
+ this.patientInfo_gender_2 = false;
|
824
|
838
|
} else if (this.patientInfo.gender == 2) {
|
825
|
|
- this.patientInfo_gender_2 = true
|
826
|
|
- this.patientInfo_gender_1 = false
|
|
839
|
+ this.patientInfo_gender_2 = true;
|
|
840
|
+ this.patientInfo_gender_1 = false;
|
827
|
841
|
} else {
|
828
|
|
- this.patientInfo_gender_2 = false
|
829
|
|
- this.patientInfo_gender_1 = false
|
|
842
|
+ this.patientInfo_gender_2 = false;
|
|
843
|
+ this.patientInfo_gender_1 = false;
|
830
|
844
|
}
|
831
|
845
|
},
|
832
|
|
- 'patientInfo.source': function() {
|
|
846
|
+ "patientInfo.source": function() {
|
833
|
847
|
if (this.patientInfo.source == 1) {
|
834
|
|
- this.patientInfo_source_1 = true
|
835
|
|
- this.patientInfo_source_2 = false
|
|
848
|
+ this.patientInfo_source_1 = true;
|
|
849
|
+ this.patientInfo_source_2 = false;
|
836
|
850
|
} else if (this.patientInfo.source == 2) {
|
837
|
|
- this.patientInfo_source_2 = true
|
838
|
|
- this.patientInfo_source_1 = false
|
|
851
|
+ this.patientInfo_source_2 = true;
|
|
852
|
+ this.patientInfo_source_1 = false;
|
839
|
853
|
} else {
|
840
|
|
- this.patientInfo_source_2 = false
|
841
|
|
- this.patientInfo_source_1 = false
|
|
854
|
+ this.patientInfo_source_2 = false;
|
|
855
|
+ this.patientInfo_source_1 = false;
|
842
|
856
|
}
|
843
|
857
|
}
|
844
|
858
|
},
|
845
|
859
|
created() {
|
846
|
|
- var xtuser = this.$store.getters.xt_user
|
847
|
|
- this.orgname = xtuser.org.org_name
|
|
860
|
+ var xtuser = this.$store.getters.xt_user;
|
|
861
|
+ this.orgname = xtuser.org.org_name;
|
848
|
862
|
// 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
|
|
863
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
|
864
|
+ this.replacementWays = this.$store.getters.replacement_ways;
|
|
865
|
+ this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
|
866
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
853
|
867
|
|
854
|
868
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
855
|
869
|
|
856
|
870
|
var bloodAccessParOpera = getDataConfig(
|
857
|
|
- 'hemodialysis',
|
858
|
|
- 'vascular_access_desc'
|
859
|
|
- )
|
|
871
|
+ "hemodialysis",
|
|
872
|
+ "vascular_access_desc"
|
|
873
|
+ );
|
860
|
874
|
for (var key in bloodAccessParOpera) {
|
861
|
875
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
862
|
|
- bloodAccessParOpera[key]
|
|
876
|
+ bloodAccessParOpera[key];
|
863
|
877
|
}
|
864
|
878
|
|
865
|
879
|
var dialysateFormulationOptions = getDataConfig(
|
866
|
|
- 'hemodialysis',
|
867
|
|
- 'dialysate_formulation'
|
868
|
|
- )
|
|
880
|
+ "hemodialysis",
|
|
881
|
+ "dialysate_formulation"
|
|
882
|
+ );
|
869
|
883
|
for (var key in dialysateFormulationOptions) {
|
870
|
884
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
871
|
|
- dialysateFormulationOptions[key]
|
|
885
|
+ dialysateFormulationOptions[key];
|
872
|
886
|
}
|
873
|
887
|
|
874
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate
|
875
|
|
- const xtno = this.$route.query && this.$route.query.xtno
|
|
888
|
+ const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
889
|
+ const xtno = this.$route.query && this.$route.query.xtno;
|
876
|
890
|
if (
|
877
|
|
- typeof xtdate === 'string' &&
|
|
891
|
+ typeof xtdate === "string" &&
|
878
|
892
|
xtdate.length > 0 &&
|
879
|
|
- typeof xtno === 'string' &&
|
|
893
|
+ typeof xtno === "string" &&
|
880
|
894
|
xtno.length > 0
|
881
|
895
|
) {
|
882
|
|
- this.queryParams.xtdate = xtdate
|
883
|
|
- this.queryParams.xtno = xtno
|
884
|
|
- this.getDialysisRecord()
|
|
896
|
+ this.queryParams.xtdate = xtdate;
|
|
897
|
+ this.queryParams.xtno = xtno;
|
|
898
|
+ this.getDialysisRecord();
|
885
|
899
|
} else {
|
886
|
|
- this.$message.error('参数不齐')
|
887
|
|
- return false
|
|
900
|
+ this.$message.error("参数不齐");
|
|
901
|
+ return false;
|
888
|
902
|
}
|
889
|
903
|
}
|
890
|
|
-}
|
|
904
|
+};
|
891
|
905
|
</script>
|
892
|
906
|
|
893
|
907
|
<style>
|