huangyw 3 år sedan
förälder
incheckning
af3ae07cfb

+ 11 - 3
src/xt_pages/outpatientDoctorStation/template/printThree.vue Visa fil

@@ -178,9 +178,15 @@
178 178
               >
179 179
                 {{ item.doctor ? item.doctor : "" }}
180 180
               </span>
181
+              <span
182
+                style="width: 100px; display: inline-block"
183
+                v-else-if="doc_name != ''"
184
+              >
185
+                {{ doc_name }}
186
+              </span>
181 187
               <img
182 188
                 style="height: 30px"
183
-                :src="setAdminUserES(item.creator)"
189
+                :src="setAdminUserES(item.creator,item.doctor)"
184 190
                 alt=""
185 191
                 srcset=""
186 192
                 v-else
@@ -260,6 +266,7 @@ export default {
260 266
       patient: {},
261 267
       tableData: [],
262 268
       prescriptionInfo: [],
269
+      doc_name: "",
263 270
       hisPatient: {},
264 271
       department: [],
265 272
       prescriptions: [],
@@ -269,7 +276,7 @@ export default {
269 276
       pageArr: [],
270 277
       faber: {},
271 278
       org_id: 0,
272
-      doctorList_1:[]
279
+      doctorList_1: [],
273 280
     };
274 281
   },
275 282
   methods: {
@@ -281,6 +288,7 @@ export default {
281 288
       if (id in this.operatorMaps) {
282 289
         return this.operatorMaps[id].url;
283 290
       } else {
291
+        this.doc_name = name;
284 292
         return "";
285 293
       }
286 294
     },
@@ -359,7 +367,7 @@ export default {
359 367
           this.advicePrint = advicePrint;
360 368
 
361 369
           this.doctorList_1 = response.data.data.eles;
362
-          console.log(this.doctorList_1, "医生列表");
370
+          console.log(this.doctorList_1, "百霖医生列表");
363 371
           if (this.doctorList_1.length > 0) {
364 372
             var operatorsLen = this.doctorList_1.length;
365 373
             for (var index = 0; index < operatorsLen; index++) {

+ 10 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Visa fil

@@ -170,10 +170,16 @@
170 170
             v-if="item.creator == ''"
171 171
           >
172 172
             {{ item.doctor ? item.doctor : "" }}
173
+          </span>
174
+            <span
175
+            style="width: 100px; display: inline-block"
176
+            v-else-if="doc_name != ''"
177
+          >
178
+            {{ doc_name }}
173 179
           </span>
174 180
           <img
175 181
             style="height: 30px"
176
-            :src="setAdminUserES(item.creator)"
182
+            :src="setAdminUserES(item.creator,item.doctor)"
177 183
             alt=""
178 184
             srcset=""
179 185
             v-else
@@ -326,6 +332,7 @@ export default {
326 332
       operatorMaps: {},
327 333
       doctorList: [],
328 334
       advicePrint: {},
335
+      doc_name:"",
329 336
       patient: {},
330 337
       tableData: [],
331 338
       prescriptionInfo: [],
@@ -349,13 +356,14 @@ export default {
349 356
   },
350 357
   methods: {
351 358
     // 电子签名
352
-    setAdminUserES(id) {
359
+    setAdminUserES(id,name) {
353 360
       if (id == 0) {
354 361
         return "";
355 362
       }
356 363
       if (id in this.operatorMaps) {
357 364
         return this.operatorMaps[id].url;
358 365
       } else {
366
+        this.doc_name = name
359 367
         return "";
360 368
       }
361 369
     },