Przeglądaj źródła

9月10,批量打印处方笺

yq1 1 tydzień temu
rodzic
commit
3257d2db9a

+ 7 - 9
src/xt_pages/outpatientDoctorStation/batch_print_template/batchPrintThree.vue Wyświetl plik

@@ -91,13 +91,9 @@
91 91
 
92 92
           <div class="infoTitle">
93 93
             <div>
94
-              姓名:{{
95
-                i.name
96
-                  ? i.name.indexOf("(") > -1
97
-                  ?i.name.substring(
98
-                    0,
99
-                    i.name.indexOf("(")
100
-                  )
94
+              姓名:
95
+              {{ i.name ? i.name.indexOf("(") > -1
96
+                 ?i.name.substring(0, i.name.indexOf("("))
101 97
                   : i.name
102 98
                   : ""
103 99
               }}
@@ -197,9 +193,10 @@
197 193
           <div style="display: flex">
198 194
             <div>
199 195
               医&nbsp;&nbsp;&nbsp;&nbsp;师:
196
+              
200 197
               <span
201 198
                 style="width: 100px; display: inline-block"
202
-                v-if="i.info.creator == 0"
199
+                v-if="setAdminUserES(i.info.creator)==''"
203 200
               >
204 201
                {{ i.info.doctor ? i.info.doctor : "" }}
205 202
               </span>
@@ -320,12 +317,13 @@ export default {
320 317
     // 电子签名
321 318
     setAdminUserES(id) {
322 319
       console.log(id)
323
-      console.log(this.operatorMaps)
320
+      console.log('this.operatorMaps',this.operatorMaps)
324 321
 
325 322
       if (id == 0) {
326 323
         return "";
327 324
       }
328 325
       if (id in this.operatorMaps) {
326
+        console.log('this.operatorMaps[id].url',this.operatorMaps[id].url);
329 327
         return this.operatorMaps[id].url;
330 328
       } else {
331 329
         return "";

+ 1 - 1
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue Wyświetl plik

@@ -186,7 +186,7 @@
186 186
           医&nbsp;&nbsp;&nbsp;&nbsp;师:
187 187
           <span
188 188
             style="width: 100px; display: inline-block"
189
-            v-if="i.info.creator == 0"
189
+            v-if="setAdminUserES(item.creator) == ''"
190 190
           >
191 191
             {{ i.info.doctor ? i.info.doctor : "" }}
192 192