See999 4 years ago
parent
commit
f1f7d387d5

+ 20 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue View File

@@ -1670,7 +1670,7 @@
1670 1670
                             <td width="40">其他:</td>
1671 1671
                             <td width="">
1672 1672
                               <div class="under-line">
1673
-                                &nbsp;{{ record.assessment_after_dislysis.complication && ['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(record.assessment_after_dislysis.complication) == -1 ? record.assessment_after_dislysis.complication : '' }}
1673
+                                &nbsp;{{ record.assessment_after_dislysis.complication ? getComplication(record.assessment_after_dislysis.complication) : '' }}
1674 1674
                               </div>
1675 1675
                             </td>
1676 1676
                           </tr>
@@ -2585,6 +2585,25 @@ export default {
2585 2585
           console.log('weight', weight)
2586 2586
         }
2587 2587
       })
2588
+    },
2589
+    getComplication(complication){
2590
+      if(complication.indexOf(',') == -1){
2591
+        let str = complication
2592
+        if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
2593
+          return str
2594
+        }
2595
+      }else if(complication.indexOf(',') > -1){
2596
+        let str = complication
2597
+        if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
2598
+          let newStr = ''
2599
+          str.split(',').map(item => {
2600
+            if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(item) == -1){
2601
+              newStr += item + ','
2602
+            }
2603
+          })
2604
+          return newStr.substring(0, newStr.length - 1)
2605
+        }
2606
+      }
2588 2607
     }
2589 2608
   }
2590 2609
 }

+ 20 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

@@ -1080,7 +1080,7 @@
1080 1080
                   <td width="40">其他:</td>
1081 1081
                   <td width="">
1082 1082
                     <div class="under-line">
1083
-                      &nbsp;{{ afterdialysis.complication && ['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(afterdialysis.complication) == -1 ? afterdialysis.complication : '' }}
1083
+                      &nbsp;{{ afterdialysis.complication ? getComplication(afterdialysis.complication) : '' }}
1084 1084
                     </div>
1085 1085
                   </td>
1086 1086
                 </tr>
@@ -1735,6 +1735,25 @@ export default {
1735 1735
       }
1736 1736
   },
1737 1737
     methods: {
1738
+      getComplication(complication){
1739
+        if(complication.indexOf(',') == -1){
1740
+          let str = complication
1741
+          if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
1742
+            return str
1743
+          }
1744
+        }else if(complication.indexOf(',') > -1){
1745
+          let str = complication
1746
+          if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
1747
+            let newStr = ''
1748
+            str.split(',').map(item => {
1749
+              if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(item) == -1){
1750
+                newStr += item + ','
1751
+              }
1752
+            })
1753
+            return newStr.substring(0, newStr.length - 1)
1754
+          }
1755
+        }
1756
+      },
1738 1757
       getAdminUser(id) {
1739 1758
         if (id == 0) {
1740 1759
           return ''