Quellcode durchsuchen

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

XMLWAN vor 4 Jahren
Ursprung
Commit
3f6eb833d3
1 geänderte Dateien mit 36 neuen und 4 gelöschten Zeilen
  1. 36 4
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue

+ 36 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue Datei anzeigen

@@ -21,7 +21,7 @@
21 21
 
22 22
             <td width="50">年 龄:</td>
23 23
             <td width="40">
24
-              <div class="under-line">{{ getAge(patientInfo) }}</div>
24
+              <div class="under-line">{{ getNewAge(patientInfo.id_card_no) }}</div>
25 25
             </td>
26 26
             <td width='10'>岁</td>
27 27
             <td width="30"></td>
@@ -763,7 +763,7 @@
763 763
                     </td>
764 764
                     <td width="20">Kg</td>
765 765
                     <td></td>
766
-                    <td width="95">透析器凝血:</td>
766
+                    <td width="95">透析器堵塞:</td>
767 767
                     <td width="200">
768 768
                       <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('凝血0级') > -1 ? true : false) :false" showValue="0级"></label-box>
769 769
                       <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('凝血Ⅰ级') > -1 ? true : false) :false" showValue="Ⅰ级"></label-box>
@@ -843,7 +843,7 @@
843 843
                     <td width='40'>其他</td>
844 844
                     <td width='160'>
845 845
                       <div class="under-line">
846
-                        &nbsp;{{ ['低血压','高血压','心律失常','头晕','头痛','呕吐','抽搐','出血','心衰','腹痛'].indexOf(afterdialysis.complication) == -1 ? afterdialysis.complication : '' }}
846
+                        &nbsp;{{ afterdialysis.complication ? getComplication(afterdialysis.complication) : '' }}
847 847
                       </div>
848 848
                     </td>
849 849
                     <td></td>
@@ -891,7 +891,7 @@
891 891
                         <span v-if="afterdialysis.patient_gose == 3">{{ afterdialysis.inpatient_department }}</span>
892 892
                       </div>
893 893
                     </td>
894
-                    <td width="70">下机护士:</td>
894
+                    <td width="70">护士签名:</td>
895 895
                     <td width="100">
896 896
                       <div class="under-line">&nbsp;
897 897
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
@@ -1078,6 +1078,38 @@ export default {
1078 1078
     }
1079 1079
   },
1080 1080
   methods: {
1081
+    getNewAge(UUserCard) {
1082
+      if (UUserCard != null && UUserCard != '') {
1083
+        // 获取年龄
1084
+        var myDate = new Date()
1085
+        var month = myDate.getMonth() + 1
1086
+        var day = myDate.getDate()
1087
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
1088
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
1089
+          age++
1090
+        }
1091
+        return age
1092
+      }
1093
+    },
1094
+    getComplication(complication){
1095
+      if(complication.indexOf(',') == -1){
1096
+        let str = complication
1097
+        if(['低血压','高血压','心律失常','头晕','头痛','呕吐','抽搐','出血','心衰','腹痛'].indexOf(str) == -1){
1098
+          return str
1099
+        }
1100
+      }else if(complication.indexOf(',') > -1){
1101
+        let str = complication
1102
+        if(['低血压','高血压','心律失常','头晕','头痛','呕吐','抽搐','出血','心衰','腹痛'].indexOf(str) == -1){
1103
+          let newStr = ''
1104
+          str.split(',').map(item => {
1105
+            if(['低血压','高血压','心律失常','头晕','头痛','呕吐','抽搐','出血','心衰','腹痛'].indexOf(item) == -1){
1106
+              newStr += item + ','
1107
+            }
1108
+          })
1109
+          return newStr.substring(0, newStr.length - 1)
1110
+        }
1111
+      }
1112
+    },
1081 1113
     getHemorrhage(hemorrhage){
1082 1114
       if(hemorrhage.indexOf(',') == -1){
1083 1115
         let str = hemorrhage