|
@@ -63,6 +63,36 @@
|
63
|
63
|
:picker-options="pickerOptions"
|
64
|
64
|
></el-date-picker>
|
65
|
65
|
</div>
|
|
66
|
+ <!-- <div class="cell clearfix">
|
|
67
|
+ <label class="title"><span class="name">转归情况</span> : </label>
|
|
68
|
+ <div class="time ">
|
|
69
|
+ <ul class="">
|
|
70
|
+ <li
|
|
71
|
+ :class="item.lapseto == lapsetoType ? 'active' : ''"
|
|
72
|
+ @click="selectLapseTo(item.lapseto)"
|
|
73
|
+ v-for="item in lapsetoArr"
|
|
74
|
+ :key="item.value"
|
|
75
|
+ >
|
|
76
|
+ {{ item.label }}
|
|
77
|
+ </li>
|
|
78
|
+ </ul>
|
|
79
|
+ </div>
|
|
80
|
+ </div> -->
|
|
81
|
+ <!-- <div class="cell clearfix">
|
|
82
|
+ <label class="title"><span class="name">病人来源</span> : </label>
|
|
83
|
+ <div class="time ">
|
|
84
|
+ <ul class="">
|
|
85
|
+ <li
|
|
86
|
+ :class="item.source == sourceType ? 'active' : ''"
|
|
87
|
+ @click="selectSource(item.source)"
|
|
88
|
+ v-for="item in sourceArr"
|
|
89
|
+ :key="item.value"
|
|
90
|
+ >
|
|
91
|
+ {{ item.label }}
|
|
92
|
+ </li>
|
|
93
|
+ </ul>
|
|
94
|
+ </div>
|
|
95
|
+ </div> -->
|
66
|
96
|
|
67
|
97
|
<div class="cell clearfix" v-show="treatShow">
|
68
|
98
|
<label class="title">
|
|
@@ -386,7 +416,19 @@ export default {
|
386
|
416
|
dialysisAge:[],
|
387
|
417
|
start:0,
|
388
|
418
|
end:0,
|
389
|
|
-
|
|
419
|
+ lapsetoType: 0,
|
|
420
|
+ lapsetoArr: [
|
|
421
|
+ { value: 0, label: '全部', source: 0, lapseto: 0 },
|
|
422
|
+ { value: 1, label: '转出', source: 0, lapseto: 2 },
|
|
423
|
+ { value: 2, label: '留治', source: 0, lapseto: 1 },
|
|
424
|
+ { value: 3, label: '死亡', source:0, lapseto: 3 },
|
|
425
|
+ ],
|
|
426
|
+ sourceType: 0,
|
|
427
|
+ sourceArr: [
|
|
428
|
+ { value: 0, label: '全部', source: 0, lapseto: 0 },
|
|
429
|
+ { value: 3, label: '门诊', source: 1, lapseto: 1 },
|
|
430
|
+ { value: 4, label: '住院', source: 2, lapseto: 1 }
|
|
431
|
+ ],
|
390
|
432
|
way: 0,
|
391
|
433
|
wayArr: [
|
392
|
434
|
{ value: 0, label: "统计图", state: 0 },
|
|
@@ -585,6 +627,8 @@ export default {
|
585
|
627
|
{ value: 1, label: "转出", state: 1}
|
586
|
628
|
],
|
587
|
629
|
lapseid:0,
|
|
630
|
+ startDate:"",
|
|
631
|
+ endDate:"",
|
588
|
632
|
};
|
589
|
633
|
|
590
|
634
|
|
|
@@ -604,17 +648,17 @@ export default {
|
604
|
648
|
this.start_time = "";
|
605
|
649
|
} else {
|
606
|
650
|
//统计透析总量
|
607
|
|
- this.getDialysisModeType(val,this.listQuery.end_time)
|
|
651
|
+ this.getDialysisModeType(val,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
608
|
652
|
//统计转归状态
|
609
|
|
- this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
|
|
653
|
+ this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
610
|
654
|
//统计男女比例
|
611
|
655
|
this.getTotalSexCount(timeStar,timeEnd)
|
612
|
656
|
//统计传染病
|
613
|
|
- this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
|
|
657
|
+ this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
614
|
658
|
//统计年龄
|
615
|
|
- this.getTotalAgeCount(timeStar,timeEnd)
|
|
659
|
+ this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
616
|
660
|
//统计透析年龄
|
617
|
|
- this.getTotalDialysisCount(timeStar,timeEnd)
|
|
661
|
+ this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
618
|
662
|
this.start = timeStar
|
619
|
663
|
this.end =timeEnd
|
620
|
664
|
this.getCountModeId()
|
|
@@ -632,17 +676,17 @@ export default {
|
632
|
676
|
this.listQuery.end_time = "";
|
633
|
677
|
} else {
|
634
|
678
|
//统计透析总量
|
635
|
|
- this.getDialysisModeType(this.listQuery.start_time,val)
|
|
679
|
+ this.getDialysisModeType(this.listQuery.start_time,val,this.lapsetoType,this.sourceType)
|
636
|
680
|
//统计转归状态
|
637
|
|
- this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
|
|
681
|
+ this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
638
|
682
|
//统计男女比例
|
639
|
|
- this.getTotalSexCount(timeStar,timeEnd)
|
|
683
|
+ this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
640
|
684
|
//统计传染病
|
641
|
|
- this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
|
|
685
|
+ this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
642
|
686
|
//统计年龄
|
643
|
|
- this.getTotalAgeCount(timeStar,timeEnd)
|
|
687
|
+ this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
644
|
688
|
//统计透析年龄
|
645
|
|
- this.getTotalDialysisCount(timeStar,timeEnd)
|
|
689
|
+ this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
646
|
690
|
this.start = timeStar
|
647
|
691
|
this.end =timeEnd
|
648
|
692
|
this.getCountModeId()
|
|
@@ -655,6 +699,7 @@ export default {
|
655
|
699
|
//获取本月当前机构的透析模式
|
656
|
700
|
const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
|
657
|
701
|
const endDate = moment(new Date()).format('YYYY-MM-DD')
|
|
702
|
+
|
658
|
703
|
var now = new Date()
|
659
|
704
|
var nowMonth = now.getMonth(); //当前月
|
660
|
705
|
var nowYear = now.getFullYear(); //当前年
|
|
@@ -669,17 +714,17 @@ export default {
|
669
|
714
|
//本月
|
670
|
715
|
if(state == 0){
|
671
|
716
|
//统计透析总量
|
672
|
|
- this.getDialysisModeType(startDate,endDate)
|
|
717
|
+ this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
|
673
|
718
|
//统计转归状态
|
674
|
|
- this.getTotalLapseCount(startDate,endDate)
|
|
719
|
+ this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
675
|
720
|
//统计男女比例
|
676
|
|
- this.getTotalSexCount(timeStar,timeEnd)
|
|
721
|
+ this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
677
|
722
|
//统计传染病
|
678
|
|
- this.getTotalInfectiousCount(startDate,endDate)
|
|
723
|
+ this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
679
|
724
|
//统计年龄
|
680
|
|
- this.getTotalAgeCount(timeStar,timeEnd)
|
|
725
|
+ this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
681
|
726
|
//统计透析年龄
|
682
|
|
- this.getTotalDialysisCount(timeStar,timeEnd)
|
|
727
|
+ this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
683
|
728
|
this.start = timeStar
|
684
|
729
|
this.end = timeEnd
|
685
|
730
|
this.getCountModeId()
|
|
@@ -690,7 +735,7 @@ export default {
|
690
|
735
|
this.listQuery.start_time = ""
|
691
|
736
|
this.listQuery.end_time = ""
|
692
|
737
|
const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
|
693
|
|
- // console.log("三月前",startDate)
|
|
738
|
+
|
694
|
739
|
var startunitx = Date.parse(startDate)/1000
|
695
|
740
|
// console.log("开始时间搓",startunitx)
|
696
|
741
|
const endDate = moment(new Date()).format('YYYY-MM-DD')
|
|
@@ -698,17 +743,17 @@ export default {
|
698
|
743
|
var endunitx = Date.parse(endDate)/1000
|
699
|
744
|
// console.log("日期时间搓",endunitx)
|
700
|
745
|
//统计透析总量
|
701
|
|
- this.getDialysisModeType(startDate,endDate)
|
|
746
|
+ this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
|
702
|
747
|
//统计转归状态
|
703
|
|
- this.getTotalLapseCount(startDate,endDate)
|
|
748
|
+ this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
704
|
749
|
//统计男女比例
|
705
|
|
- this.getTotalSexCount(startunitx,endunitx)
|
|
750
|
+ this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
706
|
751
|
//统计传染病
|
707
|
|
- this.getTotalInfectiousCount(startDate,endDate)
|
|
752
|
+ this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
708
|
753
|
//统计年龄
|
709
|
|
- this.getTotalAgeCount(startunitx,endunitx)
|
|
754
|
+ this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
710
|
755
|
//统计透析年龄
|
711
|
|
- this.getTotalDialysisCount(startunitx,endunitx)
|
|
756
|
+ this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
712
|
757
|
this.start = startunitx
|
713
|
758
|
this.end = endunitx
|
714
|
759
|
this.getCountModeId()
|
|
@@ -728,17 +773,17 @@ export default {
|
728
|
773
|
var endunitx = Date.parse(endDate)/1000
|
729
|
774
|
// console.log("日期时间搓",endunitx)
|
730
|
775
|
//统计透析总量
|
731
|
|
- this.getDialysisModeType(startDate,endDate)
|
|
776
|
+ this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
|
732
|
777
|
//统计转归状态
|
733
|
|
- this.getTotalLapseCount(startDate,endDate)
|
|
778
|
+ this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
734
|
779
|
//统计男女比例
|
735
|
|
- this.getTotalSexCount(startunitx,endunitx)
|
|
780
|
+ this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
736
|
781
|
//统计传染病
|
737
|
|
- this.getTotalInfectiousCount(startDate,endDate)
|
|
782
|
+ this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
738
|
783
|
//统计年龄
|
739
|
|
- this.getTotalAgeCount(startunitx,endunitx)
|
|
784
|
+ this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
740
|
785
|
//统计透析年龄
|
741
|
|
- this.getTotalDialysisCount(startunitx,endunitx)
|
|
786
|
+ this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
742
|
787
|
|
743
|
788
|
this.start = startunitx
|
744
|
789
|
this.end = endunitx
|
|
@@ -759,17 +804,17 @@ export default {
|
759
|
804
|
var endunitx = Date.parse(endDate)/1000
|
760
|
805
|
// console.log("日期时间搓",endunitx)
|
761
|
806
|
//统计透析总量
|
762
|
|
- this.getDialysisModeType(startDate,endDate)
|
|
807
|
+ this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
|
763
|
808
|
//统计转归状态
|
764
|
|
- this.getTotalLapseCount(startDate,endDate)
|
|
809
|
+ this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
765
|
810
|
//统计男女比例
|
766
|
|
- this.getTotalSexCount(startunitx,endunitx)
|
|
811
|
+ this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
767
|
812
|
//统计传染病
|
768
|
|
- this.getTotalInfectiousCount(startDate,endDate)
|
|
813
|
+ this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
769
|
814
|
//统计年龄
|
770
|
|
- this.getTotalAgeCount(startunitx,endunitx)
|
|
815
|
+ this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
771
|
816
|
//统计透析年龄
|
772
|
|
- this.getTotalDialysisCount(startunitx,endunitx)
|
|
817
|
+ this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
773
|
818
|
|
774
|
819
|
this.start = startunitx
|
775
|
820
|
this.end = endunitx
|
|
@@ -790,15 +835,17 @@ export default {
|
790
|
835
|
this.lapseMode = state
|
791
|
836
|
this.getRolloutCount(this.start,this.end)
|
792
|
837
|
},
|
793
|
|
- getDialysisModeType(startDate,endDate){
|
|
838
|
+ getDialysisModeType(startDate,endDate,lapsetoType,sourceType){
|
794
|
839
|
this.modesData.series = []
|
795
|
840
|
this.modesData.xAxis = []
|
796
|
|
- getDialysisModeType(startDate,endDate).then(response=>{
|
|
841
|
+ getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
|
797
|
842
|
if(response.data.state == 1){
|
798
|
843
|
|
799
|
844
|
var modetype = response.data.data.modetype
|
800
|
845
|
this.modetype = modetype
|
801
|
846
|
var total = response.data.data.total
|
|
847
|
+ console.log("total22222222",total)
|
|
848
|
+ // this.total = total[0].count
|
802
|
849
|
this.total = total
|
803
|
850
|
// console.log("数据",this.modetype)
|
804
|
851
|
var modedate = response.data.data.modetype
|
|
@@ -1167,7 +1214,25 @@ export default {
|
1167
|
1214
|
|
1168
|
1215
|
}
|
1169
|
1216
|
})
|
1170
|
|
- }
|
|
1217
|
+ },
|
|
1218
|
+ selectSource(source) {
|
|
1219
|
+ this.sourceType = source
|
|
1220
|
+ this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1221
|
+ this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1222
|
+ this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1223
|
+ this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1224
|
+ this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1225
|
+ this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1226
|
+ },
|
|
1227
|
+ selectLapseTo(lapseto) {
|
|
1228
|
+ this.lapsetoType = lapseto
|
|
1229
|
+ this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1230
|
+ this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1231
|
+ this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1232
|
+ this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1233
|
+ this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1234
|
+ this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1235
|
+ },
|
1171
|
1236
|
},
|
1172
|
1237
|
created() {
|
1173
|
1238
|
//获取本月当前机构的透析模式
|
|
@@ -1182,18 +1247,21 @@ export default {
|
1182
|
1247
|
//本月的结束时间
|
1183
|
1248
|
var monthEndDate = new Date(nowYear, nowMonth+1, 0);
|
1184
|
1249
|
var timeEnd=Date.parse(monthEndDate)/1000-1;//s
|
|
1250
|
+
|
|
1251
|
+ this.startDate = startDate
|
|
1252
|
+ this.endDate = endDate
|
1185
|
1253
|
//统计透析总量
|
1186
|
|
- this.getDialysisModeType(startDate,endDate)
|
|
1254
|
+ this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
|
1187
|
1255
|
//统计转归状态
|
1188
|
|
- this.getTotalLapseCount(startDate,endDate)
|
|
1256
|
+ this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
1189
|
1257
|
//统计男女比例
|
1190
|
|
- this.getTotalSexCount(timeStar,timeEnd)
|
|
1258
|
+ this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
1191
|
1259
|
//统计传染病
|
1192
|
|
- this.getTotalInfectiousCount(startDate,endDate)
|
|
1260
|
+ this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
|
1193
|
1261
|
//统计年龄
|
1194
|
|
- this.getTotalAgeCount(timeStar,timeEnd)
|
|
1262
|
+ this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
1195
|
1263
|
//统计透析年龄
|
1196
|
|
- this.getTotalDialysisCount(timeStar,timeEnd)
|
|
1264
|
+ this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
1197
|
1265
|
|
1198
|
1266
|
//获取当前选中时间所有的透析模式
|
1199
|
1267
|
this.getTreatModeList(timeStar,timeEnd)
|