Kaynağa Gözat

库存显示展示

XMLWAN 2 yıl önce
ebeveyn
işleme
84e8884632
1 değiştirilmiş dosya ile 18 ekleme ve 5 silme
  1. 18 5
      src/xt_pages/user/coursePrint.vue

+ 18 - 5
src/xt_pages/user/coursePrint.vue Dosyayı Görüntüle

@@ -60,7 +60,13 @@
60 60
 
61 61
               </div>
62 62
             </div>
63
+
64
+            <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;float:right" v-if="org_id ==9671 || org_id == 10440">
65
+             医生签名:{{getName(item.recorder)}}
66
+            </div>
63 67
           </div>
68
+
69
+        
64 70
         </div>
65 71
       </div>
66 72
     </div>
@@ -91,6 +97,7 @@
91 97
         record:[],
92 98
         patient: {},
93 99
         org_id:0,
100
+        adminUserList:[],
94 101
       }
95 102
     },
96 103
     created() {
@@ -114,12 +121,9 @@
114 121
         if (resp.state == 1) {
115 122
           this.record = resp.data.record
116 123
 
117
-          // for(let i=0;i<this.record.length;i++){
118
-          //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
119
-          // }
120
-
121 124
           this.patient = resp.data.patient
122
-
125
+          console.log("GetCoursePrintData",resp.data.adminUser)
126
+          this.adminUserList = resp.data.adminUser
123 127
           this.loading = false
124 128
         } else {
125 129
           this.loading = false
@@ -144,6 +148,15 @@
144 148
           return uParseTime(value, temp)
145 149
         }
146 150
         return ''
151
+      },
152
+      getName(admin_user_id){
153
+        var name = ""
154
+        for(let i=0;i<this.adminUserList.length;i++){
155
+          if(this.adminUserList[i].id == admin_user_id){
156
+            name = this.adminUserList[i].name
157
+          }
158
+        }
159
+        return name
147 160
       }
148 161
     }
149 162
   }