Browse Source

月亮弯上正式

XMLWAN 4 years ago
parent
commit
5b0adb2ac4

+ 13 - 0
src/api/print_data.js View File

9
     }
9
     }
10
   })
10
   })
11
 }
11
 }
12
+
13
+export function getLastAfterWeight(id, assmentdate) {
14
+  const params = {
15
+    id: id,
16
+    assmentdate: assmentdate
17
+  }
18
+  return request({
19
+    url: '/api/print/getlastafterweight',
20
+    method: 'get',
21
+    params: params
22
+  })
23
+}
24
+

+ 184 - 148
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue View File

17
           <div id="dialysis-print-box">
17
           <div id="dialysis-print-box">
18
             <div class="dialysis-print-order">
18
             <div class="dialysis-print-order">
19
               <div class="order-yy-name"></div>
19
               <div class="order-yy-name"></div>
20
-              <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
20
+              <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析(滤过)记录表单</div>
21
 
21
 
22
 
22
 
23
               <table class="print-table" style="margin-top: 10px;" border="1">
23
               <table class="print-table" style="margin-top: 10px;" border="1">
29
                 <tr>
29
                 <tr>
30
                   <td>
30
                   <td>
31
                     <div style="display:flex;">
31
                     <div style="display:flex;">
32
-                     <span style="flex:1;text-align:left;margin-left:15px;">
33
-                       姓名: {{ record.patient.name }}</span>
32
+                     <span style="flex:1;text-align:left;margin-left:15px;"> 姓名: {{ record.patient.name }}</span>
34
                       <span style="flex:1;margin-left:15px;">
33
                       <span style="flex:1;margin-left:15px;">
35
-                         年龄:{{ getAge(record.patient) }}</span>
34
+                         年龄:{{ getAge(record.patient) }}
35
+                      </span>
36
                       <span style="flex:1;margin-left:15px;">
36
                       <span style="flex:1;margin-left:15px;">
37
-                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}</span>
37
+                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}
38
+                      </span>
38
                       <span style="flex:1;margin-left:15px;">
39
                       <span style="flex:1;margin-left:15px;">
39
-                         透析机号:{{ record.patient.dialysis_no }}</span>
40
+                         透析机号: {{
41
+                            record.dialysis_order &&
42
+                            record.dialysis_order.device_number &&
43
+                            record.dialysis_order.device_number.number.length >
44
+                              0
45
+                              ? record.dialysis_order.device_number.number
46
+                              : record.device_number.number
47
+                          }}
48
+                      </span>
40
                       <span style="flex:1;margin-left:15px;">第({{
49
                       <span style="flex:1;margin-left:15px;">第({{
41
                             record.patient.total_dialysis
50
                             record.patient.total_dialysis
42
                               ? record.patient.total_dialysis
51
                               ? record.patient.total_dialysis
43
                               : "/"
52
                               : "/"
44
-                          }})次透析</span>
53
+                          }})次透析
54
+                      </span>
45
                     </div>
55
                     </div>
46
                   </td>
56
                   </td>
47
                 </tr>
57
                 </tr>
48
                 <tr>
58
                 <tr>
49
                   <td style="text-align:left;">
59
                   <td style="text-align:left;">
50
-                    <span style="display:inline-block;margin-left:15px;">上机前病情:</span>
60
+                    <span style="display:inline-block;margin-left:15px;"> 上机前病情:</span>
51
                     <div style="display:inline-block;">
61
                     <div style="display:inline-block;">
52
                       <label-box
62
                       <label-box
53
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
63
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
76
               <table class="print-table" border="1">
86
               <table class="print-table" border="1">
77
                 <tr>
87
                 <tr>
78
                   <td style="text-align:left;">
88
                   <td style="text-align:left;">
79
-                    <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
89
+                    <span style="display:inline-block;margin-left:15px;"> 治疗方式:</span>
80
                     <label-box
90
                     <label-box
81
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
91
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
82
                       showValue="HD"
92
                       showValue="HD"
162
               <table class="print-table" border="1">
172
               <table class="print-table" border="1">
163
                 <tr>
173
                 <tr>
164
                   <td style="text-align:left;">
174
                   <td style="text-align:left;">
165
-                    <span style="display:inline-block;margin-left:15px;">处方脱水量:{{record.prescription.target_ultrafiltration}}ml</span>&nbsp;
166
-                    <span style="display:inline-block;margin-left:15px;">透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;
167
-                    <span style="display:inline-block;margin-left:15px;">血流量:{{record.prescription.blood_flow_volume}}ml/min</span>&nbsp;
175
+                    <span style="display:inline-block;margin-left:15px;"> 处方脱水量:{{record.prescription.target_ultrafiltration}}ml</span>&nbsp;
176
+                    <span style="display:inline-block;margin-left:15px;"> 透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;      
168
                   </td>
177
                   </td>
169
                   <td>
178
                   <td>
170
                     <span>医生签名:{{getName(record.prescription.creater)}}</span>
179
                     <span>医生签名:{{getName(record.prescription.creater)}}</span>
173
               </table>
182
               </table>
174
               <table class="print-table" border="1">
183
               <table class="print-table" border="1">
175
                 <tr>
184
                 <tr>
176
-                  <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
177
-                  >透析机:{{record.device_number.number}}</span</td>
178
-                  <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
179
-                  >透析(滤)器:{{record.prescription.dialyzer_perfusion_apparatus}}</span</td>
185
+                  <td style="text-align:left;">
186
+                  <span style="display:inline-block;margin-left:15px;"
187
+                  >透析机:{{record.device_number.number}}
188
+                  </span>
180
                   </td>
189
                   </td>
181
                   <td style="text-align:left;">
190
                   <td style="text-align:left;">
182
-                    <span style="display:inline-block;margin-left:15px;">透析液(mmol/L):</span>
191
+                  <span style="display:inline-block;margin-left:15px;">透析(滤)器:{{record.prescription.dialyzer_perfusion_apparatus}}</span></td>
192
+                  </td>
193
+                  <td style="text-align:left;">
194
+                    <span style="display:inline-block;margin-left:15px;"> 透析液(mmol/L):</span>
183
                      <span v-if="record.prescription.dialysate_formulation == 1">
195
                      <span v-if="record.prescription.dialysate_formulation == 1">
184
-                     常规低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
185
-                  </span>
196
+                     常规低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
197
+                    </span>
198
+
186
                     <span v-if="record.prescription.dialysate_formulation == 2">低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
199
                     <span v-if="record.prescription.dialysate_formulation == 2">低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
187
-                      </span>
200
+                    </span>
188
                     <span v-if="record.prescription.dialysate_formulation == 3">
201
                     <span v-if="record.prescription.dialysate_formulation == 3">
189
-                        高钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
202
+                        高钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
190
                      </span>
203
                      </span>
191
                     <span v-if="record.prescription.dialysate_formulation == 4">
204
                     <span v-if="record.prescription.dialysate_formulation == 4">
192
-                         低钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
193
-                      </span>
205
+                         低钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
206
+                    </span>
194
                     <span v-if="record.prescription.dialysate_formulation == 5">
207
                     <span v-if="record.prescription.dialysate_formulation == 5">
195
-                         高钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
208
+                         高钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
196
                      </span>
209
                      </span>
197
                   </td>
210
                   </td>
198
                 </tr>
211
                 </tr>
200
               <table class="print-table" border="1">
213
               <table class="print-table" border="1">
201
                 <tr>
214
                 <tr>
202
                   <td style="text-align:left;">
215
                   <td style="text-align:left;">
203
-              <span style="display:inline-block;margin-left:15px;"
204
-              >血管通路:</span
205
-              >
216
+              <span style="display:inline-block;margin-left:15px;">血管通路:</span>
206
                     &nbsp;
217
                     &nbsp;
207
                     <label-box
218
                     <label-box
208
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
219
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
226
                     ></label-box>
237
                     ></label-box>
227
                     &nbsp;
238
                     &nbsp;
228
                     <label-box
239
                     <label-box
229
-                      :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时颈静脉导管' && record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时股静脉导管'  ? true : false" showValue="其它"></label-box>
230
-                    &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{getName(record.dialysis_order.puncture_nurse)}}</span>
240
+                      :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时颈静脉导管' && record.assessment_before_dislysis.blood_access_part_opera_name !='长期静脉导管'  && record.assessment_before_dislysis.blood_access_part_opera_name !='临时股静脉导管'  ? true : false" showValue="其它"></label-box>
241
+                    &nbsp;&nbsp;&nbsp;&nbsp;
242
+                    <span>穿刺者:{{getName(record.dialysis_order.puncture_nurse)}}</span>
243
+                    </span>
244
+                  
231
                   </td>
245
                   </td>
232
                 </tr>
246
                 </tr>
233
                 <tr>
247
                 <tr>
239
                   <th rowspan="2" width="40">时间</th>
253
                   <th rowspan="2" width="40">时间</th>
240
                   <th colspan="3">透析参数</th>
254
                   <th colspan="3">透析参数</th>
241
                   <th colspan="6">生命体征</th>
255
                   <th colspan="6">生命体征</th>
242
-                  <th>病情变化及处理</th>
256
+                  <th>治疗中病情变化</th>
243
                 </tr>
257
                 </tr>
244
                 <tr>
258
                 <tr>
245
-                  <td width="60">TMP<br/>(mmHg)</td>
246
-                  <td width="60">静脉压<br/>(mmHg)</td>
247
-                  <td width="60">血流量<br/>(ml/min)</td>
248
-                  <td width="60">脱水量<br/>(ml)</td>
249
-                  <td width="50">T<br/>(℃)</td>
250
-                  <td width="50">HR<br/>(bpm)</td>
251
-                  <td width="50">R<br/>(bpm)</td>
252
-                  <td width="50">BP<br/>(mmHg)</td>
253
-                  <td width="60">SpO₂<br/>(%)</td>
259
+                  <td width="60"><p style="height:20px;line-height:20px">TMP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
260
+                  <td width="60"><p style="height:20px;line-height:20px">静脉压</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
261
+                  <td width="60"><p style="height:20px;line-height:20px">血流量</p><p style="height:20px;line-height:20px">(ml/min)</p></td>
262
+                  <td width="60"><p style="height:20px;line-height:20px">脱水量</p><p style="height:20px;line-height:20px">(ml)</p></td>
263
+                  <td width="50"><p style="height:20px;line-height:20px">T</p><p style="height:20px;line-height:20px">(℃)</p></td>
264
+                  <td width="50"><p style="height:20px;line-height:20px">HR</p><p style="height:20px;line-height:20px">(bpm)</p></td>
265
+                  <td width="50"><p style="height:20px;line-height:20px">R</p><p style="height:20px;line-height:20px">(bpm)</p></td>
266
+                  <td width="60"><p style="height:20px;line-height:20px">BP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
267
+                  <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
254
                   <td>记录</td>
268
                   <td>记录</td>
255
                 </tr>
269
                 </tr>
256
                 <tr v-for="(monitor,
270
                 <tr v-for="(monitor,
281
                   </td>
295
                   </td>
282
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
296
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
283
                   <td style="line-height:16px;padding:0px;">
297
                   <td style="line-height:16px;padding:0px;">
284
-                    {{ monitor.end }}
285
-                    {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
298
+                  
299
+                    {{ monitor.symptom }}&nbsp;{{ monitor.result }}
286
                   </td>
300
                   </td>
287
                 </tr>
301
                 </tr>
302
+                <tr
303
+                    v-for="(monitor_record,
304
+                          index) in record.monitor_records2"
305
+                          :key="index"
306
+                        >
307
+                          <td></td>
308
+                          <td></td>
309
+                          <td></td>
310
+                          <td></td>
311
+                          <td></td>
312
+                          <td></td>
313
+                          <td></td>
314
+                          <td></td>
315
+                          <td></td>
316
+                          <td></td>
317
+                          <td style="line-height:16px;padding:0px;">
318
+                            <div
319
+                              style="height:40px;line-height:20px; overflow:hidden;"
320
+                            >
321
+                              <span
322
+                                style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
323
+                              >
324
+                              </span>
325
+                            </div>
326
+                          </td>
327
+                        </tr>
288
               </table>
328
               </table>
289
               <table class="print-table" border="1">
329
               <table class="print-table" border="1">
290
                 <tr>
330
                 <tr>
293
                   <td>执行</td>
333
                   <td>执行</td>
294
                   <td>核对</td>
334
                   <td>核对</td>
295
                   <td>上次透后体重</td>
335
                   <td>上次透后体重</td>
296
-                  <td> {{
297
-                            record.assessment_before_dislysis &&
298
-                            record.assessment_before_dislysis
299
-                              .weight_after_last_transparency
300
-                              ? parseFloat(
336
+                  <td>
337
+                    {{
338
+                         record.assessment_before_dislysis &&
339
+                          record.assessment_before_dislysis
340
+                          .weight_after_last_transparency
341
+                            ? parseFloat(
301
                                   record.assessment_before_dislysis
342
                                   record.assessment_before_dislysis
302
                                     .weight_after_last_transparency -
343
                                     .weight_after_last_transparency -
303
                                     record.assessment_before_dislysis
344
                                     record.assessment_before_dislysis
304
                                       .additional_weight
345
                                       .additional_weight
305
                                 ).toFixed(1)
346
                                 ).toFixed(1)
306
                               : "未称重"
347
                               : "未称重"
307
-                          }}kg</td>
348
+                          }}kg
349
+                  </td>
308
                 </tr>
350
                 </tr>
351
+
352
+                
353
+
309
                 <tr v-for="(advice, advice_index) in record.advices"
354
                 <tr v-for="(advice, advice_index) in record.advices"
310
                     :key="advice_index">
355
                     :key="advice_index">
311
                   <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
356
                   <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
357
+                 
312
                   <td>
358
                   <td>
313
-                    <span v-if="advice.parent_id > 0">---></span>
314
                     <span>{{ advice.advice_name }}</span>
359
                     <span>{{ advice.advice_name }}</span>
315
-                    <span v-if="advice && advice.advice_desc"
316
-                    >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
360
+                    <span v-if="advice && advice.advice_desc">
361
+                    ({{ advice.advice_desc }}{{ advice.drug_spec_unit }})
362
+                    </span>
363
+                    
317
                     <span v-if="advice.prescribing_number">
364
                     <span v-if="advice.prescribing_number">
318
-                       &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
365
+                      &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
366
+                    </span>
319
                     <span v-if="advice.single_dose != 0">
367
                     <span v-if="advice.single_dose != 0">
320
-                          {{ advice.single_dose}}{{ advice.single_dose_unit }}</span>
321
-                    <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
322
-                    <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
323
-                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
368
+                          {{ advice.single_dose}}{{ advice.single_dose_unit }}
369
+                    </span>
370
+                    <span v-if="advice.parent_id == 0">
371
+                     {{advice.delivery_way}}
372
+                    </span>
373
+                    <span v-if="advice.parent_id == 0">
374
+                    {{advice.execution_frequency}}
375
+                    </span>
376
+                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">
377
+                    ({{ advice.remark }})
378
+                    </span>
379
+                    </td>
380
+
324
                   <td>
381
                   <td>
325
-           
326
-           
327
-           
328
-           
329
-             
330
-             
331
-             
332
-                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getName(advice.advice_doctor) }}</span>
333
-                    <img
334
-                      style="height:20px;"
335
-                      :src="setAdminUserES(advice.advice_doctor)"
336
-                      alt=""
337
-                      srcset=""
338
-                      v-else
339
-                    />
340
-                  </td>
382
+                      <span>{{ getName(advice.execution_staff) }}</span>
383
+                    </td>
384
+
341
                   <td>
385
                   <td>
342
-                   <span
343
-                     v-if="setAdminUserES(advice.execution_staff) == ''">{{ getName(advice.execution_staff) }}</span>
344
-                    <img
345
-                      style="height:20px;"
346
-                      :src="setAdminUserES(advice.execution_staff)"
347
-                      alt=""
348
-                      srcset=""
349
-                      v-else
350
-                    />
386
+                   <span> {{ getName(advice.checker) }}</span>
351
                   </td>
387
                   </td>
352
                   <td v-if="advice_index==0">透前体重</td>
388
                   <td v-if="advice_index==0">透前体重</td>
353
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
389
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
354
                   <td v-if="advice_index==1">体重增加量</td>
390
                   <td v-if="advice_index==1">体重增加量</td>
355
-                  <td v-if="advice_index==1">{{record.assessment_before_dislysis.weight_gain}}kg</td>
391
+                  <td v-if="advice_index==1">
392
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(1)}}kg</span>
393
+               
394
+                  </td>
356
                   <td v-if="advice_index==2">干体重(DW)</td>
395
                   <td v-if="advice_index==2">干体重(DW)</td>
357
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
396
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
358
                   <td v-if="advice_index==3">较干体重增加量</td>
397
                   <td v-if="advice_index==3">较干体重增加量</td>
359
-                  <td v-if="advice_index==3">{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(1)}}kg</td>
398
+                  <td v-if="advice_index==3">
399
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(2)}}</span>kg</td>
360
                   <td v-if="advice_index==4">净脱水量</td>
400
                   <td v-if="advice_index==4">净脱水量</td>
361
-                  <td v-if="advice_index==4">{{record.assessment_after_dislysis.actual_ultrafiltration}}ml</td>
401
+                  <td v-if="advice_index==4">{{record.assessment_after_dislysis.actual_ultrafiltration}}L</td>
362
                   <td v-if="advice_index==5">透后体重</td>
402
                   <td v-if="advice_index==5">透后体重</td>
363
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
403
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
364
                   <td v-if="advice_index==6">本次透析体重下降量</td>
404
                   <td v-if="advice_index==6">本次透析体重下降量</td>
373
                   <td colspan="6" style="text-align:left;">
413
                   <td colspan="6" style="text-align:left;">
374
                     医生签名:<template
414
                     医生签名:<template
375
                             v-if="
415
                             v-if="
376
-                              record.prescription &&
377
-                                record.prescription.prescription_doctor
416
+                              record.assessment_before_dislysis.assessment_doctor &&
417
+                                record.assessment_before_dislysis.assessment_doctor 
378
                             "
418
                             "
379
                           >
419
                           >
380
-                            <span
381
-                              v-if="
382
-                                setAdminUserES(
383
-                                  record.prescription.prescription_doctor
384
-                                ) == ''
385
-                              "
386
-                              >{{
420
+                            <span>{{
387
                                 getName(
421
                                 getName(
388
-                                  record.prescription.prescription_doctor
389
-                                )
390
-                              }}</span
391
-                            >
392
-                            <img
393
-                              style="height:20px;"
394
-                              :src="
395
-                                setAdminUserES(
396
-                                  record.prescription.prescription_doctor
422
+                                  record.assessment_before_dislysis.assessment_doctor 
397
                                 )
423
                                 )
398
-                              "
399
-                              alt=""
400
-                              srcset=""
401
-                              v-else
402
-                            />
403
-                          </template>&nbsp;&nbsp;&nbsp;
424
+                              }}
425
+                              </span>
426
+                          </template>&nbsp;&nbsp;&nbsp;                 
404
                     护士签名:
427
                     护士签名:
405
-                    <span
406
-                          v-if="
407
-                              setAdminUserES(
408
-                                record.dialysis_order == null
409
-                                  ? 0
410
-                                  : record.dialysis_order.puncture_nurse
411
-                              ) == ''
412
-                            "
413
-                            >{{
428
+                    <span>
429
+                            {{
414
                               getName(
430
                               getName(
415
                                 record.dialysis_order == null
431
                                 record.dialysis_order == null
416
                                   ? 0
432
                                   ? 0
417
                                   : record.dialysis_order.puncture_nurse
433
                                   : record.dialysis_order.puncture_nurse
418
                               )
434
                               )
419
-                            }}</span
420
-                          >
421
-                          <img
422
-                            style="height:20px;"
423
-                            :src="
424
-                              setAdminUserES(
425
-                                record.dialysis_order == null
426
-                                  ? 0
427
-                                  : record.dialysis_order.puncture_nurse
428
-                              )
429
-                            "
430
-                            alt=""
431
-                            srcset=""
432
-                            v-else
433
-                          />
435
+                            }}
436
+                      </span>
434
                   </td>
437
                   </td>
435
                 </tr>
438
                 </tr>
436
               </table>
439
               </table>
445
 <script>
448
 <script>
446
   import CheckBox from './option_check_box'
449
   import CheckBox from './option_check_box'
447
   import LabelBox from '../printItem/LabelBox'
450
   import LabelBox from '../printItem/LabelBox'
448
-  import { GetBatchPrintDialysisData } from '@/api/print_data'
451
+  import { GetBatchPrintDialysisData, getLastAfterWeight } from '@/api/print_data'
449
   import { jsGetAge, uParseTime } from '@/utils/tools'
452
   import { jsGetAge, uParseTime } from '@/utils/tools'
450
   import { getDataConfig } from '@/utils/data'
453
   import { getDataConfig } from '@/utils/data'
451
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
454
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
504
           '腹痛'
507
           '腹痛'
505
         ],
508
         ],
506
         allName: [],
509
         allName: [],
507
-        NameStatus: 0
510
+        NameStatus: 0,
511
+        advices: [],
512
+        docotorId: '',
513
+        doctorNameForm: {
514
+          user_name: '',
515
+          url: ''
516
+        },
517
+        doctorNameFormTwo: {
518
+          user_name: '',
519
+          url: ''
520
+        },
521
+        doctorNameFormThree: {
522
+          user_name: '',
523
+          url: ''
524
+        },
525
+        doctorNameFormFour: {
526
+          user_name: '',
527
+          url: ''
528
+        },
529
+        doctorNameFormFive: {
530
+          user_name: '',
531
+          url: ''
532
+        },
533
+        doctorNameFormSix: {
534
+          user_name: '',
535
+          url: ''
536
+        },
537
+        lastAfterWeight: ''
508
       }
538
       }
509
     },
539
     },
510
     created() {
540
     created() {
511
       var xtuser = this.$store.getters.xt_user
541
       var xtuser = this.$store.getters.xt_user
512
-      console.log('xtuser', xtuser)
542
+      //console.log('xtuser', xtuser)
513
       this.orgname = xtuser.org.org_name
543
       this.orgname = xtuser.org.org_name
514
       //   this.orgname = "遂溪方济医院";
544
       //   this.orgname = "遂溪方济医院";
515
       this.modeOptions = this.$store.getters.treatment_mode
545
       this.modeOptions = this.$store.getters.treatment_mode
559
         .then(rs => {
589
         .then(rs => {
560
           var resp = rs.data
590
           var resp = rs.data
561
           if (resp.state == 1) {
591
           if (resp.state == 1) {
562
-            console.log('数据', resp.data.schedules)
592
+           // console.log('数据', resp.data.schedules)
563
             this.records = this.records.concat(resp.data.schedules)
593
             this.records = this.records.concat(resp.data.schedules)
564
-            console.log('this', this.records)
594
+           // console.log('this', this.records)
565
             for (const recordIndex in this.records) {
595
             for (const recordIndex in this.records) {
566
               this.advice_groups = []
596
               this.advice_groups = []
567
               this.advice_groups_2 = []
597
               this.advice_groups_2 = []
764
             }
794
             }
765
 
795
 
766
             this.adminUser = resp.data.users
796
             this.adminUser = resp.data.users
767
-            console.log('使用者', this.adminUser)
768
-            var name = resp.data.name
769
-            console.log('姓名', name)
770
-            this.allName = name
797
+           // console.log('使用者', this.adminUser)
771
             this.loading = false
798
             this.loading = false
772
           } else {
799
           } else {
773
             this.loading = false
800
             this.loading = false
922
         }
949
         }
923
       },
950
       },
924
       getAdminUser(key, id) {
951
       getAdminUser(key, id) {
925
-        if (
926
-          typeof key === 'undefined' ||
927
-          key == null ||
928
-          typeof key[id] === 'undefined'
929
-        ) {
952
+        //console.log('key', key)
953
+        //console.log('id', id)
954
+        if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
930
           return ''
955
           return ''
931
         }
956
         }
932
         if (key[id] == 0) {
957
         if (key[id] == 0) {
941
           }
966
           }
942
         }
967
         }
943
       },
968
       },
969
+  
944
       getName(id) {
970
       getName(id) {
945
-        for (let i = 0; i < this.allName.length; i++) {
946
-          if (this.allName[i].id === id) {
947
-            return this.allName[i].name
971
+        for (let i = 0; i < this.adminUser.length; i++) {
972
+          if (this.adminUser[i].id === id) {
973
+            return this.adminUser[i].name
948
           }
974
           }
949
         }
975
         }
950
       },
976
       },
990
       },
1016
       },
991
       getNumber: function(record) {
1017
       getNumber: function(record) {
992
         console.log(record)
1018
         console.log(record)
1019
+      },
1020
+      getLastAfterWeight(id, assessmentDate) {
1021
+        getLastAfterWeight(id, assessmentDate).then(response => {
1022
+          if (response.data.state === 1) {
1023
+            var weight = response.data.data.weight
1024
+  
1025
+            this.lastAfterWeight = weight.weight_after.toFixed(1)
1026
+            console.log('weight', weight)
1027
+          }
1028
+        })
993
       }
1029
       }
994
     }
1030
     }
995
   }
1031
   }

File diff suppressed because it is too large
+ 2077 - 986
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue


+ 25 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

113
           >打印</el-button
113
           >打印</el-button
114
         >
114
         >
115
       </template>
115
       </template>
116
+      <template v-if="org_template_info.template_id == 8">
117
+        <el-button
118
+          :loading="loading"
119
+          size="small"
120
+          icon="el-icon-printer"
121
+          @click="printThisPage"
122
+          type="primary"
123
+          >打印8</el-button
124
+        >
125
+      </template>
116
     </div>
126
     </div>
117
     <div class="app-container ">
127
     <div class="app-container ">
118
       <!--<div class="order-print-btn"-->
128
       <!--<div class="order-print-btn"-->
168
         v-if="org_template_info.template_id == 7"
178
         v-if="org_template_info.template_id == 7"
169
       >
179
       >
170
       </DialysisPrintOrderSeven>
180
       </DialysisPrintOrderSeven>
181
+
182
+      <DialysisPrintOrderEight
183
+        v-bind:childResponse="childResponse"
184
+        v-if="org_template_info.template_id == 8"
185
+      >
186
+      </DialysisPrintOrderEight>
171
     </div>
187
     </div>
172
   </div>
188
   </div>
173
 </template>
189
 </template>
185
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
201
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
186
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
202
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
187
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
203
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
204
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
188
 import print from "print-js";
205
 import print from "print-js";
189
 
206
 
190
 export default {
207
 export default {
197
     DialysisPrintOrderFive,
214
     DialysisPrintOrderFive,
198
     DialysisPrintOrderSix,
215
     DialysisPrintOrderSix,
199
     DialysisPrintOrderSeven,
216
     DialysisPrintOrderSeven,
217
+    DialysisPrintOrderEight,
200
     LabelBox,
218
     LabelBox,
201
     BreadCrumb
219
     BreadCrumb
202
   },
220
   },
379
           style: style,
397
           style: style,
380
           scanStyles: false
398
           scanStyles: false
381
         });
399
         });
400
+      } else if (this.org_template_info.template_id == 8) {
401
+        printJS({
402
+          printable: "dialysis-print-box",
403
+          type: "html",
404
+          style: style,
405
+          scanStyles: false
406
+        });
382
       }
407
       }
383
     },
408
     },
384
     printThisOnePage() {
409
     printThisOnePage() {

File diff suppressed because it is too large
+ 1624 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 109 - 98
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

2
   <div id="dialysis-print-box">
2
   <div id="dialysis-print-box">
3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
       <div class="order-yy-name"></div>
4
       <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
5
+      <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析(滤过)记录表单</div>
6
 
6
 
7
       <table class="print-table" style="margin-top: 10px;" border="1">
7
       <table class="print-table" style="margin-top: 10px;" border="1">
8
         <tbody>
8
         <tbody>
23
                   >性别:{{ patientInfo.gender }}</span
23
                   >性别:{{ patientInfo.gender }}</span
24
                 >
24
                 >
25
                 <span style="flex:1;margin-left:15px;"
25
                 <span style="flex:1;margin-left:15px;"
26
-                  >透析机号:{{ patientInfo.dialysis_no }}</span
26
+                  >透析机号: {{
27
+                        dialysisOrder &&
28
+                        dialysisOrder.DeviceNumber &&
29
+                        dialysisOrder.DeviceNumber.number.length > 0
30
+                          ? dialysisOrder.DeviceNumber.number
31
+                          : patientInfo.DialysisSchedule.device_number.number
32
+                      }}</span
27
                 >
33
                 >
28
                 <span style="flex:1;margin-left:15px;">第({{total}})次透析</span>
34
                 <span style="flex:1;margin-left:15px;">第({{total}})次透析</span>
29
               </div>
35
               </div>
158
             <span style="display:inline-block;margin-left:15px;"
164
             <span style="display:inline-block;margin-left:15px;"
159
               >透析液流量:{{dialysate_flow}}ml/h</span
165
               >透析液流量:{{dialysate_flow}}ml/h</span
160
             >&nbsp;
166
             >&nbsp;
161
-            <span style="display:inline-block;margin-left:15px;"
162
-              >血流量:{{blood_flow_volume}}ml/min</span
163
-            >&nbsp;
164
           </td>
167
           </td>
165
           <td>
168
           <td>
166
-            <span>医生签名:{{doctor}}</span>
169
+             <span v-if="doctorForm.url === ''">
170
+             医生签名:{{doctorForm.doctor}}
171
+           </span>
172
+           <span v-if="doctorForm.url!==''">
173
+              医生签名:
174
+              <img style="height:20px" :src="doctorForm.url">
175
+           </span>
167
           </td>
176
           </td>
168
         </tr>
177
         </tr>
169
       </table>
178
       </table>
179
               >透析液(mmol/L):</span
188
               >透析液(mmol/L):</span
180
             >
189
             >
181
             <span v-if="dialysate_formulation == 1">
190
             <span v-if="dialysate_formulation == 1">
182
-              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
191
+              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
             </span>
192
             </span>
184
             <span v-if="dialysate_formulation == 2">
193
             <span v-if="dialysate_formulation == 2">
185
-              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
194
+              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
186
             </span>
195
             </span>
187
              <span v-if="dialysate_formulation == 3">
196
              <span v-if="dialysate_formulation == 3">
188
-              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
197
+              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
189
             </span>
198
             </span>
190
              <span v-if="dialysate_formulation == 4">
199
              <span v-if="dialysate_formulation == 4">
191
-              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
200
+              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
192
             </span>
201
             </span>
193
              <span v-if="dialysate_formulation == 5">
202
              <span v-if="dialysate_formulation == 5">
194
-              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
203
+              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
195
             </span>
204
             </span>
196
          </td>
205
          </td>
197
         </tr>
206
         </tr>
229
               :isChecked="blood_access_part_opera_id != '内瘘' && blood_access_part_opera_id != '长期静脉导管' && blood_access_part_opera_id !='临时颈静脉导管' && blood_access_part_opera_id != '临时股静脉导管'? true : false"
238
               :isChecked="blood_access_part_opera_id != '内瘘' && blood_access_part_opera_id != '长期静脉导管' && blood_access_part_opera_id !='临时颈静脉导管' && blood_access_part_opera_id != '临时股静脉导管'? true : false"
230
               showValue="其它"
239
               showValue="其它"
231
             ></label-box>
240
             ></label-box>
232
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
241
+            &nbsp;&nbsp;&nbsp;&nbsp;
242
+            <span v-if="PunctureNurse.url == ''">穿刺者:{{PunctureNurse.user_name}}</span>
243
+           <span v-if="PunctureNurse.url !=''">穿刺者:<img :src="PunctureNurse.url" style="height:20px"></span>
233
           </td>
244
           </td>
234
         </tr>
245
         </tr>
235
         <tr>
246
         <tr>
241
           <th rowspan="2">时间</th>
252
           <th rowspan="2">时间</th>
242
           <th colspan="3">透析参数</th>
253
           <th colspan="3">透析参数</th>
243
           <th colspan="6">生命体征</th>
254
           <th colspan="6">生命体征</th>
244
-          <th>病情变化及处理</th>
255
+          <th>治疗中病情变化</th>
245
          </tr>
256
          </tr>
246
          <tr>
257
          <tr>
247
-          <td width="60">TMP<br/>(mmHg)</td>
248
-          <td width="60">静脉压<br/>(mmHg)</td>
249
-          <td width="60">血流量<br/>(ml/min)</td>
250
-          <td width="60">脱水量<br/>(ml)</td>
251
-          <td width="50">T<br/>(℃)</td>
252
-          <td width="50">HR<br/>(bpm)</td>
253
-          <td width="50">R<br/>(bpm)</td>
254
-          <td width="60">BP<br/>(mmHg)</td>
255
-          <td width="60">SpO₂<br/>(%)</td>
258
+          <td width="60"><p style="height:20px;line-height:20px">TMP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
259
+          <td width="60"><p style="height:20px;line-height:20px">静脉压</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
260
+          <td width="60"><p style="height:20px;line-height:20px">血流量</p><p style="height:20px;line-height:20px">(ml/min)</p></td>
261
+          <td width="60"><p style="height:20px;line-height:20px">脱水量</p><p style="height:20px;line-height:20px">(ml)</p></td>
262
+          <td width="50"><p style="height:20px;line-height:20px">T</p><p style="height:20px;line-height:20px">(℃)</p></td>
263
+          <td width="50"><p style="height:20px;line-height:20px">HR</p><p style="height:20px;line-height:20px">(bpm)</p></td>
264
+          <td width="50"><p style="height:20px;line-height:20px">R</p><p style="height:20px;line-height:20px">(bpm)</p></td>
265
+          <td width="60"><p style="height:20px;line-height:20px">BP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
266
+          <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
256
           <td>记录</td>
267
           <td>记录</td>
257
          </tr>
268
          </tr>
258
-         <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
259
-           <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
260
-           <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
261
-           <td>{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
262
-           <td>{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
263
-           <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
264
-           <td> {{
269
+         <tr v-for="(monitor, monindex) in monitors" :key="monindex">
270
+           <td style="line-height:50px;height:30px">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
271
+           <td style="line-height:50px;height:30px">{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
272
+           <td style="line-height:50px;height:30px">{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
273
+           <td style="line-height:50px;height:30px">{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
274
+           <td style="line-height:50px:height:30px">{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
275
+           <td style="line-height:50px;height:30px"> {{
265
                  monitor.temperature
276
                  monitor.temperature
266
                 ? monitor.temperature
277
                 ? monitor.temperature
267
                 : ""
278
                 : ""
268
                 }}</td>
279
                 }}</td>
269
-           <td>{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
270
-           <td>{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
271
-           <td>{{
280
+           <td style="line-height:50px;height:30px">{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
281
+           <td style="line-height:50px;height:30px">{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
282
+           <td style="line-height:50px;height:30px">{{
272
                 monitor.systolic_blood_pressure
283
                 monitor.systolic_blood_pressure
273
                 ? monitor.systolic_blood_pressure + "/"
284
                 ? monitor.systolic_blood_pressure + "/"
274
                 : ""
285
                 : ""
277
               ? monitor.diastolic_blood_pressure
288
               ? monitor.diastolic_blood_pressure
278
               : ""
289
               : ""
279
               }}</td>
290
               }}</td>
280
-           <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
291
+           <td style="line-height:50px;height:30px">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
281
            <td style="line-height:16px;padding:0px;">
292
            <td style="line-height:16px;padding:0px;">
282
               {{ monitor.end }}
293
               {{ monitor.end }}
283
-              {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
294
+              {{ monitor.symptom }} &nbsp;{{ monitor.result }}
284
             </td>
295
             </td>
285
          </tr>
296
          </tr>
286
       </table>
297
       </table>
292
          <td>核对</td>
303
          <td>核对</td>
293
          <td>上次透后体重</td>
304
          <td>上次透后体重</td>
294
          <td> {{
305
          <td> {{
295
-                predialysis.weight_after_last_transparency
296
-                ? parseFloat(
297
-                 predialysis.weight_after_last_transparency -
298
-                 predialysis.additional_weight
299
-                  ).toFixed(1)
300
-                 : "未称重"
306
+               afterWeightLast
307
+                ? parseFloat(afterWeightLast).toFixed(1): "未称重"
301
               }}kg</td>
308
               }}kg</td>
302
         </tr>
309
         </tr>
303
         <tr  v-for="(advice, advice_index) in tableAdvice"
310
         <tr  v-for="(advice, advice_index) in tableAdvice"
316
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
323
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
317
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
324
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
318
                <td>
325
                <td>
319
-              <span
320
-               v-if="setAdminUserES(advice.advice_doctor) == ''"
321
-               >{{ getAdminUser(advice.advice_doctor) }}</span
322
-               >
323
-              <img
324
-               style="height:20px;"
325
-               :src="setAdminUserES(advice.advice_doctor)"
326
-               alt=""
327
-              srcset=""
328
-              v-else
329
-            />
326
+               <span
327
+                    v-if="setAdminUserES(advice.execution_staff) == ''"
328
+                   >{{ getAdminUser(advice.execution_staff) }}</span
329
+                        >
330
+                        <img
331
+                          style="height:20px;"
332
+                          :src="setAdminUserES(advice.execution_staff)"
333
+                          alt=""
334
+                          srcset=""
335
+                          v-else
336
+                        />
330
          </td>
337
          </td>
331
          <td>
338
          <td>
332
-           <span
333
-               v-if="setAdminUserES(advice.execution_staff) == ''"
334
-               >{{ getAdminUser(advice.execution_staff) }}</span
335
-               >
336
-              <img
337
-               style="height:20px;"
338
-               :src="setAdminUserES(advice.execution_staff)"
339
-               alt=""
340
-              srcset=""
341
-              v-else
342
-            />
339
+           <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
340
+            <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
343
          </td>
341
          </td>
344
          <td v-if="advice_index==0">透前体重</td>
342
          <td v-if="advice_index==0">透前体重</td>
345
          <td v-if="advice_index==0">{{weight_before}}kg</td>
343
          <td v-if="advice_index==0">{{weight_before}}kg</td>
346
          <td v-if="advice_index==1">体重增加量</td>
344
          <td v-if="advice_index==1">体重增加量</td>
347
-         <td v-if="advice_index==1">{{(dryWeight_add).toFixed(2)}}kg</td>
345
+         <td v-if="advice_index==1">
346
+             {{dryWeight_add?dryWeight_add:0}}
347
+         kg</td>
348
          <td v-if="advice_index==2">干体重(DW)</td>
348
          <td v-if="advice_index==2">干体重(DW)</td>
349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
350
          <td v-if="advice_index==3">较干体重增加量</td>
350
          <td v-if="advice_index==3">较干体重增加量</td>
351
-         <td v-if="advice_index==3">{{(dryWeight_add).toFixed(2)}}kg</td>
351
+         <td v-if="advice_index==3">{{dryWeight_add?dryWeight_add:0}}kg</td>
352
          <td v-if="advice_index==4">净脱水量</td>
352
          <td v-if="advice_index==4">净脱水量</td>
353
-         <td v-if="advice_index==4">{{actual_ultrafiltration}}ml</td>
353
+         <td v-if="advice_index==4">{{actual_ultrafiltration}}L</td>
354
          <td v-if="advice_index==5">透后体重</td>
354
          <td v-if="advice_index==5">透后体重</td>
355
          <td v-if="advice_index==5">{{weight_after}}kg</td>
355
          <td v-if="advice_index==5">{{weight_after}}kg</td>
356
          <td v-if="advice_index==6">本次透析体重下降量</td>
356
          <td v-if="advice_index==6">本次透析体重下降量</td>
366
         <tr>
366
         <tr>
367
           <td style="text-align:left;">
367
           <td style="text-align:left;">
368
            <span v-if="doctorForm.url === ''">
368
            <span v-if="doctorForm.url === ''">
369
-             医签名:{{doctorForm.doctor}}
369
+             医签名:{{doctorForm.doctor}}
370
            </span>
370
            </span>
371
            <span v-if="doctorForm.url!==''">
371
            <span v-if="doctorForm.url!==''">
372
-              医签名:
372
+              医签名:
373
               <img style="height:20px" :src="doctorForm.url">
373
               <img style="height:20px" :src="doctorForm.url">
374
            </span>
374
            </span>
375
            &nbsp;&nbsp;&nbsp;&nbsp;
375
            &nbsp;&nbsp;&nbsp;&nbsp;
548
         blood_access_part_opera_id: '',
548
         blood_access_part_opera_id: '',
549
         dryWeight_add: '',
549
         dryWeight_add: '',
550
         weight: '',
550
         weight: '',
551
-        vascularId: 0
551
+        vascularId: 0,
552
+        PunctureNurse: {
553
+          user_name: '',
554
+          url: ''
555
+        }
552
 
556
 
553
       }
557
       }
554
   },
558
   },
647
         return name
651
         return name
648
       },
652
       },
649
       setAdminUserES(id) {
653
       setAdminUserES(id) {
650
-        console.log(id)
654
+        // console.log(id)
651
         if (id == 0) {
655
         if (id == 0) {
652
           return ''
656
           return ''
653
         }
657
         }
671
             this.adminUser = response.data.data.users
675
             this.adminUser = response.data.data.users
672
             this.users = response.data.data.users
676
             this.users = response.data.data.users
673
             var patientInfo = response.data.data.patientInfo
677
             var patientInfo = response.data.data.patientInfo
678
+            // console.log('patientInfo', patientInfo)
674
             if (patientInfo.gender === 1) {
679
             if (patientInfo.gender === 1) {
675
               patientInfo.gender = '男'
680
               patientInfo.gender = '男'
676
             }
681
             }
678
               patientInfo.gender = '女'
683
               patientInfo.gender = '女'
679
             }
684
             }
680
             this.patientInfo = response.data.data.patientInfo
685
             this.patientInfo = response.data.data.patientInfo
681
-            console.log('透析记录', this.patientInfo)
686
+            // console.log('透析记录', this.patientInfo)
682
 
687
 
683
             this.patientInfo.birth = uParseTime(
688
             this.patientInfo.birth = uParseTime(
684
               this.patientInfo.birthday,
689
               this.patientInfo.birthday,
697
             var predialysis = response.data.data.PredialysisEvaluation
702
             var predialysis = response.data.data.PredialysisEvaluation
698
             var predialysName = response.data.data.predialysName
703
             var predialysName = response.data.data.predialysName
699
             this.blood_access_part_opera_id = predialysName.name
704
             this.blood_access_part_opera_id = predialysName.name
700
-            console.log('血管', predialysName)
705
+            // console.log('血管', predialysName)
701
             this.weight_before = predialysis.weight_before
706
             this.weight_before = predialysis.weight_before
702
             this.dry_weight = predialysis.dry_weight
707
             this.dry_weight = predialysis.dry_weight
703
             this.weight_gain = predialysis.weight_gain
708
             this.weight_gain = predialysis.weight_gain
704
             this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
709
             this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
705
             this.venous_catheterization = predialysis.venous_catheterization
710
             this.venous_catheterization = predialysis.venous_catheterization
706
             // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
711
             // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
707
-            console.log('血管通路', this.blood_access_part_opera_id)
712
+            // console.log('血管通路', this.blood_access_part_opera_id)
708
             var arry = []
713
             var arry = []
709
             arry = getDataConfig('hemodialysis', 'vascular_access_desc')
714
             arry = getDataConfig('hemodialysis', 'vascular_access_desc')
710
-            console.log('arry', arry)
715
+            // console.log('arry', arry)
711
             // eslint-disable-next-line no-empty
716
             // eslint-disable-next-line no-empty
712
             var id = 0
717
             var id = 0
713
             for (let i = 0; i < arry.length; i++) {
718
             for (let i = 0; i < arry.length; i++) {
714
-              console.log(arry[i].id)
719
+              // console.log(arry[i].id)
715
               if (arry[i].id === predialysis.blood_access_part_opera_id) {
720
               if (arry[i].id === predialysis.blood_access_part_opera_id) {
716
                 id = predialysis.blood_access_part_opera_id
721
                 id = predialysis.blood_access_part_opera_id
717
               }
722
               }
718
               this.vascularId = id
723
               this.vascularId = id
719
             }
724
             }
720
             this.predialysis = predialysis
725
             this.predialysis = predialysis
721
-            console.log('透前评估', this.predialysis)
726
+            // console.log('透前评估', this.predialysis)
722
 
727
 
723
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
728
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
724
               this.predialysis.blood_access_part_opera_id
729
               this.predialysis.blood_access_part_opera_id
725
             )
730
             )
726
             var afterdialysis = response.data.data.AssessmentAfterDislysis
731
             var afterdialysis = response.data.data.AssessmentAfterDislysis
727
             // eslint-disable-next-line no-undef
732
             // eslint-disable-next-line no-undef
728
-            console.log('透后评估', afterdialysis)
733
+            // console.log('透后评估', afterdialysis)
729
             this.weight_after = afterdialysis.weight_after
734
             this.weight_after = afterdialysis.weight_after
730
             this.weightloss_after = afterdialysis.weight_after
735
             this.weightloss_after = afterdialysis.weight_after
731
             this.temperature = afterdialysis.temperature
736
             this.temperature = afterdialysis.temperature
738
             var doctoradvce = response.data.data.doctorAdvice
743
             var doctoradvce = response.data.data.doctorAdvice
739
             var doctorAdevieInfo = response.data.data.doctorAdevieInfo
744
             var doctorAdevieInfo = response.data.data.doctorAdevieInfo
740
             var tableAdvice = doctorAdevieInfo
745
             var tableAdvice = doctorAdevieInfo
741
-            console.log('医生', tableAdvice.length)
746
+            // console.log('医生', tableAdvice.length)
742
             if (tableAdvice.length === 0) {
747
             if (tableAdvice.length === 0) {
743
               var obj = { 'advice_name': '', start_time: '' }
748
               var obj = { 'advice_name': '', start_time: '' }
744
               var obj1 = { 'advice_name': '', start_time: '' }
749
               var obj1 = { 'advice_name': '', start_time: '' }
823
               var obj = { 'advice_name': '', start_time: '' }
828
               var obj = { 'advice_name': '', start_time: '' }
824
               tableAdvice.push(obj)
829
               tableAdvice.push(obj)
825
               this.tableAdvice = tableAdvice
830
               this.tableAdvice = tableAdvice
826
-              console.log('零食医嘱', doctorAdevieInfo)
831
+              // console.log('零食医嘱', doctorAdevieInfo)
827
             }
832
             }
828
             if (tableAdvice.length >= 7) {
833
             if (tableAdvice.length >= 7) {
829
               this.tableAdvice = tableAdvice
834
               this.tableAdvice = tableAdvice
830
             }
835
             }
831
             var doctor = response.data.data.doctor
836
             var doctor = response.data.data.doctor
832
             this.doctor = doctor.user_name
837
             this.doctor = doctor.user_name
833
-            console.log('医生', doctor)
834
-            var nurse = response.data.data.nurse
835
-            this.nurse = nurse.user_name
836
-            console.log('穿刺护士', nurse)
838
+            // console.log('医生', doctor)
839
+            this.PunctureNurse = response.data.data.nurse
840
+            // console.log('穿刺护士', this.PunctureNurse)
837
             var operators = response.data.data.operators
841
             var operators = response.data.data.operators
838
-            console.log('operators', operators)
842
+            // console.log('operators', operators)
839
             var total = response.data.data.total
843
             var total = response.data.data.total
840
-            console.log('total', total)
844
+            // console.log('total', total)
841
             this.total = total
845
             this.total = total
842
             this.operators = operators
846
             this.operators = operators
843
             this.dialysisOrder =
847
             this.dialysisOrder =
908
             // console.log('排班', schedule)
912
             // console.log('排班', schedule)
909
             this.schedule = schedule
913
             this.schedule = schedule
910
             var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
914
             var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
911
-            console.log('接诊评估', receiverTreatmentAccess)
915
+            // console.log('接诊评估', receiverTreatmentAccess)
912
             this.receiverTreatmentAccess = receiverTreatmentAccess
916
             this.receiverTreatmentAccess = receiverTreatmentAccess
913
             var dialysisway = response.data.data.dialysisway
917
             var dialysisway = response.data.data.dialysisway
914
-            console.log('透析处方2', dialysisway)
918
+            // console.log('透析处方2', dialysisway)
915
             this.target_ultrafiltration = dialysisway.target_ultrafiltration
919
             this.target_ultrafiltration = dialysisway.target_ultrafiltration
916
             var order = response.data.data.order
920
             var order = response.data.data.order
917
             // console.log('上下机', order)
921
             // console.log('上下机', order)
940
             this.calcium = dialysisway.calcium
944
             this.calcium = dialysisway.calcium
941
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
945
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
942
             var afterWeightLast = response.data.data.assessmentAfterDislysis
946
             var afterWeightLast = response.data.data.assessmentAfterDislysis
943
-            // console.log('上次透后体重', afterWeightLast)
944
-            // eslint-disable-next-line no-undef
945
-            console.log('透前体重', this.weight_before)
946
-            console.log('干体中', this.dry_weight)
947
-            console.log('什么体重', predialysis.additional_weight)
948
-            this.dryWeight_add = this.weight_before - this.dry_weight - predialysis.additional_weight
949
-            console.log('较干体中增加量', this.dryWeight_add)
947
+            // console.log('上次透后体重', afterWeightLast.weight_after)
950
             this.afterWeightLast = afterWeightLast.weight_after
948
             this.afterWeightLast = afterWeightLast.weight_after
949
+            // eslint-disable-next-line no-undef
950
+            // console.log('透前体重', this.weight_before)
951
+            // console.log('干体中', this.dry_weight)
952
+            // console.log('什么体重', predialysis.additional_weight)
953
+            var dryWeight_add = this.weight_before - this.dry_weight - predialysis.additional_weight
954
+            if (this.afterWeightLast === 0) {
955
+              this.dryWeight_add = 0
956
+            } else {
957
+              this.dryWeight_add = dryWeight_add.toFixed(2)
958
+            }
959
+            // console.log('较干体中增加量', this.dryWeight_add)
960
+            // this.afterWeightLast = afterWeightLast.weight_after
951
             this.prescription.mode = this.modeName(this.prescription.mode_id)
961
             this.prescription.mode = this.modeName(this.prescription.mode_id)
952
             var rwLen = this.replacementWays.length
962
             var rwLen = this.replacementWays.length
953
             this.prescription.replacement = ''
963
             this.prescription.replacement = ''
995
             this.advices = response.data.data.advices
1005
             this.advices = response.data.data.advices
996
 
1006
 
997
             var monitor = response.data.data.monitor
1007
             var monitor = response.data.data.monitor
1008
+            // console.log('透析监测', monitor)
998
             this.monitor = monitor
1009
             this.monitor = monitor
999
-            console.log('monitor', monitor)
1010
+            // console.log('monitor', monitor)
1000
             this.monitors = response.data.data.monitors
1011
             this.monitors = response.data.data.monitors
1001
-
1012
+            // console.log('透析监测', this.monitors)
1002
             var summary = response.data.data.summary
1013
             var summary = response.data.data.summary
1003
-            console.log('透析小结', summary)
1014
+            // console.log('透析小结', summary)
1004
             this.mission = summary.mission
1015
             this.mission = summary.mission
1005
             this.dialysis_summary = summary.dialysis_summary
1016
             this.dialysis_summary = summary.dialysis_summary
1006
             this.org_template_info = response.data.data.org_template_info
1017
             this.org_template_info = response.data.data.org_template_info
1007
-            if (this.monitors.length < 8) {
1018
+            if (this.monitors.length < 7) {
1008
               var nl = 8 - this.monitors.length
1019
               var nl = 8 - this.monitors.length
1009
               for (let index = 0; index < nl; index++) {
1020
               for (let index = 0; index < nl; index++) {
1010
                 this.monitors.push([])
1021
                 this.monitors.push([])
1283
       this.precautions = getDataConfig('hemodialysis', 'precaution')
1294
       this.precautions = getDataConfig('hemodialysis', 'precaution')
1284
       this.intake = getDataConfig('hemodialysis', 'intake')
1295
       this.intake = getDataConfig('hemodialysis', 'intake')
1285
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
1296
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
1286
-      console.log('nutrition', this.nutrition)
1297
+      // console.log('nutrition', this.nutrition)
1287
   }
1298
   }
1288
 }
1299
 }
1289
 </script>
1300
 </script>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

2163
 
2163
 
2164
         this.users = response.data.data.users;
2164
         this.users = response.data.data.users;
2165
         this.patientInfo = response.data.data.patientInfo;
2165
         this.patientInfo = response.data.data.patientInfo;
2166
-
2166
+       
2167
         this.patientInfo.birth = uParseTime(
2167
         this.patientInfo.birth = uParseTime(
2168
           this.patientInfo.birthday,
2168
           this.patientInfo.birthday,
2169
           "{y}-{m}-{d}"
2169
           "{y}-{m}-{d}"