|
@@ -117,7 +117,6 @@
|
117
|
117
|
<span class="unit"></span>
|
118
|
118
|
</li>
|
119
|
119
|
|
120
|
|
-
|
121
|
120
|
<!-- </ul>
|
122
|
121
|
|
123
|
122
|
<ul> -->
|
|
@@ -241,8 +240,8 @@
|
241
|
240
|
<span class="unit"> </span>
|
242
|
241
|
</li>
|
243
|
242
|
|
244
|
|
- <li v-if="isShow('内瘘皮肤情况')">
|
245
|
|
- <label>内瘘皮肤情况: </label>
|
|
243
|
+ <li v-if="isShow('血管通路皮肤情况')">
|
|
244
|
+ <label>血管通路皮肤情况: </label>
|
246
|
245
|
<span class="content">{{ internal_fistula_skin }}</span>
|
247
|
246
|
<span class="unit"></span>
|
248
|
247
|
</li>
|
|
@@ -256,422 +255,421 @@
|
256
|
255
|
</template>
|
257
|
256
|
|
258
|
257
|
<script>
|
259
|
|
- import {getDataConfig} from "@/utils/data";
|
|
258
|
+import { getDataConfig } from "@/utils/data";
|
|
259
|
+
|
|
260
|
+export default {
|
|
261
|
+ name: "assessmentBefore",
|
|
262
|
+
|
|
263
|
+ data() {
|
|
264
|
+ return {
|
|
265
|
+ title: "透前评估 ",
|
|
266
|
+ template_id: 0
|
|
267
|
+ };
|
|
268
|
+ },
|
|
269
|
+ props: {
|
|
270
|
+ record: {
|
|
271
|
+ type: Object
|
|
272
|
+ },
|
|
273
|
+ dry_weights: {
|
|
274
|
+ type: Object
|
|
275
|
+ }
|
|
276
|
+ },
|
|
277
|
+ created() {
|
|
278
|
+ this.template_id = this.$store.getters.user.template_info.template_id;
|
|
279
|
+ },
|
|
280
|
+ computed: {
|
|
281
|
+ internal_fistula_skin: function() {
|
|
282
|
+ if (this.record.id == 0) {
|
|
283
|
+ return "-";
|
|
284
|
+ }
|
260
|
285
|
|
261
|
|
- export default {
|
262
|
|
- name: "assessmentBefore",
|
|
286
|
+ return this.record.internal_fistula_skin;
|
|
287
|
+ },
|
263
|
288
|
|
264
|
|
- data() {
|
265
|
|
- return {
|
266
|
|
- title: "透前评估 ",
|
267
|
|
- template_id: 0
|
268
|
|
- };
|
|
289
|
+ machine_type: function() {
|
|
290
|
+ if (this.record == null || this.record.id == "") {
|
|
291
|
+ return "";
|
|
292
|
+ }
|
|
293
|
+ return this.record.machine_type;
|
269
|
294
|
},
|
270
|
|
- props: {
|
271
|
|
- record: {
|
272
|
|
- type: Object
|
273
|
|
- },
|
274
|
|
- dry_weights: {
|
275
|
|
- type: Object
|
|
295
|
+ weight_before: function() {
|
|
296
|
+ if (this.record == null || this.record.id == "") {
|
|
297
|
+ return "-";
|
276
|
298
|
}
|
|
299
|
+ return this.record.weight_before;
|
277
|
300
|
},
|
278
|
|
- created() {
|
279
|
|
- this.template_id = this.$store.getters.user.template_info.template_id;
|
|
301
|
+ additional_weight: function() {
|
|
302
|
+ if (this.record == null || this.record.id == "") {
|
|
303
|
+ return "-";
|
|
304
|
+ }
|
|
305
|
+ return this.record.additional_weight;
|
|
306
|
+ },
|
|
307
|
+ systolic_blood_pressure: function() {
|
|
308
|
+ if (this.record == null || this.record.id == "") {
|
|
309
|
+ return "-";
|
|
310
|
+ }
|
|
311
|
+ return this.record.systolic_blood_pressure;
|
|
312
|
+ },
|
|
313
|
+ last_post_dialysis: function() {
|
|
314
|
+ if (this.record == null || this.record.id == "") {
|
|
315
|
+ return "-";
|
|
316
|
+ }
|
|
317
|
+ return this.record.last_post_dialysis;
|
280
|
318
|
},
|
281
|
|
- computed: {
|
282
|
|
- internal_fistula_skin: function () {
|
283
|
|
- if (this.record.id == 0) {
|
284
|
|
- return '-'
|
285
|
|
- }
|
286
|
|
-
|
287
|
|
-
|
288
|
|
- return this.record.internal_fistula_skin
|
289
|
|
- },
|
290
|
319
|
|
291
|
|
- machine_type: function () {
|
292
|
|
- if (this.record == null || this.record.id == "") {
|
293
|
|
- return "";
|
294
|
|
- }
|
295
|
|
- return this.record.machine_type;
|
296
|
|
- },
|
297
|
|
- weight_before: function () {
|
298
|
|
- if (this.record == null || this.record.id == "") {
|
299
|
|
- return "-";
|
300
|
|
- }
|
301
|
|
- return this.record.weight_before;
|
302
|
|
- },
|
303
|
|
- additional_weight: function () {
|
304
|
|
- if (this.record == null || this.record.id == "") {
|
305
|
|
- return "-";
|
306
|
|
- }
|
307
|
|
- return this.record.additional_weight;
|
308
|
|
- },
|
309
|
|
- systolic_blood_pressure: function () {
|
310
|
|
- if (this.record == null || this.record.id == "") {
|
311
|
|
- return "-";
|
312
|
|
- }
|
313
|
|
- return this.record.systolic_blood_pressure;
|
314
|
|
- },
|
315
|
|
- last_post_dialysis: function () {
|
316
|
|
- if (this.record == null || this.record.id == "") {
|
317
|
|
- return "-";
|
318
|
|
- }
|
319
|
|
- return this.record.last_post_dialysis;
|
320
|
|
- },
|
321
|
|
-
|
322
|
|
- dry_weight: function () {
|
323
|
|
- if (this.$store.getters.user.template_info.template_id == 6) {
|
324
|
|
- if (this.dry_weights != null && this.dry_weights.id > 0) {
|
325
|
|
- return this.dry_weights.dry_weight;
|
326
|
|
- } else {
|
327
|
|
- if (this.record == null || this.record.id == "") {
|
328
|
|
- return "-";
|
329
|
|
- }
|
330
|
|
- return this.record.dry_weight;
|
331
|
|
- }
|
|
320
|
+ dry_weight: function() {
|
|
321
|
+ if (this.$store.getters.user.template_info.template_id == 6) {
|
|
322
|
+ if (this.dry_weights != null && this.dry_weights.id > 0) {
|
|
323
|
+ return this.dry_weights.dry_weight;
|
332
|
324
|
} else {
|
333
|
325
|
if (this.record == null || this.record.id == "") {
|
334
|
326
|
return "-";
|
335
|
327
|
}
|
336
|
|
-
|
337
|
328
|
return this.record.dry_weight;
|
338
|
329
|
}
|
339
|
|
- },
|
340
|
|
- diastolic_blood_pressure: function () {
|
341
|
|
- if (this.record == null || this.record.id == "") {
|
342
|
|
- return "-";
|
343
|
|
- }
|
344
|
|
- return this.record.diastolic_blood_pressure;
|
345
|
|
- },
|
346
|
|
- dialysis_interphase: function () {
|
347
|
|
- if (this.record == null || this.record.id == "") {
|
348
|
|
- return "-";
|
349
|
|
- }
|
350
|
|
- return this.record.dialysis_interphase;
|
351
|
|
- },
|
352
|
|
- catheter: function () {
|
353
|
|
- if (this.record == null || this.record.id == "") {
|
354
|
|
- return "-";
|
355
|
|
- }
|
356
|
|
- return this.record.catheter;
|
357
|
|
- },
|
358
|
|
-
|
359
|
|
- temperature: function () {
|
360
|
|
- if (this.record == null || this.record.id == "") {
|
361
|
|
- return "-";
|
362
|
|
- }
|
363
|
|
- return this.record.temperature;
|
364
|
|
- },
|
365
|
|
- pulse_frequency: function () {
|
|
330
|
+ } else {
|
366
|
331
|
if (this.record == null || this.record.id == "") {
|
367
|
332
|
return "-";
|
368
|
333
|
}
|
369
|
|
- return this.record.pulse_frequency;
|
370
|
|
- },
|
371
|
|
- breathing_rate: function () {
|
372
|
|
- if (this.record == null || this.record.id == "") {
|
373
|
|
- return "-";
|
374
|
|
- }
|
375
|
|
- return this.record.breathing_rate;
|
376
|
|
- },
|
377
|
|
- symptom_before_dialysis: function () {
|
378
|
|
- if (this.record == null || this.record.id == "") {
|
379
|
|
- return "-";
|
380
|
|
- }
|
381
|
|
- return this.record.symptom_before_dialysis;
|
382
|
|
- },
|
383
|
|
- complication: function () {
|
384
|
|
- if (this.record == null || this.record.id == "") {
|
385
|
|
- return "-";
|
386
|
|
- }
|
387
|
|
- return this.record.complication;
|
388
|
|
- },
|
389
|
|
- internal_fistula: function () {
|
390
|
|
- console.log(this.record)
|
391
|
|
- if (this.record == null || this.record.id == "") {
|
392
|
|
- return "-";
|
393
|
|
- }else{
|
394
|
|
- return this.record.internal_fistula
|
395
|
|
- // if (this.record != null && this.record.id != undefined && this.record.id > 0) {
|
396
|
|
- // var internal_fistula_list = getDataConfig(
|
397
|
|
- // "hemodialysis",
|
398
|
|
- // "internal_fistula"
|
399
|
|
- // );
|
400
|
|
- // var value = ""
|
401
|
|
- // if (this.record.internal_fistula.length > 0) {
|
402
|
|
- // var internal_fistula_value_arr = this.record.internal_fistula.split(",")
|
403
|
|
- // for (let a = 0; a < internal_fistula_value_arr.length; a++) {
|
404
|
|
- // for (let i = 0; i < internal_fistula_list.length; i++) {
|
405
|
|
- // console.log(internal_fistula_list[i].name)
|
406
|
|
- // if (internal_fistula_value_arr[a] == internal_fistula_list[i].name) {
|
407
|
|
- // if (value.length == 0) {
|
408
|
|
- // value = internal_fistula_value_arr[a]
|
409
|
|
- // } else {
|
410
|
|
- // value = value + "," + internal_fistula_value_arr[a]
|
411
|
|
- // }
|
412
|
|
- // }
|
413
|
|
- // }
|
414
|
|
- // }
|
415
|
|
- // }
|
416
|
|
- // return value;
|
417
|
|
- // }else{
|
418
|
|
- // return "-";
|
419
|
|
- //
|
420
|
|
- // }
|
421
|
334
|
|
|
335
|
+ return this.record.dry_weight;
|
|
336
|
+ }
|
|
337
|
+ },
|
|
338
|
+ diastolic_blood_pressure: function() {
|
|
339
|
+ if (this.record == null || this.record.id == "") {
|
|
340
|
+ return "-";
|
|
341
|
+ }
|
|
342
|
+ return this.record.diastolic_blood_pressure;
|
|
343
|
+ },
|
|
344
|
+ dialysis_interphase: function() {
|
|
345
|
+ if (this.record == null || this.record.id == "") {
|
|
346
|
+ return "-";
|
|
347
|
+ }
|
|
348
|
+ return this.record.dialysis_interphase;
|
|
349
|
+ },
|
|
350
|
+ catheter: function() {
|
|
351
|
+ if (this.record == null || this.record.id == "") {
|
|
352
|
+ return "-";
|
|
353
|
+ }
|
|
354
|
+ return this.record.catheter;
|
|
355
|
+ },
|
422
|
356
|
|
423
|
|
- }
|
424
|
|
-
|
|
357
|
+ temperature: function() {
|
|
358
|
+ if (this.record == null || this.record.id == "") {
|
|
359
|
+ return "-";
|
|
360
|
+ }
|
|
361
|
+ return this.record.temperature;
|
|
362
|
+ },
|
|
363
|
+ pulse_frequency: function() {
|
|
364
|
+ if (this.record == null || this.record.id == "") {
|
|
365
|
+ return "-";
|
|
366
|
+ }
|
|
367
|
+ return this.record.pulse_frequency;
|
|
368
|
+ },
|
|
369
|
+ breathing_rate: function() {
|
|
370
|
+ if (this.record == null || this.record.id == "") {
|
|
371
|
+ return "-";
|
|
372
|
+ }
|
|
373
|
+ return this.record.breathing_rate;
|
|
374
|
+ },
|
|
375
|
+ symptom_before_dialysis: function() {
|
|
376
|
+ if (this.record == null || this.record.id == "") {
|
|
377
|
+ return "-";
|
|
378
|
+ }
|
|
379
|
+ return this.record.symptom_before_dialysis;
|
|
380
|
+ },
|
|
381
|
+ complication: function() {
|
|
382
|
+ if (this.record == null || this.record.id == "") {
|
|
383
|
+ return "-";
|
|
384
|
+ }
|
|
385
|
+ return this.record.complication;
|
|
386
|
+ },
|
|
387
|
+ internal_fistula: function() {
|
|
388
|
+ console.log(this.record);
|
|
389
|
+ if (this.record == null || this.record.id == "") {
|
|
390
|
+ return "-";
|
|
391
|
+ } else {
|
|
392
|
+ return this.record.internal_fistula;
|
|
393
|
+ // if (this.record != null && this.record.id != undefined && this.record.id > 0) {
|
|
394
|
+ // var internal_fistula_list = getDataConfig(
|
|
395
|
+ // "hemodialysis",
|
|
396
|
+ // "internal_fistula"
|
|
397
|
+ // );
|
|
398
|
+ // var value = ""
|
|
399
|
+ // if (this.record.internal_fistula.length > 0) {
|
|
400
|
+ // var internal_fistula_value_arr = this.record.internal_fistula.split(",")
|
|
401
|
+ // for (let a = 0; a < internal_fistula_value_arr.length; a++) {
|
|
402
|
+ // for (let i = 0; i < internal_fistula_list.length; i++) {
|
|
403
|
+ // console.log(internal_fistula_list[i].name)
|
|
404
|
+ // if (internal_fistula_value_arr[a] == internal_fistula_list[i].name) {
|
|
405
|
+ // if (value.length == 0) {
|
|
406
|
+ // value = internal_fistula_value_arr[a]
|
|
407
|
+ // } else {
|
|
408
|
+ // value = value + "," + internal_fistula_value_arr[a]
|
|
409
|
+ // }
|
|
410
|
+ // }
|
|
411
|
+ // }
|
|
412
|
+ // }
|
|
413
|
+ // }
|
|
414
|
+ // return value;
|
|
415
|
+ // }else{
|
|
416
|
+ // return "-";
|
|
417
|
+ //
|
|
418
|
+ // }
|
|
419
|
+ }
|
|
420
|
+ },
|
|
421
|
+ is_hemorrhage: function() {
|
|
422
|
+ if (this.record == null || this.record.id == "") {
|
|
423
|
+ return false;
|
|
424
|
+ }
|
|
425
|
+ return this.record.is_hemorrhage == 1;
|
|
426
|
+ },
|
|
427
|
+ hemorrhage: function() {
|
|
428
|
+ if (this.record == null || this.record.id == "") {
|
|
429
|
+ return "-";
|
|
430
|
+ }
|
|
431
|
+ return this.record.hemorrhage;
|
|
432
|
+ },
|
|
433
|
+ hemorrhage_other: function() {
|
|
434
|
+ if (this.record == null || this.record.id == "") {
|
|
435
|
+ return "-";
|
|
436
|
+ }
|
|
437
|
+ return this.record.hemorrhage_other;
|
|
438
|
+ },
|
425
|
439
|
|
426
|
|
- },
|
427
|
|
- is_hemorrhage: function () {
|
428
|
|
- if (this.record == null || this.record.id == "") {
|
429
|
|
- return false;
|
430
|
|
- }
|
431
|
|
- return this.record.is_hemorrhage == 1;
|
432
|
|
- },
|
433
|
|
- hemorrhage: function () {
|
434
|
|
- if (this.record == null || this.record.id == "") {
|
435
|
|
- return "-";
|
436
|
|
- }
|
437
|
|
- return this.record.hemorrhage;
|
438
|
|
- },
|
439
|
|
- hemorrhage_other: function () {
|
440
|
|
- if (this.record == null || this.record.id == "") {
|
441
|
|
- return "-";
|
442
|
|
- }
|
443
|
|
- return this.record.hemorrhage_other;
|
444
|
|
- },
|
|
440
|
+ remark: function() {
|
|
441
|
+ if (this.record == null || this.record.id == "") {
|
|
442
|
+ return "";
|
|
443
|
+ }
|
|
444
|
+ return this.record.remark;
|
|
445
|
+ },
|
|
446
|
+ dialysis_count: function() {
|
|
447
|
+ if (this.record == null || this.record.id == "") {
|
|
448
|
+ return "-";
|
|
449
|
+ }
|
|
450
|
+ return this.record.dialysis_count;
|
|
451
|
+ },
|
|
452
|
+ internal_fistula_other: function() {
|
|
453
|
+ if (this.record == null || this.record.id == "") {
|
|
454
|
+ return "-";
|
|
455
|
+ }
|
|
456
|
+ return this.record.internal_fistula_other;
|
|
457
|
+ },
|
|
458
|
+ venous_catheterization_part_other: function() {
|
|
459
|
+ if (this.record == null || this.record.id == "") {
|
|
460
|
+ return "-";
|
|
461
|
+ }
|
|
462
|
+ return this.record.venous_catheterization_part_other;
|
|
463
|
+ },
|
|
464
|
+ emergency_treatment_other: function() {
|
|
465
|
+ if (this.record == null || this.record.id == "") {
|
|
466
|
+ return "-";
|
|
467
|
+ }
|
|
468
|
+ return this.record.emergency_treatment_other;
|
|
469
|
+ },
|
|
470
|
+ blood_access_internal_fistula: function() {
|
|
471
|
+ var name1 = "";
|
|
472
|
+ var name2 = "";
|
445
|
473
|
|
446
|
|
- remark: function () {
|
447
|
|
- if (this.record == null || this.record.id == "") {
|
448
|
|
- return "";
|
449
|
|
- }
|
450
|
|
- return this.record.remark;
|
451
|
|
- },
|
452
|
|
- dialysis_count: function () {
|
453
|
|
- if (this.record == null || this.record.id == "") {
|
454
|
|
- return "-";
|
455
|
|
- }
|
456
|
|
- return this.record.dialysis_count;
|
457
|
|
- },
|
458
|
|
- internal_fistula_other: function () {
|
459
|
|
- if (this.record == null || this.record.id == "") {
|
460
|
|
- return "-";
|
461
|
|
- }
|
462
|
|
- return this.record.internal_fistula_other;
|
463
|
|
- },
|
464
|
|
- venous_catheterization_part_other: function () {
|
465
|
|
- if (this.record == null || this.record.id == "") {
|
466
|
|
- return "-";
|
467
|
|
- }
|
468
|
|
- return this.record.venous_catheterization_part_other;
|
469
|
|
- },
|
470
|
|
- emergency_treatment_other: function () {
|
471
|
|
- if (this.record == null || this.record.id == "") {
|
472
|
|
- return "-";
|
473
|
|
- }
|
474
|
|
- return this.record.emergency_treatment_other;
|
475
|
|
- },
|
476
|
|
- blood_access_internal_fistula: function () {
|
477
|
|
- var name1 = "";
|
478
|
|
- var name2 = "";
|
|
474
|
+ if (this.record == null || this.record.id == "") {
|
|
475
|
+ return "-";
|
|
476
|
+ }
|
|
477
|
+ if (this.record.blood_access_internal_fistula == undefined) {
|
|
478
|
+ name1 = "";
|
|
479
|
+ } else {
|
|
480
|
+ name1 = this.record.blood_access_internal_fistula + ",";
|
|
481
|
+ }
|
|
482
|
+ if (this.record.internal_fistula_other == undefined) {
|
|
483
|
+ name2 = "";
|
|
484
|
+ } else {
|
|
485
|
+ name2 = this.record.internal_fistula_other;
|
|
486
|
+ }
|
479
|
487
|
|
480
|
|
- if (this.record == null || this.record.id == "") {
|
481
|
|
- return "-";
|
482
|
|
- }
|
483
|
|
- if (this.record.blood_access_internal_fistula == undefined) {
|
484
|
|
- name1 = "";
|
485
|
|
- } else {
|
486
|
|
- name1 = this.record.blood_access_internal_fistula + ",";
|
|
488
|
+ return name1 + name2;
|
|
489
|
+ },
|
|
490
|
+ infect_other: function() {
|
|
491
|
+ if (this.record == null || this.record.id == "") {
|
|
492
|
+ return "-";
|
|
493
|
+ }
|
|
494
|
+ return this.record.infect_other;
|
|
495
|
+ },
|
|
496
|
+ skin_other: function() {
|
|
497
|
+ if (this.record == null || this.record.id == "") {
|
|
498
|
+ return "-";
|
|
499
|
+ }
|
|
500
|
+ return this.record.skin_other;
|
|
501
|
+ },
|
|
502
|
+ ductus_arantii_other: function() {
|
|
503
|
+ if (this.record == null || this.record.id == "") {
|
|
504
|
+ return "-";
|
|
505
|
+ }
|
|
506
|
+ return this.record.ductus_arantii_other;
|
|
507
|
+ }
|
|
508
|
+ },
|
|
509
|
+ methods: {
|
|
510
|
+ getBloodAccessPart: function(id) {
|
|
511
|
+ var BloodAccessPart = getDataConfig("hemodialysis", "vascular_access");
|
|
512
|
+ var BloodAccessPartName = "";
|
|
513
|
+ for (let i = 0; i < BloodAccessPart.length; i++) {
|
|
514
|
+ if (BloodAccessPart[i].id == id) {
|
|
515
|
+ BloodAccessPartName = BloodAccessPart[i].name;
|
487
|
516
|
}
|
488
|
|
- if (this.record.internal_fistula_other == undefined) {
|
489
|
|
- name2 = "";
|
490
|
|
- } else {
|
491
|
|
- name2 = this.record.internal_fistula_other;
|
|
517
|
+ }
|
|
518
|
+ return BloodAccessPartName;
|
|
519
|
+ },
|
|
520
|
+ getBloodAccessOpera: function(id) {
|
|
521
|
+ var BloodAccessOpera = getDataConfig(
|
|
522
|
+ "hemodialysis",
|
|
523
|
+ "vascular_access_desc"
|
|
524
|
+ );
|
|
525
|
+ var BloodAccessOperaName = "";
|
|
526
|
+ for (let i = 0; i < BloodAccessOpera.length; i++) {
|
|
527
|
+ if (BloodAccessOpera[i].id == id) {
|
|
528
|
+ BloodAccessOperaName = BloodAccessOpera[i].name;
|
492
|
529
|
}
|
|
530
|
+ }
|
|
531
|
+ return BloodAccessOperaName;
|
|
532
|
+ },
|
|
533
|
+ isShow(name) {
|
|
534
|
+ var filedList = this.$store.getters.user.fileds;
|
493
|
535
|
|
494
|
|
- return name1 + name2;
|
495
|
|
- },
|
496
|
|
- infect_other: function () {
|
497
|
|
- if (this.record == null || this.record.id == "") {
|
498
|
|
- return "-";
|
499
|
|
- }
|
500
|
|
- return this.record.infect_other;
|
501
|
|
- },
|
502
|
|
- skin_other: function () {
|
503
|
|
- if (this.record == null || this.record.id == "") {
|
504
|
|
- return "-";
|
505
|
|
- }
|
506
|
|
- return this.record.skin_other;
|
507
|
|
- },
|
508
|
|
- ductus_arantii_other: function () {
|
509
|
|
- if (this.record == null || this.record.id == "") {
|
510
|
|
- return "-";
|
|
536
|
+ for (let i = 0; i < filedList.length; i++) {
|
|
537
|
+ if (
|
|
538
|
+ filedList[i].module == 3 &&
|
|
539
|
+ filedList[i].filed_name_cn == name &&
|
|
540
|
+ filedList[i].is_show == 1
|
|
541
|
+ ) {
|
|
542
|
+ return true;
|
511
|
543
|
}
|
512
|
|
- return this.record.ductus_arantii_other;
|
513
|
544
|
}
|
|
545
|
+ return false;
|
514
|
546
|
},
|
515
|
|
- methods: {
|
516
|
|
- getBloodAccessPart: function (id) {
|
517
|
|
- var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
|
518
|
|
- var BloodAccessPartName = ''
|
519
|
|
- for (let i = 0; i < BloodAccessPart.length; i++) {
|
520
|
|
- if (BloodAccessPart[i].id == id) {
|
521
|
|
- BloodAccessPartName = BloodAccessPart[i].name
|
522
|
|
- }
|
|
547
|
+ getBloodAccessInternalFistula: function(id) {
|
|
548
|
+ var BloodAccessInternalFistulaOptions = this.$store.getters
|
|
549
|
+ .blood_access_internal_fistula;
|
|
550
|
+ var BloodAccessInternalFistulaName = "";
|
|
551
|
+ for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
|
|
552
|
+ if (BloodAccessInternalFistulaOptions[i].id == id) {
|
|
553
|
+ BloodAccessInternalFistulaName =
|
|
554
|
+ BloodAccessInternalFistulaOptions[i].name;
|
523
|
555
|
}
|
524
|
|
- return BloodAccessPartName
|
525
|
|
- },
|
526
|
|
- getBloodAccessOpera: function (id) {
|
527
|
|
- var BloodAccessOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
528
|
|
- var BloodAccessOperaName = ''
|
529
|
|
- for (let i = 0; i < BloodAccessOpera.length; i++) {
|
530
|
|
- if (BloodAccessOpera[i].id == id) {
|
531
|
|
- BloodAccessOperaName = BloodAccessOpera[i].name
|
532
|
|
- }
|
533
|
|
- }
|
534
|
|
- return BloodAccessOperaName
|
535
|
|
- },
|
536
|
|
- isShow(name) {
|
537
|
|
- var filedList = this.$store.getters.user.fileds;
|
538
|
|
-
|
539
|
|
- for (let i = 0; i < filedList.length; i++) {
|
540
|
|
- if (
|
541
|
|
- filedList[i].module == 3 &&
|
542
|
|
- filedList[i].filed_name_cn == name &&
|
543
|
|
- filedList[i].is_show == 1
|
544
|
|
- ) {
|
545
|
|
- return true;
|
546
|
|
- }
|
547
|
|
- }
|
548
|
|
- return false;
|
549
|
|
- },
|
550
|
|
- getBloodAccessInternalFistula: function (id) {
|
551
|
|
- var BloodAccessInternalFistulaOptions = this.$store.getters
|
552
|
|
- .blood_access_internal_fistula;
|
553
|
|
- var BloodAccessInternalFistulaName = "";
|
554
|
|
- for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
|
555
|
|
- if (BloodAccessInternalFistulaOptions[i].id == id) {
|
556
|
|
- BloodAccessInternalFistulaName =
|
557
|
|
- BloodAccessInternalFistulaOptions[i].name;
|
558
|
|
- }
|
559
|
|
- }
|
560
|
|
- return BloodAccessInternalFistulaName;
|
561
|
|
- },
|
562
|
|
- getBloodAccessNoise: function (id) {
|
563
|
|
- var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
|
564
|
|
- var BloodAccessNoiseName = "";
|
565
|
|
- for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
|
566
|
|
- if (BloodAccessNoiseOptions[i].id == id) {
|
567
|
|
- BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
|
568
|
|
- }
|
|
556
|
+ }
|
|
557
|
+ return BloodAccessInternalFistulaName;
|
|
558
|
+ },
|
|
559
|
+ getBloodAccessNoise: function(id) {
|
|
560
|
+ var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
|
|
561
|
+ var BloodAccessNoiseName = "";
|
|
562
|
+ for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
|
|
563
|
+ if (BloodAccessNoiseOptions[i].id == id) {
|
|
564
|
+ BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
|
569
|
565
|
}
|
570
|
|
- return BloodAccessNoiseName;
|
571
|
|
- },
|
572
|
|
- getVenousCatheterization: function (id) {
|
573
|
|
- var VenousCatheterizationOptions = this.$store.getters
|
574
|
|
- .venous_catheterization;
|
575
|
|
- var VenousCatheterizationName = "";
|
576
|
|
- for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
|
577
|
|
- if (VenousCatheterizationOptions[i].id == id) {
|
578
|
|
- VenousCatheterizationName = VenousCatheterizationOptions[i].name;
|
579
|
|
- }
|
|
566
|
+ }
|
|
567
|
+ return BloodAccessNoiseName;
|
|
568
|
+ },
|
|
569
|
+ getVenousCatheterization: function(id) {
|
|
570
|
+ var VenousCatheterizationOptions = this.$store.getters
|
|
571
|
+ .venous_catheterization;
|
|
572
|
+ var VenousCatheterizationName = "";
|
|
573
|
+ for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
|
|
574
|
+ if (VenousCatheterizationOptions[i].id == id) {
|
|
575
|
+ VenousCatheterizationName = VenousCatheterizationOptions[i].name;
|
580
|
576
|
}
|
581
|
|
- return VenousCatheterizationName;
|
582
|
|
- },
|
583
|
|
- getWay: function (id) {
|
584
|
|
- var PunctureWayOptions = this.$store.getters.puncture_way;
|
585
|
|
- var PunctureWayOptionsName = "";
|
586
|
|
- for (let i = 0; i < PunctureWayOptions.length; i++) {
|
587
|
|
- if (PunctureWayOptions[i].id == id) {
|
588
|
|
- PunctureWayOptionsName = PunctureWayOptions[i].name;
|
589
|
|
- }
|
|
577
|
+ }
|
|
578
|
+ return VenousCatheterizationName;
|
|
579
|
+ },
|
|
580
|
+ getWay: function(id) {
|
|
581
|
+ var PunctureWayOptions = this.$store.getters.puncture_way;
|
|
582
|
+ var PunctureWayOptionsName = "";
|
|
583
|
+ for (let i = 0; i < PunctureWayOptions.length; i++) {
|
|
584
|
+ if (PunctureWayOptions[i].id == id) {
|
|
585
|
+ PunctureWayOptionsName = PunctureWayOptions[i].name;
|
590
|
586
|
}
|
591
|
|
- return PunctureWayOptionsName;
|
592
|
|
- },
|
593
|
|
- getVenousCatheterizationPart: function (id) {
|
594
|
|
- var venousCatheterizationPartOptions = this.$store.getters
|
595
|
|
- .venous_catheterization_part;
|
596
|
|
- var venousCatheterizationPartName = "";
|
597
|
|
- for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
|
598
|
|
- if (venousCatheterizationPartOptions[i].id == id) {
|
599
|
|
- venousCatheterizationPartName =
|
600
|
|
- venousCatheterizationPartOptions[i].name;
|
601
|
|
- }
|
|
587
|
+ }
|
|
588
|
+ return PunctureWayOptionsName;
|
|
589
|
+ },
|
|
590
|
+ getVenousCatheterizationPart: function(id) {
|
|
591
|
+ var venousCatheterizationPartOptions = this.$store.getters
|
|
592
|
+ .venous_catheterization_part;
|
|
593
|
+ var venousCatheterizationPartName = "";
|
|
594
|
+ for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
|
|
595
|
+ if (venousCatheterizationPartOptions[i].id == id) {
|
|
596
|
+ venousCatheterizationPartName =
|
|
597
|
+ venousCatheterizationPartOptions[i].name;
|
602
|
598
|
}
|
603
|
|
- return venousCatheterizationPartName;
|
604
|
|
- },
|
605
|
|
- getDuctusArantii: function (id) {
|
606
|
|
- var ductusArantiiOptions = this.$store.getters.ductus_arantii;
|
607
|
|
- var ductusArantiiOptionsName = "";
|
608
|
|
- for (let i = 0; i < ductusArantiiOptions.length; i++) {
|
609
|
|
- if (ductusArantiiOptions[i].id == id) {
|
610
|
|
- ductusArantiiOptionsName = ductusArantiiOptions[i].name;
|
611
|
|
- }
|
|
599
|
+ }
|
|
600
|
+ return venousCatheterizationPartName;
|
|
601
|
+ },
|
|
602
|
+ getDuctusArantii: function(id) {
|
|
603
|
+ var ductusArantiiOptions = this.$store.getters.ductus_arantii;
|
|
604
|
+ var ductusArantiiOptionsName = "";
|
|
605
|
+ for (let i = 0; i < ductusArantiiOptions.length; i++) {
|
|
606
|
+ if (ductusArantiiOptions[i].id == id) {
|
|
607
|
+ ductusArantiiOptionsName = ductusArantiiOptions[i].name;
|
612
|
608
|
}
|
613
|
|
- return ductusArantiiOptionsName;
|
614
|
|
- },
|
615
|
|
- getEmergencyTreatment: function (id) {
|
616
|
|
- var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
|
617
|
|
- var emergencyTreatmentName = "";
|
618
|
|
- for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
|
619
|
|
- if (emergencyTreatmentOptions[i].id == id) {
|
620
|
|
- emergencyTreatmentName = emergencyTreatmentOptions[i].name;
|
621
|
|
- }
|
|
609
|
+ }
|
|
610
|
+ return ductusArantiiOptionsName;
|
|
611
|
+ },
|
|
612
|
+ getEmergencyTreatment: function(id) {
|
|
613
|
+ var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
|
|
614
|
+ var emergencyTreatmentName = "";
|
|
615
|
+ for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
|
|
616
|
+ if (emergencyTreatmentOptions[i].id == id) {
|
|
617
|
+ emergencyTreatmentName = emergencyTreatmentOptions[i].name;
|
622
|
618
|
}
|
623
|
|
- return emergencyTreatmentName;
|
624
|
|
- },
|
625
|
|
- getSkin: function (id) {
|
626
|
|
- var skinOptions = this.$store.getters.skin;
|
627
|
|
- var skinName = "";
|
628
|
|
- for (let i = 0; i < skinOptions.length; i++) {
|
629
|
|
- if (skinOptions[i].id == id) {
|
630
|
|
- skinName = skinOptions[i].name;
|
631
|
|
- }
|
|
619
|
+ }
|
|
620
|
+ return emergencyTreatmentName;
|
|
621
|
+ },
|
|
622
|
+ getSkin: function(id) {
|
|
623
|
+ var skinOptions = this.$store.getters.skin;
|
|
624
|
+ var skinName = "";
|
|
625
|
+ for (let i = 0; i < skinOptions.length; i++) {
|
|
626
|
+ if (skinOptions[i].id == id) {
|
|
627
|
+ skinName = skinOptions[i].name;
|
632
|
628
|
}
|
633
|
|
- return skinName;
|
634
|
|
- }
|
635
|
|
- // setRecord(record) {
|
636
|
|
- // if (record == null) {
|
637
|
|
- // this.info1[0].content = "0"
|
638
|
|
- // this.info1[1].content = "0"
|
639
|
|
- // this.info1[2].content = "0"
|
640
|
|
- // // this.info1[3].content = ""
|
641
|
|
-
|
642
|
|
- // this.info2[0].content = "0"
|
643
|
|
- // this.info2[1].content = "0"
|
644
|
|
- // this.info2[2].content = ""
|
645
|
|
- // this.info2[3].content = ""
|
646
|
|
-
|
647
|
|
- // this.info3[0].content = "0"
|
648
|
|
- // this.info3[1].content = "0"
|
649
|
|
- // this.info3[2].content = ""
|
650
|
|
- // this.info3[3].content = ""
|
651
|
|
-
|
652
|
|
- // this.note = ""
|
653
|
|
-
|
654
|
|
- // } else {
|
655
|
|
- // this.info1[0].content = record.weight_before
|
656
|
|
- // this.info1[1].content = record.systolic_blood_pressure
|
657
|
|
- // this.info1[2].content = record.last_post_dialysis
|
658
|
|
- // // this.info1[3].content = ""
|
659
|
|
-
|
660
|
|
- // this.info2[0].content = record.additional_weight
|
661
|
|
- // this.info2[1].content = record.diastolic_blood_pressure
|
662
|
|
- // this.info2[2].content = record.dialysis_interphase
|
663
|
|
- // this.info2[3].content = record.catheter
|
664
|
|
-
|
665
|
|
- // this.info3[0].content = record.temperature
|
666
|
|
- // this.info3[1].content = record.breathing_rate
|
667
|
|
- // this.info3[2].content = record.symptom_before_dialysis
|
668
|
|
- // this.info3[3].content = record.complication
|
669
|
|
-
|
670
|
|
- // this.note = record.remark
|
671
|
|
- // }
|
672
|
|
- // }
|
|
629
|
+ }
|
|
630
|
+ return skinName;
|
673
|
631
|
}
|
674
|
|
- };
|
|
632
|
+ // setRecord(record) {
|
|
633
|
+ // if (record == null) {
|
|
634
|
+ // this.info1[0].content = "0"
|
|
635
|
+ // this.info1[1].content = "0"
|
|
636
|
+ // this.info1[2].content = "0"
|
|
637
|
+ // // this.info1[3].content = ""
|
|
638
|
+
|
|
639
|
+ // this.info2[0].content = "0"
|
|
640
|
+ // this.info2[1].content = "0"
|
|
641
|
+ // this.info2[2].content = ""
|
|
642
|
+ // this.info2[3].content = ""
|
|
643
|
+
|
|
644
|
+ // this.info3[0].content = "0"
|
|
645
|
+ // this.info3[1].content = "0"
|
|
646
|
+ // this.info3[2].content = ""
|
|
647
|
+ // this.info3[3].content = ""
|
|
648
|
+
|
|
649
|
+ // this.note = ""
|
|
650
|
+
|
|
651
|
+ // } else {
|
|
652
|
+ // this.info1[0].content = record.weight_before
|
|
653
|
+ // this.info1[1].content = record.systolic_blood_pressure
|
|
654
|
+ // this.info1[2].content = record.last_post_dialysis
|
|
655
|
+ // // this.info1[3].content = ""
|
|
656
|
+
|
|
657
|
+ // this.info2[0].content = record.additional_weight
|
|
658
|
+ // this.info2[1].content = record.diastolic_blood_pressure
|
|
659
|
+ // this.info2[2].content = record.dialysis_interphase
|
|
660
|
+ // this.info2[3].content = record.catheter
|
|
661
|
+
|
|
662
|
+ // this.info3[0].content = record.temperature
|
|
663
|
+ // this.info3[1].content = record.breathing_rate
|
|
664
|
+ // this.info3[2].content = record.symptom_before_dialysis
|
|
665
|
+ // this.info3[3].content = record.complication
|
|
666
|
+
|
|
667
|
+ // this.note = record.remark
|
|
668
|
+ // }
|
|
669
|
+ // }
|
|
670
|
+ }
|
|
671
|
+};
|
675
|
672
|
</script>
|
676
|
673
|
|
677
|
|
-<style rel="stylesheet/scss" lang="scss" scoped></style>
|
|
674
|
+<style rel="stylesheet/scss" lang="scss" scoped>
|
|
675
|
+</style>
|