Browse Source

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

See999 3 years ago
parent
commit
450c0ddc40

+ 4 - 4
src/utils/tools.js View File

@@ -118,7 +118,7 @@ export function uParseTime(time, cFormat) {
118 118
   if (time === 0) {
119 119
     return ''
120 120
   }
121
- 
121
+
122 122
   if (arguments.length === 0) {
123 123
     return null
124 124
   }
@@ -166,9 +166,9 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
166 166
   } else {
167 167
     return 0
168 168
   }
169
-  shouji = parseFloat(shouji)
170
-  shichang = parseFloat(shichang)
171
-  weichi = parseFloat(weichi)
169
+  shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
170
+  shichang = parseFloat(shichang) ? parseFloat(shichang) : 0
171
+  weichi = parseFloat(weichi) ? parseFloat(weichi) : 0
172 172
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
173 173
     return 0
174 174
   }

+ 234 - 234
src/xt_pages/dialysis/batch_print/batch_print_order_fifteen.vue View File

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

+ 2 - 3
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -77,9 +77,8 @@
77 77
           <span class="content">{{
78 78
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
79 79
           }}</span>
80
-          <span class="unit">{{
81
-            target_ultrafiltration != "0" ? "L" : ""
82
-          }}</span>
80
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
81
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
83 82
         </li>
84 83
         <li v-if="isShow('葡萄糖')">
85 84
           <label>葡萄糖 : </label>

+ 2 - 16
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -17,22 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span
21
-            class="unit"
22
-            v-if="
23
-              actual_ultrafiltration != '0' &&
24
-                this.$store.getters.xt_user.template_info.template_id == 6
25
-            "
26
-            >ml</span
27
-          >
28
-          <span
29
-            class="unit"
30
-            v-if="
31
-              actual_ultrafiltration != '0' &&
32
-                this.$store.getters.xt_user.template_info.template_id != 6
33
-            "
34
-            >L</span
35
-          >
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 17) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 " >L</span>
36 22
         </li>
37 23
         <li v-if="isShow('导管')">
38 24
           <label>导管 : </label>

+ 1 - 6
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -28,12 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if="
32
-                this.template_id == 6 ||
33
-                  this.template_id == 10 ||
34
-                  this.template_id == 11
35
-              "
36
-            >
31
+              v-if=" this.template_id == 6 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 "  >
37 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
38 33
             </el-form-item>
39 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 28 - 25
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -64,7 +64,16 @@
64 64
             </el-form-item>
65 65
           </el-col>
66 66
 
67
-          <el-col :span="8" v-if="isShows('目标超滤量')">
67
+          <el-col :span="8" v-if="isShows('目标超滤量') && this.$store.getters.xt_user.template_info.template_id == 17">
68
+            <el-form-item label="目标超滤量(ml):">
69
+              <el-input
70
+                type="number"
71
+                v-model="dialysisPrescription.target_ultrafiltration"
72
+              ></el-input>
73
+            </el-form-item>
74
+          </el-col>
75
+
76
+          <el-col :span="8" v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17">
68 77
             <el-form-item label="目标超滤量(L):">
69 78
               <el-input
70 79
                 type="number"
@@ -99,6 +108,7 @@
99 108
             <el-form-item label="抗凝剂:">
100 109
               <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"  @change="changeThisAnticoagulant" >
101 110
                 <el-option :key="0" label="请选择" :value="0"></el-option>
111
+                <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素" :value="3"></el-option>
102 112
                 <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name" :key="index + 'e'" :value="item.id" ></el-option>
103 113
               </el-select>
104 114
             </el-form-item>
@@ -3214,16 +3224,9 @@ export default {
3214 3224
         dialysis_duration_hour = this.dialysisPrescription
3215 3225
           .dialysis_duration_hour
3216 3226
       }
3217
-      duration =
3218
-        parseFloat(dialysis_duration_hour) +
3219
-        parseFloat(dialysis_duration_minute) / 60
3227
+      duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3220 3228
 
3221
-      this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3222
-        1,
3223
-        this.dialysisPrescription.anticoagulant_shouji,
3224
-        duration,
3225
-        this.dialysisPrescription.anticoagulant_weichi
3226
-      )
3229
+      this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
3227 3230
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3228 3231
         this.dialysisPrescription.anticoagulant_zongliang = ''
3229 3232
       }
@@ -3271,13 +3274,13 @@ export default {
3271 3274
             this.dialysisPrescription['dialysate_temperature'] = ''
3272 3275
           }
3273 3276
           if (this.prescription['anticoagulant_shouji'] == 0) {
3274
-            this.dialysisPrescription['anticoagulant_shouji'] = ''
3277
+            this.dialysisPrescription['anticoagulant_shouji'] = 0
3275 3278
           }
3276 3279
           if (this.prescription['anticoagulant_weichi'] == 0) {
3277
-            this.dialysisPrescription['anticoagulant_weichi'] = ''
3280
+            this.dialysisPrescription['anticoagulant_weichi'] = 0
3278 3281
           }
3279 3282
           if (this.prescription['anticoagulant_zongliang'] == 0) {
3280
-            this.dialysisPrescription['anticoagulant_zongliang'] = ''
3283
+            this.dialysisPrescription['anticoagulant_zongliang'] = 0
3281 3284
           }
3282 3285
           if (this.prescription['anticoagulant_gaijiliang'] == 0) {
3283 3286
             this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
@@ -3339,13 +3342,13 @@ export default {
3339 3342
             this.dialysisPrescription['dialysate_temperature'] = ''
3340 3343
           }
3341 3344
           if (this.prescription['anticoagulant_shouji'] == 0) {
3342
-            this.dialysisPrescription['anticoagulant_shouji'] = ''
3345
+            this.dialysisPrescription['anticoagulant_shouji'] = 0
3343 3346
           }
3344 3347
           if (this.prescription['anticoagulant_weichi'] == 0) {
3345
-            this.dialysisPrescription['anticoagulant_weichi'] = ''
3348
+            this.dialysisPrescription['anticoagulant_weichi'] = 0
3346 3349
           }
3347 3350
           if (this.prescription['anticoagulant_zongliang'] == 0) {
3348
-            this.dialysisPrescription['anticoagulant_zongliang'] = ''
3351
+            this.dialysisPrescription['anticoagulant_zongliang'] = 0
3349 3352
           }
3350 3353
           if (this.prescription['anticoagulant_gaijiliang'] == 0) {
3351 3354
             this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
@@ -3406,13 +3409,13 @@ export default {
3406 3409
             this.dialysisPrescription['dialysate_temperature'] = ''
3407 3410
           }
3408 3411
           if (this.prescription['anticoagulant_shouji'] == 0) {
3409
-            this.dialysisPrescription['anticoagulant_shouji'] = ''
3412
+            this.dialysisPrescription['anticoagulant_shouji'] = 0
3410 3413
           }
3411 3414
           if (this.prescription['anticoagulant_weichi'] == 0) {
3412
-            this.dialysisPrescription['anticoagulant_weichi'] = ''
3415
+            this.dialysisPrescription['anticoagulant_weichi'] = 0
3413 3416
           }
3414 3417
           if (this.prescription['anticoagulant_zongliang'] == 0) {
3415
-            this.dialysisPrescription['anticoagulant_zongliang'] = ''
3418
+            this.dialysisPrescription['anticoagulant_zongliang'] = 0
3416 3419
           }
3417 3420
           if (this.prescription['anticoagulant_gaijiliang'] == 0) {
3418 3421
             this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
@@ -3480,13 +3483,13 @@ export default {
3480 3483
             this.dialysisPrescription['dialysate_temperature'] = ''
3481 3484
           }
3482 3485
           if (this.prescription['anticoagulant_shouji'] == 0) {
3483
-            this.dialysisPrescription['anticoagulant_shouji'] = ''
3486
+            this.dialysisPrescription['anticoagulant_shouji'] = 0
3484 3487
           }
3485 3488
           if (this.prescription['anticoagulant_weichi'] == 0) {
3486
-            this.dialysisPrescription['anticoagulant_weichi'] = ''
3489
+            this.dialysisPrescription['anticoagulant_weichi'] = 0
3487 3490
           }
3488 3491
           if (this.prescription['anticoagulant_zongliang'] == 0) {
3489
-            this.dialysisPrescription['anticoagulant_zongliang'] = ''
3492
+            this.dialysisPrescription['anticoagulant_zongliang'] = 0
3490 3493
           }
3491 3494
           if (this.prescription['anticoagulant_gaijiliang'] == 0) {
3492 3495
             this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
@@ -3551,13 +3554,13 @@ export default {
3551 3554
             this.dialysisPrescription['dialysate_temperature'] = ''
3552 3555
           }
3553 3556
           if (this.solution['anticoagulant_shouji'] == 0) {
3554
-            this.dialysisPrescription['anticoagulant_shouji'] = ''
3557
+            this.dialysisPrescription['anticoagulant_shouji'] = 0
3555 3558
           }
3556 3559
           if (this.solution['anticoagulant_weichi'] == 0) {
3557
-            this.dialysisPrescription['anticoagulant_weichi'] = ''
3560
+            this.dialysisPrescription['anticoagulant_weichi'] = 0
3558 3561
           }
3559 3562
           if (this.solution['anticoagulant_zongliang'] == 0) {
3560
-            this.dialysisPrescription['anticoagulant_zongliang'] = ''
3563
+            this.dialysisPrescription['anticoagulant_zongliang'] = 0
3561 3564
           }
3562 3565
           if (this.solution['anticoagulant_gaijiliang'] == 0) {
3563 3566
             this.dialysisPrescription['anticoagulant_gaijiliang'] = ''

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue View File

@@ -161,7 +161,7 @@
161 161
             </span>
162 162
             <span style="display:inline-block;">
163 163
                 <div style="display:inline-block;width:30px;text-align:center">
164
-                    {{ anticoagulant == 7 && prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
164
+                    {{ anticoagulant == 7 && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
165 165
                 </div>
166 166
                 <span v-if="prescription.anticoagulant == 5">mg</span>
167 167
                 <span v-if="prescription.anticoagulant == 4">mg</span>
@@ -1275,7 +1275,7 @@ export default {
1275 1275
       vascularAccess: [],
1276 1276
       nursing_record: '',
1277 1277
       special_record: '',
1278
-      newTableAdvice:[]
1278
+      newTableAdvice: []
1279 1279
     }
1280 1280
   },
1281 1281
   methods: {
@@ -1463,7 +1463,7 @@ export default {
1463 1463
           var doctoradvce = response.data.data.doctorAdvice
1464 1464
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1465 1465
           this.newTableAdvice = response.data.data.doctorAdevieInfo
1466
-          console.log("哈哈哈哈哈哈哈哈哈",this.newTableAdvice)
1466
+          console.log('哈哈哈哈哈哈哈哈哈', this.newTableAdvice)
1467 1467
           var tableAdvice = doctorAdevieInfo
1468 1468
           console.log('tableAdvice', tableAdvice)
1469 1469
           // console.log('医生', tableAdvice.length)

+ 2 - 1
src/xt_pages/user/dialysisSolution.vue View File

@@ -590,7 +590,7 @@ import {
590 590
 } from '@/api/patient'
591 591
 
592 592
 import { getSystemPrescription } from '@/api/config'
593
-
593
+import { getDataConfig } from '@/utils/data'
594 594
 import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
595 595
 import store from '@/store'
596 596
 
@@ -1654,6 +1654,7 @@ export default {
1654 1654
 
1655 1655
     this.displace_liqui_part_option = this.$store.getters.displace_liqui
1656 1656
     this.blood_access_option = this.$store.getters.blood_access
1657
+    this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
1657 1658
 
1658 1659
     this.queryParams.id = this.patientID
1659 1660
     // this.fetchAllDoctorAndNurse();