see999 hace 4 años
padre
commit
cf3f5d8cf2

+ 22 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue Ver fichero

@@ -874,11 +874,11 @@
874 874
                     <td width="150"></td>
875 875
                     <td width="30">医生</td>
876 876
                     <td width="80">
877
-                        <div class="under-line">
877
+                      <div class="under-line">
878 878
                         &nbsp;
879 879
                         <span v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
880
-                        <img class="es-img" :src="setAdminUserES(record.prescription, 'creater')" alt="" srcset="" v-else style="height: 30px;">
881
-                        </div>
880
+                        <img class="es-img" v-else style="height:30px;" :src="setAdminUserES(record.prescription, 'creater')" />
881
+                      </div>
882 882
                     </td>
883 883
                     <td width="50">穿刺护士</td>
884 884
                     <td width="80">
@@ -1220,6 +1220,25 @@ export default {
1220 1220
       })
1221 1221
   },
1222 1222
   methods: {
1223
+    getComplication(complication){
1224
+      if(complication.indexOf(',') == -1){
1225
+        let str = complication
1226
+        if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
1227
+          return str
1228
+        }
1229
+      }else if(complication.indexOf(',') > -1){
1230
+        let str = complication
1231
+        if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
1232
+          let newStr = ''
1233
+          str.split(',').map(item => {
1234
+            if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(item) == -1){
1235
+              newStr += item + ','
1236
+            }
1237
+          })
1238
+          return newStr.substring(0, newStr.length - 1)
1239
+        }
1240
+      }
1241
+    },
1223 1242
     dialysateFormulationName(id) {
1224 1243
       if (id in this.dialysateFormulationOptions) {
1225 1244
         return this.dialysateFormulationOptions[id].name

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Ver fichero

@@ -946,7 +946,7 @@
946 946
           <td width="80">
947 947
             <div class="under-line">
948 948
               &nbsp;
949
-              <span v-if=" setAdminUserES(prescription.creater) == '' " >{{ getAdminUser(prescription.creater)}}</span >
949
+              <span v-if=" setAdminUserES(prescription.creater) == '' " >{{ getAdminUser(prescription.creater)}}</span>
950 950
               <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else  />
951 951
             </div>
952 952
           </td>