Ver código fonte

7月18,74批量打印单

yq1 9 meses atrás
pai
commit
165b4ed09d

+ 56 - 33
src/xt_pages/dialysis/batch_print/batch_print_order_seventyfour.vue Ver arquivo

@@ -93,7 +93,7 @@
93 93
                       <div style="display: flex;line-height:30px;">
94 94
                         <span>治疗抗凝:</span>
95 95
                         <span v-if="record.prescription.anticoagulant !=2 && record.prescription.anticoagulant!=1 && record.prescription.anticoagulant!=5">
96
-                          {{ anticoagulantName(record.prescription.anticoagulant) }} &nbsp;&nbsp;
96
+                          {{ anticoagulantName(record.prescription) }} &nbsp;&nbsp;
97 97
                           {{record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang : "0"}}
98 98
                         </span>U&nbsp;&nbsp;
99 99
                         
@@ -128,11 +128,11 @@
128 128
                     </td>
129 129
                     <td >
130 130
                       医师签名:
131
-                      <span class="under-line" style="display: inline-block;width: 50%;" v-if="setAdminUserES(record.prescription.creater) == ''">
132
-                        {{ getAdminUser(record.prescription.creater)}}
131
+                      <span class="under-line" style="display: inline-block;width: 50%;" v-if="setAdminUserES(record.prescription,'creater') == ''">
132
+                        {{ getAdminUser(record.prescription, 'creater')}}
133 133
                       </span>
134 134
                       <span class="under-line" style="display: inline-block;width: 50%;" v-else>
135
-                        <img style="height:30px;" :src="setAdminUserES(record.prescription.creater)" alt srcset />
135
+                        <img style="height:30px;" :src="setAdminUserES(record.prescription,'creater')" alt srcset />
136 136
                       </span>
137 137
                     </td>
138 138
                   </tr>
@@ -176,21 +176,29 @@
176 176
                   <td colspan="3">
177 177
                     <div style="display: inline-block;line-height: 30px;">
178 178
                       血管通路:
179
-                      <label-box :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name=='内瘘'?true :false" showValue="内瘘"></label-box>&nbsp;
180
-                      <label-box :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name=='长期静脉导管'?true :false" showValue="长期静脉导管"></label-box>&nbsp;
181
-                      <label-box :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name=='临时静脉导管'?true :false" showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
182
-                      <label-box :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name!='内瘘' &&
183
-                                  record.assessment_before_dislysis.blood_access_part_opera_name!='长期静脉导管' &&
184
-                                  record.assessment_before_dislysis.blood_access_part_opera_name!='临时静脉导管' &&
185
-                                  record.assessment_before_dislysis.blood_access_part_opera_name!=''?true :false" showValue="其它">
179
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)=='内瘘'?true :false" showValue="内瘘"></label-box>&nbsp;
180
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)=='长期静脉导管'?true :false" showValue="长期静脉导管"></label-box>&nbsp;
181
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)=='临时静脉导管'?true :false" showValue="临时(颈、股)静脉导管"></label-box>&nbsp;
182
+                      <label-box :isChecked="QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!='内瘘' &&
183
+                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!='长期静脉导管' &&
184
+                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!='临时静脉导管' &&
185
+                                  QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id)!=''?true :false" showValue="其它">
186 186
                       </label-box>
187 187
                     </div>&nbsp;&nbsp;
188 188
                     <div style="display: inline-block;line-height: 30px;">
189 189
                       穿刺者:
190
-                      <span v-if="setAdminUserES( record.dialysis_order == null ? 0 :  record.dialysis_order.puncture_nurse) == ''">
191
-                        {{ getAdminUser( record.dialysis_order == null ? 0 :  record.dialysis_order.puncture_nurse) }}
192
-                      </span>
193
-                      <img class="es-img" style="height:30px;" :src="setAdminUserES( record.dialysis_order == null ? 0 :  record.dialysis_order.puncture_nurse)" alt="" srcset="" v-else />
190
+                          <span v-if="setAdminUserES( record.dialysis_order,'puncture_nurse') == ''">
191
+                            {{ getAdminUser( record.dialysis_order,"puncture_nurse")
192
+                                ? getAdminUser( record.dialysis_order,"puncture_nurse") : "/"
193
+                            }}
194
+                          </span>
195
+                          <img class="es-img"
196
+                            :src=" setAdminUserES( record.dialysis_order, 'puncture_nurse')"
197
+                            alt=""
198
+                            srcset=""
199
+                            v-else
200
+                            style="height: 40px"
201
+                          />
194 202
                     </div>
195 203
                   </td>
196 204
                 </tr>
@@ -291,12 +299,27 @@
291 299
                         <span v-if="advice[0].parent_id == 0">{{ advice[0].execution_frequency }}</span>
292 300
                       </td>
293 301
                       <td style="height:30px;line-height:30px">
294
-                        <span v-if="setAdminUserES(advice[0].execution_staff) == ''">{{ getAdminUser(advice[0].execution_staff) }}</span>
295
-                        <img style="height:40px;" :src="setAdminUserES(advice[0].execution_staff)" alt="" srcset="" v-else />
302
+                        <span v-if=" setAdminUserES(advice[0], 'execution_staff') == '' ">
303
+                          {{ getAdminUser(advice[0], 'execution_staff')}}
304
+                        </span>
305
+                        <img class="es-img"
306
+                          :src=" setAdminUserES(advice[0], 'execution_staff')"
307
+                          alt=""
308
+                          srcset=""
309
+                          v-else
310
+                          style="height: 30px;"
311
+                        />
296 312
                       </td>
297 313
                       <td style="height:30px;line-height:30px">
298
-                        <span v-if="setAdminUserES(advice[0].checker) == ''">{{ getAdminUser(advice[0].checker) }}</span>
299
-                        <img style="height:40px;" :src="setAdminUserES(advice[0].checker)" alt="" srcset="" v-else />
314
+                        <span v-if=" setAdminUserES(advice[0], 'checker') == '' ">
315
+                          {{ getAdminUser(advice[0], 'checker')}}
316
+                        </span>
317
+                        <img class="es-img"
318
+                          :src=" setAdminUserES(advice[0], 'checker')"
319
+                          alt="" srcset=""
320
+                          v-else
321
+                          style="height: 30px;"
322
+                        />
300 323
                       </td>
301 324
                       <td v-if="advice_index === 0">透前体重:</td>
302 325
                       <td v-if="advice_index === 0">{{ record.assessment_before_dislysis.weight_before ? record.assessment_before_dislysis.weight_before : '0' }}kg</td>
@@ -334,26 +357,25 @@
334 357
                   <div style="flex: 1;margin-top: 20px;">
335 358
                     <div style="display: inline-block;margin-right: 20px;">
336 359
                       <span style="display: inline-block;">医生签名:</span>
337
-                      <span style="display: inline-block;" v-if="setAdminUserES(record.prescription.creater) == ''">
338
-                        {{ getAdminUser(record.prescription.creater)}}
339
-                      </span>
340
-                      <span style="display: inline-block;" v-else>
341
-                        <img style="height:30px;" :src="setAdminUserES(record.prescription.creater)" alt srcset />
360
+                      <span v-if=" setAdminUserES(record.prescription, 'prescription_doctor') == '' ">
361
+                          {{ getAdminUser(record.prescription, 'prescription_doctor')}}
342 362
                       </span>
363
+                      <img class="es-img"
364
+                        :src=" setAdminUserES(record.prescription, 'prescription_doctor')"
365
+                        alt="" srcset=""
366
+                        v-else style="height: 30px;"
367
+                      />
343 368
                     </div>
344 369
                     <div style="display: inline-block;">
345 370
                       <span>护士签名:</span>
346
-                      <!-- <div class="under-line" style="width: 50%;display: inline-block;"> -->
347
-                        <span v-if="setAdminUserES( record.dialysis_order == null ? 0 : record.dialysis_order.start_nurse) == '' ">
348
-                          {{getAdminUser(record.dialysis_order == null ? 0 : record.dialysis_order.start_nurse)}}
371
+                        <span v-if=" setAdminUserES(record.dialysis_order, 'start_nurse') == '' ">
372
+                            {{ getAdminUser(record.dialysis_order, 'start_nurse')}}
349 373
                         </span>
350
-                        <img class="es-img" style="height: 30px"
351
-                          :src=" setAdminUserES( record.dialysis_order == null ? 0 : record.dialysis_order.start_nurse) "
352
-                          alt=""
353
-                          srcset=""
354
-                          v-else
374
+                        <img class="es-img"
375
+                          :src=" setAdminUserES(record.dialysis_order, 'start_nurse')"
376
+                          alt="" srcset=""
377
+                          v-else style="height: 30px;"
355 378
                         />
356
-                      <!-- </div> -->
357 379
                     </div>
358 380
                   </div>
359 381
                 </div>
@@ -785,6 +807,7 @@
785 807
           return ''
786 808
         }
787 809
         if (key[id] in this.operatorMaps) {
810
+          
788 811
           return this.operatorMaps[key[id]].es_url
789 812
         } else {
790 813
           return ''