Browse Source

12月6日 打印单

yq1 2 weeks ago
parent
commit
2174319bc4
1 changed files with 15 additions and 49 deletions
  1. 15 49
      src/pages/main/template/DialysisPrintOrdereightytwo.vue

+ 15 - 49
src/pages/main/template/DialysisPrintOrdereightytwo.vue View File

114
         <div class="row">
114
         <div class="row">
115
           抗凝药物
115
           抗凝药物
116
           <div class="inline_block under_line" style="width:90%;text-align: left;">&nbsp;&nbsp;
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
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
118
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
119
               剂量:首剂
119
               剂量:首剂
120
               <div class="inline_block" style="width:50px;text-align:center">
120
               <div class="inline_block" style="width:50px;text-align:center">
1233
             ','
1233
             ','
1234
           )
1234
           )
1235
           this.prescription = response.data.data.dialysisPrescription
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
           var receiverTreatmentAccess =
1239
           var receiverTreatmentAccess =
1634
       const options = this.anticoagulantsConfit
1590
       const options = this.anticoagulantsConfit
1635
       if(val != ''){
1591
       if(val != ''){
1636
         for(let i in options){
1592
         for(let i in options){
1637
-          if(val == options[i].name){
1593
+          if(val == options[i].id){
1638
             return options[i].shouji_unit
1594
             return options[i].shouji_unit
1639
           }
1595
           }
1640
         }
1596
         }
1646
       const options = this.anticoagulantsConfit
1602
       const options = this.anticoagulantsConfit
1647
       if(val != ''){
1603
       if(val != ''){
1648
         for(let i in options){
1604
         for(let i in options){
1649
-          if(val == options[i].name){
1605
+          if(val == options[i].id){
1650
             return options[i].weichi_unit
1606
             return options[i].weichi_unit
1651
           }
1607
           }
1652
         }
1608
         }
1658
       const options = this.anticoagulantsConfit
1614
       const options = this.anticoagulantsConfit
1659
       if(val != ''){
1615
       if(val != ''){
1660
         for(let i in options){
1616
         for(let i in options){
1661
-          if(val == options[i].name){
1617
+          if(val == options[i].id){
1662
             return options[i].zongliang_unit
1618
             return options[i].zongliang_unit
1663
           }
1619
           }
1664
         }
1620
         }
1666
         return ''
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
   watch: {
1636
   watch: {
1671
     'patientInfo.gender': function () {
1637
     'patientInfo.gender': function () {