Explorar el Código

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx hace 5 años
padre
commit
6c416f916b

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 2231 - 2194
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue


+ 207 - 233
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Ver fichero

@@ -2621,36 +2621,10 @@
2621 2621
                   <div class="row" style="padding: 2px 0;line-height:24px;">
2622 2622
                     <div class="inline_block">
2623 2623
                       血管通路:
2624
-                      <check-box
2625
-                        text="内瘘"
2626
-                        :checked="
2627
-                          isCheckBoxChecked(
2628
-                            record.prescription,
2629
-                            'blood_access',
2630
-                            1
2631
-                          )
2632
-                        "
2633
-                      ></check-box>
2634
-                      <check-box
2635
-                        text="直穿"
2636
-                        :checked="
2637
-                          isCheckBoxChecked(
2638
-                            record.prescription,
2639
-                            'blood_access',
2640
-                            2
2641
-                          )
2642
-                        "
2643
-                      ></check-box>
2644
-                      <check-box
2645
-                        text="导管"
2646
-                        :checked="
2647
-                          isCheckBoxChecked(
2648
-                            record.prescription,
2649
-                            'blood_access',
2650
-                            3
2651
-                          )
2652
-                        "
2653
-                      ></check-box>
2624
+                      <check-box v-for="(item, index) in bloodAccessParOpera" :key="index" :text="item.name" :checked=" record.prescription.blood_access == item.id ? true : false  " ></check-box>
2625
+                      <!-- <check-boxtext="内瘘":checked="isCheckBoxChecked(record.prescription,'blood_access',1)"> </check-box>
2626
+                      <check-boxtext="直穿":checked="isCheckBoxChecked(record.prescription,'blood_access',2)"> </check-box>
2627
+                      <check-boxtext="导管":checked="isCheckBoxChecked(record.prescription,'blood_access',3)"> </check-box> -->
2654 2628
                     </div>
2655 2629
                     <div class="inline_block">
2656 2630
                       &emsp;血流量:
@@ -3165,14 +3139,14 @@
3165 3139
 </template>
3166 3140
 
3167 3141
 <script>
3168
-import CheckBox from "./option_check_box";
3169
-import { GetBatchPrintDialysisData } from "@/api/print_data";
3170
-import { jsGetAge, uParseTime } from "@/utils/tools";
3171
-import { getDataConfig } from "@/utils/data";
3172
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
3173
-import print from "print-js";
3142
+import CheckBox from './option_check_box'
3143
+import { GetBatchPrintDialysisData } from '@/api/print_data'
3144
+import { jsGetAge, uParseTime } from '@/utils/tools'
3145
+import { getDataConfig } from '@/utils/data'
3146
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
3147
+import print from 'print-js'
3174 3148
 export default {
3175
-  name: "BatchPrintOrder",
3149
+  name: 'BatchPrintOrder',
3176 3150
   components: {
3177 3151
     CheckBox,
3178 3152
     BreadCrumb
@@ -3180,8 +3154,8 @@ export default {
3180 3154
   data() {
3181 3155
     return {
3182 3156
       crumbs: [
3183
-        { path: false, name: "透析管理" },
3184
-        { path: false, name: "批量打印" }
3157
+        { path: false, name: '透析管理' },
3158
+        { path: false, name: '批量打印' }
3185 3159
       ],
3186 3160
       records: [
3187 3161
         // 模拟有多条数据
@@ -3204,7 +3178,7 @@ export default {
3204 3178
       nutrition_arr: [],
3205 3179
 
3206 3180
       loading: false,
3207
-      orgname: "",
3181
+      orgname: '',
3208 3182
       bloodAccessParOpera: {},
3209 3183
       anticoagulantsConfit: {},
3210 3184
       dialysateFormulationOptions: {},
@@ -3215,53 +3189,53 @@ export default {
3215 3189
       advice_groups: [],
3216 3190
       advice_groups_2: [],
3217 3191
       complications: [
3218
-        "低血压",
3219
-        "高血压",
3220
-        "心律失常",
3221
-        "头晕",
3222
-        "头痛",
3223
-        "呕吐",
3224
-        "抽搐",
3225
-        "出血",
3226
-        "心衰",
3227
-        "腹痛"
3192
+        '低血压',
3193
+        '高血压',
3194
+        '心律失常',
3195
+        '头晕',
3196
+        '头痛',
3197
+        '呕吐',
3198
+        '抽搐',
3199
+        '出血',
3200
+        '心衰',
3201
+        '腹痛'
3228 3202
       ]
3229
-    };
3203
+    }
3230 3204
   },
3231 3205
   created() {
3232
-    this.way_arr = getDataConfig("hemodialysis", "way");
3233
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
3234
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
3235
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
3236
-    this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
3237
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
3238
-    this.intake_arr = getDataConfig("hemodialysis", "intake");
3239
-    this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
3240
-
3241
-    var xtuser = this.$store.getters.xt_user;
3242
-    this.orgname = xtuser.org.org_name;
3206
+    this.way_arr = getDataConfig('hemodialysis', 'way')
3207
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
3208
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
3209
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
3210
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
3211
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
3212
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
3213
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
3214
+
3215
+    var xtuser = this.$store.getters.xt_user
3216
+    this.orgname = xtuser.org.org_name
3243 3217
     //   this.orgname = "遂溪方济医院";
3244
-    this.modeOptions = this.$store.getters.treatment_mode;
3218
+    this.modeOptions = this.$store.getters.treatment_mode
3245 3219
     //   this.replacementWays = this.$store.getters.replacement_ways;
3246 3220
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
3247
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
3221
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
3248 3222
 
3249 3223
     var bloodAccessParOpera = getDataConfig(
3250
-      "hemodialysis",
3251
-      "vascular_access_desc"
3252
-    );
3224
+      'hemodialysis',
3225
+      'vascular_access_desc'
3226
+    )
3253 3227
     for (var key in bloodAccessParOpera) {
3254 3228
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
3255
-        bloodAccessParOpera[key];
3229
+        bloodAccessParOpera[key]
3256 3230
     }
3257 3231
 
3258 3232
     var dialysateFormulationOptions = getDataConfig(
3259
-      "hemodialysis",
3260
-      "dialysate_formulation"
3261
-    );
3233
+      'hemodialysis',
3234
+      'dialysate_formulation'
3235
+    )
3262 3236
     for (var key in dialysateFormulationOptions) {
3263 3237
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
3264
-        dialysateFormulationOptions[key];
3238
+        dialysateFormulationOptions[key]
3265 3239
     }
3266 3240
 
3267 3241
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
@@ -3276,21 +3250,21 @@ export default {
3276 3250
     //   }
3277 3251
   },
3278 3252
   mounted() {
3279
-    this.loading = true;
3280
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
3253
+    this.loading = true
3254
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
3281 3255
     if (ids.length == 0) {
3282
-      this.$router.back(-1);
3283
-      return;
3256
+      this.$router.back(-1)
3257
+      return
3284 3258
     }
3285
-    GetBatchPrintDialysisData(ids.join(","))
3259
+    GetBatchPrintDialysisData(ids.join(','))
3286 3260
       .then(rs => {
3287
-        var resp = rs.data;
3261
+        var resp = rs.data
3288 3262
         if (resp.state == 1) {
3289
-          this.records = this.records.concat(resp.data.schedules);
3263
+          this.records = this.records.concat(resp.data.schedules)
3290 3264
           for (const recordIndex in this.records) {
3291
-            this.advice_groups = [];
3292
-            this.advice_groups_2 = [];
3293
-            var dlegh = 0;
3265
+            this.advice_groups = []
3266
+            this.advice_groups_2 = []
3267
+            var dlegh = 0
3294 3268
             if (
3295 3269
               (this.records[recordIndex].assessment_before_dislysis &&
3296 3270
                 this.records[recordIndex].assessment_before_dislysis
@@ -3310,38 +3284,38 @@ export default {
3310 3284
                 this.records[recordIndex].assessment_before_dislysis
3311 3285
                   .temperature != 0)
3312 3286
             ) {
3313
-              var nl = 8;
3314
-              this.records[recordIndex].print_length = 8;
3287
+              var nl = 8
3288
+              this.records[recordIndex].print_length = 8
3315 3289
             } else {
3316
-              var nl = 9;
3317
-              this.records[recordIndex].print_length = 9;
3290
+              var nl = 9
3291
+              this.records[recordIndex].print_length = 9
3318 3292
             }
3319 3293
             if (
3320 3294
               this.records[recordIndex].monitor_records &&
3321 3295
               this.records[recordIndex].monitor_records.length < 8
3322 3296
             ) {
3323
-              dlegh = nl - this.records[recordIndex].monitor_records.length;
3297
+              dlegh = nl - this.records[recordIndex].monitor_records.length
3324 3298
             }
3325 3299
             if (this.records[recordIndex].monitor_records.length <= 0) {
3326
-              dlegh = nl;
3300
+              dlegh = nl
3327 3301
             }
3328 3302
             if (dlegh > 0) {
3329 3303
               if (
3330 3304
                 typeof this.records[recordIndex].monitor_records ===
3331
-                  "undefined" ||
3305
+                  'undefined' ||
3332 3306
                 this.records[recordIndex].monitor_records == null
3333 3307
               ) {
3334
-                this.records[recordIndex].monitor_records = [];
3308
+                this.records[recordIndex].monitor_records = []
3335 3309
               }
3336 3310
               for (let index = 0; index < dlegh; index++) {
3337
-                this.records[recordIndex].monitor_records.push([]);
3311
+                this.records[recordIndex].monitor_records.push([])
3338 3312
               }
3339 3313
             }
3340 3314
 
3341
-            this.records[recordIndex].monitor_records2 = [];
3315
+            this.records[recordIndex].monitor_records2 = []
3342 3316
             if (this.records[recordIndex].monitor_records.length > 13) {
3343
-              const tempMonitors = [];
3344
-              const tempMonitors2 = [];
3317
+              const tempMonitors = []
3318
+              const tempMonitors2 = []
3345 3319
 
3346 3320
               for (
3347 3321
                 let index = 0;
@@ -3351,21 +3325,21 @@ export default {
3351 3325
                 if (index < 13) {
3352 3326
                   tempMonitors.push(
3353 3327
                     this.records[recordIndex].monitor_records[index]
3354
-                  );
3328
+                  )
3355 3329
                 } else {
3356 3330
                   tempMonitors2.push(
3357 3331
                     this.records[recordIndex].monitor_records[index]
3358
-                  );
3332
+                  )
3359 3333
                 }
3360 3334
               }
3361
-              this.records[recordIndex].monitor_records = tempMonitors;
3362
-              this.records[recordIndex].monitor_records2 = tempMonitors2;
3335
+              this.records[recordIndex].monitor_records = tempMonitors
3336
+              this.records[recordIndex].monitor_records2 = tempMonitors2
3363 3337
             }
3364 3338
 
3365
-            var childMap = {};
3339
+            var childMap = {}
3366 3340
             for (const index in this.records[recordIndex].advices) {
3367 3341
               if (this.records[recordIndex].advices[index].parent_id == 0) {
3368
-                continue;
3342
+                continue
3369 3343
               }
3370 3344
               if (
3371 3345
                 !(
@@ -3374,52 +3348,52 @@ export default {
3374 3348
               ) {
3375 3349
                 childMap[
3376 3350
                   this.records[recordIndex].advices[index].parent_id
3377
-                ] = [];
3351
+                ] = []
3378 3352
               }
3379 3353
               childMap[this.records[recordIndex].advices[index].parent_id].push(
3380 3354
                 this.records[recordIndex].advices[index]
3381
-              );
3355
+              )
3382 3356
             }
3383 3357
 
3384
-            var advices = [];
3358
+            var advices = []
3385 3359
             for (const index in this.records[recordIndex].advices) {
3386 3360
               if (this.records[recordIndex].advices[index].parent_id > 0) {
3387
-                continue;
3361
+                continue
3388 3362
               }
3389
-              var item = this.records[recordIndex].advices[index];
3363
+              var item = this.records[recordIndex].advices[index]
3390 3364
               if (item.id in childMap) {
3391
-                item.children = childMap[item.id];
3365
+                item.children = childMap[item.id]
3392 3366
               } else {
3393
-                item.children = [];
3367
+                item.children = []
3394 3368
               }
3395
-              advices.push(item);
3369
+              advices.push(item)
3396 3370
             }
3397 3371
 
3398 3372
             this.doctor_advices =
3399 3373
               this.records[recordIndex].advices == null
3400 3374
                 ? []
3401
-                : this.records[recordIndex].advices;
3375
+                : this.records[recordIndex].advices
3402 3376
             for (let index = 0; index < this.doctor_advices.length; index++) {
3403
-              this.doctor_advices[index]["isShow"] = 2;
3377
+              this.doctor_advices[index]['isShow'] = 2
3404 3378
             }
3405 3379
 
3406 3380
             if (this.doctor_advices.length > 0) {
3407
-              var group = this.newAdviceGroupObject();
3381
+              var group = this.newAdviceGroupObject()
3408 3382
               var initGroupBlock = function(group, advice) {
3409
-                group.group_no = advice.groupno;
3410
-              };
3383
+                group.group_no = advice.groupno
3384
+              }
3411 3385
               for (
3412 3386
                 let index = this.doctor_advices.length - 1;
3413 3387
                 index >= 0;
3414 3388
                 index--
3415 3389
               ) {
3416
-                var new_advice_index = 0;
3390
+                var new_advice_index = 0
3417 3391
                 if (
3418
-                  "children" in this.doctor_advices[index] &&
3392
+                  'children' in this.doctor_advices[index] &&
3419 3393
                   this.doctor_advices[index].children.length > 0
3420 3394
                 ) {
3421 3395
                   new_advice_index =
3422
-                    index + this.doctor_advices[index].children.length + 1;
3396
+                    index + this.doctor_advices[index].children.length + 1
3423 3397
 
3424 3398
                   var doctor_advice = {
3425 3399
                     delivery_way: this.doctor_advices[index].delivery_way,
@@ -3434,66 +3408,66 @@ export default {
3434 3408
                     checker: this.doctor_advices[index].checker,
3435 3409
                     advice_doctor: this.doctor_advices[index].advice_doctor,
3436 3410
                     execution_time: this.doctor_advices[index].execution_time
3437
-                  };
3438
-                  doctor_advice["isShow"] = 1;
3411
+                  }
3412
+                  doctor_advice['isShow'] = 1
3439 3413
                   this.doctor_advices.splice(
3440 3414
                     new_advice_index,
3441 3415
                     0,
3442 3416
                     doctor_advice
3443
-                  );
3417
+                  )
3444 3418
                 }
3445 3419
               }
3446 3420
 
3447
-              var templength = 0;
3421
+              var templength = 0
3448 3422
               if (this.doctor_advices.length > 12) {
3449
-                templength = 12;
3423
+                templength = 12
3450 3424
               } else {
3451
-                templength = this.doctor_advices.length;
3425
+                templength = this.doctor_advices.length
3452 3426
               }
3453 3427
 
3454 3428
               for (let index = 0; index < templength; index++) {
3455
-                const advice = this.doctor_advices[index];
3429
+                const advice = this.doctor_advices[index]
3456 3430
                 if (advice.groupno == 0) {
3457 3431
                   // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
3458 3432
                   if (advice.parent_id > 0) {
3459 3433
                     if (this.advice_groups.length > 0) {
3460 3434
                       var parent_group = this.advice_groups[
3461 3435
                         this.advice_groups.length - 1
3462
-                      ];
3436
+                      ]
3463 3437
                       if (parent_group.advices.length > 0) {
3464 3438
                         if (parent_group.advices[0].id == advice.parent_id) {
3465
-                          parent_group.advices.push(advice);
3439
+                          parent_group.advices.push(advice)
3466 3440
                         }
3467 3441
                       }
3468 3442
                     }
3469
-                    continue;
3443
+                    continue
3470 3444
                   } else {
3471 3445
                     if (group.group_no > 0) {
3472
-                      this.advice_groups.push(group);
3473
-                      group = this.newAdviceGroupObject();
3446
+                      this.advice_groups.push(group)
3447
+                      group = this.newAdviceGroupObject()
3474 3448
                     }
3475 3449
 
3476
-                    initGroupBlock(group, advice);
3477
-                    group.advices.push(advice);
3478
-                    this.advice_groups.push(group);
3479
-                    group = this.newAdviceGroupObject();
3480
-                    continue;
3450
+                    initGroupBlock(group, advice)
3451
+                    group.advices.push(advice)
3452
+                    this.advice_groups.push(group)
3453
+                    group = this.newAdviceGroupObject()
3454
+                    continue
3481 3455
                   }
3482 3456
                 }
3483 3457
 
3484 3458
                 if (group.group_no > 0 && group.group_no != advice.groupno) {
3485
-                  this.advice_groups.push(group);
3486
-                  group = this.newAdviceGroupObject();
3459
+                  this.advice_groups.push(group)
3460
+                  group = this.newAdviceGroupObject()
3487 3461
                 }
3488 3462
                 if (group.group_no == 0) {
3489
-                  initGroupBlock(group, advice);
3463
+                  initGroupBlock(group, advice)
3490 3464
                 }
3491 3465
                 if (group.group_no == advice.groupno) {
3492
-                  group.advices.push(advice);
3466
+                  group.advices.push(advice)
3493 3467
                 }
3494 3468
                 if (index == 11) {
3495
-                  this.advice_groups.push(group);
3496
-                  group = this.newAdviceGroupObject();
3469
+                  this.advice_groups.push(group)
3470
+                  group = this.newAdviceGroupObject()
3497 3471
                 }
3498 3472
               }
3499 3473
 
@@ -3503,241 +3477,241 @@ export default {
3503 3477
                   index < this.doctor_advices.length;
3504 3478
                   index++
3505 3479
                 ) {
3506
-                  const advice = this.doctor_advices[index];
3480
+                  const advice = this.doctor_advices[index]
3507 3481
                   if (advice.groupno == 0) {
3508 3482
                     // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
3509 3483
                     if (advice.parent_id > 0) {
3510 3484
                       if (this.advice_groups_2.length > 0) {
3511 3485
                         var parent_group = this.advice_groups_2[
3512 3486
                           this.advice_groups_2.length - 1
3513
-                        ];
3487
+                        ]
3514 3488
                         if (parent_group.advices.length > 0) {
3515 3489
                           if (parent_group.advices[0].id == advice.parent_id) {
3516
-                            parent_group.advices.push(advice);
3490
+                            parent_group.advices.push(advice)
3517 3491
                           }
3518 3492
                         }
3519 3493
                       }
3520
-                      continue;
3494
+                      continue
3521 3495
                     } else {
3522 3496
                       if (group.group_no > 0) {
3523
-                        this.advice_groups_2.push(group);
3524
-                        group = this.newAdviceGroupObject();
3497
+                        this.advice_groups_2.push(group)
3498
+                        group = this.newAdviceGroupObject()
3525 3499
                       }
3526 3500
 
3527
-                      initGroupBlock(group, advice);
3528
-                      group.advices.push(advice);
3529
-                      this.advice_groups_2.push(group);
3530
-                      group = this.newAdviceGroupObject();
3531
-                      continue;
3501
+                      initGroupBlock(group, advice)
3502
+                      group.advices.push(advice)
3503
+                      this.advice_groups_2.push(group)
3504
+                      group = this.newAdviceGroupObject()
3505
+                      continue
3532 3506
                     }
3533 3507
                   }
3534 3508
 
3535 3509
                   if (group.group_no > 0 && group.group_no != advice.groupno) {
3536
-                    this.advice_groups_2.push(group);
3537
-                    group = this.newAdviceGroupObject();
3510
+                    this.advice_groups_2.push(group)
3511
+                    group = this.newAdviceGroupObject()
3538 3512
                   }
3539 3513
                   if (group.group_no == 0) {
3540
-                    initGroupBlock(group, advice);
3514
+                    initGroupBlock(group, advice)
3541 3515
                   }
3542 3516
                   if (group.group_no == advice.groupno) {
3543
-                    group.advices.push(advice);
3517
+                    group.advices.push(advice)
3544 3518
                   }
3545 3519
                 }
3546 3520
               }
3547 3521
               if (group.group_no > 0) {
3548 3522
                 // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
3549 3523
                 if (this.doctor_advices.length > 12) {
3550
-                  this.advice_groups_2.push(group);
3524
+                  this.advice_groups_2.push(group)
3551 3525
                 } else {
3552
-                  this.advice_groups.push(group);
3526
+                  this.advice_groups.push(group)
3553 3527
                 }
3554 3528
               }
3555 3529
             }
3556
-            this.records[recordIndex].advices = [];
3557
-            this.records[recordIndex].advices2 = [];
3558
-            this.records[recordIndex].advices = this.advice_groups;
3559
-            this.records[recordIndex].advices2 = this.advice_groups_2;
3530
+            this.records[recordIndex].advices = []
3531
+            this.records[recordIndex].advices2 = []
3532
+            this.records[recordIndex].advices = this.advice_groups
3533
+            this.records[recordIndex].advices2 = this.advice_groups_2
3560 3534
           }
3561 3535
 
3562
-          this.operators = resp.data.medical_staffs;
3536
+          this.operators = resp.data.medical_staffs
3563 3537
           if (this.operators.length > 0) {
3564
-            var operatorsLen = this.operators.length;
3538
+            var operatorsLen = this.operators.length
3565 3539
             for (var index = 0; index < operatorsLen; index++) {
3566 3540
               this.$set(
3567 3541
                 this.operatorMaps,
3568 3542
                 this.operators[index].id,
3569 3543
                 this.operators[index]
3570
-              );
3544
+              )
3571 3545
             }
3572 3546
           }
3573 3547
 
3574
-          this.adminUser = resp.data.users;
3575
-          this.loading = false;
3548
+          this.adminUser = resp.data.users
3549
+          this.loading = false
3576 3550
         } else {
3577
-          this.loading = false;
3578
-          this.$message.error(resp.msg);
3551
+          this.loading = false
3552
+          this.$message.error(resp.msg)
3579 3553
         }
3580 3554
       })
3581 3555
       .catch(err => {
3582
-        this.$message.error(err);
3583
-      });
3556
+        this.$message.error(err)
3557
+      })
3584 3558
   },
3585 3559
   methods: {
3586 3560
     printAction: function() {
3587 3561
       const style =
3588
-        '@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: 5px 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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}';
3562
+        '@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: 5px 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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
3589 3563
 
3590 3564
       printJS({
3591
-        printable: "print_content",
3592
-        type: "html",
3593
-        documentTitle: "  ",
3565
+        printable: 'print_content',
3566
+        type: 'html',
3567
+        documentTitle: '  ',
3594 3568
         style: style,
3595 3569
         scanStyles: false
3596
-      });
3570
+      })
3597 3571
     },
3598 3572
 
3599 3573
     complicationsOther: function(record) {
3600
-      if (record == null || typeof record === "undefined") {
3601
-        return "";
3574
+      if (record == null || typeof record === 'undefined') {
3575
+        return ''
3602 3576
       }
3603 3577
       if (record.complication.length == 0) {
3604
-        return "";
3578
+        return ''
3605 3579
       }
3606
-      var complications = record.complication.split(",");
3607
-      var complicationOthers = [];
3580
+      var complications = record.complication.split(',')
3581
+      var complicationOthers = []
3608 3582
       for (const index in complications) {
3609 3583
         if (
3610 3584
           this.complications.indexOf(complications[index]) < 0 &&
3611 3585
           complicationOthers.indexOf(complications[index]) < 0
3612 3586
         ) {
3613
-          complicationOthers.push(complications[index]);
3587
+          complicationOthers.push(complications[index])
3614 3588
         }
3615 3589
       }
3616
-      return complicationOthers.join(",");
3590
+      return complicationOthers.join(',')
3617 3591
     },
3618 3592
     modeName(mode_id) {
3619 3593
       if (mode_id in this.modeOptions) {
3620
-        return this.modeOptions[mode_id].name;
3594
+        return this.modeOptions[mode_id].name
3621 3595
       }
3622
-      return "";
3596
+      return ''
3623 3597
     },
3624 3598
     anticoagulantName: function(key) {
3625
-      if (key == null || typeof key === "undefined") {
3626
-        return "";
3599
+      if (key == null || typeof key === 'undefined') {
3600
+        return ''
3627 3601
       }
3628
-      var id = key.anticoagulant;
3602
+      var id = key.anticoagulant
3629 3603
       if (id in this.anticoagulantsConfit) {
3630
-        return this.anticoagulantsConfit[id].name;
3604
+        return this.anticoagulantsConfit[id].name
3631 3605
       }
3632
-      return "";
3606
+      return ''
3633 3607
     },
3634 3608
     isBbloodAccessParOperaCheck(key, value) {
3635
-      if (key == null || typeof key === "undefined") {
3636
-        return false;
3609
+      if (key == null || typeof key === 'undefined') {
3610
+        return false
3637 3611
       }
3638
-      var id = key.blood_access_part_opera_id;
3612
+      var id = key.blood_access_part_opera_id
3639 3613
       if (id in this.bloodAccessParOpera) {
3640
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
3614
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
3641 3615
       }
3642
-      return false;
3616
+      return false
3643 3617
     },
3644 3618
     isdialysateFormulatioCheck(key, value) {
3645
-      if (key == null || typeof key === "undefined") {
3646
-        return false;
3619
+      if (key == null || typeof key === 'undefined') {
3620
+        return false
3647 3621
       }
3648
-      var id = key.dialysate_formulation;
3622
+      var id = key.dialysate_formulation
3649 3623
       if (id in this.dialysateFormulationOptions) {
3650
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
3624
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
3651 3625
       }
3652
-      return false;
3626
+      return false
3653 3627
     },
3654 3628
     isValueIndexOfCheck: function(record, key, value) {
3655 3629
       if (record == null || record == undefined) {
3656
-        return false;
3630
+        return false
3657 3631
       } else {
3658
-        return record[key].indexOf(value) > -1;
3632
+        return record[key].indexOf(value) > -1
3659 3633
       }
3660 3634
     },
3661 3635
     setAdminUserES(key, id) {
3662 3636
       if (
3663
-        typeof key === "undefined" ||
3637
+        typeof key === 'undefined' ||
3664 3638
         key == null ||
3665
-        typeof key[id] === "undefined"
3639
+        typeof key[id] === 'undefined'
3666 3640
       ) {
3667
-        return "";
3641
+        return ''
3668 3642
       }
3669 3643
       if (key[id] == 0) {
3670
-        return "";
3644
+        return ''
3671 3645
       }
3672 3646
       if (key[id] in this.operatorMaps) {
3673
-        return this.operatorMaps[key[id]].es_url;
3647
+        return this.operatorMaps[key[id]].es_url
3674 3648
       } else {
3675
-        return "";
3649
+        return ''
3676 3650
       }
3677 3651
     },
3678 3652
     getFloat: function(x) {
3679
-      if (x != ".") {
3680
-        var f = Math.round(x * 100) / 100;
3681
-        var s = f.toString();
3682
-        var rs = s.indexOf(".");
3653
+      if (x != '.') {
3654
+        var f = Math.round(x * 100) / 100
3655
+        var s = f.toString()
3656
+        var rs = s.indexOf('.')
3683 3657
         if (rs <= 0) {
3684
-          rs = s.length;
3685
-          s += ".";
3658
+          rs = s.length
3659
+          s += '.'
3686 3660
         }
3687 3661
         while (s.length <= rs + 1) {
3688
-          s += "0";
3662
+          s += '0'
3689 3663
         }
3690
-        return s;
3664
+        return s
3691 3665
       } else {
3692
-        return "0.0";
3666
+        return '0.0'
3693 3667
       }
3694 3668
     },
3695 3669
     getAdminUser(key, id) {
3696 3670
       if (
3697
-        typeof key === "undefined" ||
3671
+        typeof key === 'undefined' ||
3698 3672
         key == null ||
3699
-        typeof key[id] === "undefined"
3673
+        typeof key[id] === 'undefined'
3700 3674
       ) {
3701
-        return "";
3675
+        return ''
3702 3676
       }
3703 3677
       if (key[id] == 0) {
3704
-        return "";
3678
+        return ''
3705 3679
       }
3706 3680
       if (key[id] == undefined) {
3707
-        return "";
3681
+        return ''
3708 3682
       }
3709 3683
       for (let i = 0; i < this.adminUser.length; i++) {
3710 3684
         if (this.adminUser[i].id == key[id]) {
3711
-          return this.adminUser[i].name;
3685
+          return this.adminUser[i].name
3712 3686
         }
3713 3687
       }
3714 3688
     },
3715 3689
     jsGetAge: function(agetime) {
3716 3690
       if (agetime == 0) {
3717
-        return "";
3691
+        return ''
3718 3692
       }
3719
-      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
3693
+      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
3720 3694
     },
3721 3695
     getTime(value, temp) {
3722 3696
       if (value != undefined) {
3723
-        return uParseTime(value, temp);
3697
+        return uParseTime(value, temp)
3724 3698
       }
3725
-      return "";
3699
+      return ''
3726 3700
     },
3727 3701
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
3728 3702
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
3729 3703
     isCheckBoxChecked: function(record, key, target_value) {
3730 3704
       if (record == null || record == undefined) {
3731
-        return false;
3705
+        return false
3732 3706
       } else {
3733
-        return record[key] == target_value;
3707
+        return record[key] == target_value
3734 3708
       }
3735 3709
     },
3736 3710
     getAge: function(val) {
3737 3711
       if (val.birthday == 0) {
3738
-        return "";
3712
+        return ''
3739 3713
       }
3740
-      return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
3714
+      return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
3741 3715
     },
3742 3716
     newAdviceGroupObject: function() {
3743 3717
       return Object.assign(
@@ -3746,13 +3720,13 @@ export default {
3746 3720
           group_no: 0,
3747 3721
           advices: []
3748 3722
         }
3749
-      );
3723
+      )
3750 3724
     },
3751 3725
     getNumber: function(record) {
3752
-      console.log(record);
3726
+      console.log(record)
3753 3727
     }
3754 3728
   }
3755
-};
3729
+}
3756 3730
 </script>
3757 3731
 
3758 3732
 <style scoped>
@@ -3797,7 +3771,7 @@ export default {
3797 3771
 }
3798 3772
 
3799 3773
 .under_line::before {
3800
-  content: "\00A0";
3774
+  /* content: "\00A0"; */
3801 3775
 }
3802 3776
 
3803 3777
 .under_line::after {

+ 209 - 233
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue Ver fichero

@@ -443,34 +443,9 @@
443 443
 <!--                          )-->
444 444
 <!--                        "-->
445 445
 <!--                      ></check-box>-->
446
-                      <check-box
447
-                        v-for="(item, index) in bloodAccessParOpera"
448
-                        :key="index"
449
-                        :text="item.name"
450
-                        :checked="
451
-                      record.prescription.blood_access == item.id ? true : false
452
-                    "
453
-                      ></check-box>
454
-                      <check-box
455
-                        text="直穿"
456
-                        :checked="
457
-                          isCheckBoxChecked(
458
-                            record.prescription,
459
-                            'blood_access',
460
-                            2
461
-                          )
462
-                        "
463
-                      ></check-box>
464
-                      <check-box
465
-                        text="导管"
466
-                        :checked="
467
-                          isCheckBoxChecked(
468
-                            record.prescription,
469
-                            'blood_access',
470
-                            3
471
-                          )
472
-                        "
473
-                      ></check-box>
446
+                      <check-box v-for="(item, index) in bloodAccessParOpera" :key="index" :text="item.name" :checked=" record.prescription.blood_access == item.id ? true : false  " ></check-box>
447
+                      <!-- <check-box text="直穿" :checked=" isCheckBoxChecked( record.prescription, 'blood_access', 2 ) " ></check-box>
448
+                      <check-box text="导管" :checked=" sCheckBoxChecked( record.prescription, 'blood_access', 3 ) " ></check-box> -->
474 449
                     </div>
475 450
                     <div class="inline_block">
476 451
                       &emsp;血流量:
@@ -484,6 +459,7 @@
484 459
                       <div class="under_line" style="width: 60px;" v-else>
485 460
                         {{ "/" }}
486 461
                       </div>
462
+                      ml/min
487 463
                     </div>
488 464
                     <div class="inline_block">
489 465
                       &emsp;透析液流量:
@@ -985,14 +961,14 @@
985 961
 </template>
986 962
 
987 963
 <script>
988
-import CheckBox from "./option_check_box";
989
-import { GetBatchPrintDialysisData } from "@/api/print_data";
990
-import { jsGetAge, uParseTime } from "@/utils/tools";
991
-import { getDataConfig } from "@/utils/data";
992
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
993
-import print from "print-js";
964
+import CheckBox from './option_check_box'
965
+import { GetBatchPrintDialysisData } from '@/api/print_data'
966
+import { jsGetAge, uParseTime } from '@/utils/tools'
967
+import { getDataConfig } from '@/utils/data'
968
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
969
+import print from 'print-js'
994 970
 export default {
995
-  name: "BatchPrintOrder",
971
+  name: 'BatchPrintOrder',
996 972
   components: {
997 973
     CheckBox,
998 974
     BreadCrumb
@@ -1000,8 +976,8 @@ export default {
1000 976
   data() {
1001 977
     return {
1002 978
       crumbs: [
1003
-        { path: false, name: "透析管理" },
1004
-        { path: false, name: "批量打印" }
979
+        { path: false, name: '透析管理' },
980
+        { path: false, name: '批量打印' }
1005 981
       ],
1006 982
       records: [
1007 983
         // 模拟有多条数据
@@ -1025,7 +1001,7 @@ export default {
1025 1001
       nutrition_arr: [],
1026 1002
 
1027 1003
       loading: false,
1028
-      orgname: "",
1004
+      orgname: '',
1029 1005
       bloodAccessParOpera: {},
1030 1006
       anticoagulantsConfit: {},
1031 1007
       dialysateFormulationOptions: {},
@@ -1036,53 +1012,53 @@ export default {
1036 1012
       advice_groups: [],
1037 1013
       advice_groups_2: [],
1038 1014
       complications: [
1039
-        "低血压",
1040
-        "高血压",
1041
-        "心律失常",
1042
-        "头晕",
1043
-        "头痛",
1044
-        "呕吐",
1045
-        "抽搐",
1046
-        "出血",
1047
-        "心衰",
1048
-        "腹痛"
1015
+        '低血压',
1016
+        '高血压',
1017
+        '心律失常',
1018
+        '头晕',
1019
+        '头痛',
1020
+        '呕吐',
1021
+        '抽搐',
1022
+        '出血',
1023
+        '心衰',
1024
+        '腹痛'
1049 1025
       ]
1050
-    };
1026
+    }
1051 1027
   },
1052 1028
   created() {
1053
-    this.way_arr = getDataConfig("hemodialysis", "way");
1054
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1055
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1056
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
1057
-    this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
1058
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1059
-    this.intake_arr = getDataConfig("hemodialysis", "intake");
1060
-    this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1029
+    this.way_arr = getDataConfig('hemodialysis', 'way')
1030
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1031
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1032
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1033
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1034
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1035
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1036
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1061 1037
 
1062
-    var xtuser = this.$store.getters.xt_user;
1063
-    this.orgname = xtuser.org.org_name;
1038
+    var xtuser = this.$store.getters.xt_user
1039
+    this.orgname = xtuser.org.org_name
1064 1040
     //   this.orgname = "遂溪方济医院";
1065
-    this.modeOptions = this.$store.getters.treatment_mode;
1041
+    this.modeOptions = this.$store.getters.treatment_mode
1066 1042
     //   this.replacementWays = this.$store.getters.replacement_ways;
1067 1043
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1068
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1044
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1069 1045
 
1070 1046
     var bloodAccessParOpera = getDataConfig(
1071
-      "hemodialysis",
1072
-      "vascular_access_desc"
1073
-    );
1074
-    // for (var key in bloodAccessParOpera) {
1075
-    //   this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1076
-    //     bloodAccessParOpera[key];
1077
-    // }
1047
+      'hemodialysis',
1048
+      'vascular_access_desc'
1049
+    )
1050
+    for (var key in bloodAccessParOpera) {
1051
+      this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1052
+        bloodAccessParOpera[key]
1053
+    }
1078 1054
 
1079 1055
     var dialysateFormulationOptions = getDataConfig(
1080
-      "hemodialysis",
1081
-      "dialysate_formulation"
1082
-    );
1056
+      'hemodialysis',
1057
+      'dialysate_formulation'
1058
+    )
1083 1059
     for (var key in dialysateFormulationOptions) {
1084 1060
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1085
-        dialysateFormulationOptions[key];
1061
+        dialysateFormulationOptions[key]
1086 1062
     }
1087 1063
 
1088 1064
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
@@ -1097,21 +1073,21 @@ export default {
1097 1073
     //   }
1098 1074
   },
1099 1075
   mounted() {
1100
-    this.loading = true;
1101
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
1076
+    this.loading = true
1077
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
1102 1078
     if (ids.length == 0) {
1103
-      this.$router.back(-1);
1104
-      return;
1079
+      this.$router.back(-1)
1080
+      return
1105 1081
     }
1106
-    GetBatchPrintDialysisData(ids.join(","))
1082
+    GetBatchPrintDialysisData(ids.join(','))
1107 1083
       .then(rs => {
1108
-        var resp = rs.data;
1084
+        var resp = rs.data
1109 1085
         if (resp.state == 1) {
1110
-          this.records = this.records.concat(resp.data.schedules);
1086
+          this.records = this.records.concat(resp.data.schedules)
1111 1087
           for (const recordIndex in this.records) {
1112
-            this.advice_groups = [];
1113
-            this.advice_groups_2 = [];
1114
-            var dlegh = 0;
1088
+            this.advice_groups = []
1089
+            this.advice_groups_2 = []
1090
+            var dlegh = 0
1115 1091
             if (
1116 1092
               (this.records[recordIndex].assessment_before_dislysis &&
1117 1093
                 this.records[recordIndex].assessment_before_dislysis
@@ -1131,38 +1107,38 @@ export default {
1131 1107
                 this.records[recordIndex].assessment_before_dislysis
1132 1108
                   .temperature != 0)
1133 1109
             ) {
1134
-              var nl = 8;
1135
-              this.records[recordIndex].print_length = 8;
1110
+              var nl = 8
1111
+              this.records[recordIndex].print_length = 8
1136 1112
             } else {
1137
-              var nl = 9;
1138
-              this.records[recordIndex].print_length = 9;
1113
+              var nl = 9
1114
+              this.records[recordIndex].print_length = 9
1139 1115
             }
1140 1116
             if (
1141 1117
               this.records[recordIndex].monitor_records &&
1142 1118
               this.records[recordIndex].monitor_records.length < 8
1143 1119
             ) {
1144
-              dlegh = nl - this.records[recordIndex].monitor_records.length;
1120
+              dlegh = nl - this.records[recordIndex].monitor_records.length
1145 1121
             }
1146 1122
             if (this.records[recordIndex].monitor_records.length <= 0) {
1147
-              dlegh = nl;
1123
+              dlegh = nl
1148 1124
             }
1149 1125
             if (dlegh > 0) {
1150 1126
               if (
1151 1127
                 typeof this.records[recordIndex].monitor_records ===
1152
-                  "undefined" ||
1128
+                  'undefined' ||
1153 1129
                 this.records[recordIndex].monitor_records == null
1154 1130
               ) {
1155
-                this.records[recordIndex].monitor_records = [];
1131
+                this.records[recordIndex].monitor_records = []
1156 1132
               }
1157 1133
               for (let index = 0; index < dlegh; index++) {
1158
-                this.records[recordIndex].monitor_records.push([]);
1134
+                this.records[recordIndex].monitor_records.push([])
1159 1135
               }
1160 1136
             }
1161 1137
 
1162
-            this.records[recordIndex].monitor_records2 = [];
1138
+            this.records[recordIndex].monitor_records2 = []
1163 1139
             if (this.records[recordIndex].monitor_records.length > 13) {
1164
-              const tempMonitors = [];
1165
-              const tempMonitors2 = [];
1140
+              const tempMonitors = []
1141
+              const tempMonitors2 = []
1166 1142
 
1167 1143
               for (
1168 1144
                 let index = 0;
@@ -1172,21 +1148,21 @@ export default {
1172 1148
                 if (index < 13) {
1173 1149
                   tempMonitors.push(
1174 1150
                     this.records[recordIndex].monitor_records[index]
1175
-                  );
1151
+                  )
1176 1152
                 } else {
1177 1153
                   tempMonitors2.push(
1178 1154
                     this.records[recordIndex].monitor_records[index]
1179
-                  );
1155
+                  )
1180 1156
                 }
1181 1157
               }
1182
-              this.records[recordIndex].monitor_records = tempMonitors;
1183
-              this.records[recordIndex].monitor_records2 = tempMonitors2;
1158
+              this.records[recordIndex].monitor_records = tempMonitors
1159
+              this.records[recordIndex].monitor_records2 = tempMonitors2
1184 1160
             }
1185 1161
 
1186
-            var childMap = {};
1162
+            var childMap = {}
1187 1163
             for (const index in this.records[recordIndex].advices) {
1188 1164
               if (this.records[recordIndex].advices[index].parent_id == 0) {
1189
-                continue;
1165
+                continue
1190 1166
               }
1191 1167
               if (
1192 1168
                 !(
@@ -1195,52 +1171,52 @@ export default {
1195 1171
               ) {
1196 1172
                 childMap[
1197 1173
                   this.records[recordIndex].advices[index].parent_id
1198
-                ] = [];
1174
+                ] = []
1199 1175
               }
1200 1176
               childMap[this.records[recordIndex].advices[index].parent_id].push(
1201 1177
                 this.records[recordIndex].advices[index]
1202
-              );
1178
+              )
1203 1179
             }
1204 1180
 
1205
-            var advices = [];
1181
+            var advices = []
1206 1182
             for (const index in this.records[recordIndex].advices) {
1207 1183
               if (this.records[recordIndex].advices[index].parent_id > 0) {
1208
-                continue;
1184
+                continue
1209 1185
               }
1210
-              var item = this.records[recordIndex].advices[index];
1186
+              var item = this.records[recordIndex].advices[index]
1211 1187
               if (item.id in childMap) {
1212
-                item.children = childMap[item.id];
1188
+                item.children = childMap[item.id]
1213 1189
               } else {
1214
-                item.children = [];
1190
+                item.children = []
1215 1191
               }
1216
-              advices.push(item);
1192
+              advices.push(item)
1217 1193
             }
1218 1194
 
1219 1195
             this.doctor_advices =
1220 1196
               this.records[recordIndex].advices == null
1221 1197
                 ? []
1222
-                : this.records[recordIndex].advices;
1198
+                : this.records[recordIndex].advices
1223 1199
             for (let index = 0; index < this.doctor_advices.length; index++) {
1224
-              this.doctor_advices[index]["isShow"] = 2;
1200
+              this.doctor_advices[index]['isShow'] = 2
1225 1201
             }
1226 1202
 
1227 1203
             if (this.doctor_advices.length > 0) {
1228
-              var group = this.newAdviceGroupObject();
1204
+              var group = this.newAdviceGroupObject()
1229 1205
               var initGroupBlock = function(group, advice) {
1230
-                group.group_no = advice.groupno;
1231
-              };
1206
+                group.group_no = advice.groupno
1207
+              }
1232 1208
               for (
1233 1209
                 let index = this.doctor_advices.length - 1;
1234 1210
                 index >= 0;
1235 1211
                 index--
1236 1212
               ) {
1237
-                var new_advice_index = 0;
1213
+                var new_advice_index = 0
1238 1214
                 if (
1239
-                  "children" in this.doctor_advices[index] &&
1215
+                  'children' in this.doctor_advices[index] &&
1240 1216
                   this.doctor_advices[index].children.length > 0
1241 1217
                 ) {
1242 1218
                   new_advice_index =
1243
-                    index + this.doctor_advices[index].children.length + 1;
1219
+                    index + this.doctor_advices[index].children.length + 1
1244 1220
 
1245 1221
                   var doctor_advice = {
1246 1222
                     delivery_way: this.doctor_advices[index].delivery_way,
@@ -1255,66 +1231,66 @@ export default {
1255 1231
                     checker: this.doctor_advices[index].checker,
1256 1232
                     advice_doctor: this.doctor_advices[index].advice_doctor,
1257 1233
                     execution_time: this.doctor_advices[index].execution_time
1258
-                  };
1259
-                  doctor_advice["isShow"] = 1;
1234
+                  }
1235
+                  doctor_advice['isShow'] = 1
1260 1236
                   this.doctor_advices.splice(
1261 1237
                     new_advice_index,
1262 1238
                     0,
1263 1239
                     doctor_advice
1264
-                  );
1240
+                  )
1265 1241
                 }
1266 1242
               }
1267 1243
 
1268
-              var templength = 0;
1244
+              var templength = 0
1269 1245
               if (this.doctor_advices.length > 12) {
1270
-                templength = 12;
1246
+                templength = 12
1271 1247
               } else {
1272
-                templength = this.doctor_advices.length;
1248
+                templength = this.doctor_advices.length
1273 1249
               }
1274 1250
 
1275 1251
               for (let index = 0; index < templength; index++) {
1276
-                const advice = this.doctor_advices[index];
1252
+                const advice = this.doctor_advices[index]
1277 1253
                 if (advice.groupno == 0) {
1278 1254
                   // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1279 1255
                   if (advice.parent_id > 0) {
1280 1256
                     if (this.advice_groups.length > 0) {
1281 1257
                       var parent_group = this.advice_groups[
1282 1258
                         this.advice_groups.length - 1
1283
-                      ];
1259
+                      ]
1284 1260
                       if (parent_group.advices.length > 0) {
1285 1261
                         if (parent_group.advices[0].id == advice.parent_id) {
1286
-                          parent_group.advices.push(advice);
1262
+                          parent_group.advices.push(advice)
1287 1263
                         }
1288 1264
                       }
1289 1265
                     }
1290
-                    continue;
1266
+                    continue
1291 1267
                   } else {
1292 1268
                     if (group.group_no > 0) {
1293
-                      this.advice_groups.push(group);
1294
-                      group = this.newAdviceGroupObject();
1269
+                      this.advice_groups.push(group)
1270
+                      group = this.newAdviceGroupObject()
1295 1271
                     }
1296 1272
 
1297
-                    initGroupBlock(group, advice);
1298
-                    group.advices.push(advice);
1299
-                    this.advice_groups.push(group);
1300
-                    group = this.newAdviceGroupObject();
1301
-                    continue;
1273
+                    initGroupBlock(group, advice)
1274
+                    group.advices.push(advice)
1275
+                    this.advice_groups.push(group)
1276
+                    group = this.newAdviceGroupObject()
1277
+                    continue
1302 1278
                   }
1303 1279
                 }
1304 1280
 
1305 1281
                 if (group.group_no > 0 && group.group_no != advice.groupno) {
1306
-                  this.advice_groups.push(group);
1307
-                  group = this.newAdviceGroupObject();
1282
+                  this.advice_groups.push(group)
1283
+                  group = this.newAdviceGroupObject()
1308 1284
                 }
1309 1285
                 if (group.group_no == 0) {
1310
-                  initGroupBlock(group, advice);
1286
+                  initGroupBlock(group, advice)
1311 1287
                 }
1312 1288
                 if (group.group_no == advice.groupno) {
1313
-                  group.advices.push(advice);
1289
+                  group.advices.push(advice)
1314 1290
                 }
1315 1291
                 if (index == 11) {
1316
-                  this.advice_groups.push(group);
1317
-                  group = this.newAdviceGroupObject();
1292
+                  this.advice_groups.push(group)
1293
+                  group = this.newAdviceGroupObject()
1318 1294
                 }
1319 1295
               }
1320 1296
 
@@ -1324,44 +1300,44 @@ export default {
1324 1300
                   index < this.doctor_advices.length;
1325 1301
                   index++
1326 1302
                 ) {
1327
-                  const advice = this.doctor_advices[index];
1303
+                  const advice = this.doctor_advices[index]
1328 1304
                   if (advice.groupno == 0) {
1329 1305
                     // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1330 1306
                     if (advice.parent_id > 0) {
1331 1307
                       if (this.advice_groups_2.length > 0) {
1332 1308
                         var parent_group = this.advice_groups_2[
1333 1309
                           this.advice_groups_2.length - 1
1334
-                        ];
1310
+                        ]
1335 1311
                         if (parent_group.advices.length > 0) {
1336 1312
                           if (parent_group.advices[0].id == advice.parent_id) {
1337
-                            parent_group.advices.push(advice);
1313
+                            parent_group.advices.push(advice)
1338 1314
                           }
1339 1315
                         }
1340 1316
                       }
1341
-                      continue;
1317
+                      continue
1342 1318
                     } else {
1343 1319
                       if (group.group_no > 0) {
1344
-                        this.advice_groups_2.push(group);
1345
-                        group = this.newAdviceGroupObject();
1320
+                        this.advice_groups_2.push(group)
1321
+                        group = this.newAdviceGroupObject()
1346 1322
                       }
1347 1323
 
1348
-                      initGroupBlock(group, advice);
1349
-                      group.advices.push(advice);
1350
-                      this.advice_groups_2.push(group);
1351
-                      group = this.newAdviceGroupObject();
1352
-                      continue;
1324
+                      initGroupBlock(group, advice)
1325
+                      group.advices.push(advice)
1326
+                      this.advice_groups_2.push(group)
1327
+                      group = this.newAdviceGroupObject()
1328
+                      continue
1353 1329
                     }
1354 1330
                   }
1355 1331
 
1356 1332
                   if (group.group_no > 0 && group.group_no != advice.groupno) {
1357
-                    this.advice_groups_2.push(group);
1358
-                    group = this.newAdviceGroupObject();
1333
+                    this.advice_groups_2.push(group)
1334
+                    group = this.newAdviceGroupObject()
1359 1335
                   }
1360 1336
                   if (group.group_no == 0) {
1361
-                    initGroupBlock(group, advice);
1337
+                    initGroupBlock(group, advice)
1362 1338
                   }
1363 1339
                   if (group.group_no == advice.groupno) {
1364
-                    group.advices.push(advice);
1340
+                    group.advices.push(advice)
1365 1341
                   }
1366 1342
                 }
1367 1343
               }
@@ -1369,197 +1345,197 @@ export default {
1369 1345
               if (group.group_no > 0) {
1370 1346
                 // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
1371 1347
                 if (this.doctor_advices.length > 12) {
1372
-                  this.advice_groups_2.push(group);
1348
+                  this.advice_groups_2.push(group)
1373 1349
                 } else {
1374
-                  this.advice_groups.push(group);
1350
+                  this.advice_groups.push(group)
1375 1351
                 }
1376 1352
               }
1377 1353
             }
1378
-            this.records[recordIndex].advices = [];
1379
-            this.records[recordIndex].advices2 = [];
1380
-            this.records[recordIndex].advices = this.advice_groups;
1381
-            this.records[recordIndex].advices2 = this.advice_groups_2;
1354
+            this.records[recordIndex].advices = []
1355
+            this.records[recordIndex].advices2 = []
1356
+            this.records[recordIndex].advices = this.advice_groups
1357
+            this.records[recordIndex].advices2 = this.advice_groups_2
1382 1358
           }
1383 1359
 
1384
-          this.operators = resp.data.medical_staffs;
1360
+          this.operators = resp.data.medical_staffs
1385 1361
           if (this.operators.length > 0) {
1386
-            var operatorsLen = this.operators.length;
1362
+            var operatorsLen = this.operators.length
1387 1363
             for (var index = 0; index < operatorsLen; index++) {
1388 1364
               this.$set(
1389 1365
                 this.operatorMaps,
1390 1366
                 this.operators[index].id,
1391 1367
                 this.operators[index]
1392
-              );
1368
+              )
1393 1369
             }
1394 1370
           }
1395 1371
 
1396
-          this.adminUser = resp.data.users;
1397
-          this.loading = false;
1372
+          this.adminUser = resp.data.users
1373
+          this.loading = false
1398 1374
         } else {
1399
-          this.loading = false;
1400
-          this.$message.error(resp.msg);
1375
+          this.loading = false
1376
+          this.$message.error(resp.msg)
1401 1377
         }
1402 1378
       })
1403 1379
       .catch(err => {
1404
-        this.$message.error(err);
1405
-      });
1380
+        this.$message.error(err)
1381
+      })
1406 1382
   },
1407 1383
   methods: {
1408 1384
     printAction: function() {
1409 1385
       const style =
1410
-        '@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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}';
1386
+        '@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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
1411 1387
 
1412 1388
       printJS({
1413
-        printable: "print_content",
1414
-        type: "html",
1415
-        documentTitle: "  ",
1389
+        printable: 'print_content',
1390
+        type: 'html',
1391
+        documentTitle: '  ',
1416 1392
         style: style,
1417 1393
         scanStyles: false
1418
-      });
1394
+      })
1419 1395
     },
1420 1396
 
1421 1397
     complicationsOther: function(record) {
1422
-      if (record == null || typeof record === "undefined") {
1423
-        return "";
1398
+      if (record == null || typeof record === 'undefined') {
1399
+        return ''
1424 1400
       }
1425 1401
       if (record.complication.length == 0) {
1426
-        return "";
1402
+        return ''
1427 1403
       }
1428
-      var complications = record.complication.split(",");
1429
-      var complicationOthers = [];
1404
+      var complications = record.complication.split(',')
1405
+      var complicationOthers = []
1430 1406
       for (const index in complications) {
1431 1407
         if (
1432 1408
           this.complications.indexOf(complications[index]) < 0 &&
1433 1409
           complicationOthers.indexOf(complications[index]) < 0
1434 1410
         ) {
1435
-          complicationOthers.push(complications[index]);
1411
+          complicationOthers.push(complications[index])
1436 1412
         }
1437 1413
       }
1438
-      return complicationOthers.join(",");
1414
+      return complicationOthers.join(',')
1439 1415
     },
1440 1416
     modeName(mode_id) {
1441 1417
       if (mode_id in this.modeOptions) {
1442
-        return this.modeOptions[mode_id].name;
1418
+        return this.modeOptions[mode_id].name
1443 1419
       }
1444
-      return "";
1420
+      return ''
1445 1421
     },
1446 1422
     anticoagulantName: function(key) {
1447
-      if (key == null || typeof key === "undefined") {
1448
-        return "";
1423
+      if (key == null || typeof key === 'undefined') {
1424
+        return ''
1449 1425
       }
1450
-      var id = key.anticoagulant;
1426
+      var id = key.anticoagulant
1451 1427
       if (id in this.anticoagulantsConfit) {
1452
-        return this.anticoagulantsConfit[id].name;
1428
+        return this.anticoagulantsConfit[id].name
1453 1429
       }
1454
-      return "";
1430
+      return ''
1455 1431
     },
1456 1432
     isBbloodAccessParOperaCheck(key, value) {
1457
-      if (key == null || typeof key === "undefined") {
1458
-        return false;
1433
+      if (key == null || typeof key === 'undefined') {
1434
+        return false
1459 1435
       }
1460
-      var id = key.blood_access_part_opera_id;
1436
+      var id = key.blood_access_part_opera_id
1461 1437
       if (id in this.bloodAccessParOpera) {
1462
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
1438
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
1463 1439
       }
1464
-      return false;
1440
+      return false
1465 1441
     },
1466 1442
     isdialysateFormulatioCheck(key, value) {
1467
-      if (key == null || typeof key === "undefined") {
1468
-        return false;
1443
+      if (key == null || typeof key === 'undefined') {
1444
+        return false
1469 1445
       }
1470
-      var id = key.dialysate_formulation;
1446
+      var id = key.dialysate_formulation
1471 1447
       if (id in this.dialysateFormulationOptions) {
1472
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
1448
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
1473 1449
       }
1474
-      return false;
1450
+      return false
1475 1451
     },
1476 1452
     isValueIndexOfCheck: function(record, key, value) {
1477 1453
       if (record == null || record == undefined) {
1478
-        return false;
1454
+        return false
1479 1455
       } else {
1480
-        return record[key].indexOf(value) > -1;
1456
+        return record[key].indexOf(value) > -1
1481 1457
       }
1482 1458
     },
1483 1459
     setAdminUserES(key, id) {
1484 1460
       if (
1485
-        typeof key === "undefined" ||
1461
+        typeof key === 'undefined' ||
1486 1462
         key == null ||
1487
-        typeof key[id] === "undefined"
1463
+        typeof key[id] === 'undefined'
1488 1464
       ) {
1489
-        return "";
1465
+        return ''
1490 1466
       }
1491 1467
       if (key[id] == 0) {
1492
-        return "";
1468
+        return ''
1493 1469
       }
1494 1470
       if (key[id] in this.operatorMaps) {
1495
-        return this.operatorMaps[key[id]].es_url;
1471
+        return this.operatorMaps[key[id]].es_url
1496 1472
       } else {
1497
-        return "";
1473
+        return ''
1498 1474
       }
1499 1475
     },
1500 1476
     getFloat: function(x) {
1501
-      if (x != ".") {
1502
-        var f = Math.round(x * 100) / 100;
1503
-        var s = f.toString();
1504
-        var rs = s.indexOf(".");
1477
+      if (x != '.') {
1478
+        var f = Math.round(x * 100) / 100
1479
+        var s = f.toString()
1480
+        var rs = s.indexOf('.')
1505 1481
         if (rs <= 0) {
1506
-          rs = s.length;
1507
-          s += ".";
1482
+          rs = s.length
1483
+          s += '.'
1508 1484
         }
1509 1485
         while (s.length <= rs + 1) {
1510
-          s += "0";
1486
+          s += '0'
1511 1487
         }
1512
-        return s;
1488
+        return s
1513 1489
       } else {
1514
-        return "0.0";
1490
+        return '0.0'
1515 1491
       }
1516 1492
     },
1517 1493
     getAdminUser(key, id) {
1518 1494
       if (
1519
-        typeof key === "undefined" ||
1495
+        typeof key === 'undefined' ||
1520 1496
         key == null ||
1521
-        typeof key[id] === "undefined"
1497
+        typeof key[id] === 'undefined'
1522 1498
       ) {
1523
-        return "";
1499
+        return ''
1524 1500
       }
1525 1501
       if (key[id] == 0) {
1526
-        return "";
1502
+        return ''
1527 1503
       }
1528 1504
       if (key[id] == undefined) {
1529
-        return "";
1505
+        return ''
1530 1506
       }
1531 1507
       for (let i = 0; i < this.adminUser.length; i++) {
1532 1508
         if (this.adminUser[i].id == key[id]) {
1533
-          return this.adminUser[i].name;
1509
+          return this.adminUser[i].name
1534 1510
         }
1535 1511
       }
1536 1512
     },
1537 1513
     jsGetAge: function(agetime) {
1538 1514
       if (agetime == 0) {
1539
-        return "";
1515
+        return ''
1540 1516
       }
1541
-      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
1517
+      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
1542 1518
     },
1543 1519
     getTime(value, temp) {
1544 1520
       if (value != undefined) {
1545
-        return uParseTime(value, temp);
1521
+        return uParseTime(value, temp)
1546 1522
       }
1547
-      return "";
1523
+      return ''
1548 1524
     },
1549 1525
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
1550 1526
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
1551 1527
     isCheckBoxChecked: function(record, key, target_value) {
1552 1528
       if (record == null || record == undefined) {
1553
-        return false;
1529
+        return false
1554 1530
       } else {
1555
-        return record[key] == target_value;
1531
+        return record[key] == target_value
1556 1532
       }
1557 1533
     },
1558 1534
     getAge: function(val) {
1559 1535
       if (val.birthday == 0) {
1560
-        return "";
1536
+        return ''
1561 1537
       }
1562
-      return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
1538
+      return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1563 1539
     },
1564 1540
     newAdviceGroupObject: function() {
1565 1541
       return Object.assign(
@@ -1568,13 +1544,13 @@ export default {
1568 1544
           group_no: 0,
1569 1545
           advices: []
1570 1546
         }
1571
-      );
1547
+      )
1572 1548
     },
1573 1549
     getNumber: function(record) {
1574
-      console.log(record);
1550
+      console.log(record)
1575 1551
     }
1576 1552
   }
1577
-};
1553
+}
1578 1554
 </script>
1579 1555
 
1580 1556
 <style scoped>
@@ -1619,7 +1595,7 @@ export default {
1619 1595
 }
1620 1596
 
1621 1597
 .under_line::before {
1622
-  content: "\00A0";
1598
+  /* content: "\00A0"; */
1623 1599
 }
1624 1600
 
1625 1601
 .under_line::after {

+ 29 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Ver fichero

@@ -2700,6 +2700,35 @@ export default {
2700 2700
           for (let index = 0; index < this.doctor_advices.length; index++) {
2701 2701
             this.doctor_advices[index]["isShow"] = 2;
2702 2702
           }
2703
+          if (this.doctor_advices.length === 0) {
2704
+            var obj = { advice_name: "", start_time: "" };
2705
+            var obj1 = { advice_name: "", start_time: "" };
2706
+            var obj2 = { advice_name: "", start_time: "" };
2707
+            var obj3 = { advice_name: "", start_time: "" };
2708
+            this.doctor_advices.push(obj);
2709
+            this.doctor_advices.push(obj1);
2710
+            this.doctor_advices.push(obj2);
2711
+            this.doctor_advices.push(obj3);
2712
+          }
2713
+          if (this.doctor_advices.length === 1) {
2714
+            var obj = { advice_name: "", start_time: "" };
2715
+            var obj1 = { advice_name: "", start_time: "" };
2716
+            var obj2 = { advice_name: "", start_time: "" };
2717
+            this.doctor_advices.push(obj);
2718
+            this.doctor_advices.push(obj1);
2719
+            this.doctor_advices.push(obj2);
2720
+          }
2721
+          if (this.doctor_advices.length === 2) {
2722
+            var obj = { advice_name: "", start_time: "" };
2723
+            var obj1 = { advice_name: "", start_time: "" };
2724
+            this.doctor_advices.push(obj);
2725
+            this.doctor_advices.push(obj1);
2726
+          }
2727
+          if (this.doctor_advices.length === 3) {
2728
+            // eslint-disable-next-line no-redeclare
2729
+            var obj = { advice_name: "", start_time: "" };
2730
+            this.doctor_advices.push(obj);
2731
+          }
2703 2732
 
2704 2733
           if (this.doctor_advices.length > 0) {
2705 2734
             var group = this.newAdviceGroupObject();

+ 29 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue Ver fichero

@@ -2700,6 +2700,35 @@ export default {
2700 2700
           for (let index = 0; index < this.doctor_advices.length; index++) {
2701 2701
             this.doctor_advices[index]["isShow"] = 2;
2702 2702
           }
2703
+          if (this.doctor_advices.length === 0) {
2704
+            var obj = { advice_name: "", start_time: "" };
2705
+            var obj1 = { advice_name: "", start_time: "" };
2706
+            var obj2 = { advice_name: "", start_time: "" };
2707
+            var obj3 = { advice_name: "", start_time: "" };
2708
+            this.doctor_advices.push(obj);
2709
+            this.doctor_advices.push(obj1);
2710
+            this.doctor_advices.push(obj2);
2711
+            this.doctor_advices.push(obj3);
2712
+          }
2713
+          if (this.doctor_advices.length === 1) {
2714
+            var obj = { advice_name: "", start_time: "" };
2715
+            var obj1 = { advice_name: "", start_time: "" };
2716
+            var obj2 = { advice_name: "", start_time: "" };
2717
+            this.doctor_advices.push(obj);
2718
+            this.doctor_advices.push(obj1);
2719
+            this.doctor_advices.push(obj2);
2720
+          }
2721
+          if (this.doctor_advices.length === 2) {
2722
+            var obj = { advice_name: "", start_time: "" };
2723
+            var obj1 = { advice_name: "", start_time: "" };
2724
+            this.doctor_advices.push(obj);
2725
+            this.doctor_advices.push(obj1);
2726
+          }
2727
+          if (this.doctor_advices.length === 3) {
2728
+            // eslint-disable-next-line no-redeclare
2729
+            var obj = { advice_name: "", start_time: "" };
2730
+            this.doctor_advices.push(obj);
2731
+          }
2703 2732
 
2704 2733
           if (this.doctor_advices.length > 0) {
2705 2734
             var group = this.newAdviceGroupObject();

+ 5 - 12
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Ver fichero

@@ -1828,14 +1828,7 @@
1828 1828
                   <!--                    :checked="prescription.blood_access == 3 ? true : false"-->
1829 1829
                   <!--                  ></check-box>-->
1830 1830
 
1831
-                  <check-box
1832
-                    v-for="(item, index) in bloodAccessParOpera"
1833
-                    :key="index"
1834
-                    :text="item.name"
1835
-                    :checked="
1836
-                      prescription.blood_access == item.id ? true : false
1837
-                    "
1838
-                  ></check-box>
1831
+                  <check-box  v-for="(item, index) in bloodAccessParOpera" :key="index" :text="item.name" :checked=" prescription.blood_access == item.id ? true : false " ></check-box>
1839 1832
                 </div>
1840 1833
                 <div class="inline_block">
1841 1834
                   &emsp;血流量:
@@ -2958,10 +2951,10 @@ export default {
2958 2951
       'vascular_access_desc'
2959 2952
     )
2960 2953
     // console.log("血管通路", this.bloodAccessParOpera);
2961
-    var bloodAccessParOpera = getDataConfig(
2962
-      'hemodialysis',
2963
-      'vascular_access_desc'
2964
-    )
2954
+    // var bloodAccessParOpera = getDataConfig(
2955
+    //   'hemodialysis',
2956
+    //   'vascular_access_desc'
2957
+    // )
2965 2958
     // for (var key in bloodAccessParOpera) {
2966 2959
     //   this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2967 2960
     //     bloodAccessParOpera[key];