Browse Source

12月6 打印单

yq1 4 months ago
parent
commit
19d0c56b5f
1 changed files with 13 additions and 49 deletions
  1. 13 49
      src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue

+ 13 - 49
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

122
         <div class="row">
122
         <div class="row">
123
           抗凝药物&nbsp;&nbsp;
123
           抗凝药物&nbsp;&nbsp;
124
           <div class="inline_block under_line" style="width:90%;text-align: left;">
124
           <div class="inline_block under_line" style="width:90%;text-align: left;">
125
-            {{ prescription.anticoagulant ? prescription.anticoagulant : '/' }}
125
+            {{ getanticoag(prescription.anticoagulant) ? getanticoag(prescription.anticoagulant) : '/' }}
126
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
126
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
127
               剂量:首剂
127
               剂量:首剂
128
               <div class="inline_block" style="width:50px;text-align:center">
128
               <div class="inline_block" style="width:50px;text-align:center">
1321
           this.doctorForm.url = doctorname.url
1321
           this.doctorForm.url = doctorname.url
1322
           var prescription = response.data.data.dialysisPrescription
1322
           var prescription = response.data.data.dialysisPrescription
1323
           console.log('透析处方', prescription)
1323
           console.log('透析处方', prescription)
1324
-          if (prescription.anticoagulant === 1) {
1325
-            prescription.anticoagulant = '无肝素'
1326
-          }
1327
-          if (prescription.anticoagulant === 2) {
1328
-            prescription.anticoagulant = '普通肝素'
1329
-          }
1330
-          if (prescription.anticoagulant === 3) {
1331
-            prescription.anticoagulant = '低分子肝素'
1332
-          }
1333
-          if (prescription.anticoagulant === 4) {
1334
-            prescription.anticoagulant = '阿加曲班'
1335
-          }
1336
-          if (prescription.anticoagulant === 5) {
1337
-            prescription.anticoagulant = '枸橼酸钠'
1338
-          }
1339
-          if (prescription.anticoagulant == 6) {
1340
-            prescription.anticoagulant = '低分子肝素钙'
1341
-          }
1342
-          if (prescription.anticoagulant == 7) {
1343
-            prescription.anticoagulant = '低分子肝素钠'
1344
-          }
1345
-          if (prescription.anticoagulant == 8) {
1346
-            prescription.anticoagulant = '依诺肝素'
1347
-          }
1348
-          if (prescription.anticoagulant == 9) {
1349
-            prescription.anticoagulant = '达肝素'
1350
-          }
1351
-          if (prescription.anticoagulant == 10) {
1352
-            prescription.anticoagulant = '体外抗凝'
1353
-          }
1354
-          if (prescription.anticoagulant == 11) {
1355
-            prescription.anticoagulant = '那屈肝素'
1356
-          }
1357
-          if (prescription.anticoagulant == 12) {
1358
-            prescription.anticoagulant = '无抗凝剂'
1359
-          }
1360
-          if (prescription.anticoagulant == 13) {
1361
-            prescription.anticoagulant = '那屈肝素钙'
1362
-          }
1363
-          if (prescription.anticoagulant == 14) {
1364
-            prescription.anticoagulant = '肝素钙注射液'
1365
-          }
1366
-          if (prescription.anticoagulant == 15) {
1367
-            prescription.anticoagulant = '甲磺酸萘莫司他'
1368
-          }
1369
           if (prescription.blood_access === 1) {
1324
           if (prescription.blood_access === 1) {
1370
             prescription.blood_access = '正常'
1325
             prescription.blood_access = '正常'
1371
           }
1326
           }
1771
       const options = this.anticoagulantsConfit
1726
       const options = this.anticoagulantsConfit
1772
       if(val != ''){
1727
       if(val != ''){
1773
         for(let i in options){
1728
         for(let i in options){
1774
-          if(val == options[i].name){
1729
+          if(val == options[i].id){
1775
             return options[i].shouji_unit
1730
             return options[i].shouji_unit
1776
           }
1731
           }
1777
         }
1732
         }
1784
       const options = this.anticoagulantsConfit
1739
       const options = this.anticoagulantsConfit
1785
       if(val != ''){
1740
       if(val != ''){
1786
         for(let i in options){
1741
         for(let i in options){
1787
-          if(val == options[i].name){
1742
+          if(val == options[i].id){
1788
             return options[i].weichi_unit
1743
             return options[i].weichi_unit
1789
           }
1744
           }
1790
         }
1745
         }
1796
       const options = this.anticoagulantsConfit
1751
       const options = this.anticoagulantsConfit
1797
       if(val != ''){
1752
       if(val != ''){
1798
         for(let i in options){
1753
         for(let i in options){
1799
-          if(val == options[i].name){
1754
+          if(val == options[i].id){
1800
             return options[i].zongliang_unit
1755
             return options[i].zongliang_unit
1801
           }
1756
           }
1802
         }
1757
         }
1804
         return ''
1759
         return ''
1805
       }
1760
       }
1806
     },
1761
     },
1762
+    getanticoag(id){
1763
+     const option = this.anticoagulantsConfit
1764
+      for(let i in option){
1765
+        if(option[i].id==id){
1766
+          return option[i].name
1767
+        }
1768
+      }
1769
+    },
1770
+    
1807
   },
1771
   },
1808
   watch: {
1772
   watch: {
1809
     'patientInfo.gender': function() {
1773
     'patientInfo.gender': function() {