See999 4 years ago
parent
commit
81358f1484

+ 31 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue View File

@@ -41,7 +41,8 @@
41 41
                     <div class="inline_block" style="margin-right:30px;">
42 42
                         机器编号 
43 43
                         <div class="inline_block under_line" style="width:80px;">
44
-                        {{ record.device_zone.name && record.device_number.number ? record.device_zone.name + record.device_number.number : '' }}
44
+                          {{ record.device_zone.name && record.device_number.number ? getNewNumber(record.device_zone.name,record.device_number.number) : '' }}
45
+                        <!-- {{ record.device_zone.name && record.device_number.number ? record.device_zone.name + record.device_number.number : '' }} -->
45 46
                         </div>
46 47
                     </div>
47 48
                     <div class="inline_block" style="margin-right:30px;">
@@ -64,7 +65,7 @@
64 65
                     <div class="inline_block" style="margin-right:30px;">
65 66
                         年龄:
66 67
                         <div class="under_line" style="width: 50px;text-align: center">
67
-                            {{ getAge(record.patient) }}
68
+                            {{ getNewAge(record.patient.id_card_no) }}
68 69
                         </div>
69 70
70 71
                     </div>
@@ -112,7 +113,7 @@
112 113
                     抗凝药物 
113 114
                     <div class="inline_block under_line" style="width:93%;text-align: left;">
114 115
                     <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>&nbsp;
115
-                    <label-box :isChecked="record.prescription.anticoagulant == 6 ? true : record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
116
+                    <label-box :isChecked="record.prescription.anticoagulant == 3 ?  true : record.prescription.anticoagulant == 6 ? true : record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
116 117
                     (<label-box :isChecked="record.prescription.anticoagulant == 6 ? true : false" showValue="钙"></label-box>
117 118
                         <label-box :isChecked="record.prescription.anticoagulant == 7 ? true : false" showValue="钠"></label-box>)
118 119
                     <div class="inline_block">
@@ -336,7 +337,7 @@
336 337
                         <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
337 338
                         <td>&nbsp;
338 339
                             <span v-if="monitor.operate_time">
339
-                                {{ record.assessment_before_dislysis.dialysate_flow ? record.assessment_before_dislysis.dialysate_flow : "" }}
340
+                                {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }}
340 341
                             </span>
341 342
                         </td>
342 343
                         <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
@@ -720,8 +721,34 @@ export default {
720 721
       });
721 722
   },
722 723
   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
+        }
735
+    },
736
+    getNewAge(UUserCard) {
737
+      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;
743
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
744
+        age++;
745
+        }
746
+        return age;
747
+      }
748
+    },
723 749
     getIsCheckDataConfig(pName, cName, targetName){
724 750
         var arr = getDataConfig(pName,cName)
751
+        console.log(arr)
725 752
         for (let i = 0; i < arr.length; i++){
726 753
             if (arr[i].name == targetName){
727 754
             return arr[i].id

+ 26 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

@@ -52,7 +52,7 @@
52 52
           <div class="inline_block" style="margin-right:30px;">
53 53
             年龄:
54 54
             <div class="under_line" style="width: 50px;text-align: center">
55
-                {{ getAge(patientInfo) }}
55
+                {{ getNewAge(patientInfo.id_card_no) }}
56 56
             </div>
57 57
58 58
           </div>
@@ -542,6 +542,19 @@ export default {
542 542
     };
543 543
   },
544 544
   methods: {
545
+    getNewAge(UUserCard) {
546
+      if (UUserCard != null && UUserCard != '') {
547
+        //获取年龄
548
+        var myDate = new Date();
549
+        var month = myDate.getMonth() + 1;
550
+        var day = myDate.getDate();
551
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
552
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
553
+        age++;
554
+        }
555
+        return age;
556
+      }
557
+    },
545 558
     getDisplaceLiquiPart: function(val) {
546 559
       let displace_liqui_part_name = "/";
547 560
       const displace_liqui_part = this.displaceLiquiPartOptions;
@@ -602,10 +615,18 @@ export default {
602 615
     },
603 616
     getNumber() {
604 617
       if (this.dialysisOrder != null) {
605
-        return (
606
-          this.patientInfo.DialysisSchedule.device_zone.name +
607
-          this.dialysisOrder.DeviceNumber.number
608
-        );
618
+        if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
619
+          return (
620
+            this.patientInfo.DialysisSchedule.device_zone.name +
621
+            this.dialysisOrder.DeviceNumber.number
622
+          );
623
+        } else {
624
+          return (
625
+            this.patientInfo.DialysisSchedule.device_zone.name + "区" +
626
+            this.dialysisOrder.DeviceNumber.number
627
+          );
628
+        }
629
+        
609 630
       } else {
610 631
         return (
611 632
           this.patientInfo.DialysisSchedule.device_zone.name +