See999 il y a 4 ans
Parent
révision
81358f1484

+ 31 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue Voir le fichier

41
                     <div class="inline_block" style="margin-right:30px;">
41
                     <div class="inline_block" style="margin-right:30px;">
42
                         机器编号 
42
                         机器编号 
43
                         <div class="inline_block under_line" style="width:80px;">
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
                         </div>
46
                         </div>
46
                     </div>
47
                     </div>
47
                     <div class="inline_block" style="margin-right:30px;">
48
                     <div class="inline_block" style="margin-right:30px;">
64
                     <div class="inline_block" style="margin-right:30px;">
65
                     <div class="inline_block" style="margin-right:30px;">
65
                         年龄:
66
                         年龄:
66
                         <div class="under_line" style="width: 50px;text-align: center">
67
                         <div class="under_line" style="width: 50px;text-align: center">
67
-                            {{ getAge(record.patient) }}
68
+                            {{ getNewAge(record.patient.id_card_no) }}
68
                         </div>
69
                         </div>
69
70
70
                     </div>
71
                     </div>
112
                     抗凝药物 
113
                     抗凝药物 
113
                     <div class="inline_block under_line" style="width:93%;text-align: left;">
114
                     <div class="inline_block under_line" style="width:93%;text-align: left;">
114
                     <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>&nbsp;
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
                     (<label-box :isChecked="record.prescription.anticoagulant == 6 ? true : false" showValue="钙"></label-box>
117
                     (<label-box :isChecked="record.prescription.anticoagulant == 6 ? true : false" showValue="钙"></label-box>
117
                         <label-box :isChecked="record.prescription.anticoagulant == 7 ? true : false" showValue="钠"></label-box>)
118
                         <label-box :isChecked="record.prescription.anticoagulant == 7 ? true : false" showValue="钠"></label-box>)
118
                     <div class="inline_block">
119
                     <div class="inline_block">
336
                         <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
337
                         <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
337
                         <td>&nbsp;
338
                         <td>&nbsp;
338
                             <span v-if="monitor.operate_time">
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
                             </span>
341
                             </span>
341
                         </td>
342
                         </td>
342
                         <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
343
                         <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
720
       });
721
       });
721
   },
722
   },
722
   methods: {
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
     getIsCheckDataConfig(pName, cName, targetName){
749
     getIsCheckDataConfig(pName, cName, targetName){
724
         var arr = getDataConfig(pName,cName)
750
         var arr = getDataConfig(pName,cName)
751
+        console.log(arr)
725
         for (let i = 0; i < arr.length; i++){
752
         for (let i = 0; i < arr.length; i++){
726
             if (arr[i].name == targetName){
753
             if (arr[i].name == targetName){
727
             return arr[i].id
754
             return arr[i].id

+ 26 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Voir le fichier

52
           <div class="inline_block" style="margin-right:30px;">
52
           <div class="inline_block" style="margin-right:30px;">
53
             年龄:
53
             年龄:
54
             <div class="under_line" style="width: 50px;text-align: center">
54
             <div class="under_line" style="width: 50px;text-align: center">
55
-                {{ getAge(patientInfo) }}
55
+                {{ getNewAge(patientInfo.id_card_no) }}
56
             </div>
56
             </div>
57
57
58
           </div>
58
           </div>
542
     };
542
     };
543
   },
543
   },
544
   methods: {
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
     getDisplaceLiquiPart: function(val) {
558
     getDisplaceLiquiPart: function(val) {
546
       let displace_liqui_part_name = "/";
559
       let displace_liqui_part_name = "/";
547
       const displace_liqui_part = this.displaceLiquiPartOptions;
560
       const displace_liqui_part = this.displaceLiquiPartOptions;
602
     },
615
     },
603
     getNumber() {
616
     getNumber() {
604
       if (this.dialysisOrder != null) {
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
       } else {
630
       } else {
610
         return (
631
         return (
611
           this.patientInfo.DialysisSchedule.device_zone.name +
632
           this.patientInfo.DialysisSchedule.device_zone.name +