Browse Source

月亮弯上正式

XMLWAN 4 years ago
parent
commit
5b0adb2ac4

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

@@ -9,3 +9,16 @@ export function GetBatchPrintDialysisData(sch_ids) {
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,7 +17,7 @@
17 17
           <div id="dialysis-print-box">
18 18
             <div class="dialysis-print-order">
19 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 23
               <table class="print-table" style="margin-top: 10px;" border="1">
@@ -29,25 +29,35 @@
29 29
                 <tr>
30 30
                   <td>
31 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 33
                       <span style="flex:1;margin-left:15px;">
35
-                         年龄:{{ getAge(record.patient) }}</span>
34
+                         年龄:{{ getAge(record.patient) }}
35
+                      </span>
36 36
                       <span style="flex:1;margin-left:15px;">
37
-                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}</span>
37
+                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}
38
+                      </span>
38 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 49
                       <span style="flex:1;margin-left:15px;">第({{
41 50
                             record.patient.total_dialysis
42 51
                               ? record.patient.total_dialysis
43 52
                               : "/"
44
-                          }})次透析</span>
53
+                          }})次透析
54
+                      </span>
45 55
                     </div>
46 56
                   </td>
47 57
                 </tr>
48 58
                 <tr>
49 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 61
                     <div style="display:inline-block;">
52 62
                       <label-box
53 63
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
@@ -76,7 +86,7 @@
76 86
               <table class="print-table" border="1">
77 87
                 <tr>
78 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 90
                     <label-box
81 91
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
82 92
                       showValue="HD"
@@ -162,9 +172,8 @@
162 172
               <table class="print-table" border="1">
163 173
                 <tr>
164 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 177
                   </td>
169 178
                   <td>
170 179
                     <span>医生签名:{{getName(record.prescription.creater)}}</span>
@@ -173,26 +182,30 @@
173 182
               </table>
174 183
               <table class="print-table" border="1">
175 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 189
                   </td>
181 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 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 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 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 203
                      </span>
191 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 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 209
                      </span>
197 210
                   </td>
198 211
                 </tr>
@@ -200,9 +213,7 @@
200 213
               <table class="print-table" border="1">
201 214
                 <tr>
202 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 217
                     &nbsp;
207 218
                     <label-box
208 219
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
@@ -226,8 +237,11 @@
226 237
                     ></label-box>
227 238
                     &nbsp;
228 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 245
                   </td>
232 246
                 </tr>
233 247
                 <tr>
@@ -239,18 +253,18 @@
239 253
                   <th rowspan="2" width="40">时间</th>
240 254
                   <th colspan="3">透析参数</th>
241 255
                   <th colspan="6">生命体征</th>
242
-                  <th>病情变化及处理</th>
256
+                  <th>治疗中病情变化</th>
243 257
                 </tr>
244 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 268
                   <td>记录</td>
255 269
                 </tr>
256 270
                 <tr v-for="(monitor,
@@ -281,10 +295,36 @@
281 295
                   </td>
282 296
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
283 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 300
                   </td>
287 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 328
               </table>
289 329
               <table class="print-table" border="1">
290 330
                 <tr>
@@ -293,72 +333,72 @@
293 333
                   <td>执行</td>
294 334
                   <td>核对</td>
295 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 342
                                   record.assessment_before_dislysis
302 343
                                     .weight_after_last_transparency -
303 344
                                     record.assessment_before_dislysis
304 345
                                       .additional_weight
305 346
                                 ).toFixed(1)
306 347
                               : "未称重"
307
-                          }}kg</td>
348
+                          }}kg
349
+                  </td>
308 350
                 </tr>
351
+
352
+                
353
+
309 354
                 <tr v-for="(advice, advice_index) in record.advices"
310 355
                     :key="advice_index">
311 356
                   <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
357
+                 
312 358
                   <td>
313
-                    <span v-if="advice.parent_id > 0">---></span>
314 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 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 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 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 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 387
                   </td>
352 388
                   <td v-if="advice_index==0">透前体重</td>
353 389
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
354 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 395
                   <td v-if="advice_index==2">干体重(DW)</td>
357 396
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
358 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 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 402
                   <td v-if="advice_index==5">透后体重</td>
363 403
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
364 404
                   <td v-if="advice_index==6">本次透析体重下降量</td>
@@ -373,64 +413,27 @@
373 413
                   <td colspan="6" style="text-align:left;">
374 414
                     医生签名:<template
375 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 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 430
                               getName(
415 431
                                 record.dialysis_order == null
416 432
                                   ? 0
417 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 437
                   </td>
435 438
                 </tr>
436 439
               </table>
@@ -445,7 +448,7 @@
445 448
 <script>
446 449
   import CheckBox from './option_check_box'
447 450
   import LabelBox from '../printItem/LabelBox'
448
-  import { GetBatchPrintDialysisData } from '@/api/print_data'
451
+  import { GetBatchPrintDialysisData, getLastAfterWeight } from '@/api/print_data'
449 452
   import { jsGetAge, uParseTime } from '@/utils/tools'
450 453
   import { getDataConfig } from '@/utils/data'
451 454
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -504,12 +507,39 @@ export default {
504 507
           '腹痛'
505 508
         ],
506 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 540
     created() {
511 541
       var xtuser = this.$store.getters.xt_user
512
-      console.log('xtuser', xtuser)
542
+      //console.log('xtuser', xtuser)
513 543
       this.orgname = xtuser.org.org_name
514 544
       //   this.orgname = "遂溪方济医院";
515 545
       this.modeOptions = this.$store.getters.treatment_mode
@@ -559,9 +589,9 @@ export default {
559 589
         .then(rs => {
560 590
           var resp = rs.data
561 591
           if (resp.state == 1) {
562
-            console.log('数据', resp.data.schedules)
592
+           // console.log('数据', resp.data.schedules)
563 593
             this.records = this.records.concat(resp.data.schedules)
564
-            console.log('this', this.records)
594
+           // console.log('this', this.records)
565 595
             for (const recordIndex in this.records) {
566 596
               this.advice_groups = []
567 597
               this.advice_groups_2 = []
@@ -764,10 +794,7 @@ export default {
764 794
             }
765 795
 
766 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 798
             this.loading = false
772 799
           } else {
773 800
             this.loading = false
@@ -922,11 +949,9 @@ export default {
922 949
         }
923 950
       },
924 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 955
           return ''
931 956
         }
932 957
         if (key[id] == 0) {
@@ -941,10 +966,11 @@ export default {
941 966
           }
942 967
         }
943 968
       },
969
+  
944 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,6 +1016,16 @@ export default {
990 1016
       },
991 1017
       getNumber: function(record) {
992 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,6 +113,16 @@
113 113
           >打印</el-button
114 114
         >
115 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 126
     </div>
117 127
     <div class="app-container ">
118 128
       <!--<div class="order-print-btn"-->
@@ -168,6 +178,12 @@
168 178
         v-if="org_template_info.template_id == 7"
169 179
       >
170 180
       </DialysisPrintOrderSeven>
181
+
182
+      <DialysisPrintOrderEight
183
+        v-bind:childResponse="childResponse"
184
+        v-if="org_template_info.template_id == 8"
185
+      >
186
+      </DialysisPrintOrderEight>
171 187
     </div>
172 188
   </div>
173 189
 </template>
@@ -185,6 +201,7 @@ import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
185 201
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
186 202
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
187 203
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
204
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
188 205
 import print from "print-js";
189 206
 
190 207
 export default {
@@ -197,6 +214,7 @@ export default {
197 214
     DialysisPrintOrderFive,
198 215
     DialysisPrintOrderSix,
199 216
     DialysisPrintOrderSeven,
217
+    DialysisPrintOrderEight,
200 218
     LabelBox,
201 219
     BreadCrumb
202 220
   },
@@ -379,6 +397,13 @@ export default {
379 397
           style: style,
380 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 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,7 +2,7 @@
2 2
   <div id="dialysis-print-box">
3 3
     <div class="dialysis-print-order">
4 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 7
       <table class="print-table" style="margin-top: 10px;" border="1">
8 8
         <tbody>
@@ -23,7 +23,13 @@
23 23
                   >性别:{{ patientInfo.gender }}</span
24 24
                 >
25 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 34
                 <span style="flex:1;margin-left:15px;">第({{total}})次透析</span>
29 35
               </div>
@@ -158,12 +164,15 @@
158 164
             <span style="display:inline-block;margin-left:15px;"
159 165
               >透析液流量:{{dialysate_flow}}ml/h</span
160 166
             >&nbsp;
161
-            <span style="display:inline-block;margin-left:15px;"
162
-              >血流量:{{blood_flow_volume}}ml/min</span
163
-            >&nbsp;
164 167
           </td>
165 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 176
           </td>
168 177
         </tr>
169 178
       </table>
@@ -179,19 +188,19 @@
179 188
               >透析液(mmol/L):</span
180 189
             >
181 190
             <span v-if="dialysate_formulation == 1">
182
-              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
191
+              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183 192
             </span>
184 193
             <span v-if="dialysate_formulation == 2">
185
-              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
194
+              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
186 195
             </span>
187 196
              <span v-if="dialysate_formulation == 3">
188
-              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
197
+              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
189 198
             </span>
190 199
              <span v-if="dialysate_formulation == 4">
191
-              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
200
+              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
192 201
             </span>
193 202
              <span v-if="dialysate_formulation == 5">
194
-              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
203
+              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
195 204
             </span>
196 205
          </td>
197 206
         </tr>
@@ -229,7 +238,9 @@
229 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 239
               showValue="其它"
231 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 244
           </td>
234 245
         </tr>
235 246
         <tr>
@@ -241,34 +252,34 @@
241 252
           <th rowspan="2">时间</th>
242 253
           <th colspan="3">透析参数</th>
243 254
           <th colspan="6">生命体征</th>
244
-          <th>病情变化及处理</th>
255
+          <th>治疗中病情变化</th>
245 256
          </tr>
246 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 267
           <td>记录</td>
257 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 276
                  monitor.temperature
266 277
                 ? monitor.temperature
267 278
                 : ""
268 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 283
                 monitor.systolic_blood_pressure
273 284
                 ? monitor.systolic_blood_pressure + "/"
274 285
                 : ""
@@ -277,10 +288,10 @@
277 288
               ? monitor.diastolic_blood_pressure
278 289
               : ""
279 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 292
            <td style="line-height:16px;padding:0px;">
282 293
               {{ monitor.end }}
283
-              {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
294
+              {{ monitor.symptom }} &nbsp;{{ monitor.result }}
284 295
             </td>
285 296
          </tr>
286 297
       </table>
@@ -292,12 +303,8 @@
292 303
          <td>核对</td>
293 304
          <td>上次透后体重</td>
294 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 308
               }}kg</td>
302 309
         </tr>
303 310
         <tr  v-for="(advice, advice_index) in tableAdvice"
@@ -316,41 +323,34 @@
316 323
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
317 324
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
318 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 337
          </td>
331 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 341
          </td>
344 342
          <td v-if="advice_index==0">透前体重</td>
345 343
          <td v-if="advice_index==0">{{weight_before}}kg</td>
346 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 348
          <td v-if="advice_index==2">干体重(DW)</td>
349 349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
350 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 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 354
          <td v-if="advice_index==5">透后体重</td>
355 355
          <td v-if="advice_index==5">{{weight_after}}kg</td>
356 356
          <td v-if="advice_index==6">本次透析体重下降量</td>
@@ -366,10 +366,10 @@
366 366
         <tr>
367 367
           <td style="text-align:left;">
368 368
            <span v-if="doctorForm.url === ''">
369
-             医签名:{{doctorForm.doctor}}
369
+             医签名:{{doctorForm.doctor}}
370 370
            </span>
371 371
            <span v-if="doctorForm.url!==''">
372
-              医签名:
372
+              医签名:
373 373
               <img style="height:20px" :src="doctorForm.url">
374 374
            </span>
375 375
            &nbsp;&nbsp;&nbsp;&nbsp;
@@ -548,7 +548,11 @@
548 548
         blood_access_part_opera_id: '',
549 549
         dryWeight_add: '',
550 550
         weight: '',
551
-        vascularId: 0
551
+        vascularId: 0,
552
+        PunctureNurse: {
553
+          user_name: '',
554
+          url: ''
555
+        }
552 556
 
553 557
       }
554 558
   },
@@ -647,7 +651,7 @@
647 651
         return name
648 652
       },
649 653
       setAdminUserES(id) {
650
-        console.log(id)
654
+        // console.log(id)
651 655
         if (id == 0) {
652 656
           return ''
653 657
         }
@@ -671,6 +675,7 @@
671 675
             this.adminUser = response.data.data.users
672 676
             this.users = response.data.data.users
673 677
             var patientInfo = response.data.data.patientInfo
678
+            // console.log('patientInfo', patientInfo)
674 679
             if (patientInfo.gender === 1) {
675 680
               patientInfo.gender = '男'
676 681
             }
@@ -678,7 +683,7 @@
678 683
               patientInfo.gender = '女'
679 684
             }
680 685
             this.patientInfo = response.data.data.patientInfo
681
-            console.log('透析记录', this.patientInfo)
686
+            // console.log('透析记录', this.patientInfo)
682 687
 
683 688
             this.patientInfo.birth = uParseTime(
684 689
               this.patientInfo.birthday,
@@ -697,35 +702,35 @@
697 702
             var predialysis = response.data.data.PredialysisEvaluation
698 703
             var predialysName = response.data.data.predialysName
699 704
             this.blood_access_part_opera_id = predialysName.name
700
-            console.log('血管', predialysName)
705
+            // console.log('血管', predialysName)
701 706
             this.weight_before = predialysis.weight_before
702 707
             this.dry_weight = predialysis.dry_weight
703 708
             this.weight_gain = predialysis.weight_gain
704 709
             this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
705 710
             this.venous_catheterization = predialysis.venous_catheterization
706 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 713
             var arry = []
709 714
             arry = getDataConfig('hemodialysis', 'vascular_access_desc')
710
-            console.log('arry', arry)
715
+            // console.log('arry', arry)
711 716
             // eslint-disable-next-line no-empty
712 717
             var id = 0
713 718
             for (let i = 0; i < arry.length; i++) {
714
-              console.log(arry[i].id)
719
+              // console.log(arry[i].id)
715 720
               if (arry[i].id === predialysis.blood_access_part_opera_id) {
716 721
                 id = predialysis.blood_access_part_opera_id
717 722
               }
718 723
               this.vascularId = id
719 724
             }
720 725
             this.predialysis = predialysis
721
-            console.log('透前评估', this.predialysis)
726
+            // console.log('透前评估', this.predialysis)
722 727
 
723 728
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
724 729
               this.predialysis.blood_access_part_opera_id
725 730
             )
726 731
             var afterdialysis = response.data.data.AssessmentAfterDislysis
727 732
             // eslint-disable-next-line no-undef
728
-            console.log('透后评估', afterdialysis)
733
+            // console.log('透后评估', afterdialysis)
729 734
             this.weight_after = afterdialysis.weight_after
730 735
             this.weightloss_after = afterdialysis.weight_after
731 736
             this.temperature = afterdialysis.temperature
@@ -738,7 +743,7 @@
738 743
             var doctoradvce = response.data.data.doctorAdvice
739 744
             var doctorAdevieInfo = response.data.data.doctorAdevieInfo
740 745
             var tableAdvice = doctorAdevieInfo
741
-            console.log('医生', tableAdvice.length)
746
+            // console.log('医生', tableAdvice.length)
742 747
             if (tableAdvice.length === 0) {
743 748
               var obj = { 'advice_name': '', start_time: '' }
744 749
               var obj1 = { 'advice_name': '', start_time: '' }
@@ -823,21 +828,20 @@
823 828
               var obj = { 'advice_name': '', start_time: '' }
824 829
               tableAdvice.push(obj)
825 830
               this.tableAdvice = tableAdvice
826
-              console.log('零食医嘱', doctorAdevieInfo)
831
+              // console.log('零食医嘱', doctorAdevieInfo)
827 832
             }
828 833
             if (tableAdvice.length >= 7) {
829 834
               this.tableAdvice = tableAdvice
830 835
             }
831 836
             var doctor = response.data.data.doctor
832 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 841
             var operators = response.data.data.operators
838
-            console.log('operators', operators)
842
+            // console.log('operators', operators)
839 843
             var total = response.data.data.total
840
-            console.log('total', total)
844
+            // console.log('total', total)
841 845
             this.total = total
842 846
             this.operators = operators
843 847
             this.dialysisOrder =
@@ -908,10 +912,10 @@
908 912
             // console.log('排班', schedule)
909 913
             this.schedule = schedule
910 914
             var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
911
-            console.log('接诊评估', receiverTreatmentAccess)
915
+            // console.log('接诊评估', receiverTreatmentAccess)
912 916
             this.receiverTreatmentAccess = receiverTreatmentAccess
913 917
             var dialysisway = response.data.data.dialysisway
914
-            console.log('透析处方2', dialysisway)
918
+            // console.log('透析处方2', dialysisway)
915 919
             this.target_ultrafiltration = dialysisway.target_ultrafiltration
916 920
             var order = response.data.data.order
917 921
             // console.log('上下机', order)
@@ -940,14 +944,20 @@
940 944
             this.calcium = dialysisway.calcium
941 945
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
942 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 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 961
             this.prescription.mode = this.modeName(this.prescription.mode_id)
952 962
             var rwLen = this.replacementWays.length
953 963
             this.prescription.replacement = ''
@@ -995,16 +1005,17 @@
995 1005
             this.advices = response.data.data.advices
996 1006
 
997 1007
             var monitor = response.data.data.monitor
1008
+            // console.log('透析监测', monitor)
998 1009
             this.monitor = monitor
999
-            console.log('monitor', monitor)
1010
+            // console.log('monitor', monitor)
1000 1011
             this.monitors = response.data.data.monitors
1001
-
1012
+            // console.log('透析监测', this.monitors)
1002 1013
             var summary = response.data.data.summary
1003
-            console.log('透析小结', summary)
1014
+            // console.log('透析小结', summary)
1004 1015
             this.mission = summary.mission
1005 1016
             this.dialysis_summary = summary.dialysis_summary
1006 1017
             this.org_template_info = response.data.data.org_template_info
1007
-            if (this.monitors.length < 8) {
1018
+            if (this.monitors.length < 7) {
1008 1019
               var nl = 8 - this.monitors.length
1009 1020
               for (let index = 0; index < nl; index++) {
1010 1021
                 this.monitors.push([])
@@ -1283,7 +1294,7 @@
1283 1294
       this.precautions = getDataConfig('hemodialysis', 'precaution')
1284 1295
       this.intake = getDataConfig('hemodialysis', 'intake')
1285 1296
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
1286
-      console.log('nutrition', this.nutrition)
1297
+      // console.log('nutrition', this.nutrition)
1287 1298
   }
1288 1299
 }
1289 1300
 </script>

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

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