yq1 před 1 rokem
rodič
revize
b8cd8903bc

+ 16 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Zobrazit soubor

@@ -79,8 +79,8 @@
79 79
             </div>
80 80
 
81 81
             <div style="display: flex; margin-top: 10px; line-height: 24px;padding: 0 10px;">
82
-                <!-- <div style="width: 300px;">开单医生:{{item.doctor?item.doctor:''}}</div> -->
83
-                <div style="width: 300px;" v-if="org_id==10088 ||org_id==0">
82
+                <div style="width: 300px;">开单医生:{{item.doctor?item.doctor:''}}</div>
83
+                <div style="width: 300px;" v-if="org_id==10088">
84 84
                   开单医生:
85 85
                   <span
86 86
                     style="width: 100px; display: inline-block"
@@ -256,7 +256,9 @@
256 256
       return {
257 257
         doctorList: [],
258 258
         advicePrint: {},
259
+        operatorMaps: {},
259 260
         patient: {},
261
+        doc_name:"",
260 262
         tableData: [],
261 263
         prescriptionInfo: [],
262 264
         projectList: [],
@@ -365,6 +367,18 @@
365 367
             console.log('所有项目列表', projectlist)
366 368
             this.projectList = projectlist
367 369
             this.hisPatient = response.data.data.hisPatient
370
+            this.doctorList_1 = response.data.data.eles;
371
+            console.log(this.doctorList_1, "医生列表");
372
+            if (this.doctorList_1.length > 0) {
373
+              var operatorsLen = this.doctorList_1.length;
374
+              for (var index = 0; index < operatorsLen; index++) {
375
+                this.$set(
376
+                  this.operatorMaps,
377
+                  this.doctorList_1[index].creator,
378
+                  this.doctorList_1[index]
379
+                );
380
+              }
381
+            }
368 382
             this.advicePrint.map((item) => {
369 383
               console.log(item.project.length);
370 384
               if (item.project.length > 0) {