|
@@ -284,15 +284,15 @@
|
284
|
284
|
</template>
|
285
|
285
|
|
286
|
286
|
<script>
|
287
|
|
-import store from "@/store";
|
288
|
|
-import { getDataConfig } from "@/utils/data";
|
|
287
|
+import store from '@/store'
|
|
288
|
+import { getDataConfig } from '@/utils/data'
|
289
|
289
|
|
290
|
290
|
export default {
|
291
|
|
- name: "assessmentBefore",
|
|
291
|
+ name: 'assessmentBefore',
|
292
|
292
|
data() {
|
293
|
293
|
return {
|
294
|
|
- title: "透前评估 "
|
295
|
|
- };
|
|
294
|
+ title: '透前评估 '
|
|
295
|
+ }
|
296
|
296
|
},
|
297
|
297
|
props: {
|
298
|
298
|
record: {
|
|
@@ -302,319 +302,318 @@ export default {
|
302
|
302
|
computed: {
|
303
|
303
|
weight_before: function() {
|
304
|
304
|
if (this.record.id == 0) {
|
305
|
|
- return "-";
|
|
305
|
+ return '-'
|
306
|
306
|
}
|
307
|
|
- return this.record.weight_before;
|
|
307
|
+ return this.record.weight_before
|
308
|
308
|
},
|
309
|
309
|
additional_weight: function() {
|
310
|
310
|
if (this.record.id == 0) {
|
311
|
|
- return "-";
|
|
311
|
+ return '-'
|
312
|
312
|
}
|
313
|
|
- return this.record.additional_weight;
|
|
313
|
+ return this.record.additional_weight
|
314
|
314
|
},
|
315
|
315
|
systolic_blood_pressure: function() {
|
316
|
316
|
if (this.record.id == 0) {
|
317
|
|
- return "-";
|
|
317
|
+ return '-'
|
318
|
318
|
}
|
319
|
|
- return this.record.systolic_blood_pressure;
|
|
319
|
+ return this.record.systolic_blood_pressure
|
320
|
320
|
},
|
321
|
321
|
last_post_dialysis: function() {
|
322
|
322
|
if (this.record.id == 0) {
|
323
|
|
- return "-";
|
|
323
|
+ return '-'
|
324
|
324
|
}
|
325
|
|
- return this.record.last_post_dialysis;
|
|
325
|
+ return this.record.last_post_dialysis
|
326
|
326
|
},
|
327
|
327
|
dry_weight: function() {
|
328
|
328
|
if (this.record.id == 0) {
|
329
|
|
- return "-";
|
|
329
|
+ return '-'
|
330
|
330
|
}
|
331
|
|
- return this.record.dry_weight;
|
|
331
|
+ return this.record.dry_weight
|
332
|
332
|
},
|
333
|
333
|
diastolic_blood_pressure: function() {
|
334
|
334
|
if (this.record.id == 0) {
|
335
|
|
- return "-";
|
|
335
|
+ return '-'
|
336
|
336
|
}
|
337
|
|
- return this.record.diastolic_blood_pressure;
|
|
337
|
+ return this.record.diastolic_blood_pressure
|
338
|
338
|
},
|
339
|
339
|
dialysis_interphase: function() {
|
340
|
340
|
if (this.record.id == 0) {
|
341
|
|
- return "-";
|
|
341
|
+ return '-'
|
342
|
342
|
}
|
343
|
|
- return this.record.dialysis_interphase;
|
|
343
|
+ return this.record.dialysis_interphase
|
344
|
344
|
},
|
345
|
345
|
catheter: function() {
|
346
|
346
|
if (this.record.id == 0) {
|
347
|
|
- return "-";
|
|
347
|
+ return '-'
|
348
|
348
|
}
|
349
|
|
- return this.record.catheter;
|
350
|
|
- console.log("导管", this.record.catheter);
|
|
349
|
+ return this.record.catheter
|
|
350
|
+ console.log('导管', this.record.catheter)
|
351
|
351
|
},
|
352
|
352
|
|
353
|
353
|
temperature: function() {
|
354
|
354
|
if (this.record.id == 0) {
|
355
|
|
- return "-";
|
|
355
|
+ return '-'
|
356
|
356
|
}
|
357
|
|
- return this.record.temperature;
|
|
357
|
+ return this.record.temperature
|
358
|
358
|
},
|
359
|
359
|
pulse_frequency: function() {
|
360
|
360
|
if (this.record.id == 0) {
|
361
|
|
- return "-";
|
|
361
|
+ return '-'
|
362
|
362
|
}
|
363
|
|
- return this.record.pulse_frequency;
|
|
363
|
+ return this.record.pulse_frequency
|
364
|
364
|
},
|
365
|
365
|
machine_type: function() {
|
366
|
366
|
if (this.record.id == 0) {
|
367
|
|
- return "-";
|
|
367
|
+ return '-'
|
368
|
368
|
}
|
369
|
|
- return this.record.machine_type;
|
|
369
|
+ return this.record.machine_type
|
370
|
370
|
},
|
371
|
371
|
breathing_rate: function() {
|
372
|
372
|
if (this.record.id == 0) {
|
373
|
|
- return "-";
|
|
373
|
+ return '-'
|
374
|
374
|
}
|
375
|
|
- return this.record.breathing_rate;
|
|
375
|
+ return this.record.breathing_rate
|
376
|
376
|
},
|
377
|
377
|
symptom_before_dialysis: function() {
|
378
|
378
|
if (this.record.id == 0) {
|
379
|
|
- return "-";
|
|
379
|
+ return '-'
|
380
|
380
|
}
|
381
|
|
- return this.record.symptom_before_dialysis;
|
|
381
|
+ return this.record.symptom_before_dialysis
|
382
|
382
|
},
|
383
|
383
|
complication: function() {
|
384
|
384
|
if (this.record.id == 0) {
|
385
|
|
- return "-";
|
|
385
|
+ return '-'
|
386
|
386
|
}
|
387
|
|
- return this.record.complication;
|
|
387
|
+ return this.record.complication
|
388
|
388
|
},
|
389
|
389
|
internal_fistula: function() {
|
390
|
390
|
if (this.record.id == 0) {
|
391
|
|
- return "-";
|
|
391
|
+ return '-'
|
392
|
392
|
}
|
393
|
|
- return this.record.internal_fistula;
|
394
|
|
-
|
|
393
|
+ return this.record.internal_fistula
|
395
|
394
|
},
|
396
|
395
|
|
397
|
396
|
internal_fistula_skin: function() {
|
398
|
397
|
if (this.record.id == 0) {
|
399
|
|
- return "-";
|
|
398
|
+ return '-'
|
400
|
399
|
}
|
401
|
|
- return this.record.internal_fistula_skin;
|
|
400
|
+ return this.record.internal_fistula_skin
|
402
|
401
|
},
|
403
|
402
|
|
404
|
403
|
is_hemorrhage: function() {
|
405
|
404
|
if (this.record.id == 0) {
|
406
|
|
- return false;
|
|
405
|
+ return false
|
407
|
406
|
}
|
408
|
|
- return this.record.is_hemorrhage == 1;
|
|
407
|
+ return this.record.is_hemorrhage == 1
|
409
|
408
|
},
|
410
|
409
|
hemorrhage: function() {
|
411
|
410
|
if (this.record.id == 0) {
|
412
|
|
- return "-";
|
|
411
|
+ return '-'
|
413
|
412
|
}
|
414
|
|
- return this.record.hemorrhage;
|
|
413
|
+ return this.record.hemorrhage
|
415
|
414
|
},
|
416
|
415
|
hemorrhage_other: function() {
|
417
|
416
|
if (this.record.id == 0) {
|
418
|
|
- return "-";
|
|
417
|
+ return '-'
|
419
|
418
|
}
|
420
|
|
- return this.record.hemorrhage_other;
|
|
419
|
+ return this.record.hemorrhage_other
|
421
|
420
|
},
|
422
|
421
|
|
423
|
422
|
remark: function() {
|
424
|
423
|
if (this.record.id == 0) {
|
425
|
|
- return "";
|
|
424
|
+ return ''
|
426
|
425
|
}
|
427
|
|
- return this.record.remark;
|
|
426
|
+ return this.record.remark
|
428
|
427
|
},
|
429
|
428
|
dialysis_count: function() {
|
430
|
|
- if (this.record == null || this.record.id == "") {
|
431
|
|
- return "-";
|
|
429
|
+ if (this.record == null || this.record.id == '') {
|
|
430
|
+ return '-'
|
432
|
431
|
}
|
433
|
|
- return this.record.dialysis_count;
|
|
432
|
+ return this.record.dialysis_count
|
434
|
433
|
},
|
435
|
434
|
internal_fistula_other: function() {
|
436
|
|
- if (this.record == null || this.record.id == "") {
|
437
|
|
- return "-";
|
|
435
|
+ if (this.record == null || this.record.id == '') {
|
|
436
|
+ return '-'
|
438
|
437
|
}
|
439
|
|
- return this.record.internal_fistula_other;
|
|
438
|
+ return this.record.internal_fistula_other
|
440
|
439
|
},
|
441
|
440
|
venous_catheterization_part_other: function() {
|
442
|
|
- if (this.record == null || this.record.id == "") {
|
443
|
|
- return "-";
|
|
441
|
+ if (this.record == null || this.record.id == '') {
|
|
442
|
+ return '-'
|
444
|
443
|
}
|
445
|
|
- return this.record.venous_catheterization_part_other;
|
|
444
|
+ return this.record.venous_catheterization_part_other
|
446
|
445
|
},
|
447
|
446
|
emergency_treatment_other: function() {
|
448
|
|
- if (this.record == null || this.record.id == "") {
|
449
|
|
- return "-";
|
|
447
|
+ if (this.record == null || this.record.id == '') {
|
|
448
|
+ return '-'
|
450
|
449
|
}
|
451
|
|
- return this.record.emergency_treatment_other;
|
|
450
|
+ return this.record.emergency_treatment_other
|
452
|
451
|
},
|
453
|
452
|
blood_access_internal_fistula: function() {
|
454
|
|
- var name1 = "";
|
455
|
|
- var name2 = "";
|
|
453
|
+ var name1 = ''
|
|
454
|
+ var name2 = ''
|
456
|
455
|
|
457
|
|
- if (this.record == null || this.record.id == "") {
|
458
|
|
- return "-";
|
|
456
|
+ if (this.record == null || this.record.id == '') {
|
|
457
|
+ return '-'
|
459
|
458
|
}
|
460
|
459
|
if (this.record.blood_access_internal_fistula == undefined) {
|
461
|
|
- name1 = "";
|
|
460
|
+ name1 = ''
|
462
|
461
|
} else {
|
463
|
|
- name1 = this.record.blood_access_internal_fistula + ",";
|
|
462
|
+ name1 = this.record.blood_access_internal_fistula + ','
|
464
|
463
|
}
|
465
|
464
|
if (this.record.internal_fistula_other == undefined) {
|
466
|
|
- name2 = "";
|
|
465
|
+ name2 = ''
|
467
|
466
|
} else {
|
468
|
|
- name2 = this.record.internal_fistula_other;
|
|
467
|
+ name2 = this.record.internal_fistula_other
|
469
|
468
|
}
|
470
|
469
|
|
471
|
|
- return name1 + name2;
|
|
470
|
+ return name1 + name2
|
472
|
471
|
},
|
473
|
472
|
ductus_arantii_other: function() {
|
474
|
|
- if (this.record == null || this.record.id == "") {
|
475
|
|
- return "-";
|
|
473
|
+ if (this.record == null || this.record.id == '') {
|
|
474
|
+ return '-'
|
476
|
475
|
}
|
477
|
|
- return this.record.ductus_arantii_other;
|
|
476
|
+ return this.record.ductus_arantii_other
|
478
|
477
|
},
|
479
|
478
|
infect_other: function() {
|
480
|
|
- if (this.record == null || this.record.id == "") {
|
481
|
|
- return "-";
|
|
479
|
+ if (this.record == null || this.record.id == '') {
|
|
480
|
+ return '-'
|
482
|
481
|
}
|
483
|
|
- return this.record.infect_other;
|
|
482
|
+ return this.record.infect_other
|
484
|
483
|
},
|
485
|
484
|
skin_other: function() {
|
486
|
|
- if (this.record == null || this.record.id == "") {
|
487
|
|
- return "-";
|
|
485
|
+ if (this.record == null || this.record.id == '') {
|
|
486
|
+ return '-'
|
488
|
487
|
}
|
489
|
|
- return this.record.skin_other;
|
|
488
|
+ return this.record.skin_other
|
490
|
489
|
}
|
491
|
490
|
},
|
492
|
491
|
methods: {
|
493
|
492
|
getBloodAccessPart: function(id) {
|
494
|
|
- var BloodAccessPart = getDataConfig("hemodialysis", "vascular_access");
|
495
|
|
- var BloodAccessPartName = "";
|
|
493
|
+ var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
|
|
494
|
+ var BloodAccessPartName = ''
|
496
|
495
|
for (let i = 0; i < BloodAccessPart.length; i++) {
|
497
|
496
|
if (BloodAccessPart[i].id == id) {
|
498
|
|
- BloodAccessPartName = BloodAccessPart[i].name;
|
|
497
|
+ BloodAccessPartName = BloodAccessPart[i].name
|
499
|
498
|
}
|
500
|
499
|
}
|
501
|
|
- return BloodAccessPartName;
|
|
500
|
+ return BloodAccessPartName
|
502
|
501
|
},
|
503
|
502
|
getBloodAccessOpera: function(id) {
|
504
|
503
|
var BloodAccessOpera = getDataConfig(
|
505
|
|
- "hemodialysis",
|
506
|
|
- "vascular_access_desc"
|
507
|
|
- );
|
508
|
|
- var BloodAccessOperaName = "";
|
|
504
|
+ 'hemodialysis',
|
|
505
|
+ 'vascular_access_desc'
|
|
506
|
+ )
|
|
507
|
+ var BloodAccessOperaName = ''
|
509
|
508
|
for (let i = 0; i < BloodAccessOpera.length; i++) {
|
510
|
509
|
if (BloodAccessOpera[i].id == id) {
|
511
|
|
- BloodAccessOperaName = BloodAccessOpera[i].name;
|
|
510
|
+ BloodAccessOperaName = BloodAccessOpera[i].name
|
512
|
511
|
}
|
513
|
512
|
}
|
514
|
|
- return BloodAccessOperaName;
|
|
513
|
+ return BloodAccessOperaName
|
515
|
514
|
},
|
516
|
515
|
|
517
|
516
|
getBloodAccessInternalFistula: function(id) {
|
518
|
517
|
var BloodAccessInternalFistulaOptions = this.$store.getters
|
519
|
|
- .blood_access_internal_fistula;
|
520
|
|
- var BloodAccessInternalFistulaName = "";
|
|
518
|
+ .blood_access_internal_fistula
|
|
519
|
+ var BloodAccessInternalFistulaName = ''
|
521
|
520
|
for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
|
522
|
521
|
if (BloodAccessInternalFistulaOptions[i].id == id) {
|
523
|
522
|
BloodAccessInternalFistulaName =
|
524
|
|
- BloodAccessInternalFistulaOptions[i].name;
|
|
523
|
+ BloodAccessInternalFistulaOptions[i].name
|
525
|
524
|
}
|
526
|
525
|
}
|
527
|
|
- return BloodAccessInternalFistulaName;
|
|
526
|
+ return BloodAccessInternalFistulaName
|
528
|
527
|
},
|
529
|
528
|
getBloodAccessNoise: function(id) {
|
530
|
|
- var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
|
531
|
|
- var BloodAccessNoiseName = "";
|
|
529
|
+ var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
|
|
530
|
+ var BloodAccessNoiseName = ''
|
532
|
531
|
for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
|
533
|
532
|
if (BloodAccessNoiseOptions[i].id == id) {
|
534
|
|
- BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
|
|
533
|
+ BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
|
535
|
534
|
}
|
536
|
535
|
}
|
537
|
|
- return BloodAccessNoiseName;
|
|
536
|
+ return BloodAccessNoiseName
|
538
|
537
|
},
|
539
|
538
|
getVenousCatheterization: function(id) {
|
540
|
539
|
var VenousCatheterizationOptions = this.$store.getters
|
541
|
|
- .venous_catheterization;
|
542
|
|
- var VenousCatheterizationName = "";
|
|
540
|
+ .venous_catheterization
|
|
541
|
+ var VenousCatheterizationName = ''
|
543
|
542
|
for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
|
544
|
543
|
if (VenousCatheterizationOptions[i].id == id) {
|
545
|
|
- VenousCatheterizationName = VenousCatheterizationOptions[i].name;
|
|
544
|
+ VenousCatheterizationName = VenousCatheterizationOptions[i].name
|
546
|
545
|
}
|
547
|
546
|
}
|
548
|
|
- return VenousCatheterizationName;
|
|
547
|
+ return VenousCatheterizationName
|
549
|
548
|
},
|
550
|
549
|
getWay: function(id) {
|
551
|
|
- var PunctureWayOptions = this.$store.getters.puncture_way;
|
552
|
|
- var PunctureWayOptionsName = "";
|
|
550
|
+ var PunctureWayOptions = getDataConfig('hemodialysis', 'puncture_method')
|
|
551
|
+ var PunctureWayOptionsName = ''
|
553
|
552
|
for (let i = 0; i < PunctureWayOptions.length; i++) {
|
554
|
553
|
if (PunctureWayOptions[i].id == id) {
|
555
|
|
- PunctureWayOptionsName = PunctureWayOptions[i].name;
|
|
554
|
+ PunctureWayOptionsName = PunctureWayOptions[i].name
|
556
|
555
|
}
|
557
|
556
|
}
|
558
|
|
- return PunctureWayOptionsName;
|
|
557
|
+ return PunctureWayOptionsName
|
559
|
558
|
},
|
560
|
559
|
getVenousCatheterizationPart: function(id) {
|
561
|
560
|
var venousCatheterizationPartOptions = this.$store.getters
|
562
|
|
- .venous_catheterization_part;
|
563
|
|
- var venousCatheterizationPartName = "";
|
|
561
|
+ .venous_catheterization_part
|
|
562
|
+ var venousCatheterizationPartName = ''
|
564
|
563
|
for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
|
565
|
564
|
if (venousCatheterizationPartOptions[i].id == id) {
|
566
|
565
|
venousCatheterizationPartName =
|
567
|
|
- venousCatheterizationPartOptions[i].name;
|
|
566
|
+ venousCatheterizationPartOptions[i].name
|
568
|
567
|
}
|
569
|
568
|
}
|
570
|
|
- return venousCatheterizationPartName;
|
|
569
|
+ return venousCatheterizationPartName
|
571
|
570
|
},
|
572
|
571
|
getDuctusArantii: function(id) {
|
573
|
|
- var ductusArantiiOptions = this.$store.getters.ductus_arantii;
|
574
|
|
- var ductusArantiiOptionsName = "";
|
|
572
|
+ var ductusArantiiOptions = this.$store.getters.ductus_arantii
|
|
573
|
+ var ductusArantiiOptionsName = ''
|
575
|
574
|
for (let i = 0; i < ductusArantiiOptions.length; i++) {
|
576
|
575
|
if (ductusArantiiOptions[i].id == id) {
|
577
|
|
- ductusArantiiOptionsName = ductusArantiiOptions[i].name;
|
|
576
|
+ ductusArantiiOptionsName = ductusArantiiOptions[i].name
|
578
|
577
|
}
|
579
|
578
|
}
|
580
|
|
- return ductusArantiiOptionsName;
|
|
579
|
+ return ductusArantiiOptionsName
|
581
|
580
|
},
|
582
|
581
|
getEmergencyTreatment: function(id) {
|
583
|
|
- var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
|
584
|
|
- var emergencyTreatmentName = "";
|
|
582
|
+ var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
|
|
583
|
+ var emergencyTreatmentName = ''
|
585
|
584
|
for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
|
586
|
585
|
if (emergencyTreatmentOptions[i].id == id) {
|
587
|
|
- emergencyTreatmentName = emergencyTreatmentOptions[i].name;
|
|
586
|
+ emergencyTreatmentName = emergencyTreatmentOptions[i].name
|
588
|
587
|
}
|
589
|
588
|
}
|
590
|
|
- return emergencyTreatmentName;
|
|
589
|
+ return emergencyTreatmentName
|
591
|
590
|
},
|
592
|
591
|
isShow(name) {
|
593
|
|
- var filedList = store.getters.xt_user.fileds;
|
594
|
|
- var arr = [];
|
|
592
|
+ var filedList = store.getters.xt_user.fileds
|
|
593
|
+ var arr = []
|
595
|
594
|
for (let i = 0; i < filedList.length; i++) {
|
596
|
595
|
if (
|
597
|
596
|
filedList[i].module == 3 &&
|
598
|
597
|
filedList[i].filed_name_cn == name &&
|
599
|
598
|
filedList[i].is_show == 1
|
600
|
599
|
) {
|
601
|
|
- return true;
|
|
600
|
+ return true
|
602
|
601
|
}
|
603
|
602
|
}
|
604
|
|
- return false;
|
|
603
|
+ return false
|
605
|
604
|
},
|
606
|
605
|
getSkin: function(id) {
|
607
|
|
- var skinOptions = this.$store.getters.skin;
|
608
|
|
- var skinName = "";
|
|
606
|
+ var skinOptions = this.$store.getters.skin
|
|
607
|
+ var skinName = ''
|
609
|
608
|
for (let i = 0; i < skinOptions.length; i++) {
|
610
|
609
|
if (skinOptions[i].id == id) {
|
611
|
|
- skinName = skinOptions[i].name;
|
|
610
|
+ skinName = skinOptions[i].name
|
612
|
611
|
}
|
613
|
612
|
}
|
614
|
|
- return skinName;
|
|
613
|
+ return skinName
|
615
|
614
|
}
|
616
|
615
|
}
|
617
|
|
-};
|
|
616
|
+}
|
618
|
617
|
</script>
|
619
|
618
|
|
620
|
619
|
<style rel="stylesheet/scss" lang="scss" scoped></style>
|