Bladeren bron

12月6日 打印单

yq1 2 weken geleden
bovenliggende
commit
2174319bc4
1 gewijzigde bestanden met toevoegingen van 15 en 49 verwijderingen
  1. 15 49
      src/pages/main/template/DialysisPrintOrdereightytwo.vue

+ 15 - 49
src/pages/main/template/DialysisPrintOrdereightytwo.vue Bestand weergeven

@@ -114,7 +114,7 @@
114 114
         <div class="row">
115 115
           抗凝药物
116 116
           <div class="inline_block under_line" style="width:90%;text-align: left;">&nbsp;&nbsp;
117
-            {{ prescription.anticoagulant ? prescription.anticoagulant : '/' }}
117
+            {{ getanticoag(prescription.anticoagulant) ? getanticoag(prescription.anticoagulant) : '/' }}
118 118
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
119 119
               剂量:首剂
120 120
               <div class="inline_block" style="width:50px;text-align:center">
@@ -1233,51 +1233,7 @@ export default {
1233 1233
             ','
1234 1234
           )
1235 1235
           this.prescription = response.data.data.dialysisPrescription
1236
-          if (this.prescription.anticoagulant === 1) {
1237
-            this.prescription.anticoagulant = '无肝素'
1238
-          }
1239
-          if (this.prescription.anticoagulant === 2) {
1240
-            this.prescription.anticoagulant = '普通肝素'
1241
-          }
1242
-          if (this.prescription.anticoagulant === 3) {
1243
-            this.prescription.anticoagulant = '低分子肝素'
1244
-          }
1245
-          if (this.prescription.anticoagulant === 4) {
1246
-            this.prescription.anticoagulant = '阿加曲班'
1247
-          }
1248
-          if (this.prescription.anticoagulant === 5) {
1249
-            this.prescription.anticoagulant = '枸橼酸钠'
1250
-          }
1251
-          if (this.prescription.anticoagulant == 6) {
1252
-            this.prescription.anticoagulant = '低分子肝素钙'
1253
-          }
1254
-          if (this.prescription.anticoagulant == 7) {
1255
-            this.prescription.anticoagulant = '低分子肝素钠'
1256
-          }
1257
-          if (this.prescription.anticoagulant == 8) {
1258
-            this.prescription.anticoagulant = '依诺肝素'
1259
-          }
1260
-          if (this.prescription.anticoagulant == 9) {
1261
-            this.prescription.anticoagulant = '达肝素'
1262
-          }
1263
-          if (this.prescription.anticoagulant == 10) {
1264
-            this.prescription.anticoagulant = '体外抗凝'
1265
-          }
1266
-          if (this.prescription.anticoagulant == 11) {
1267
-            this.prescription.anticoagulant = '那屈肝素'
1268
-          }
1269
-          if (this.prescription.anticoagulant == 12) {
1270
-            this.prescription.anticoagulant = '无抗凝剂'
1271
-          }
1272
-          if (this.prescription.anticoagulant == 13) {
1273
-            this.prescription.anticoagulant = '那屈肝素钙'
1274
-          }
1275
-          if (this.prescription.anticoagulant == 14) {
1276
-            this.prescription.anticoagulant = '肝素钙注射液'
1277
-          }
1278
-          if (this.prescription.anticoagulant == 15) {
1279
-            this.prescription.anticoagulant = '甲磺酸萘莫司他'
1280
-          }
1236
+          
1281 1237
 
1282 1238
 
1283 1239
           var receiverTreatmentAccess =
@@ -1634,7 +1590,7 @@ export default {
1634 1590
       const options = this.anticoagulantsConfit
1635 1591
       if(val != ''){
1636 1592
         for(let i in options){
1637
-          if(val == options[i].name){
1593
+          if(val == options[i].id){
1638 1594
             return options[i].shouji_unit
1639 1595
           }
1640 1596
         }
@@ -1646,7 +1602,7 @@ export default {
1646 1602
       const options = this.anticoagulantsConfit
1647 1603
       if(val != ''){
1648 1604
         for(let i in options){
1649
-          if(val == options[i].name){
1605
+          if(val == options[i].id){
1650 1606
             return options[i].weichi_unit
1651 1607
           }
1652 1608
         }
@@ -1658,7 +1614,7 @@ export default {
1658 1614
       const options = this.anticoagulantsConfit
1659 1615
       if(val != ''){
1660 1616
         for(let i in options){
1661
-          if(val == options[i].name){
1617
+          if(val == options[i].id){
1662 1618
             return options[i].zongliang_unit
1663 1619
           }
1664 1620
         }
@@ -1666,6 +1622,16 @@ export default {
1666 1622
         return ''
1667 1623
       }
1668 1624
     },
1625
+    getanticoag(id){
1626
+     const option = this.anticoagulantsConfit
1627
+     console.log('this.anticoagulantsConfit',this.anticoagulantsConfit);
1628
+     
1629
+      for(let i in option){
1630
+        if(option[i].id == id){
1631
+          return option[i].name
1632
+        }
1633
+      }
1634
+    },
1669 1635
   },
1670 1636
   watch: {
1671 1637
     'patientInfo.gender': function () {