Browse Source

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

See999 3 years ago
parent
commit
5909f1bcb4

+ 240 - 232
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue View File

@@ -337,7 +337,7 @@
337 337
                         <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
338 338
                         <td>&nbsp;
339 339
                             <span v-if="monitor.operate_time">
340
-                                {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }}
340
+                                {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }}
341 341
                             </span>
342 342
                         </td>
343 343
                         <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
@@ -353,14 +353,14 @@
353 353
                 <table class="print-table" border="1">
354 354
                     <tbody>
355 355
                     <tr>
356
-                        <td width="50" style="padding-left:5px;border:none;border-right:1px solid #000;">
356
+                        <td width="40" style="padding-left:5px;border:none;border-right:1px solid #000;">
357 357
                         透后评估
358 358
                         </td>
359 359
 
360
-                        <td width="30" style="border:none;padding-left:5px;">
360
+                        <td width="25" style="border:none;padding-left:5px;">
361 361
                         体温:
362 362
                         </td>
363
-                        <td width="50" style="text-align:left;border:none;">
363
+                        <td width="30" style="text-align:left;border:none;">
364 364
                         <div>
365 365
                             <span class="under_line" style="width:50px;display:inline-block;">
366 366
                             {{ record.assessment_after_dislysis.temperature ? record.assessment_after_dislysis.temperature : "" }}
@@ -369,8 +369,8 @@
369 369
                         </td>
370 370
                         <!-- <td width="10" style="border:none;"></td> -->
371 371
 
372
-                        <td width="30" style="border:none;padding-left:5px;">血压:</td>
373
-                        <td width="100" style="text-align:left;border:none;line-height: 30px;">
372
+                        <td width="25" style="border:none;padding-left:5px;">血压:</td>
373
+                        <td width="70" style="text-align:left;border:none;line-height: 30px;">
374 374
                         <div>
375 375
                             <span class="under_line" style="width:100px;display:inline-block">
376 376
                             {{ record.assessment_after_dislysis.systolic_blood_pressure ? record.assessment_after_dislysis.systolic_blood_pressure : "" }}/
@@ -378,16 +378,24 @@
378 378
                             </span>mmHg
379 379
                         </div>
380 380
                         </td>
381
-                        <td width="30" style="border:none;padding-left:5px">脉搏:</td>
382
-                        <td width="50" style="text-align:left;border:none;">
381
+                        <td width="25" style="border:none;padding-left:5px">脉搏:</td>
382
+                        <td width="55" style="text-align:left;border:none;">
383 383
                         <div>
384 384
                             <span class="under_line" style="width:50px;display:inline-block">
385 385
                             {{ record.assessment_after_dislysis.pulse_frequency ? record.assessment_after_dislysis.pulse_frequency : "" }}
386 386
                             </span>次/分
387 387
                         </div>
388 388
                         </td>
389
+                        <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
390
+                        <td width="30" style="text-align:left;border:none;">
391
+                        <div>
392
+                            <span class="under_line" style="width:50px;display:inline-block">
393
+                            {{ record.assessment_after_dislysis.actual_displacement ? record.assessment_after_dislysis.actual_displacement : "" }}
394
+                            </span>次/分
395
+                        </div>
396
+                        </td>
389 397
                         <td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
390
-                        <td width="120" style="text-align:left;border:none;">
398
+                        <td width="110" style="text-align:left;border:none;">
391 399
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-0度') > -1 ? true : false) : false" showValue="0"></label-box>
392 400
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) : false" showValue="+"></label-box>
393 401
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) : false" showValue="+ +"></label-box>
@@ -445,19 +453,19 @@
445 453
 </template>
446 454
 
447 455
 <script>
448
-import CheckBox from "./option_check_box";
449
-import LabelBox from "../printItem/LabelBox";
456
+import CheckBox from './option_check_box'
457
+import LabelBox from '../printItem/LabelBox'
450 458
 import {
451 459
   GetBatchPrintDialysisData,
452 460
   getLastAfterWeight
453
-} from "@/api/print_data";
454
-import { jsGetAge, uParseTime } from "@/utils/tools";
455
-import { getDataConfig } from "@/utils/data";
456
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
461
+} from '@/api/print_data'
462
+import { jsGetAge, uParseTime } from '@/utils/tools'
463
+import { getDataConfig } from '@/utils/data'
464
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
457 465
 import print from 'print-js'
458 466
 
459 467
 export default {
460
-  name: "BatchPrintOrderSeven",
468
+  name: 'BatchPrintOrderSeven',
461 469
   components: {
462 470
     CheckBox,
463 471
     BreadCrumb,
@@ -469,8 +477,8 @@ export default {
469 477
       consciousness_arr: [],
470 478
       isShowZero: false,
471 479
       crumbs: [
472
-        { path: false, name: "透析管理" },
473
-        { path: false, name: "批量打印" }
480
+        { path: false, name: '透析管理' },
481
+        { path: false, name: '批量打印' }
474 482
       ],
475 483
       records: [
476 484
         // 模拟有多条数据
@@ -484,11 +492,11 @@ export default {
484 492
         // },
485 493
       ],
486 494
       queryParams: {
487
-        xtdate: "",
488
-        xtno: ""
495
+        xtdate: '',
496
+        xtno: ''
489 497
       },
490 498
       loading: false,
491
-      orgname: "",
499
+      orgname: '',
492 500
       bloodAccessParOpera: {},
493 501
       anticoagulantsConfit: {},
494 502
       dialysateFormulationOptions: {},
@@ -503,134 +511,134 @@ export default {
503 511
       blood_access_part: [],
504 512
       posture_arr: [],
505 513
       complications: [
506
-        "低血压",
507
-        "高血压",
508
-        "心律失常",
509
-        "头晕",
510
-        "头痛",
511
-        "呕吐",
512
-        "抽搐",
513
-        "出血",
514
-        "心衰",
515
-        "腹痛"
514
+        '低血压',
515
+        '高血压',
516
+        '心律失常',
517
+        '头晕',
518
+        '头痛',
519
+        '呕吐',
520
+        '抽搐',
521
+        '出血',
522
+        '心衰',
523
+        '腹痛'
516 524
       ],
517 525
       allName: [],
518 526
       NameStatus: 0,
519 527
       advices: [],
520
-      docotorId: "",
521
-      lastAfterWeight: "",
528
+      docotorId: '',
529
+      lastAfterWeight: '',
522 530
       appetite_arr: [],
523 531
       precaution_arr: [],
524 532
       showOne: false,
525 533
       showTwo: false
526
-    };
534
+    }
527 535
   },
528 536
   created() {
529
-    var xtuser = this.$store.getters.xt_user;
537
+    var xtuser = this.$store.getters.xt_user
530 538
     // console.log('xtuser', xtuser)
531
-    this.orgname = xtuser.org.org_name;
539
+    this.orgname = xtuser.org.org_name
532 540
     //   this.orgname = "遂溪方济医院";
533
-    this.modeOptions = this.$store.getters.treatment_mode;
541
+    this.modeOptions = this.$store.getters.treatment_mode
534 542
     //   this.replacementWays = this.$store.getters.replacement_ways;
535 543
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
536
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
537
-    this.way_arr = getDataConfig("hemodialysis", "way");
538
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
539
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
544
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
545
+    this.way_arr = getDataConfig('hemodialysis', 'way')
546
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
547
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
540 548
     var bloodAccessParOpera = getDataConfig(
541
-      "hemodialysis",
542
-      "vascular_access_desc"
543
-    );
549
+      'hemodialysis',
550
+      'vascular_access_desc'
551
+    )
544 552
     for (var key in bloodAccessParOpera) {
545 553
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
546
-        bloodAccessParOpera[key];
554
+        bloodAccessParOpera[key]
547 555
     }
548 556
 
549
-    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
557
+    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
550 558
 
551 559
     var dialysateFormulationOptions = getDataConfig(
552
-      "hemodialysis",
553
-      "dialysate_formulation"
554
-    );
560
+      'hemodialysis',
561
+      'dialysate_formulation'
562
+    )
555 563
     for (var key in dialysateFormulationOptions) {
556 564
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
557
-        dialysateFormulationOptions[key];
565
+        dialysateFormulationOptions[key]
558 566
     }
559
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
560
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
567
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
568
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
561 569
   },
562 570
   mounted() {
563
-    console.log(this.records);
564
-    this.loading = true;
565
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
571
+    console.log(this.records)
572
+    this.loading = true
573
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
566 574
     if (ids.length == 0) {
567
-      this.$router.back(-1);
568
-      return;
575
+      this.$router.back(-1)
576
+      return
569 577
     }
570
-    GetBatchPrintDialysisData(ids.join(","))
578
+    GetBatchPrintDialysisData(ids.join(','))
571 579
       .then(rs => {
572
-        var resp = rs.data;
580
+        var resp = rs.data
573 581
         if (resp.state == 1) {
574
-          this.org_template_info = resp.data.templateInfo;
582
+          this.org_template_info = resp.data.templateInfo
575 583
 
576
-          this.records = this.records.concat(resp.data.schedules);
584
+          this.records = this.records.concat(resp.data.schedules)
577 585
 
578
-          console.log("记录", this.records);
586
+          console.log('记录', this.records)
579 587
 
580 588
           for (const recordIndex in this.records) {
581
-            var dlegh = 0;
589
+            var dlegh = 0
582 590
             if (
583 591
               this.records[recordIndex].monitor_records &&
584 592
               this.records[recordIndex].monitor_records.length < 8
585 593
             ) {
586
-              dlegh = 8 - this.records[recordIndex].monitor_records.length;
594
+              dlegh = 8 - this.records[recordIndex].monitor_records.length
587 595
             } else {
588
-              dlegh = 0;
596
+              dlegh = 0
589 597
             }
590 598
             if (dlegh > 0) {
591 599
               if (
592 600
                 typeof this.records[recordIndex].monitor_records ===
593
-                  "undefined" ||
601
+                  'undefined' ||
594 602
                 this.records[recordIndex].monitor_records == null
595 603
               ) {
596
-                this.records[recordIndex].monitor_records = [];
604
+                this.records[recordIndex].monitor_records = []
597 605
               }
598 606
               for (let index = 0; index < dlegh; index++) {
599
-                this.records[recordIndex].monitor_records.push([]);
607
+                this.records[recordIndex].monitor_records.push([])
600 608
               }
601 609
             }
602 610
 
603
-            this.records[recordIndex].isShowZero = false;
611
+            this.records[recordIndex].isShowZero = false
604 612
             if (this.records[recordIndex].patient.user_org_id == 9535) {
605
-              this.records[recordIndex].isShowZero = true;
613
+              this.records[recordIndex].isShowZero = true
606 614
             }
607 615
 
608
-            var delghTwo = 0;
616
+            var delghTwo = 0
609 617
             if (
610 618
               this.records[recordIndex].advices &&
611 619
               this.records[recordIndex].advices.length < 14
612 620
             ) {
613
-              delghTwo = 14 - this.records[recordIndex].advices.length;
621
+              delghTwo = 14 - this.records[recordIndex].advices.length
614 622
             } else {
615
-              delghTwo = 0;
623
+              delghTwo = 0
616 624
             }
617 625
 
618 626
             if (delghTwo > 0) {
619 627
               if (
620
-                typeof this.records[recordIndex].advices === "undefined" ||
628
+                typeof this.records[recordIndex].advices === 'undefined' ||
621 629
                 this.records[recordIndex].advices == null
622 630
               ) {
623
-                this.records[recordIndex].advices = [];
631
+                this.records[recordIndex].advices = []
624 632
               }
625 633
               for (let index = 0; index < delghTwo; index++) {
626
-                this.records[recordIndex].advices.push([]);
634
+                this.records[recordIndex].advices.push([])
627 635
               }
628 636
             }
629 637
 
630
-            var childMap = {};
638
+            var childMap = {}
631 639
             for (const index in this.records[recordIndex].advices) {
632 640
               if (this.records[recordIndex].advices[index].parent_id == 0) {
633
-                continue;
641
+                continue
634 642
               }
635 643
               if (
636 644
                 !(
@@ -639,285 +647,285 @@ export default {
639 647
               ) {
640 648
                 childMap[
641 649
                   this.records[recordIndex].advices[index].parent_id
642
-                ] = [];
650
+                ] = []
643 651
               }
644 652
               childMap[this.records[recordIndex].advices[index].parent_id].push(
645 653
                 this.records[recordIndex].advices[index]
646
-              );
654
+              )
647 655
             }
648 656
 
649
-            var advices = [];
657
+            var advices = []
650 658
             for (const index in this.records[recordIndex].advices) {
651 659
               if (this.records[recordIndex].advices[index].parent_id > 0) {
652
-                continue;
660
+                continue
653 661
               }
654
-              var item = this.records[recordIndex].advices[index];
662
+              var item = this.records[recordIndex].advices[index]
655 663
               if (item.id in childMap) {
656
-                item.children = childMap[item.id];
664
+                item.children = childMap[item.id]
657 665
               } else {
658
-                item.children = [];
666
+                item.children = []
659 667
               }
660
-              advices.push(item);
668
+              advices.push(item)
661 669
             }
662 670
 
663
-            var leftAdvice = [];
664
-            var rightAdvice = [];
665
-            var adlen = advices.length;
671
+            var leftAdvice = []
672
+            var rightAdvice = []
673
+            var adlen = advices.length
666 674
 
667
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
675
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
668 676
             for (var i = 0; i < halfLen; i++) {
669
-              leftAdvice.push(advices[i]);
670
-              var rightIndex = i + halfLen;
677
+              leftAdvice.push(advices[i])
678
+              var rightIndex = i + halfLen
671 679
               rightAdvice.push(
672 680
                 rightIndex in advices ? advices[i + halfLen] : []
673
-              );
681
+              )
674 682
             }
675 683
             if (halfLen < 5) {
676
-              var nl = 5 - leftAdvice.length;
684
+              var nl = 5 - leftAdvice.length
677 685
               for (let index = 0; index < nl; index++) {
678
-                leftAdvice.push([]);
686
+                leftAdvice.push([])
679 687
               }
680
-              var nl = 5 - rightAdvice.length;
688
+              var nl = 5 - rightAdvice.length
681 689
               for (let index = 0; index < nl; index++) {
682
-                rightAdvice.push([]);
690
+                rightAdvice.push([])
683 691
               }
684 692
             }
685 693
 
686
-            this.records[recordIndex].advices = [];
694
+            this.records[recordIndex].advices = []
687 695
             for (var i = 0; i < halfLen; i++) {
688
-              var item = [];
689
-              item.push(leftAdvice[i]);
690
-              item.push(rightAdvice[i]);
691
-              this.records[recordIndex].advices.push(item);
696
+              var item = []
697
+              item.push(leftAdvice[i])
698
+              item.push(rightAdvice[i])
699
+              this.records[recordIndex].advices.push(item)
692 700
             }
693 701
           }
694 702
 
695
-          console.log(" this.records[recordIndex].advices", this.records);
696
-          this.operators = resp.data.medical_staffs;
703
+          console.log(' this.records[recordIndex].advices', this.records)
704
+          this.operators = resp.data.medical_staffs
697 705
           if (this.operators.length > 0) {
698
-            var operatorsLen = this.operators.length;
706
+            var operatorsLen = this.operators.length
699 707
             for (var index = 0; index < operatorsLen; index++) {
700 708
               this.$set(
701 709
                 this.operatorMaps,
702 710
                 this.operators[index].id,
703 711
                 this.operators[index]
704
-              );
712
+              )
705 713
             }
706 714
           }
707 715
 
708
-          this.adminUser = resp.data.users;
709
-          console.log("adminUser", this.adminUser);
710
-          var name = resp.data.name;
711
-          this.adminSign = name;
712
-          console.log("name是", name);
713
-          this.loading = false;
716
+          this.adminUser = resp.data.users
717
+          console.log('adminUser', this.adminUser)
718
+          var name = resp.data.name
719
+          this.adminSign = name
720
+          console.log('name是', name)
721
+          this.loading = false
714 722
         } else {
715
-          this.loading = false;
716
-          this.$message.error(resp.msg);
723
+          this.loading = false
724
+          this.$message.error(resp.msg)
717 725
         }
718 726
       })
719 727
       .catch(err => {
720
-        this.$message.error(err);
721
-      });
728
+        this.$message.error(err)
729
+      })
722 730
   },
723 731
   methods: {
724
-    getNewNumber(name,number){
725
-      if(name.indexOf("区") > -1){
726
-          return (
727
-            name + number
728
-          );
729
-        } else {
730
-          return (
731
-            name + "区" + number
732
-            
733
-          );
734
-        }
732
+    getNewNumber(name, number) {
733
+      if (name.indexOf('区') > -1) {
734
+        return (
735
+          name + number
736
+        )
737
+      } else {
738
+        return (
739
+          name + '区' + number
740
+
741
+        )
742
+      }
735 743
     },
736 744
     getNewAge(UUserCard) {
737 745
       if (UUserCard != null && UUserCard != '') {
738
-        //获取年龄
739
-        var myDate = new Date();
740
-        var month = myDate.getMonth() + 1;
741
-        var day = myDate.getDate();
742
-        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
746
+        // 获取年龄
747
+        var myDate = new Date()
748
+        var month = myDate.getMonth() + 1
749
+        var day = myDate.getDate()
750
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
743 751
         if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
744
-        age++;
752
+          age++
745 753
         }
746
-        return age;
754
+        return age
747 755
       }
748 756
     },
749
-    getIsCheckDataConfig(pName, cName, targetName){
750
-        var arr = getDataConfig(pName,cName)
751
-        console.log(arr)
752
-        for (let i = 0; i < arr.length; i++){
753
-            if (arr[i].name == targetName){
754
-            return arr[i].id
755
-            }
757
+    getIsCheckDataConfig(pName, cName, targetName) {
758
+      var arr = getDataConfig(pName, cName)
759
+      console.log(arr)
760
+      for (let i = 0; i < arr.length; i++) {
761
+        if (arr[i].name == targetName) {
762
+          return arr[i].id
756 763
         }
764
+      }
757 765
     },
758 766
     getUnit: function(val) {
759 767
       if (val.assessment_after_dislysis == null) {
760
-        return "";
768
+        return ''
761 769
       } else if (val.assessment_after_dislysis != null) {
762 770
         switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
763 771
           case 1:
764
-            return "g";
765
-            break;
772
+            return 'g'
773
+            break
766 774
           case 2:
767
-            return "ml";
768
-            break;
775
+            return 'ml'
776
+            break
769 777
         }
770 778
       }
771 779
     },
772 780
     QueryPartById: function(val) {
773
-      let vascular_access_part_name = "/";
774
-      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
781
+      let vascular_access_part_name = '/'
782
+      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
775 783
 
776 784
       for (let i = 0; i < vascular_access.length; i++) {
777 785
         if (vascular_access[i].id == val) {
778
-          vascular_access_part_name = vascular_access[i].name;
786
+          vascular_access_part_name = vascular_access[i].name
779 787
         }
780 788
       }
781
-      return vascular_access_part_name;
789
+      return vascular_access_part_name
782 790
     },
783 791
     printThisPage() {
784
-      var ptime = Math.round(new Date().getTime() / 1000);
785
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
792
+      var ptime = Math.round(new Date().getTime() / 1000)
793
+      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
786 794
 
787 795
       const style =
788
-        '@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;}';
796
+        '@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;}'
789 797
       const style2 =
790
-        '@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: 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;}';
798
+        '@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: 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;}'
791 799
       const style3 =
792
-        '@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;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
800
+        '@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;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}'
793 801
       printJS({
794
-        printable: "print_content",
795
-        type: "html",
796
-        documentTitle: "  ",
802
+        printable: 'print_content',
803
+        type: 'html',
804
+        documentTitle: '  ',
797 805
         style: style3,
798 806
         scanStyles: false
799
-      });
807
+      })
800 808
     },
801 809
 
802 810
     complicationsOther: function(record) {
803
-      if (record == null || typeof record === "undefined") {
804
-        return "";
811
+      if (record == null || typeof record === 'undefined') {
812
+        return ''
805 813
       }
806 814
       if (record.complication.length == 0) {
807
-        return "";
815
+        return ''
808 816
       }
809
-      var complications = record.complication.split(",");
810
-      var complicationOthers = [];
817
+      var complications = record.complication.split(',')
818
+      var complicationOthers = []
811 819
       for (const index in complications) {
812 820
         if (
813 821
           this.complications.indexOf(complications[index]) < 0 &&
814 822
           complicationOthers.indexOf(complications[index]) < 0
815 823
         ) {
816
-          complicationOthers.push(complications[index]);
824
+          complicationOthers.push(complications[index])
817 825
         }
818 826
       }
819
-      return complicationOthers.join(",");
827
+      return complicationOthers.join(',')
820 828
     },
821 829
     modeName(mode_id) {
822 830
       if (mode_id in this.modeOptions) {
823
-        return this.modeOptions[mode_id].name;
831
+        return this.modeOptions[mode_id].name
824 832
       }
825
-      return "";
833
+      return ''
826 834
     },
827 835
     anticoagulantName: function(key) {
828
-      if (key == null || typeof key === "undefined") {
829
-        return "";
836
+      if (key == null || typeof key === 'undefined') {
837
+        return ''
830 838
       }
831
-      var id = key.anticoagulant;
839
+      var id = key.anticoagulant
832 840
       if (id in this.anticoagulantsConfit) {
833
-        return this.anticoagulantsConfit[id].name;
841
+        return this.anticoagulantsConfit[id].name
834 842
       }
835
-      return "";
843
+      return ''
836 844
     },
837 845
     bloodAccessParOperaName(id) {
838 846
       if (id in this.bloodAccessParOpera) {
839
-        return this.bloodAccessParOpera[id].name;
847
+        return this.bloodAccessParOpera[id].name
840 848
       }
841
-      return "";
849
+      return ''
842 850
     },
843 851
     isBbloodAccessParOperaCheck(key, value) {
844
-      if (key == null || typeof key === "undefined") {
845
-        return false;
852
+      if (key == null || typeof key === 'undefined') {
853
+        return false
846 854
       }
847
-      var id = key.blood_access_part_opera_id;
855
+      var id = key.blood_access_part_opera_id
848 856
       if (id in this.bloodAccessParOpera) {
849
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
857
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
850 858
       }
851
-      return false;
859
+      return false
852 860
     },
853 861
     isdialysateFormulatioCheck(key, value) {
854
-      if (key == null || typeof key === "undefined") {
855
-        return false;
862
+      if (key == null || typeof key === 'undefined') {
863
+        return false
856 864
       }
857
-      var id = key.dialysate_formulation;
865
+      var id = key.dialysate_formulation
858 866
       if (id in this.dialysateFormulationOptions) {
859
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
867
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
860 868
       }
861
-      return false;
869
+      return false
862 870
     },
863 871
     isValueIndexOfCheck: function(record, key, value) {
864 872
       if (record == null || record == undefined) {
865
-        return false;
873
+        return false
866 874
       } else {
867
-        return record[key].indexOf(value) > -1;
875
+        return record[key].indexOf(value) > -1
868 876
       }
869 877
     },
870 878
     setAdminUserES(key, id) {
871 879
       if (
872
-        typeof key === "undefined" ||
880
+        typeof key === 'undefined' ||
873 881
         key == null ||
874
-        typeof key[id] === "undefined"
882
+        typeof key[id] === 'undefined'
875 883
       ) {
876
-        return "";
884
+        return ''
877 885
       }
878 886
       if (key[id] == 0) {
879
-        return "";
887
+        return ''
880 888
       }
881 889
       if (key[id] in this.operatorMaps) {
882
-        return this.operatorMaps[key[id]].es_url;
890
+        return this.operatorMaps[key[id]].es_url
883 891
       } else {
884
-        return "";
892
+        return ''
885 893
       }
886 894
     },
887 895
     getFloat: function(x) {
888
-      if (x != ".") {
889
-        var f = Math.round(x * 100) / 100;
890
-        var s = f.toString();
891
-        var rs = s.indexOf(".");
896
+      if (x != '.') {
897
+        var f = Math.round(x * 100) / 100
898
+        var s = f.toString()
899
+        var rs = s.indexOf('.')
892 900
         if (rs <= 0) {
893
-          rs = s.length;
894
-          s += ".";
901
+          rs = s.length
902
+          s += '.'
895 903
         }
896 904
         while (s.length <= rs + 1) {
897
-          s += "0";
905
+          s += '0'
898 906
         }
899
-        return s;
907
+        return s
900 908
       } else {
901
-        return "0.0";
909
+        return '0.0'
902 910
       }
903 911
     },
904 912
     getAdminUser(key, id) {
905 913
       if (
906
-        typeof key === "undefined" ||
914
+        typeof key === 'undefined' ||
907 915
         key == null ||
908
-        typeof key[id] === "undefined"
916
+        typeof key[id] === 'undefined'
909 917
       ) {
910
-        return "";
918
+        return ''
911 919
       }
912 920
       if (key[id] === 0) {
913
-        return "";
921
+        return ''
914 922
       }
915 923
       if (key[id] === undefined) {
916
-        return "";
924
+        return ''
917 925
       }
918 926
       for (let i = 0; i < this.adminUser.length; i++) {
919 927
         if (this.adminUser[i].id === key[id]) {
920
-          return this.adminUser[i].name;
928
+          return this.adminUser[i].name
921 929
         }
922 930
       }
923 931
     },
@@ -925,47 +933,47 @@ export default {
925 933
     getName(id) {
926 934
       for (let i = 0; i < this.adminSign.length; i++) {
927 935
         if (this.adminSign[i].id === id) {
928
-          if (this.adminSign[i].url === "") {
929
-            this.showOne = true;
930
-            this.showTwo = false;
931
-            return this.adminSign[i].name;
936
+          if (this.adminSign[i].url === '') {
937
+            this.showOne = true
938
+            this.showTwo = false
939
+            return this.adminSign[i].name
932 940
           } else {
933
-            this.showOne = false;
934
-            this.showTwo = true;
935
-            return this.adminSign[i].url;
941
+            this.showOne = false
942
+            this.showTwo = true
943
+            return this.adminSign[i].url
936 944
           }
937 945
         }
938 946
       }
939 947
     },
940 948
     jsGetAge: function(agetime) {
941 949
       if (agetime === 0) {
942
-        return "";
950
+        return ''
943 951
       }
944
-      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
952
+      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
945 953
     },
946 954
     getTime(value, temp) {
947 955
       if (value != undefined) {
948
-        return uParseTime(value, temp);
956
+        return uParseTime(value, temp)
949 957
       }
950
-      return "";
958
+      return ''
951 959
     },
952 960
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
953 961
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
954 962
     isCheckBoxChecked: function(record, key, target_value) {
955 963
       if (record == null || record == undefined) {
956
-        return false;
964
+        return false
957 965
       } else {
958
-        return record[key] == target_value;
966
+        return record[key] == target_value
959 967
       }
960 968
     },
961 969
     getAge: function(val) {
962 970
       if (val.age == 0) {
963 971
         if (val.birthday == 0) {
964
-          return "";
972
+          return ''
965 973
         }
966
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
974
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
967 975
       } else {
968
-        return val.age;
976
+        return val.age
969 977
       }
970 978
     },
971 979
     newAdviceGroupObject: function() {
@@ -975,7 +983,7 @@ export default {
975 983
           group_no: 0,
976 984
           advices: []
977 985
         }
978
-      );
986
+      )
979 987
     },
980 988
     // getNumber: function(record) {
981 989
     //   console.log(record);
@@ -985,26 +993,26 @@ export default {
985 993
         return (
986 994
           this.patientInfo.DialysisSchedule.device_zone.name +
987 995
           this.dialysisOrder.DeviceNumber.number
988
-        );
996
+        )
989 997
       } else {
990 998
         return (
991 999
           this.patientInfo.DialysisSchedule.device_zone.name +
992 1000
           this.patientInfo.DialysisSchedule.device_number.number
993
-        );
1001
+        )
994 1002
       }
995 1003
     },
996 1004
     getLastAfterWeight(id, assessmentDate) {
997 1005
       getLastAfterWeight(id, assessmentDate).then(response => {
998 1006
         if (response.data.state === 1) {
999
-          var weight = response.data.data.weight;
1007
+          var weight = response.data.data.weight
1000 1008
 
1001
-          this.lastAfterWeight = weight.weight_after.toFixed(1);
1002
-          console.log("weight", weight);
1009
+          this.lastAfterWeight = weight.weight_after.toFixed(1)
1010
+          console.log('weight', weight)
1003 1011
         }
1004
-      });
1012
+      })
1005 1013
     }
1006 1014
   }
1007
-};
1015
+}
1008 1016
 </script>
1009 1017
 
1010 1018
 <style scoped>

+ 13 - 22
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -1208,14 +1208,13 @@ export default {
1208 1208
         'dialyzer_perfusion_apparatus'
1209 1209
       )
1210 1210
       console.log('灌流器', this.dialyzerPerfusionApparatus)
1211
-      if(this.$route.query && this.$route.query.date){
1211
+      if (this.$route.query && this.$route.query.date) {
1212 1212
         var date = this.$route.query && this.$route.query.date
1213 1213
         this.record_date = uParseTime(date, '{y}-{m}-{d}')
1214
-      }else{
1214
+      } else {
1215 1215
         var date = schedual.schedule_date
1216 1216
         this.record_date = uParseTime(date, '{y}-{m}-{d}')
1217 1217
       }
1218
-      
1219 1218
 
1220 1219
       if (
1221 1220
         this.prescription != null &&
@@ -3113,16 +3112,9 @@ export default {
3113 3112
         dialysis_duration_hour = this.dialysisPrescription
3114 3113
           .dialysis_duration_hour
3115 3114
       }
3116
-      duration =
3117
-        parseFloat(dialysis_duration_hour) +
3118
-        parseFloat(dialysis_duration_minute) / 60
3115
+      duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3119 3116
 
3120
-      this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3121
-        1,
3122
-        this.dialysisPrescription.anticoagulant_shouji,
3123
-        duration,
3124
-        this.dialysisPrescription.anticoagulant_weichi
3125
-      )
3117
+      this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
3126 3118
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3127 3119
         this.dialysisPrescription.anticoagulant_zongliang = ''
3128 3120
       }
@@ -3135,8 +3127,7 @@ export default {
3135 3127
       if (this.dialysisPrescription.dialysis_duration_minute == '') {
3136 3128
         dialysis_duration_minute = 0
3137 3129
       } else {
3138
-        dialysis_duration_minute = this.dialysisPrescription
3139
-          .dialysis_duration_minute
3130
+        dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
3140 3131
       }
3141 3132
 
3142 3133
       if (this.dialysisPrescription.dialysis_duration_hour == '') {
@@ -3152,7 +3143,7 @@ export default {
3152 3143
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3153 3144
         1,
3154 3145
         this.dialysisPrescription.anticoagulant_shouji,
3155
-        this.dialysisPrescription.dialysis_duration,
3146
+        duration,
3156 3147
         this.dialysisPrescription.anticoagulant_weichi
3157 3148
       )
3158 3149
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
@@ -3192,7 +3183,7 @@ export default {
3192 3183
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3193 3184
         1,
3194 3185
         this.dialysisPrescription.anticoagulant_shouji,
3195
-        this.dialysisPrescription.dialysis_duration,
3186
+        duration,
3196 3187
         this.dialysisPrescription.anticoagulant_weichi
3197 3188
       )
3198 3189
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
@@ -3234,7 +3225,7 @@ export default {
3234 3225
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3235 3226
         1,
3236 3227
         this.dialysisPrescription.anticoagulant_shouji,
3237
-        this.dialysisPrescription.dialysis_duration,
3228
+        duration,
3238 3229
         this.dialysisPrescription.anticoagulant_weichi
3239 3230
       )
3240 3231
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
@@ -3251,11 +3242,11 @@ export default {
3251 3242
       //   this.dialysisPrescription.anticoagulant_zongliang = "";
3252 3243
       // }
3253 3244
     },
3254
-    'prescription.id':{
3245
+    'prescription.id': {
3255 3246
       immediate: true,
3256
-      deep:true,
3257
-      handler(oldVal,newVal) {
3258
-        if(oldVal == newVal){
3247
+      deep: true,
3248
+      handler(oldVal, newVal) {
3249
+        if (oldVal == newVal) {
3259 3250
           for (var index in this.dialysisPrescription) {
3260 3251
             this.dialysisPrescription[index] = this.prescription[index]
3261 3252
           }
@@ -3390,7 +3381,7 @@ export default {
3390 3381
           if (this.prescription['target_ktv'] == 0) {
3391 3382
             this.dialysisPrescription['target_ktv'] = ''
3392 3383
           }
3393
-        }else if(this.prescription.id == 0){
3384
+        } else if (this.prescription.id == 0) {
3394 3385
           for (var index in this.dialysisPrescription) {
3395 3386
             this.dialysisPrescription[index] = this.prescription[index]
3396 3387
           }

+ 20 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

@@ -293,16 +293,9 @@
293 293
               <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
294 294
               <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
295 295
               <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
296
-              <td>&nbsp;
297
-                  <span v-if="monitor.operate_time">
298
-                    {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}
299
-                  </span>
300
-              </td>
296
+              <td>&nbsp; <span v-if="monitor.operate_time"> {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }} </span></td>
301 297
               <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
302
-              <td>
303
-                  <span v-if="monitor.symptom || monitor.dispose || monitor.result">
304
-                    {{ monitor.symptom + "," + monitor.dispose + "," + monitor.result }}
305
-                  </span>
298
+              <td> <span v-if="monitor.symptom || monitor.dispose || monitor.result"> {{ monitor.symptom + "," + monitor.dispose + "," + monitor.result }} </span>
306 299
               </td>
307 300
             </tr>
308 301
         </tbody>
@@ -311,14 +304,14 @@
311 304
       <table class="print-table" border="1">
312 305
         <tbody>
313 306
           <tr style="height:40px;line-height:40px">
314
-            <td width="50" style="padding-left:5px;border:none;border-right:1px solid #000;">
307
+            <td width="40" style="padding-left:5px;border:none;border-right:1px solid #000;">
315 308
               透后评估
316 309
             </td>
317 310
 
318
-            <td width="30" style="border:none;padding-left:5px;">
311
+            <td width="25" style="border:none;padding-left:5px;">
319 312
               体温:
320 313
             </td>
321
-            <td width="50" style="text-align:left;border:none;">
314
+            <td width="30" style="text-align:left;border:none;">
322 315
               <div>
323 316
                 <span class="under_line" style="width:50px;display:inline-block;">
324 317
                   {{ afterdialysis.temperature ? afterdialysis.temperature : "" }}
@@ -327,8 +320,8 @@
327 320
             </td>
328 321
             <!-- <td width="10" style="border:none;"></td> -->
329 322
 
330
-            <td width="30" style="border:none;padding-left:5px;">血压:</td>
331
-            <td width="100" style="text-align:left;border:none;line-height: 30px;">
323
+            <td width="25" style="border:none;padding-left:5px;">血压:</td>
324
+            <td width="70" style="text-align:left;border:none;line-height: 30px;">
332 325
               <div>
333 326
                 <span class="under_line" style="width:100px;display:inline-block">
334 327
                   {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
@@ -336,16 +329,26 @@
336 329
                 </span>mmHg
337 330
               </div>
338 331
             </td>
339
-            <td width="30" style="border:none;padding-left:5px">脉搏:</td>
340
-            <td width="50" style="text-align:left;border:none;">
332
+            <td width="25" style="border:none;padding-left:5px">脉搏:</td>
333
+            <td width="55" style="text-align:left;border:none;">
341 334
               <div>
342 335
                 <span class="under_line" style="width:50px;display:inline-block">
343 336
                   {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "" }}
344 337
                 </span>次/分
345 338
               </div>
346 339
             </td>
340
+
341
+            <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
342
+            <td width="30" style="text-align:left;border:none;">
343
+              <div>
344
+                <span class="under_line" style="width:50px;display:inline-block">
345
+                  {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}
346
+                </span>L
347
+              </div>
348
+            </td>
349
+            
347 350
             <td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
348
-            <td width="120" style="text-align:left;border:none;">
351
+            <td width="110" style="text-align:left;border:none;">
349 352
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false) :false" showValue="0"></label-box>
350 353
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) :false" showValue="+"></label-box>
351 354
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) :false" showValue="+ +"></label-box>