test_user před 2 roky
rodič
revize
d3915277ee
1 změnil soubory, kde provedl 24 přidání a 8 odebrání
  1. 24 8
      src/xt_pages/hospitalStation/template/printOne.vue

+ 24 - 8
src/xt_pages/hospitalStation/template/printOne.vue Zobrazit soubor

@@ -30,7 +30,7 @@
30 30
           <div style="margin-bottom: 10px">
31 31
             科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32 32
           </div>
33
-          <div style="margin-bottom: 10px">医保卡号:{{psn_info&&psn_info.card_info?psn_info.card_info.split("|")[2]:""}}</div>
33
+          <div style="margin-bottom: 10px">医保卡号:{{hisPatient.psn_no?hisPatient.psn_no:""}}</div>
34 34
           <div style="margin-bottom: 10px">电话:{{ item.patient.phone }}</div>
35 35
           <div>地址:{{ item.patient.home_address }}</div>
36 36
           <div style="display: flex; width: 50%">
@@ -116,16 +116,14 @@
116 116
             医师:
117 117
             <span
118 118
               style="width: 100px; display: inline-block"
119
-              v-if="setAdminUserES(item.creater) == ''"
120 119
             >
121 120
               {{ item.doctor }}
122 121
             </span>
123 122
             <img
124 123
               style="height: 30px"
125
-              :src="setAdminUserES(item.creater)"
124
+              :src="setAdminUserES(item.creator)"
126 125
               alt=""
127 126
               srcset=""
128
-              v-else
129 127
             />
130 128
           </p>
131 129
           <p>
@@ -192,6 +190,7 @@ export default {
192 190
   methods: {
193 191
     // 电子签名
194 192
     setAdminUserES(id) {
193
+      console.log(id)
195 194
       if (id == 0) {
196 195
         return "";
197 196
       }
@@ -263,16 +262,33 @@ export default {
263 262
           console.log("adviceprint9999", advicePrint);
264 263
           this.advicePrint = advicePrint;
265 264
           this.prescriptions = advicePrint;
266
-          if (this.advicePrint.length > 0) {
267
-            var operatorsLen = this.advicePrint.length;
265
+          // if (this.advicePrint.length > 0) {
266
+          //   var operatorsLen = this.advicePrint.length;
267
+          //   for (var index = 0; index < operatorsLen; index++) {
268
+          //     this.$set(
269
+          //       this.operatorMaps,
270
+          //       this.operators[index].creator,
271
+          //       this.operators[index]
272
+          //     );
273
+          //   }
274
+          // }
275
+          this.doctorList_1 = response.data.data.eles;
276
+          if (this.doctorList_1.length > 0) {
277
+            var operatorsLen = this.doctorList_1.length;
268 278
             for (var index = 0; index < operatorsLen; index++) {
269 279
               this.$set(
270 280
                 this.operatorMaps,
271
-                this.operators[index].creator,
272
-                this.operators[index]
281
+                this.doctorList_1[index].creator,
282
+                this.doctorList_1[index]
273 283
               );
274 284
             }
275 285
           }
286
+          console.log("11111", this.operatorMaps);
287
+
288
+
289
+
290
+
291
+
276 292
           this.hisPatient = response.data.data.hisHospitalRecord;
277 293
           var projectlist = response.data.data.projectlist;
278 294
           console.log("所有项目列表", projectlist);