Browse Source

7月18,74批量打印单

yq1 9 months ago
parent
commit
165b4ed09d
1 changed files with 56 additions and 33 deletions
  1. 56 33
      src/xt_pages/dialysis/batch_print/batch_print_order_seventyfour.vue

+ 56 - 33
src/xt_pages/dialysis/batch_print/batch_print_order_seventyfour.vue View File

93
                       <div style="display: flex;line-height:30px;">
93
                       <div style="display: flex;line-height:30px;">
94
                         <span>治疗抗凝:</span>
94
                         <span>治疗抗凝:</span>
95
                         <span v-if="record.prescription.anticoagulant !=2 && record.prescription.anticoagulant!=1 && record.prescription.anticoagulant!=5">
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
                           {{record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang : "0"}}
97
                           {{record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang : "0"}}
98
                         </span>U&nbsp;&nbsp;
98
                         </span>U&nbsp;&nbsp;
99
                         
99
                         
128
                     </td>
128
                     </td>
129
                     <td >
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
                       </span>
133
                       </span>
134
                       <span class="under-line" style="display: inline-block;width: 50%;" v-else>
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
                       </span>
136
                       </span>
137
                     </td>
137
                     </td>
138
                   </tr>
138
                   </tr>
176
                   <td colspan="3">
176
                   <td colspan="3">
177
                     <div style="display: inline-block;line-height: 30px;">
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
                       </label-box>
186
                       </label-box>
187
                     </div>&nbsp;&nbsp;
187
                     </div>&nbsp;&nbsp;
188
                     <div style="display: inline-block;line-height: 30px;">
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
                     </div>
202
                     </div>
195
                   </td>
203
                   </td>
196
                 </tr>
204
                 </tr>
291
                         <span v-if="advice[0].parent_id == 0">{{ advice[0].execution_frequency }}</span>
299
                         <span v-if="advice[0].parent_id == 0">{{ advice[0].execution_frequency }}</span>
292
                       </td>
300
                       </td>
293
                       <td style="height:30px;line-height:30px">
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
                       </td>
312
                       </td>
297
                       <td style="height:30px;line-height:30px">
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
                       </td>
323
                       </td>
301
                       <td v-if="advice_index === 0">透前体重:</td>
324
                       <td v-if="advice_index === 0">透前体重:</td>
302
                       <td v-if="advice_index === 0">{{ record.assessment_before_dislysis.weight_before ? record.assessment_before_dislysis.weight_before : '0' }}kg</td>
325
                       <td v-if="advice_index === 0">{{ record.assessment_before_dislysis.weight_before ? record.assessment_before_dislysis.weight_before : '0' }}kg</td>
334
                   <div style="flex: 1;margin-top: 20px;">
357
                   <div style="flex: 1;margin-top: 20px;">
335
                     <div style="display: inline-block;margin-right: 20px;">
358
                     <div style="display: inline-block;margin-right: 20px;">
336
                       <span style="display: inline-block;">医生签名:</span>
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
                       </span>
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
                     </div>
368
                     </div>
344
                     <div style="display: inline-block;">
369
                     <div style="display: inline-block;">
345
                       <span>护士签名:</span>
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
                         </span>
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
                     </div>
379
                     </div>
358
                   </div>
380
                   </div>
359
                 </div>
381
                 </div>
785
           return ''
807
           return ''
786
         }
808
         }
787
         if (key[id] in this.operatorMaps) {
809
         if (key[id] in this.operatorMaps) {
810
+          
788
           return this.operatorMaps[key[id]].es_url
811
           return this.operatorMaps[key[id]].es_url
789
         } else {
812
         } else {
790
           return ''
813
           return ''