|
@@ -30,17 +30,37 @@
|
30
|
30
|
</div>
|
31
|
31
|
</div>-->
|
32
|
32
|
<div class="newTable">
|
33
|
|
- <el-table :data="tableData" border style="width: 100%">
|
34
|
|
- <el-table-column fixed prop="date" label="序号" width="100"></el-table-column>
|
35
|
|
- <el-table-column prop="name" label="透析模式" width="100"></el-table-column>
|
36
|
|
- <el-table-column prop="province" label="透析时长" width="120"></el-table-column>
|
37
|
|
- <el-table-column prop="city" label="医生" width="120"></el-table-column>
|
38
|
|
- <el-table-column prop="address" label="更新日期" width="100"></el-table-column>
|
39
|
|
- <el-table-column label="操作" width="100">
|
|
33
|
+ <el-table :data="tableDate" border style="width: 100%">
|
|
34
|
+ <el-table-column fixed prop="date" label="序号" width="100" align="center">
|
|
35
|
+ <template slot-scope="scope">
|
|
36
|
+ {{scope.row.no}}
|
|
37
|
+ </template>
|
|
38
|
+ </el-table-column>
|
|
39
|
+ <el-table-column prop="name" label="透析模式" width="100" align="center">
|
40
|
40
|
<template slot-scope="scope">
|
41
|
|
- <el-button @click="handleClick(scope.row)" type="text" size="small">修改</el-button>
|
|
41
|
+ {{scope.row.mode_name}}
|
|
42
|
+ </template>
|
|
43
|
+ </el-table-column>
|
|
44
|
+ <el-table-column prop="province" label="透析时长" width="120" align="center">
|
|
45
|
+ <template slot-scope="scope">
|
|
46
|
+ {{scope.row.dialysis_duration_hour}}h {{scope.row.dialysis_duration_minute}}min
|
|
47
|
+ </template>
|
|
48
|
+ </el-table-column>
|
|
49
|
+ <el-table-column prop="city" label="医生" width="120" align="center">
|
|
50
|
+ <template slot-scope="scope">
|
|
51
|
+ {{tranDoctor(scope.row.registrars_id)}}
|
|
52
|
+ </template>
|
|
53
|
+ </el-table-column>
|
|
54
|
+ <el-table-column prop="address" label="更新日期" width="100" align="center">
|
|
55
|
+ <template slot-scope="scope">
|
|
56
|
+ {{scope.row.edate}}
|
42
|
57
|
</template>
|
43
|
58
|
</el-table-column>
|
|
59
|
+ <!-- <el-table-column label="操作" width="100">
|
|
60
|
+ <template slot-scope="scope">
|
|
61
|
+ <el-button @click="handleClick(scope.row)" type="text" size="small">修改</el-button>
|
|
62
|
+ </template>
|
|
63
|
+ </el-table-column> -->
|
44
|
64
|
</el-table>
|
45
|
65
|
</div>
|
46
|
66
|
<van-popup
|
|
@@ -319,18 +339,18 @@
|
319
|
339
|
import {
|
320
|
340
|
GetPatientDialysisSolutionList,
|
321
|
341
|
EditDialysisSolution
|
322
|
|
-} from "@/api/patient";
|
323
|
|
-import { parseTime } from "@/utils";
|
324
|
|
-import { fetchAllAdminUsers } from "@/api/doctor";
|
325
|
|
-import { getDataConfig } from "@/utils/data";
|
326
|
|
-import CheckBoxSubMenu from "../dialog/subMenu/checkBoxSubMenu";
|
327
|
|
-import { Toast } from "vant";
|
|
342
|
+} from '@/api/patient'
|
|
343
|
+import { parseTime } from '@/utils'
|
|
344
|
+import { fetchAllAdminUsers } from '@/api/doctor'
|
|
345
|
+import { getDataConfig } from '@/utils/data'
|
|
346
|
+import CheckBoxSubMenu from '../dialog/subMenu/checkBoxSubMenu'
|
|
347
|
+import { Toast } from 'vant'
|
328
|
348
|
|
329
|
|
-let allno = 1;
|
|
349
|
+let allno = 1
|
330
|
350
|
|
331
|
351
|
export default {
|
332
|
|
- name: "LongTable",
|
333
|
|
- data() {
|
|
352
|
+ name: 'LongTable',
|
|
353
|
+ data () {
|
334
|
354
|
return {
|
335
|
355
|
visibility: false,
|
336
|
356
|
loading: false,
|
|
@@ -351,424 +371,389 @@ export default {
|
351
|
371
|
},
|
352
|
372
|
dialysisSolution: {
|
353
|
373
|
id: 0,
|
354
|
|
- mode: "",
|
355
|
|
- mode_id: "",
|
356
|
|
- mode_name: "",
|
357
|
|
- dialysis_duration: "",
|
358
|
|
- dialysis_duration_hour: "",
|
359
|
|
- dialysis_duration_minute: "",
|
360
|
|
- hemodialysis_machine: "",
|
361
|
|
- perfusion_apparatus: "",
|
362
|
|
- perfusion_apparatus_name: "",
|
363
|
|
- blood_flow_volume: "",
|
364
|
|
- dewater: "",
|
|
374
|
+ mode: '',
|
|
375
|
+ mode_id: '',
|
|
376
|
+ mode_name: '',
|
|
377
|
+ dialysis_duration: '',
|
|
378
|
+ dialysis_duration_hour: '',
|
|
379
|
+ dialysis_duration_minute: '',
|
|
380
|
+ hemodialysis_machine: '',
|
|
381
|
+ perfusion_apparatus: '',
|
|
382
|
+ perfusion_apparatus_name: '',
|
|
383
|
+ blood_flow_volume: '',
|
|
384
|
+ dewater: '',
|
365
|
385
|
displace_liqui: 0,
|
366
|
|
- replacement_way: "",
|
367
|
|
- replacement_way_name: "",
|
368
|
|
- anticoagulant: "",
|
369
|
|
- anticoagulant_name: "",
|
370
|
|
- anticoagulant_shouji: "",
|
371
|
|
- anticoagulant_weichi: "",
|
372
|
|
- anticoagulant_zongliang: "",
|
373
|
|
- anticoagulant_gaimingcheng: "",
|
374
|
|
- anticoagulant_gaijiliang: "",
|
375
|
|
- target_ultrafiltration: "",
|
376
|
|
- dialysate_formulation: "",
|
377
|
|
- replacement_total: "",
|
378
|
|
- kalium: "",
|
379
|
|
- sodium: "",
|
380
|
|
- calcium: "",
|
381
|
|
- bicarbonate: "",
|
382
|
|
- glucose: "",
|
383
|
|
- dry_weight: "",
|
384
|
|
- dialysate_flow: "",
|
385
|
|
- dialysate_temperature: "",
|
386
|
|
- conductivity: "",
|
387
|
|
- doctor: "",
|
388
|
|
- remark: ""
|
|
386
|
+ replacement_way: '',
|
|
387
|
+ replacement_way_name: '',
|
|
388
|
+ anticoagulant: '',
|
|
389
|
+ anticoagulant_name: '',
|
|
390
|
+ anticoagulant_shouji: '',
|
|
391
|
+ anticoagulant_weichi: '',
|
|
392
|
+ anticoagulant_zongliang: '',
|
|
393
|
+ anticoagulant_gaimingcheng: '',
|
|
394
|
+ anticoagulant_gaijiliang: '',
|
|
395
|
+ target_ultrafiltration: '',
|
|
396
|
+ dialysate_formulation: '',
|
|
397
|
+ replacement_total: '',
|
|
398
|
+ kalium: '',
|
|
399
|
+ sodium: '',
|
|
400
|
+ calcium: '',
|
|
401
|
+ bicarbonate: '',
|
|
402
|
+ glucose: '',
|
|
403
|
+ dry_weight: '',
|
|
404
|
+ dialysate_flow: '',
|
|
405
|
+ dialysate_temperature: '',
|
|
406
|
+ conductivity: '',
|
|
407
|
+ doctor: '',
|
|
408
|
+ remark: ''
|
389
|
409
|
},
|
390
|
410
|
anticoagulant: {
|
391
|
411
|
id: 0,
|
392
|
|
- name: "",
|
|
412
|
+ name: '',
|
393
|
413
|
type: 1,
|
394
|
414
|
shouji: 1,
|
395
|
415
|
weichi: 1,
|
396
|
416
|
zongliang: 1,
|
397
|
417
|
gaimingcheng: -1,
|
398
|
418
|
gaijiliang: -1,
|
399
|
|
- shouji_unit: "mg",
|
400
|
|
- weichi_unit: "mg/h",
|
401
|
|
- zongliang_unit: "mg",
|
402
|
|
- gaimingcheng_unit: "",
|
403
|
|
- gaijiliang_unit: ""
|
|
419
|
+ shouji_unit: 'mg',
|
|
420
|
+ weichi_unit: 'mg/h',
|
|
421
|
+ zongliang_unit: 'mg',
|
|
422
|
+ gaimingcheng_unit: '',
|
|
423
|
+ gaijiliang_unit: ''
|
404
|
424
|
},
|
405
|
425
|
propForm: {
|
406
|
|
- title: "",
|
|
426
|
+ title: '',
|
407
|
427
|
list: [],
|
408
|
428
|
optionList: [],
|
409
|
429
|
isMultiple: 2,
|
410
|
|
- result: [], //选中的值
|
411
|
|
- type: 1, //用来区分不同子菜单,方便对返回值进行赋值
|
|
430
|
+ result: [], // 选中的值
|
|
431
|
+ type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
|
412
|
432
|
selectId: 0
|
413
|
433
|
},
|
414
|
434
|
modeOption: [],
|
415
|
435
|
dialysateFormulationOptions: [],
|
416
|
436
|
anticoagulantsConfit: {},
|
417
|
|
- timeValue: "",
|
418
|
|
- time: "03:00",
|
419
|
|
- record_date: "",
|
420
|
|
-
|
421
|
|
- tableData: [
|
422
|
|
- {
|
423
|
|
- date: "2016-05-02",
|
424
|
|
- name: "王小虎",
|
425
|
|
- province: "上海",
|
426
|
|
- city: "普陀区",
|
427
|
|
- address: "上海市普陀区金沙江路 1518 弄",
|
428
|
|
- zip: 200333
|
429
|
|
- },
|
430
|
|
- {
|
431
|
|
- date: "2016-05-04",
|
432
|
|
- name: "王小虎",
|
433
|
|
- province: "上海",
|
434
|
|
- city: "普陀区",
|
435
|
|
- address: "上海市普陀区金沙江路 1517 弄",
|
436
|
|
- zip: 200333
|
437
|
|
- },
|
438
|
|
- {
|
439
|
|
- date: "2016-05-01",
|
440
|
|
- name: "王小虎",
|
441
|
|
- province: "上海",
|
442
|
|
- city: "普陀区",
|
443
|
|
- address: "上海市普陀区金沙江路 1519 弄",
|
444
|
|
- zip: 200333
|
445
|
|
- },
|
446
|
|
- {
|
447
|
|
- date: "2016-05-03",
|
448
|
|
- name: "王小虎",
|
449
|
|
- province: "上海",
|
450
|
|
- city: "普陀区",
|
451
|
|
- address: "上海市普陀区金沙江路 1516 弄",
|
452
|
|
- zip: 200333
|
453
|
|
- }
|
454
|
|
- ]
|
455
|
|
- };
|
|
437
|
+ timeValue: '',
|
|
438
|
+ time: '03:00',
|
|
439
|
+ record_date: ''
|
|
440
|
+ }
|
456
|
441
|
},
|
457
|
442
|
methods: {
|
458
|
|
- commitInfo: function() {
|
459
|
|
- Toast.loading({ forbidClick: true, duration: 0 });
|
460
|
|
- this.dialysisSolution.mode = this.dialysisSolution.mode_id;
|
|
443
|
+ commitInfo: function () {
|
|
444
|
+ Toast.loading({ forbidClick: true, duration: 0 })
|
|
445
|
+ this.dialysisSolution.mode = this.dialysisSolution.mode_id
|
461
|
446
|
EditDialysisSolution(
|
462
|
447
|
this.dialysisSolution.id,
|
463
|
448
|
this.dialysisSolution
|
464
|
449
|
).then(response => {
|
465
|
450
|
if (response.data.state == 0) {
|
466
|
|
- Toast.fail(response.data.msg);
|
467
|
|
- return false;
|
|
451
|
+ Toast.fail(response.data.msg)
|
|
452
|
+ return false
|
468
|
453
|
} else {
|
469
|
|
- Toast.success("修改成功");
|
|
454
|
+ Toast.success('修改成功')
|
470
|
455
|
for (const key in response.data.data.solution) {
|
471
|
456
|
this.tableDate[this.currentIndex][key] =
|
472
|
|
- response.data.data.solution[key];
|
|
457
|
+ response.data.data.solution[key]
|
473
|
458
|
}
|
474
|
|
- this.popupDidHide();
|
|
459
|
+ this.popupDidHide()
|
475
|
460
|
}
|
476
|
|
- });
|
|
461
|
+ })
|
477
|
462
|
},
|
478
|
|
- openEdit(index, item) {
|
479
|
|
- this.currentIndex = index;
|
|
463
|
+ openEdit (index, item) {
|
|
464
|
+ this.currentIndex = index
|
480
|
465
|
for (var key in item) {
|
481
|
|
- this.dialysisSolution[key] = item[key];
|
|
466
|
+ this.dialysisSolution[key] = item[key]
|
482
|
467
|
}
|
483
|
468
|
|
484
|
469
|
this.timeValue =
|
485
|
470
|
this.dialysisSolution.dialysis_duration_hour +
|
486
|
|
- "小时" +
|
|
471
|
+ '小时' +
|
487
|
472
|
this.dialysisSolution.dialysis_duration_minute +
|
488
|
|
- "分钟";
|
|
473
|
+ '分钟'
|
489
|
474
|
|
490
|
475
|
this.time =
|
491
|
476
|
(this.dialysisSolution.dialysis_duration_hour >= 10
|
492
|
477
|
? this.dialysisSolution.dialysis_duration_hour
|
493
|
|
- : "0" + this.dialysisSolution.dialysis_duration_hour) +
|
494
|
|
- ":" +
|
|
478
|
+ : '0' + this.dialysisSolution.dialysis_duration_hour) +
|
|
479
|
+ ':' +
|
495
|
480
|
(this.dialysisSolution.dialysis_duration_minute >= 10
|
496
|
481
|
? this.dialysisSolution.dialysis_duration_minute
|
497
|
|
- : "0" + this.dialysisSolution.dialysis_duration_minute);
|
|
482
|
+ : '0' + this.dialysisSolution.dialysis_duration_minute)
|
498
|
483
|
|
499
|
|
- this.showObj.showPopup = true;
|
|
484
|
+ this.showObj.showPopup = true
|
500
|
485
|
|
501
|
486
|
// document.getElementById('dialogTop').scrollTop = 200;
|
502
|
|
- var dialogTop = document.querySelector("#dialogTop");
|
|
487
|
+ var dialogTop = document.querySelector('#dialogTop')
|
503
|
488
|
if (dialogTop != null) {
|
504
|
489
|
this.$nextTick(() => {
|
505
|
|
- dialogTop.scrollTop = 0;
|
506
|
|
- });
|
|
490
|
+ dialogTop.scrollTop = 0
|
|
491
|
+ })
|
507
|
492
|
}
|
508
|
493
|
},
|
509
|
|
- popupDidHide() {
|
510
|
|
- this.showObj.showPopup = false;
|
511
|
|
- this.visibility = false;
|
512
|
|
- this.showObj.showForm = true;
|
|
494
|
+ popupDidHide () {
|
|
495
|
+ this.showObj.showPopup = false
|
|
496
|
+ this.visibility = false
|
|
497
|
+ this.showObj.showForm = true
|
513
|
498
|
},
|
514
|
|
- openPicker: function() {
|
515
|
|
- this.$refs.picker.open();
|
|
499
|
+ openPicker: function () {
|
|
500
|
+ this.$refs.picker.open()
|
516
|
501
|
},
|
517
|
|
- showSubMenu: function(val) {
|
|
502
|
+ showSubMenu: function (val) {
|
518
|
503
|
switch (val) {
|
519
|
|
- case "mode":
|
520
|
|
- this.propForm.type = 1;
|
521
|
|
- this.showObj.showForm = false;
|
522
|
|
- this.propForm.title = "透析模式";
|
523
|
|
- this.visibility = true;
|
524
|
|
- this.propForm.list = [];
|
525
|
|
- this.propForm.optionList = this.modeOption;
|
526
|
|
- this.propForm.isMultiple = 1;
|
527
|
|
- this.propForm.selectId = this.dialysisSolution.mode_id;
|
528
|
|
- this.propForm.click_ref = "mode";
|
529
|
|
-
|
530
|
|
- break;
|
531
|
|
-
|
532
|
|
- case "anticoagulant":
|
533
|
|
- this.propForm.type = 5;
|
534
|
|
- this.showObj.showForm = false;
|
535
|
|
- this.propForm.title = "抗疑剂";
|
536
|
|
- this.visibility = true;
|
537
|
|
- this.propForm.list = [];
|
538
|
|
- this.propForm.optionList = this.anticoagulantsConfit;
|
539
|
|
- this.propForm.isMultiple = 1;
|
540
|
|
- this.propForm.selectId = this.dialysisSolution.anticoagulant;
|
541
|
|
- this.propForm.click_ref = "anticoagulant";
|
542
|
|
- break;
|
543
|
|
- case "dialysate_formulation":
|
544
|
|
- this.propForm.type = 6;
|
545
|
|
- this.showObj.showForm = false;
|
546
|
|
- this.propForm.title = "透析液配方";
|
547
|
|
- this.visibility = true;
|
548
|
|
- this.propForm.list = [];
|
549
|
|
- this.propForm.optionList = this.dialysateFormulationOptions;
|
550
|
|
- this.propForm.isMultiple = 1;
|
551
|
|
- this.propForm.selectId = this.dialysisSolution.dialysate_formulation;
|
552
|
|
- this.propForm.click_ref = "dialysate_formulation";
|
553
|
|
- break;
|
|
504
|
+ case 'mode':
|
|
505
|
+ this.propForm.type = 1
|
|
506
|
+ this.showObj.showForm = false
|
|
507
|
+ this.propForm.title = '透析模式'
|
|
508
|
+ this.visibility = true
|
|
509
|
+ this.propForm.list = []
|
|
510
|
+ this.propForm.optionList = this.modeOption
|
|
511
|
+ this.propForm.isMultiple = 1
|
|
512
|
+ this.propForm.selectId = this.dialysisSolution.mode_id
|
|
513
|
+ this.propForm.click_ref = 'mode'
|
|
514
|
+
|
|
515
|
+ break
|
|
516
|
+
|
|
517
|
+ case 'anticoagulant':
|
|
518
|
+ this.propForm.type = 5
|
|
519
|
+ this.showObj.showForm = false
|
|
520
|
+ this.propForm.title = '抗疑剂'
|
|
521
|
+ this.visibility = true
|
|
522
|
+ this.propForm.list = []
|
|
523
|
+ this.propForm.optionList = this.anticoagulantsConfit
|
|
524
|
+ this.propForm.isMultiple = 1
|
|
525
|
+ this.propForm.selectId = this.dialysisSolution.anticoagulant
|
|
526
|
+ this.propForm.click_ref = 'anticoagulant'
|
|
527
|
+ break
|
|
528
|
+ case 'dialysate_formulation':
|
|
529
|
+ this.propForm.type = 6
|
|
530
|
+ this.showObj.showForm = false
|
|
531
|
+ this.propForm.title = '透析液配方'
|
|
532
|
+ this.visibility = true
|
|
533
|
+ this.propForm.list = []
|
|
534
|
+ this.propForm.optionList = this.dialysateFormulationOptions
|
|
535
|
+ this.propForm.isMultiple = 1
|
|
536
|
+ this.propForm.selectId = this.dialysisSolution.dialysate_formulation
|
|
537
|
+ this.propForm.click_ref = 'dialysate_formulation'
|
|
538
|
+ break
|
554
|
539
|
}
|
555
|
540
|
},
|
556
|
|
- menuCancle: function() {
|
557
|
|
- this.visibility = false;
|
558
|
|
- this.showObj.showForm = true;
|
|
541
|
+ menuCancle: function () {
|
|
542
|
+ this.visibility = false
|
|
543
|
+ this.showObj.showForm = true
|
559
|
544
|
this.$nextTick(() => {
|
560
|
545
|
if (
|
561
|
546
|
this.$refs[this.propForm.click_ref] != undefined &&
|
562
|
547
|
this.$refs[this.propForm.click_ref] != null
|
563
|
548
|
) {
|
564
|
|
- this.$refs[this.propForm.click_ref].scrollIntoView();
|
|
549
|
+ this.$refs[this.propForm.click_ref].scrollIntoView()
|
565
|
550
|
}
|
566
|
|
- });
|
|
551
|
+ })
|
567
|
552
|
},
|
568
|
|
- menuComfirm: function(val) {
|
569
|
|
- this.visibility = false;
|
570
|
|
- this.showObj.showForm = true;
|
|
553
|
+ menuComfirm: function (val) {
|
|
554
|
+ this.visibility = false
|
|
555
|
+ this.showObj.showForm = true
|
571
|
556
|
this.$nextTick(() => {
|
572
|
557
|
if (
|
573
|
558
|
this.$refs[this.propForm.click_ref] != undefined &&
|
574
|
559
|
this.$refs[this.propForm.click_ref] != null
|
575
|
560
|
) {
|
576
|
|
- this.$refs[this.propForm.click_ref].scrollIntoView();
|
|
561
|
+ this.$refs[this.propForm.click_ref].scrollIntoView()
|
577
|
562
|
}
|
578
|
|
- });
|
|
563
|
+ })
|
579
|
564
|
switch (val.type) {
|
580
|
565
|
case 1:
|
581
|
|
- this.dialysisSolution.mode_id = val.selectId;
|
|
566
|
+ this.dialysisSolution.mode_id = val.selectId
|
582
|
567
|
this.dialysisSolution.mode_name = this.GetModeByModeId(
|
583
|
568
|
this.dialysisSolution.mode_id
|
584
|
|
- );
|
585
|
|
- break;
|
|
569
|
+ )
|
|
570
|
+ break
|
586
|
571
|
|
587
|
572
|
case 5:
|
588
|
|
- this.dialysisSolution.anticoagulant = val.selectId;
|
|
573
|
+ this.dialysisSolution.anticoagulant = val.selectId
|
589
|
574
|
|
590
|
575
|
if (
|
591
|
|
- typeof this.anticoagulantsConfit[val.selectId] == "undefined" ||
|
|
576
|
+ typeof this.anticoagulantsConfit[val.selectId] === 'undefined' ||
|
592
|
577
|
this.anticoagulantsConfit[val.selectId] == null
|
593
|
578
|
) {
|
594
|
|
- return;
|
|
579
|
+ return
|
595
|
580
|
}
|
596
|
|
- this.anticoagulant = this.anticoagulantsConfit[val.selectId];
|
|
581
|
+ this.anticoagulant = this.anticoagulantsConfit[val.selectId]
|
597
|
582
|
|
598
|
|
- break;
|
|
583
|
+ break
|
599
|
584
|
|
600
|
585
|
case 6:
|
601
|
|
- this.dialysisSolution.dialysate_formulation = val.selectId;
|
|
586
|
+ this.dialysisSolution.dialysate_formulation = val.selectId
|
602
|
587
|
|
603
|
|
- break;
|
|
588
|
+ break
|
604
|
589
|
}
|
605
|
590
|
},
|
606
|
|
- handleTimeConfirm: function(val) {
|
607
|
|
- val = val.replace("小时");
|
608
|
|
- val = val.replace("分钟");
|
609
|
|
- let timeArray = val.split(":");
|
|
591
|
+ handleTimeConfirm: function (val) {
|
|
592
|
+ val = val.replace('小时')
|
|
593
|
+ val = val.replace('分钟')
|
|
594
|
+ let timeArray = val.split(':')
|
610
|
595
|
if (parseInt(timeArray[0].substring(0, 1)) == 0) {
|
611
|
596
|
this.dialysisSolution.dialysis_duration_hour = timeArray[0].charAt(
|
612
|
597
|
timeArray[0].length - 1
|
613
|
|
- );
|
|
598
|
+ )
|
614
|
599
|
} else {
|
615
|
|
- this.dialysisSolution.dialysis_duration_hour = timeArray[0];
|
|
600
|
+ this.dialysisSolution.dialysis_duration_hour = timeArray[0]
|
616
|
601
|
}
|
617
|
602
|
|
618
|
603
|
if (parseInt(timeArray[1].substring(0, 1)) == 0) {
|
619
|
604
|
this.dialysisSolution.dialysis_duration_minute = timeArray[1].charAt(
|
620
|
605
|
timeArray[1].length - 1
|
621
|
|
- );
|
|
606
|
+ )
|
622
|
607
|
} else {
|
623
|
|
- this.dialysisSolution.dialysis_duration_minute = timeArray[1];
|
|
608
|
+ this.dialysisSolution.dialysis_duration_minute = timeArray[1]
|
624
|
609
|
}
|
625
|
610
|
this.timeValue =
|
626
|
611
|
this.dialysisSolution.dialysis_duration_hour +
|
627
|
|
- "小时" +
|
|
612
|
+ '小时' +
|
628
|
613
|
this.dialysisSolution.dialysis_duration_minute +
|
629
|
|
- "分钟";
|
|
614
|
+ '分钟'
|
630
|
615
|
this.dialysisSolution.dialysis_duration =
|
631
|
616
|
this.dialysisSolution.dialysis_duration_hour +
|
632
|
|
- "." +
|
633
|
|
- this.dialysisSolution.dialysis_duration_minute;
|
|
617
|
+ '.' +
|
|
618
|
+ this.dialysisSolution.dialysis_duration_minute
|
634
|
619
|
},
|
635
|
|
- GetModeByModeId: function(val) {
|
636
|
|
- let treatment_mode_name = "";
|
637
|
|
- let treatment_mode = this.modeOption;
|
|
620
|
+ GetModeByModeId: function (val) {
|
|
621
|
+ let treatment_mode_name = ''
|
|
622
|
+ let treatment_mode = this.modeOption
|
638
|
623
|
for (let keys in treatment_mode) {
|
639
|
624
|
if (treatment_mode[keys].id == val) {
|
640
|
|
- treatment_mode_name = treatment_mode[keys].name;
|
|
625
|
+ treatment_mode_name = treatment_mode[keys].name
|
641
|
626
|
}
|
642
|
627
|
}
|
643
|
628
|
|
644
|
|
- return treatment_mode_name;
|
|
629
|
+ return treatment_mode_name
|
645
|
630
|
},
|
646
|
|
- inputFocus: function(event) {
|
647
|
|
- var input = event.target;
|
648
|
|
- setTimeout(function() {
|
649
|
|
- input.scrollIntoView();
|
650
|
|
- }, 0);
|
|
631
|
+ inputFocus: function (event) {
|
|
632
|
+ var input = event.target
|
|
633
|
+ setTimeout(function () {
|
|
634
|
+ input.scrollIntoView()
|
|
635
|
+ }, 0)
|
651
|
636
|
|
652
|
637
|
if (input.setSelectionRange) {
|
653
|
|
- setTimeout(function() {
|
654
|
|
- input.setSelectionRange(0, input.value.length);
|
655
|
|
- }, 0);
|
|
638
|
+ setTimeout(function () {
|
|
639
|
+ input.setSelectionRange(0, input.value.length)
|
|
640
|
+ }, 0)
|
656
|
641
|
} else if (input.createTextRange) {
|
657
|
|
- var rng = input.createTextRange();
|
658
|
|
- rng.move("character", input.value.length);
|
659
|
|
- rng.select();
|
|
642
|
+ var rng = input.createTextRange()
|
|
643
|
+ rng.move('character', input.value.length)
|
|
644
|
+ rng.select()
|
660
|
645
|
}
|
661
|
646
|
},
|
662
|
|
- lastInputBlur: function(event) {
|
663
|
|
- var input = event.target;
|
664
|
|
- setTimeout(function() {
|
665
|
|
- input.style.marginBottom = "";
|
666
|
|
- }, 0);
|
|
647
|
+ lastInputBlur: function (event) {
|
|
648
|
+ var input = event.target
|
|
649
|
+ setTimeout(function () {
|
|
650
|
+ input.style.marginBottom = ''
|
|
651
|
+ }, 0)
|
667
|
652
|
},
|
668
|
|
- lastInputFocus: function(event) {
|
669
|
|
- var input = event.target;
|
670
|
|
- setTimeout(function() {
|
671
|
|
- input.style.marginBottom = "2rem";
|
672
|
|
- input.parentNode.scrollIntoView();
|
673
|
|
- }, 0);
|
|
653
|
+ lastInputFocus: function (event) {
|
|
654
|
+ var input = event.target
|
|
655
|
+ setTimeout(function () {
|
|
656
|
+ input.style.marginBottom = '2rem'
|
|
657
|
+ input.parentNode.scrollIntoView()
|
|
658
|
+ }, 0)
|
674
|
659
|
},
|
675
|
|
- GetDialysateFormulationById: function(val) {
|
676
|
|
- let name = "";
|
677
|
|
- let dfl = this.dialysateFormulationOptions.length;
|
|
660
|
+ GetDialysateFormulationById: function (val) {
|
|
661
|
+ let name = ''
|
|
662
|
+ let dfl = this.dialysateFormulationOptions.length
|
678
|
663
|
for (let index = 0; index < dfl; index++) {
|
679
|
664
|
if (this.dialysateFormulationOptions[index].id == val) {
|
680
|
|
- name = this.dialysateFormulationOptions[index].name;
|
681
|
|
- break;
|
|
665
|
+ name = this.dialysateFormulationOptions[index].name
|
|
666
|
+ break
|
682
|
667
|
}
|
683
|
668
|
}
|
684
|
|
- return name;
|
|
669
|
+ return name
|
685
|
670
|
},
|
686
|
|
- GetAnticoagulantById: function(val) {
|
687
|
|
- let anticoagulan_name = "";
|
688
|
|
- let anticoagulant = this.anticoagulantsConfit;
|
|
671
|
+ GetAnticoagulantById: function (val) {
|
|
672
|
+ let anticoagulan_name = ''
|
|
673
|
+ let anticoagulant = this.anticoagulantsConfit
|
689
|
674
|
for (let keys in anticoagulant) {
|
690
|
675
|
if (anticoagulant[keys].id == val) {
|
691
|
|
- anticoagulan_name = anticoagulant[keys].name;
|
|
676
|
+ anticoagulan_name = anticoagulant[keys].name
|
692
|
677
|
}
|
693
|
678
|
}
|
694
|
|
- return anticoagulan_name;
|
|
679
|
+ return anticoagulan_name
|
695
|
680
|
},
|
696
|
|
- tranDoctor(id) {
|
|
681
|
+ tranDoctor (id) {
|
697
|
682
|
if (id in this.adminUserOptions) {
|
698
|
|
- return this.adminUserOptions[id].name;
|
|
683
|
+ return this.adminUserOptions[id].name
|
699
|
684
|
} else {
|
700
|
|
- return "未知";
|
|
685
|
+ return '未知'
|
701
|
686
|
}
|
702
|
687
|
},
|
703
|
|
- fetchAllAdminUsers() {
|
|
688
|
+ fetchAllAdminUsers () {
|
704
|
689
|
fetchAllAdminUsers().then(response => {
|
705
|
690
|
if (response.data.state == 1) {
|
706
|
|
- var ul = response.data.data.users.length;
|
|
691
|
+ var ul = response.data.data.users.length
|
707
|
692
|
for (let index = 0; index < ul; index++) {
|
708
|
693
|
this.adminUserOptions[response.data.data.users[index].id] =
|
709
|
|
- response.data.data.users[index];
|
|
694
|
+ response.data.data.users[index]
|
710
|
695
|
}
|
711
|
696
|
}
|
712
|
|
- });
|
|
697
|
+ })
|
713
|
698
|
},
|
714
|
|
- onLoad() {
|
|
699
|
+ onLoad () {
|
715
|
700
|
// 异步更新数据
|
716
|
|
- this.queryParams.page++;
|
|
701
|
+ this.queryParams.page++
|
717
|
702
|
GetPatientDialysisSolutionList(this.queryParams).then(response => {
|
718
|
703
|
if (response.data.state == 1) {
|
719
|
|
- var sl = response.data.data.solutions.length;
|
|
704
|
+ var sl = response.data.data.solutions.length
|
720
|
705
|
if (sl == 0) {
|
721
|
|
- this.finished = true;
|
|
706
|
+ this.finished = true
|
722
|
707
|
} else {
|
723
|
708
|
for (let index = 0; index < sl; index++) {
|
724
|
|
- var solution = response.data.data.solutions[index];
|
725
|
|
- solution.no = allno;
|
|
709
|
+ var solution = response.data.data.solutions[index]
|
|
710
|
+ solution.no = allno
|
726
|
711
|
solution.edate = parseTime(
|
727
|
712
|
solution.updated_time,
|
728
|
|
- "{y}-{m}-{d} {h}:{i}"
|
729
|
|
- );
|
730
|
|
- allno++;
|
731
|
|
- this.tableDate.push(solution);
|
|
713
|
+ '{y}-{m}-{d} {h}:{i}'
|
|
714
|
+ )
|
|
715
|
+ allno++
|
|
716
|
+ this.tableDate.push(solution)
|
732
|
717
|
}
|
733
|
718
|
}
|
734
|
|
- this.loading = false;
|
|
719
|
+ this.loading = false
|
735
|
720
|
}
|
736
|
|
- });
|
|
721
|
+ })
|
737
|
722
|
}
|
738
|
723
|
},
|
739
|
|
- created() {
|
740
|
|
- allno = 1;
|
741
|
|
- this.fetchAllAdminUsers();
|
742
|
|
- this.queryParams.id = this.$route.query.patient_id;
|
743
|
|
- this.onLoad();
|
|
724
|
+ created () {
|
|
725
|
+ allno = 1
|
|
726
|
+ this.fetchAllAdminUsers()
|
|
727
|
+ this.queryParams.id = this.$route.query.patient_id
|
|
728
|
+ this.onLoad()
|
744
|
729
|
|
745
|
|
- this.modeOption = this.$store.getters.treatment_mode;
|
|
730
|
+ this.modeOption = this.$store.getters.treatment_mode
|
746
|
731
|
this.dialysateFormulationOptions = getDataConfig(
|
747
|
|
- "hemodialysis",
|
748
|
|
- "dialysate_formulation"
|
749
|
|
- );
|
750
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
751
|
|
-
|
752
|
|
- var date = this.$route.query && this.$route.query.date;
|
753
|
|
- date *= 1000;
|
754
|
|
- var newDate = new Date(date);
|
755
|
|
-
|
756
|
|
- var y = newDate.getFullYear();
|
757
|
|
- var m = newDate.getMonth() + 1;
|
758
|
|
- var d = newDate.getDate();
|
|
732
|
+ 'hemodialysis',
|
|
733
|
+ 'dialysate_formulation'
|
|
734
|
+ )
|
|
735
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
736
|
+
|
|
737
|
+ var date = this.$route.query && this.$route.query.date
|
|
738
|
+ date *= 1000
|
|
739
|
+ var newDate = new Date(date)
|
|
740
|
+
|
|
741
|
+ var y = newDate.getFullYear()
|
|
742
|
+ var m = newDate.getMonth() + 1
|
|
743
|
+ var d = newDate.getDate()
|
759
|
744
|
if (isNaN(y) || isNaN(m) || isNaN(d)) {
|
760
|
|
- newDate = new Date();
|
761
|
|
- y = newDate.getFullYear();
|
762
|
|
- m = newDate.getMonth() + 1;
|
763
|
|
- d = newDate.getDate();
|
|
745
|
+ newDate = new Date()
|
|
746
|
+ y = newDate.getFullYear()
|
|
747
|
+ m = newDate.getMonth() + 1
|
|
748
|
+ d = newDate.getDate()
|
764
|
749
|
}
|
765
|
750
|
this.record_date =
|
766
|
|
- y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
|
|
751
|
+ y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
|
767
|
752
|
},
|
768
|
753
|
components: {
|
769
|
754
|
CheckBoxSubMenu
|
770
|
755
|
}
|
771
|
|
-};
|
|
756
|
+}
|
772
|
757
|
</script>
|
773
|
758
|
|
774
|
759
|
<style style="stylesheet/scss" lang="scss" scoped>
|
|
@@ -850,4 +835,3 @@ export default {
|
850
|
835
|
}
|
851
|
836
|
}
|
852
|
837
|
</style>
|
853
|
|
-
|