소스 검색

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 2 주 전
부모
커밋
210938eecd
1개의 변경된 파일32개의 추가작업 그리고 60개의 파일을 삭제
  1. 32 60
      src/pages/main/template/DialysisPrintOrdereightytwo.vue

+ 32 - 60
src/pages/main/template/DialysisPrintOrdereightytwo.vue 파일 보기

@@ -89,26 +89,32 @@
89 89
               </div>
90 90
             </div>
91 91
         </div>
92
-        <div class="row">
93
-          血管通路
94
-          <div class="inline_block under_line" style="width:200px;text-align: center;">
95
-            {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/'  }}
96
-            {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
92
+        <div class="row" style="display: flex;">
93
+          <div style="flex: 1;">
94
+            血管通路
95
+            <div class="inline_block under_line" style="width:200px;text-align: center;">
96
+              {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/'  }}
97
+              {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
98
+            </div>
97 99
           </div>
98
-          导管
99
-          <div class="inline_block under_line" style="width:200px;text-align: center;">
100
-            {{ predialysis.catheter ? predialysis.catheter : "/" }}
100
+          <div style="flex: 1;">
101
+            导管
102
+            <div class="inline_block under_line" style="width:200px;text-align: center;">
103
+              {{ predialysis.catheter ? predialysis.catheter : "/" }}
104
+            </div>
101 105
           </div>
102
-          内瘘
103
-          <div class="inline_block under_line" style="width:200px;text-align: center;">
104
-            {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
106
+          <div style="flex: 1;">
107
+            内瘘
108
+            <div class="inline_block under_line" style="width:200px;text-align: center;">
109
+              {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
110
+            </div>
105 111
           </div>
106 112
         </div>
107 113
 
108 114
         <div class="row">
109 115
           抗凝药物
110 116
           <div class="inline_block under_line" style="width:90%;text-align: left;">&nbsp;&nbsp;
111
-            {{ prescription.anticoagulant ? prescription.anticoagulant : '/' }}
117
+            {{ getanticoag(prescription.anticoagulant) ? getanticoag(prescription.anticoagulant) : '/' }}
112 118
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
113 119
               剂量:首剂
114 120
               <div class="inline_block" style="width:50px;text-align:center">
@@ -1227,51 +1233,7 @@ export default {
1227 1233
             ','
1228 1234
           )
1229 1235
           this.prescription = response.data.data.dialysisPrescription
1230
-          if (this.prescription.anticoagulant === 1) {
1231
-            this.prescription.anticoagulant = '无肝素'
1232
-          }
1233
-          if (this.prescription.anticoagulant === 2) {
1234
-            this.prescription.anticoagulant = '普通肝素'
1235
-          }
1236
-          if (this.prescription.anticoagulant === 3) {
1237
-            this.prescription.anticoagulant = '低分子肝素'
1238
-          }
1239
-          if (this.prescription.anticoagulant === 4) {
1240
-            this.prescription.anticoagulant = '阿加曲班'
1241
-          }
1242
-          if (this.prescription.anticoagulant === 5) {
1243
-            this.prescription.anticoagulant = '枸橼酸钠'
1244
-          }
1245
-          if (this.prescription.anticoagulant == 6) {
1246
-            this.prescription.anticoagulant = '低分子肝素钙'
1247
-          }
1248
-          if (this.prescription.anticoagulant == 7) {
1249
-            this.prescription.anticoagulant = '低分子肝素钠'
1250
-          }
1251
-          if (this.prescription.anticoagulant == 8) {
1252
-            this.prescription.anticoagulant = '依诺肝素'
1253
-          }
1254
-          if (this.prescription.anticoagulant == 9) {
1255
-            this.prescription.anticoagulant = '达肝素'
1256
-          }
1257
-          if (this.prescription.anticoagulant == 10) {
1258
-            this.prescription.anticoagulant = '体外抗凝'
1259
-          }
1260
-          if (this.prescription.anticoagulant == 11) {
1261
-            this.prescription.anticoagulant = '那屈肝素'
1262
-          }
1263
-          if (this.prescription.anticoagulant == 12) {
1264
-            this.prescription.anticoagulant = '无抗凝剂'
1265
-          }
1266
-          if (this.prescription.anticoagulant == 13) {
1267
-            this.prescription.anticoagulant = '那屈肝素钙'
1268
-          }
1269
-          if (this.prescription.anticoagulant == 14) {
1270
-            this.prescription.anticoagulant = '肝素钙注射液'
1271
-          }
1272
-          if (this.prescription.anticoagulant == 15) {
1273
-            this.prescription.anticoagulant = '甲磺酸萘莫司他'
1274
-          }
1236
+          
1275 1237
 
1276 1238
 
1277 1239
           var receiverTreatmentAccess =
@@ -1628,7 +1590,7 @@ export default {
1628 1590
       const options = this.anticoagulantsConfit
1629 1591
       if(val != ''){
1630 1592
         for(let i in options){
1631
-          if(val == options[i].name){
1593
+          if(val == options[i].id){
1632 1594
             return options[i].shouji_unit
1633 1595
           }
1634 1596
         }
@@ -1640,7 +1602,7 @@ export default {
1640 1602
       const options = this.anticoagulantsConfit
1641 1603
       if(val != ''){
1642 1604
         for(let i in options){
1643
-          if(val == options[i].name){
1605
+          if(val == options[i].id){
1644 1606
             return options[i].weichi_unit
1645 1607
           }
1646 1608
         }
@@ -1652,7 +1614,7 @@ export default {
1652 1614
       const options = this.anticoagulantsConfit
1653 1615
       if(val != ''){
1654 1616
         for(let i in options){
1655
-          if(val == options[i].name){
1617
+          if(val == options[i].id){
1656 1618
             return options[i].zongliang_unit
1657 1619
           }
1658 1620
         }
@@ -1660,6 +1622,16 @@ export default {
1660 1622
         return ''
1661 1623
       }
1662 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
+    },
1663 1635
   },
1664 1636
   watch: {
1665 1637
     'patientInfo.gender': function () {