|
@@ -126,7 +126,7 @@
|
126
|
126
|
<td style="padding-left:5px;width:50%;">
|
127
|
127
|
低分子肝素钙
|
128
|
128
|
<span style="width:100px;display: inline-block;text-align:center;">
|
129
|
|
- {{ record.prescription.anticoagulant == '低分子肝素钙' && record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang : ""}}
|
|
129
|
+ {{ record.prescription.anticoagulant == 6 && record.prescription.anticoagulant_zongliang ? record.prescription.anticoagulant_zongliang : ""}}
|
130
|
130
|
</span>iu
|
131
|
131
|
<span style="width:50px;display: inline-block;"> </span>静推
|
132
|
132
|
</td>
|
|
@@ -457,19 +457,19 @@
|
457
|
457
|
</template>
|
458
|
458
|
|
459
|
459
|
<script>
|
460
|
|
-import CheckBox from "./option_check_box";
|
461
|
|
-import LabelBox from "../printItem/LabelBox";
|
|
460
|
+import CheckBox from './option_check_box'
|
|
461
|
+import LabelBox from '../printItem/LabelBox'
|
462
|
462
|
import {
|
463
|
463
|
GetBatchPrintDialysisData,
|
464
|
464
|
getLastAfterWeight
|
465
|
|
-} from "@/api/print_data";
|
466
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
467
|
|
-import { getDataConfig } from "@/utils/data";
|
468
|
|
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
465
|
+} from '@/api/print_data'
|
|
466
|
+import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
467
|
+import { getDataConfig } from '@/utils/data'
|
|
468
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
469
|
469
|
import print from 'print-js'
|
470
|
470
|
|
471
|
471
|
export default {
|
472
|
|
- name: "BatchPrintOrderSeven",
|
|
472
|
+ name: 'BatchPrintOrderSeven',
|
473
|
473
|
components: {
|
474
|
474
|
CheckBox,
|
475
|
475
|
BreadCrumb,
|
|
@@ -481,8 +481,8 @@ export default {
|
481
|
481
|
consciousness_arr: [],
|
482
|
482
|
isShowZero: false,
|
483
|
483
|
crumbs: [
|
484
|
|
- { path: false, name: "透析管理" },
|
485
|
|
- { path: false, name: "批量打印" }
|
|
484
|
+ { path: false, name: '透析管理' },
|
|
485
|
+ { path: false, name: '批量打印' }
|
486
|
486
|
],
|
487
|
487
|
records: [
|
488
|
488
|
// 模拟有多条数据
|
|
@@ -496,11 +496,11 @@ export default {
|
496
|
496
|
// },
|
497
|
497
|
],
|
498
|
498
|
queryParams: {
|
499
|
|
- xtdate: "",
|
500
|
|
- xtno: ""
|
|
499
|
+ xtdate: '',
|
|
500
|
+ xtno: ''
|
501
|
501
|
},
|
502
|
502
|
loading: false,
|
503
|
|
- orgname: "",
|
|
503
|
+ orgname: '',
|
504
|
504
|
bloodAccessParOpera: {},
|
505
|
505
|
anticoagulantsConfit: {},
|
506
|
506
|
dialysateFormulationOptions: {},
|
|
@@ -515,134 +515,134 @@ export default {
|
515
|
515
|
blood_access_part: [],
|
516
|
516
|
posture_arr: [],
|
517
|
517
|
complications: [
|
518
|
|
- "低血压",
|
519
|
|
- "高血压",
|
520
|
|
- "心律失常",
|
521
|
|
- "头晕",
|
522
|
|
- "头痛",
|
523
|
|
- "呕吐",
|
524
|
|
- "抽搐",
|
525
|
|
- "出血",
|
526
|
|
- "心衰",
|
527
|
|
- "腹痛"
|
|
518
|
+ '低血压',
|
|
519
|
+ '高血压',
|
|
520
|
+ '心律失常',
|
|
521
|
+ '头晕',
|
|
522
|
+ '头痛',
|
|
523
|
+ '呕吐',
|
|
524
|
+ '抽搐',
|
|
525
|
+ '出血',
|
|
526
|
+ '心衰',
|
|
527
|
+ '腹痛'
|
528
|
528
|
],
|
529
|
529
|
allName: [],
|
530
|
530
|
NameStatus: 0,
|
531
|
531
|
advices: [],
|
532
|
|
- docotorId: "",
|
533
|
|
- lastAfterWeight: "",
|
|
532
|
+ docotorId: '',
|
|
533
|
+ lastAfterWeight: '',
|
534
|
534
|
appetite_arr: [],
|
535
|
535
|
precaution_arr: [],
|
536
|
536
|
showOne: false,
|
537
|
537
|
showTwo: false
|
538
|
|
- };
|
|
538
|
+ }
|
539
|
539
|
},
|
540
|
540
|
created() {
|
541
|
|
- var xtuser = this.$store.getters.xt_user;
|
|
541
|
+ var xtuser = this.$store.getters.xt_user
|
542
|
542
|
// console.log('xtuser', xtuser)
|
543
|
|
- this.orgname = xtuser.org.org_name;
|
|
543
|
+ this.orgname = xtuser.org.org_name
|
544
|
544
|
// this.orgname = "遂溪方济医院";
|
545
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
|
545
|
+ this.modeOptions = this.$store.getters.treatment_mode
|
546
|
546
|
// this.replacementWays = this.$store.getters.replacement_ways;
|
547
|
547
|
// this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
548
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
549
|
|
- this.way_arr = getDataConfig("hemodialysis", "way");
|
550
|
|
- this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
551
|
|
- this.posture_arr = getDataConfig("hemodialysis", "posture");
|
|
548
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
549
|
+ this.way_arr = getDataConfig('hemodialysis', 'way')
|
|
550
|
+ this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
|
551
|
+ this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
552
|
552
|
var bloodAccessParOpera = getDataConfig(
|
553
|
|
- "hemodialysis",
|
554
|
|
- "vascular_access_desc"
|
555
|
|
- );
|
|
553
|
+ 'hemodialysis',
|
|
554
|
+ 'vascular_access_desc'
|
|
555
|
+ )
|
556
|
556
|
for (var key in bloodAccessParOpera) {
|
557
|
557
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
558
|
|
- bloodAccessParOpera[key];
|
|
558
|
+ bloodAccessParOpera[key]
|
559
|
559
|
}
|
560
|
560
|
|
561
|
|
- this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
|
|
561
|
+ this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
|
562
|
562
|
|
563
|
563
|
var dialysateFormulationOptions = getDataConfig(
|
564
|
|
- "hemodialysis",
|
565
|
|
- "dialysate_formulation"
|
566
|
|
- );
|
|
564
|
+ 'hemodialysis',
|
|
565
|
+ 'dialysate_formulation'
|
|
566
|
+ )
|
567
|
567
|
for (var key in dialysateFormulationOptions) {
|
568
|
568
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
569
|
|
- dialysateFormulationOptions[key];
|
|
569
|
+ dialysateFormulationOptions[key]
|
570
|
570
|
}
|
571
|
|
- this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
572
|
|
- this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
|
571
|
+ this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
|
572
|
+ this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
573
|
573
|
},
|
574
|
574
|
mounted() {
|
575
|
|
- console.log(this.records);
|
576
|
|
- this.loading = true;
|
577
|
|
- var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
|
|
575
|
+ console.log(this.records)
|
|
576
|
+ this.loading = true
|
|
577
|
+ var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
578
|
578
|
if (ids.length == 0) {
|
579
|
|
- this.$router.back(-1);
|
580
|
|
- return;
|
|
579
|
+ this.$router.back(-1)
|
|
580
|
+ return
|
581
|
581
|
}
|
582
|
|
- GetBatchPrintDialysisData(ids.join(","))
|
|
582
|
+ GetBatchPrintDialysisData(ids.join(','))
|
583
|
583
|
.then(rs => {
|
584
|
|
- var resp = rs.data;
|
|
584
|
+ var resp = rs.data
|
585
|
585
|
if (resp.state == 1) {
|
586
|
|
- this.org_template_info = resp.data.templateInfo;
|
|
586
|
+ this.org_template_info = resp.data.templateInfo
|
587
|
587
|
|
588
|
|
- this.records = this.records.concat(resp.data.schedules);
|
|
588
|
+ this.records = this.records.concat(resp.data.schedules)
|
589
|
589
|
|
590
|
|
- console.log("记录", this.records);
|
|
590
|
+ console.log('记录', this.records)
|
591
|
591
|
|
592
|
592
|
for (const recordIndex in this.records) {
|
593
|
|
- var dlegh = 0;
|
|
593
|
+ var dlegh = 0
|
594
|
594
|
if (
|
595
|
595
|
this.records[recordIndex].monitor_records &&
|
596
|
596
|
this.records[recordIndex].monitor_records.length < 8
|
597
|
597
|
) {
|
598
|
|
- dlegh = 8 - this.records[recordIndex].monitor_records.length;
|
|
598
|
+ dlegh = 8 - this.records[recordIndex].monitor_records.length
|
599
|
599
|
} else {
|
600
|
|
- dlegh = 0;
|
|
600
|
+ dlegh = 0
|
601
|
601
|
}
|
602
|
602
|
if (dlegh > 0) {
|
603
|
603
|
if (
|
604
|
604
|
typeof this.records[recordIndex].monitor_records ===
|
605
|
|
- "undefined" ||
|
|
605
|
+ 'undefined' ||
|
606
|
606
|
this.records[recordIndex].monitor_records == null
|
607
|
607
|
) {
|
608
|
|
- this.records[recordIndex].monitor_records = [];
|
|
608
|
+ this.records[recordIndex].monitor_records = []
|
609
|
609
|
}
|
610
|
610
|
for (let index = 0; index < dlegh; index++) {
|
611
|
|
- this.records[recordIndex].monitor_records.push([]);
|
|
611
|
+ this.records[recordIndex].monitor_records.push([])
|
612
|
612
|
}
|
613
|
613
|
}
|
614
|
614
|
|
615
|
|
- this.records[recordIndex].isShowZero = false;
|
|
615
|
+ this.records[recordIndex].isShowZero = false
|
616
|
616
|
if (this.records[recordIndex].patient.user_org_id == 9535) {
|
617
|
|
- this.records[recordIndex].isShowZero = true;
|
|
617
|
+ this.records[recordIndex].isShowZero = true
|
618
|
618
|
}
|
619
|
619
|
|
620
|
|
- var delghTwo = 0;
|
|
620
|
+ var delghTwo = 0
|
621
|
621
|
if (
|
622
|
622
|
this.records[recordIndex].advices &&
|
623
|
623
|
this.records[recordIndex].advices.length < 14
|
624
|
624
|
) {
|
625
|
|
- delghTwo = 14 - this.records[recordIndex].advices.length;
|
|
625
|
+ delghTwo = 14 - this.records[recordIndex].advices.length
|
626
|
626
|
} else {
|
627
|
|
- delghTwo = 0;
|
|
627
|
+ delghTwo = 0
|
628
|
628
|
}
|
629
|
629
|
|
630
|
630
|
if (delghTwo > 0) {
|
631
|
631
|
if (
|
632
|
|
- typeof this.records[recordIndex].advices === "undefined" ||
|
|
632
|
+ typeof this.records[recordIndex].advices === 'undefined' ||
|
633
|
633
|
this.records[recordIndex].advices == null
|
634
|
634
|
) {
|
635
|
|
- this.records[recordIndex].advices = [];
|
|
635
|
+ this.records[recordIndex].advices = []
|
636
|
636
|
}
|
637
|
637
|
for (let index = 0; index < delghTwo; index++) {
|
638
|
|
- this.records[recordIndex].advices.push([]);
|
|
638
|
+ this.records[recordIndex].advices.push([])
|
639
|
639
|
}
|
640
|
640
|
}
|
641
|
641
|
|
642
|
|
- var childMap = {};
|
|
642
|
+ var childMap = {}
|
643
|
643
|
for (const index in this.records[recordIndex].advices) {
|
644
|
644
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
645
|
|
- continue;
|
|
645
|
+ continue
|
646
|
646
|
}
|
647
|
647
|
if (
|
648
|
648
|
!(
|
|
@@ -651,285 +651,285 @@ export default {
|
651
|
651
|
) {
|
652
|
652
|
childMap[
|
653
|
653
|
this.records[recordIndex].advices[index].parent_id
|
654
|
|
- ] = [];
|
|
654
|
+ ] = []
|
655
|
655
|
}
|
656
|
656
|
childMap[this.records[recordIndex].advices[index].parent_id].push(
|
657
|
657
|
this.records[recordIndex].advices[index]
|
658
|
|
- );
|
|
658
|
+ )
|
659
|
659
|
}
|
660
|
660
|
|
661
|
|
- var advices = [];
|
|
661
|
+ var advices = []
|
662
|
662
|
for (const index in this.records[recordIndex].advices) {
|
663
|
663
|
if (this.records[recordIndex].advices[index].parent_id > 0) {
|
664
|
|
- continue;
|
|
664
|
+ continue
|
665
|
665
|
}
|
666
|
|
- var item = this.records[recordIndex].advices[index];
|
|
666
|
+ var item = this.records[recordIndex].advices[index]
|
667
|
667
|
if (item.id in childMap) {
|
668
|
|
- item.children = childMap[item.id];
|
|
668
|
+ item.children = childMap[item.id]
|
669
|
669
|
} else {
|
670
|
|
- item.children = [];
|
|
670
|
+ item.children = []
|
671
|
671
|
}
|
672
|
|
- advices.push(item);
|
|
672
|
+ advices.push(item)
|
673
|
673
|
}
|
674
|
674
|
|
675
|
|
- var leftAdvice = [];
|
676
|
|
- var rightAdvice = [];
|
677
|
|
- var adlen = advices.length;
|
|
675
|
+ var leftAdvice = []
|
|
676
|
+ var rightAdvice = []
|
|
677
|
+ var adlen = advices.length
|
678
|
678
|
|
679
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
|
679
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
680
|
680
|
for (var i = 0; i < halfLen; i++) {
|
681
|
|
- leftAdvice.push(advices[i]);
|
682
|
|
- var rightIndex = i + halfLen;
|
|
681
|
+ leftAdvice.push(advices[i])
|
|
682
|
+ var rightIndex = i + halfLen
|
683
|
683
|
rightAdvice.push(
|
684
|
684
|
rightIndex in advices ? advices[i + halfLen] : []
|
685
|
|
- );
|
|
685
|
+ )
|
686
|
686
|
}
|
687
|
687
|
if (halfLen < 5) {
|
688
|
|
- var nl = 5 - leftAdvice.length;
|
|
688
|
+ var nl = 5 - leftAdvice.length
|
689
|
689
|
for (let index = 0; index < nl; index++) {
|
690
|
|
- leftAdvice.push([]);
|
|
690
|
+ leftAdvice.push([])
|
691
|
691
|
}
|
692
|
|
- var nl = 5 - rightAdvice.length;
|
|
692
|
+ var nl = 5 - rightAdvice.length
|
693
|
693
|
for (let index = 0; index < nl; index++) {
|
694
|
|
- rightAdvice.push([]);
|
|
694
|
+ rightAdvice.push([])
|
695
|
695
|
}
|
696
|
696
|
}
|
697
|
697
|
|
698
|
|
- this.records[recordIndex].advices = [];
|
|
698
|
+ this.records[recordIndex].advices = []
|
699
|
699
|
for (var i = 0; i < halfLen; i++) {
|
700
|
|
- var item = [];
|
701
|
|
- item.push(leftAdvice[i]);
|
702
|
|
- item.push(rightAdvice[i]);
|
703
|
|
- this.records[recordIndex].advices.push(item);
|
|
700
|
+ var item = []
|
|
701
|
+ item.push(leftAdvice[i])
|
|
702
|
+ item.push(rightAdvice[i])
|
|
703
|
+ this.records[recordIndex].advices.push(item)
|
704
|
704
|
}
|
705
|
705
|
}
|
706
|
706
|
|
707
|
|
- console.log(" this.records[recordIndex].advices", this.records);
|
708
|
|
- this.operators = resp.data.medical_staffs;
|
|
707
|
+ console.log(' this.records[recordIndex].advices', this.records)
|
|
708
|
+ this.operators = resp.data.medical_staffs
|
709
|
709
|
if (this.operators.length > 0) {
|
710
|
|
- var operatorsLen = this.operators.length;
|
|
710
|
+ var operatorsLen = this.operators.length
|
711
|
711
|
for (var index = 0; index < operatorsLen; index++) {
|
712
|
712
|
this.$set(
|
713
|
713
|
this.operatorMaps,
|
714
|
714
|
this.operators[index].id,
|
715
|
715
|
this.operators[index]
|
716
|
|
- );
|
|
716
|
+ )
|
717
|
717
|
}
|
718
|
718
|
}
|
719
|
719
|
|
720
|
|
- this.adminUser = resp.data.users;
|
721
|
|
- console.log("adminUser", this.adminUser);
|
722
|
|
- var name = resp.data.name;
|
723
|
|
- this.adminSign = name;
|
724
|
|
- console.log("name是", name);
|
725
|
|
- this.loading = false;
|
|
720
|
+ this.adminUser = resp.data.users
|
|
721
|
+ console.log('adminUser', this.adminUser)
|
|
722
|
+ var name = resp.data.name
|
|
723
|
+ this.adminSign = name
|
|
724
|
+ console.log('name是', name)
|
|
725
|
+ this.loading = false
|
726
|
726
|
} else {
|
727
|
|
- this.loading = false;
|
728
|
|
- this.$message.error(resp.msg);
|
|
727
|
+ this.loading = false
|
|
728
|
+ this.$message.error(resp.msg)
|
729
|
729
|
}
|
730
|
730
|
})
|
731
|
731
|
.catch(err => {
|
732
|
|
- this.$message.error(err);
|
733
|
|
- });
|
|
732
|
+ this.$message.error(err)
|
|
733
|
+ })
|
734
|
734
|
},
|
735
|
735
|
methods: {
|
736
|
|
- getNewNumber(name,number){
|
737
|
|
- if(name.indexOf("区") > -1){
|
738
|
|
- return (
|
739
|
|
- name + number
|
740
|
|
- );
|
741
|
|
- } else {
|
742
|
|
- return (
|
743
|
|
- name + "区" + number
|
744
|
|
-
|
745
|
|
- );
|
746
|
|
- }
|
|
736
|
+ getNewNumber(name, number) {
|
|
737
|
+ if (name.indexOf('区') > -1) {
|
|
738
|
+ return (
|
|
739
|
+ name + number
|
|
740
|
+ )
|
|
741
|
+ } else {
|
|
742
|
+ return (
|
|
743
|
+ name + '区' + number
|
|
744
|
+
|
|
745
|
+ )
|
|
746
|
+ }
|
747
|
747
|
},
|
748
|
748
|
getNewAge(UUserCard) {
|
749
|
749
|
if (UUserCard != null && UUserCard != '') {
|
750
|
|
- //获取年龄
|
751
|
|
- var myDate = new Date();
|
752
|
|
- var month = myDate.getMonth() + 1;
|
753
|
|
- var day = myDate.getDate();
|
754
|
|
- var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
|
|
750
|
+ // 获取年龄
|
|
751
|
+ var myDate = new Date()
|
|
752
|
+ var month = myDate.getMonth() + 1
|
|
753
|
+ var day = myDate.getDate()
|
|
754
|
+ var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
|
755
|
755
|
if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
|
756
|
|
- age++;
|
|
756
|
+ age++
|
757
|
757
|
}
|
758
|
|
- return age;
|
|
758
|
+ return age
|
759
|
759
|
}
|
760
|
760
|
},
|
761
|
|
- getIsCheckDataConfig(pName, cName, targetName){
|
762
|
|
- var arr = getDataConfig(pName,cName)
|
763
|
|
- console.log(arr)
|
764
|
|
- for (let i = 0; i < arr.length; i++){
|
765
|
|
- if (arr[i].name == targetName){
|
766
|
|
- return arr[i].id
|
767
|
|
- }
|
|
761
|
+ getIsCheckDataConfig(pName, cName, targetName) {
|
|
762
|
+ var arr = getDataConfig(pName, cName)
|
|
763
|
+ console.log(arr)
|
|
764
|
+ for (let i = 0; i < arr.length; i++) {
|
|
765
|
+ if (arr[i].name == targetName) {
|
|
766
|
+ return arr[i].id
|
768
|
767
|
}
|
|
768
|
+ }
|
769
|
769
|
},
|
770
|
770
|
getUnit: function(val) {
|
771
|
771
|
if (val.assessment_after_dislysis == null) {
|
772
|
|
- return "";
|
|
772
|
+ return ''
|
773
|
773
|
} else if (val.assessment_after_dislysis != null) {
|
774
|
774
|
switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
|
775
|
775
|
case 1:
|
776
|
|
- return "g";
|
777
|
|
- break;
|
|
776
|
+ return 'g'
|
|
777
|
+ break
|
778
|
778
|
case 2:
|
779
|
|
- return "ml";
|
780
|
|
- break;
|
|
779
|
+ return 'ml'
|
|
780
|
+ break
|
781
|
781
|
}
|
782
|
782
|
}
|
783
|
783
|
},
|
784
|
784
|
QueryPartById: function(val) {
|
785
|
|
- let vascular_access_part_name = "/";
|
786
|
|
- const vascular_access = getDataConfig("hemodialysis", "vascular_access");
|
|
785
|
+ let vascular_access_part_name = '/'
|
|
786
|
+ const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
|
787
|
787
|
|
788
|
788
|
for (let i = 0; i < vascular_access.length; i++) {
|
789
|
789
|
if (vascular_access[i].id == val) {
|
790
|
|
- vascular_access_part_name = vascular_access[i].name;
|
|
790
|
+ vascular_access_part_name = vascular_access[i].name
|
791
|
791
|
}
|
792
|
792
|
}
|
793
|
|
- return vascular_access_part_name;
|
|
793
|
+ return vascular_access_part_name
|
794
|
794
|
},
|
795
|
795
|
printThisPage() {
|
796
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
797
|
|
- this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
|
796
|
+ var ptime = Math.round(new Date().getTime() / 1000)
|
|
797
|
+ this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
798
|
798
|
|
799
|
799
|
const style =
|
800
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
800
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
801
|
801
|
const style2 =
|
802
|
|
- '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
|
802
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
803
|
803
|
const style3 =
|
804
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
|
|
804
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}'
|
805
|
805
|
printJS({
|
806
|
|
- printable: "print_content",
|
807
|
|
- type: "html",
|
808
|
|
- documentTitle: " ",
|
|
806
|
+ printable: 'print_content',
|
|
807
|
+ type: 'html',
|
|
808
|
+ documentTitle: ' ',
|
809
|
809
|
style: style,
|
810
|
810
|
scanStyles: false
|
811
|
|
- });
|
|
811
|
+ })
|
812
|
812
|
},
|
813
|
813
|
|
814
|
814
|
complicationsOther: function(record) {
|
815
|
|
- if (record == null || typeof record === "undefined") {
|
816
|
|
- return "";
|
|
815
|
+ if (record == null || typeof record === 'undefined') {
|
|
816
|
+ return ''
|
817
|
817
|
}
|
818
|
818
|
if (record.complication.length == 0) {
|
819
|
|
- return "";
|
|
819
|
+ return ''
|
820
|
820
|
}
|
821
|
|
- var complications = record.complication.split(",");
|
822
|
|
- var complicationOthers = [];
|
|
821
|
+ var complications = record.complication.split(',')
|
|
822
|
+ var complicationOthers = []
|
823
|
823
|
for (const index in complications) {
|
824
|
824
|
if (
|
825
|
825
|
this.complications.indexOf(complications[index]) < 0 &&
|
826
|
826
|
complicationOthers.indexOf(complications[index]) < 0
|
827
|
827
|
) {
|
828
|
|
- complicationOthers.push(complications[index]);
|
|
828
|
+ complicationOthers.push(complications[index])
|
829
|
829
|
}
|
830
|
830
|
}
|
831
|
|
- return complicationOthers.join(",");
|
|
831
|
+ return complicationOthers.join(',')
|
832
|
832
|
},
|
833
|
833
|
modeName(mode_id) {
|
834
|
834
|
if (mode_id in this.modeOptions) {
|
835
|
|
- return this.modeOptions[mode_id].name;
|
|
835
|
+ return this.modeOptions[mode_id].name
|
836
|
836
|
}
|
837
|
|
- return "";
|
|
837
|
+ return ''
|
838
|
838
|
},
|
839
|
839
|
anticoagulantName: function(key) {
|
840
|
|
- if (key == null || typeof key === "undefined") {
|
841
|
|
- return "";
|
|
840
|
+ if (key == null || typeof key === 'undefined') {
|
|
841
|
+ return ''
|
842
|
842
|
}
|
843
|
|
- var id = key.anticoagulant;
|
|
843
|
+ var id = key.anticoagulant
|
844
|
844
|
if (id in this.anticoagulantsConfit) {
|
845
|
|
- return this.anticoagulantsConfit[id].name;
|
|
845
|
+ return this.anticoagulantsConfit[id].name
|
846
|
846
|
}
|
847
|
|
- return "";
|
|
847
|
+ return ''
|
848
|
848
|
},
|
849
|
849
|
bloodAccessParOperaName(id) {
|
850
|
850
|
if (id in this.bloodAccessParOpera) {
|
851
|
|
- return this.bloodAccessParOpera[id].name;
|
|
851
|
+ return this.bloodAccessParOpera[id].name
|
852
|
852
|
}
|
853
|
|
- return "";
|
|
853
|
+ return ''
|
854
|
854
|
},
|
855
|
855
|
isBbloodAccessParOperaCheck(key, value) {
|
856
|
|
- if (key == null || typeof key === "undefined") {
|
857
|
|
- return false;
|
|
856
|
+ if (key == null || typeof key === 'undefined') {
|
|
857
|
+ return false
|
858
|
858
|
}
|
859
|
|
- var id = key.blood_access_part_opera_id;
|
|
859
|
+ var id = key.blood_access_part_opera_id
|
860
|
860
|
if (id in this.bloodAccessParOpera) {
|
861
|
|
- return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
|
|
861
|
+ return this.bloodAccessParOpera[id].name.indexOf(value) > -1
|
862
|
862
|
}
|
863
|
|
- return false;
|
|
863
|
+ return false
|
864
|
864
|
},
|
865
|
865
|
isdialysateFormulatioCheck(key, value) {
|
866
|
|
- if (key == null || typeof key === "undefined") {
|
867
|
|
- return false;
|
|
866
|
+ if (key == null || typeof key === 'undefined') {
|
|
867
|
+ return false
|
868
|
868
|
}
|
869
|
|
- var id = key.dialysate_formulation;
|
|
869
|
+ var id = key.dialysate_formulation
|
870
|
870
|
if (id in this.dialysateFormulationOptions) {
|
871
|
|
- return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
|
|
871
|
+ return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
|
872
|
872
|
}
|
873
|
|
- return false;
|
|
873
|
+ return false
|
874
|
874
|
},
|
875
|
875
|
isValueIndexOfCheck: function(record, key, value) {
|
876
|
876
|
if (record == null || record == undefined) {
|
877
|
|
- return false;
|
|
877
|
+ return false
|
878
|
878
|
} else {
|
879
|
|
- return record[key].indexOf(value) > -1;
|
|
879
|
+ return record[key].indexOf(value) > -1
|
880
|
880
|
}
|
881
|
881
|
},
|
882
|
882
|
setAdminUserES(key, id) {
|
883
|
883
|
if (
|
884
|
|
- typeof key === "undefined" ||
|
|
884
|
+ typeof key === 'undefined' ||
|
885
|
885
|
key == null ||
|
886
|
|
- typeof key[id] === "undefined"
|
|
886
|
+ typeof key[id] === 'undefined'
|
887
|
887
|
) {
|
888
|
|
- return "";
|
|
888
|
+ return ''
|
889
|
889
|
}
|
890
|
890
|
if (key[id] == 0) {
|
891
|
|
- return "";
|
|
891
|
+ return ''
|
892
|
892
|
}
|
893
|
893
|
if (key[id] in this.operatorMaps) {
|
894
|
|
- return this.operatorMaps[key[id]].es_url;
|
|
894
|
+ return this.operatorMaps[key[id]].es_url
|
895
|
895
|
} else {
|
896
|
|
- return "";
|
|
896
|
+ return ''
|
897
|
897
|
}
|
898
|
898
|
},
|
899
|
899
|
getFloat: function(x) {
|
900
|
|
- if (x != ".") {
|
901
|
|
- var f = Math.round(x * 100) / 100;
|
902
|
|
- var s = f.toString();
|
903
|
|
- var rs = s.indexOf(".");
|
|
900
|
+ if (x != '.') {
|
|
901
|
+ var f = Math.round(x * 100) / 100
|
|
902
|
+ var s = f.toString()
|
|
903
|
+ var rs = s.indexOf('.')
|
904
|
904
|
if (rs <= 0) {
|
905
|
|
- rs = s.length;
|
906
|
|
- s += ".";
|
|
905
|
+ rs = s.length
|
|
906
|
+ s += '.'
|
907
|
907
|
}
|
908
|
908
|
while (s.length <= rs + 1) {
|
909
|
|
- s += "0";
|
|
909
|
+ s += '0'
|
910
|
910
|
}
|
911
|
|
- return s;
|
|
911
|
+ return s
|
912
|
912
|
} else {
|
913
|
|
- return "0.0";
|
|
913
|
+ return '0.0'
|
914
|
914
|
}
|
915
|
915
|
},
|
916
|
916
|
getAdminUser(key, id) {
|
917
|
917
|
if (
|
918
|
|
- typeof key === "undefined" ||
|
|
918
|
+ typeof key === 'undefined' ||
|
919
|
919
|
key == null ||
|
920
|
|
- typeof key[id] === "undefined"
|
|
920
|
+ typeof key[id] === 'undefined'
|
921
|
921
|
) {
|
922
|
|
- return "";
|
|
922
|
+ return ''
|
923
|
923
|
}
|
924
|
924
|
if (key[id] === 0) {
|
925
|
|
- return "";
|
|
925
|
+ return ''
|
926
|
926
|
}
|
927
|
927
|
if (key[id] === undefined) {
|
928
|
|
- return "";
|
|
928
|
+ return ''
|
929
|
929
|
}
|
930
|
930
|
for (let i = 0; i < this.adminUser.length; i++) {
|
931
|
931
|
if (this.adminUser[i].id === key[id]) {
|
932
|
|
- return this.adminUser[i].name;
|
|
932
|
+ return this.adminUser[i].name
|
933
|
933
|
}
|
934
|
934
|
}
|
935
|
935
|
},
|
|
@@ -937,47 +937,47 @@ export default {
|
937
|
937
|
getName(id) {
|
938
|
938
|
for (let i = 0; i < this.adminSign.length; i++) {
|
939
|
939
|
if (this.adminSign[i].id === id) {
|
940
|
|
- if (this.adminSign[i].url === "") {
|
941
|
|
- this.showOne = true;
|
942
|
|
- this.showTwo = false;
|
943
|
|
- return this.adminSign[i].name;
|
|
940
|
+ if (this.adminSign[i].url === '') {
|
|
941
|
+ this.showOne = true
|
|
942
|
+ this.showTwo = false
|
|
943
|
+ return this.adminSign[i].name
|
944
|
944
|
} else {
|
945
|
|
- this.showOne = false;
|
946
|
|
- this.showTwo = true;
|
947
|
|
- return this.adminSign[i].url;
|
|
945
|
+ this.showOne = false
|
|
946
|
+ this.showTwo = true
|
|
947
|
+ return this.adminSign[i].url
|
948
|
948
|
}
|
949
|
949
|
}
|
950
|
950
|
}
|
951
|
951
|
},
|
952
|
952
|
jsGetAge: function(agetime) {
|
953
|
953
|
if (agetime === 0) {
|
954
|
|
- return "";
|
|
954
|
+ return ''
|
955
|
955
|
}
|
956
|
|
- return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
|
|
956
|
+ return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
|
957
|
957
|
},
|
958
|
958
|
getTime(value, temp) {
|
959
|
959
|
if (value != undefined) {
|
960
|
|
- return uParseTime(value, temp);
|
|
960
|
+ return uParseTime(value, temp)
|
961
|
961
|
}
|
962
|
|
- return "";
|
|
962
|
+ return ''
|
963
|
963
|
},
|
964
|
964
|
// 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
|
965
|
965
|
// 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
|
966
|
966
|
isCheckBoxChecked: function(record, key, target_value) {
|
967
|
967
|
if (record == null || record == undefined) {
|
968
|
|
- return false;
|
|
968
|
+ return false
|
969
|
969
|
} else {
|
970
|
|
- return record[key] == target_value;
|
|
970
|
+ return record[key] == target_value
|
971
|
971
|
}
|
972
|
972
|
},
|
973
|
973
|
getAge: function(val) {
|
974
|
974
|
if (val.age == 0) {
|
975
|
975
|
if (val.birthday == 0) {
|
976
|
|
- return "";
|
|
976
|
+ return ''
|
977
|
977
|
}
|
978
|
|
- return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
|
|
978
|
+ return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
|
979
|
979
|
} else {
|
980
|
|
- return val.age;
|
|
980
|
+ return val.age
|
981
|
981
|
}
|
982
|
982
|
},
|
983
|
983
|
newAdviceGroupObject: function() {
|
|
@@ -987,7 +987,7 @@ export default {
|
987
|
987
|
group_no: 0,
|
988
|
988
|
advices: []
|
989
|
989
|
}
|
990
|
|
- );
|
|
990
|
+ )
|
991
|
991
|
},
|
992
|
992
|
// getNumber: function(record) {
|
993
|
993
|
// console.log(record);
|
|
@@ -995,27 +995,27 @@ export default {
|
995
|
995
|
getLastAfterWeight(id, assessmentDate) {
|
996
|
996
|
getLastAfterWeight(id, assessmentDate).then(response => {
|
997
|
997
|
if (response.data.state === 1) {
|
998
|
|
- var weight = response.data.data.weight;
|
|
998
|
+ var weight = response.data.data.weight
|
999
|
999
|
|
1000
|
|
- this.lastAfterWeight = weight.weight_after.toFixed(1);
|
1001
|
|
- console.log("weight", weight);
|
1002
|
|
- }
|
1003
|
|
- });
|
1004
|
|
- },
|
1005
|
|
- getNewNumber(name,number){
|
1006
|
|
- if(name.indexOf("区") > -1){
|
1007
|
|
- return (
|
1008
|
|
- name + number
|
1009
|
|
- );
|
1010
|
|
- } else {
|
1011
|
|
- return (
|
1012
|
|
- name + "区" + number
|
1013
|
|
-
|
1014
|
|
- );
|
|
1000
|
+ this.lastAfterWeight = weight.weight_after.toFixed(1)
|
|
1001
|
+ console.log('weight', weight)
|
1015
|
1002
|
}
|
|
1003
|
+ })
|
1016
|
1004
|
},
|
|
1005
|
+ getNewNumber(name, number) {
|
|
1006
|
+ if (name.indexOf('区') > -1) {
|
|
1007
|
+ return (
|
|
1008
|
+ name + number
|
|
1009
|
+ )
|
|
1010
|
+ } else {
|
|
1011
|
+ return (
|
|
1012
|
+ name + '区' + number
|
|
1013
|
+
|
|
1014
|
+ )
|
|
1015
|
+ }
|
|
1016
|
+ }
|
1017
|
1017
|
}
|
1018
|
|
-};
|
|
1018
|
+}
|
1019
|
1019
|
</script>
|
1020
|
1020
|
|
1021
|
1021
|
<style scoped>
|