huangyw 3 gadus atpakaļ
vecāks
revīzija
af3ae07cfb

+ 11 - 3
src/xt_pages/outpatientDoctorStation/template/printThree.vue Parādīt failu

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

+ 10 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Parādīt failu

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