|
@@ -63,13 +63,13 @@
|
63
|
63
|
:picker-options="pickerOptions"
|
64
|
64
|
></el-date-picker>
|
65
|
65
|
</div>
|
66
|
|
- <!-- <div class="cell clearfix">
|
|
66
|
+ <div class="cell clearfix">
|
67
|
67
|
<label class="title"><span class="name">转归情况</span> : </label>
|
68
|
68
|
<div class="time ">
|
69
|
69
|
<ul class="">
|
70
|
70
|
<li
|
71
|
71
|
:class="item.lapseto == lapsetoType ? 'active' : ''"
|
72
|
|
- @click="selectLapseTo(item.lapseto)"
|
|
72
|
+ @click="selectLapseOne(item.lapseto)"
|
73
|
73
|
v-for="item in lapsetoArr"
|
74
|
74
|
:key="item.value"
|
75
|
75
|
>
|
|
@@ -77,8 +77,8 @@
|
77
|
77
|
</li>
|
78
|
78
|
</ul>
|
79
|
79
|
</div>
|
80
|
|
- </div> -->
|
81
|
|
- <!-- <div class="cell clearfix">
|
|
80
|
+ </div>
|
|
81
|
+ <div class="cell clearfix">
|
82
|
82
|
<label class="title"><span class="name">病人来源</span> : </label>
|
83
|
83
|
<div class="time ">
|
84
|
84
|
<ul class="">
|
|
@@ -92,7 +92,7 @@
|
92
|
92
|
</li>
|
93
|
93
|
</ul>
|
94
|
94
|
</div>
|
95
|
|
- </div> -->
|
|
95
|
+ </div>
|
96
|
96
|
|
97
|
97
|
<div class="cell clearfix" v-show="treatShow">
|
98
|
98
|
<label class="title">
|
|
@@ -243,10 +243,12 @@
|
243
|
243
|
<p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
|
244
|
244
|
</div>
|
245
|
245
|
<div class="borderBox1">
|
246
|
|
- <p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
|
247
|
|
- <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
|
248
|
|
- <p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
|
249
|
|
- <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
|
|
246
|
+ <span v-if="lapsetoType == 0 || lapsetoType == 1"><p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
|
|
247
|
+ <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
|
|
248
|
+ </span>
|
|
249
|
+ <span v-if="lapsetoType == 0 || lapsetoType == 2"><p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
|
|
250
|
+ <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
|
|
251
|
+ </span>
|
250
|
252
|
</div>
|
251
|
253
|
</div>
|
252
|
254
|
<div class="infoOne">
|
|
@@ -327,7 +329,7 @@
|
327
|
329
|
</div>
|
328
|
330
|
<div>
|
329
|
331
|
|
330
|
|
- <div class="cell clearfix" v-show="treatShow">
|
|
332
|
+ <!-- <div class="cell clearfix" v-show="treatShow">
|
331
|
333
|
<label class="title">
|
332
|
334
|
<span class="name">转归状态</span> :
|
333
|
335
|
</label>
|
|
@@ -341,7 +343,7 @@
|
341
|
343
|
>{{ item.label }}</li>
|
342
|
344
|
</ul>
|
343
|
345
|
</div>
|
344
|
|
- </div>
|
|
346
|
+ </div> -->
|
345
|
347
|
|
346
|
348
|
<p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
|
347
|
349
|
<line-chart :options="bar"></line-chart>
|
|
@@ -421,7 +423,7 @@ export default {
|
421
|
423
|
{ value: 0, label: '全部', source: 0, lapseto: 0 },
|
422
|
424
|
{ value: 1, label: '转出', source: 0, lapseto: 2 },
|
423
|
425
|
{ value: 2, label: '留治', source: 0, lapseto: 1 },
|
424
|
|
- { value: 3, label: '死亡', source:0, lapseto: 3 },
|
|
426
|
+ // { value: 3, label: '死亡', source:0, lapseto: 3 },
|
425
|
427
|
],
|
426
|
428
|
sourceType: 0,
|
427
|
429
|
sourceArr: [
|
|
@@ -652,7 +654,7 @@ export default {
|
652
|
654
|
//统计转归状态
|
653
|
655
|
this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
654
|
656
|
//统计男女比例
|
655
|
|
- this.getTotalSexCount(timeStar,timeEnd)
|
|
657
|
+ this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
656
|
658
|
//统计传染病
|
657
|
659
|
this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
|
658
|
660
|
//统计年龄
|
|
@@ -662,7 +664,7 @@ export default {
|
662
|
664
|
this.start = timeStar
|
663
|
665
|
this.end =timeEnd
|
664
|
666
|
this.getCountModeId()
|
665
|
|
- this.getRolloutCount(timeStar,timeEnd)
|
|
667
|
+ this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
666
|
668
|
}
|
667
|
669
|
},
|
668
|
670
|
changeEndTime(val) {
|
|
@@ -690,7 +692,7 @@ export default {
|
690
|
692
|
this.start = timeStar
|
691
|
693
|
this.end =timeEnd
|
692
|
694
|
this.getCountModeId()
|
693
|
|
- this.getRolloutCount(timeStar,timeEnd)
|
|
695
|
+ this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
694
|
696
|
}
|
695
|
697
|
},
|
696
|
698
|
selectLapseTo(state) {
|
|
@@ -728,7 +730,7 @@ export default {
|
728
|
730
|
this.start = timeStar
|
729
|
731
|
this.end = timeEnd
|
730
|
732
|
this.getCountModeId()
|
731
|
|
- this.getRolloutCount(timeStar,timeEnd)
|
|
733
|
+ this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
732
|
734
|
}
|
733
|
735
|
//近三月
|
734
|
736
|
if(state == 1){
|
|
@@ -757,7 +759,7 @@ export default {
|
757
|
759
|
this.start = startunitx
|
758
|
760
|
this.end = endunitx
|
759
|
761
|
this.getCountModeId()
|
760
|
|
- this.getRolloutCount(startunitx,endunitx)
|
|
762
|
+ this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
761
|
763
|
}
|
762
|
764
|
|
763
|
765
|
//近半年
|
|
@@ -788,7 +790,7 @@ export default {
|
788
|
790
|
this.start = startunitx
|
789
|
791
|
this.end = endunitx
|
790
|
792
|
this.getCountModeId()
|
791
|
|
- this.getRolloutCount(startunitx,endunitx)
|
|
793
|
+ this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
792
|
794
|
}
|
793
|
795
|
|
794
|
796
|
//近一年
|
|
@@ -815,11 +817,10 @@ export default {
|
815
|
817
|
this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
816
|
818
|
//统计透析年龄
|
817
|
819
|
this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
818
|
|
-
|
819
|
820
|
this.start = startunitx
|
820
|
821
|
this.end = endunitx
|
821
|
822
|
this.getCountModeId()
|
822
|
|
- this.getRolloutCount(startunitx,endunitx)
|
|
823
|
+ this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
|
823
|
824
|
}
|
824
|
825
|
|
825
|
826
|
|
|
@@ -846,8 +847,8 @@ export default {
|
846
|
847
|
this.modetype = modetype
|
847
|
848
|
var total = response.data.data.total
|
848
|
849
|
|
849
|
|
- // this.total = total.count
|
850
|
|
- this.total = total
|
|
850
|
+ this.total = total.count
|
|
851
|
+ // this.total = total
|
851
|
852
|
// console.log("数据",this.modetype)
|
852
|
853
|
var modedate = response.data.data.modetype
|
853
|
854
|
for(let i=0;i<modedate.length;i++){
|
|
@@ -919,60 +920,52 @@ export default {
|
919
|
920
|
})
|
920
|
921
|
},
|
921
|
922
|
//统计转归
|
922
|
|
- getTotalLapseCount(startDate,endDate){
|
|
923
|
+ getTotalLapseCount(startDate,endDate,lapsetoType,sourceType ){
|
|
924
|
+
|
923
|
925
|
this.modesDataTwo.series = []
|
924
|
926
|
this.modesDataTwo.xAxis = []
|
925
|
|
- getTotalLapseCount(startDate,endDate).then(response=>{
|
|
927
|
+ getTotalLapseCount(startDate,endDate,lapsetoType,sourceType).then(response=>{
|
926
|
928
|
if(response.data.state == 1){
|
927
|
929
|
var arr = [
|
928
|
930
|
{name:"留治",count:0},
|
929
|
931
|
{name:"转出",count:0}
|
930
|
932
|
]
|
931
|
933
|
var patients = response.data.data.patients
|
932
|
|
-
|
|
934
|
+
|
933
|
935
|
this.rollOutTotal = patients.length
|
|
936
|
+
|
934
|
937
|
var patienttwo = response.data.data.patienttwo
|
935
|
938
|
this.outTotal = patienttwo.length
|
936
|
939
|
var count = response.data.data.count
|
937
|
940
|
this.patientCount = count
|
938
|
941
|
|
939
|
942
|
var rollout = response.data.data.rollout
|
940
|
|
- console.log("rollout",rollout)
|
|
943
|
+
|
941
|
944
|
|
942
|
945
|
for(let i=0;i<arr.length;i++){
|
943
|
946
|
arr[0].count = this.rollOutTotal
|
944
|
947
|
arr[1].count = this.outTotal
|
945
|
948
|
}
|
946
|
|
-
|
947
|
|
- // for(let j=0;j<arr.length;j++){
|
948
|
|
- // this.modesDataTwo.xAxis.push(arr[j].name)
|
949
|
|
- // this.modesDataTwo.series.push(((arr[j].count/count)*100).toFixed(1))
|
950
|
|
- // }
|
951
|
|
- // this.bar.series[0].data = this.modesDataTwo.series
|
952
|
|
- // this.bar.xAxis.data = this.modesDataTwo.xAxis
|
953
|
|
- // this.getArrLength(this.bar.xAxis.data)
|
954
|
|
-
|
955
|
949
|
}
|
956
|
950
|
})
|
957
|
951
|
},
|
958
|
952
|
//统计男女比例
|
959
|
|
- getTotalSexCount(timeStar,timeEnd){
|
960
|
|
- getTotalSexCount(timeStar,timeEnd).then(response=>{
|
|
953
|
+ getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType){
|
|
954
|
+ getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
|
961
|
955
|
if(response.data.state === 1){
|
|
956
|
+ console.log("resp2222",response.data.data.totalWoman)
|
962
|
957
|
var total = response.data.data.total
|
963
|
|
- // console.log("总人数",total)
|
964
|
958
|
this.totalGender = total
|
965
|
959
|
var totalMan = response.data.data.totalSex
|
966
|
|
- // console.log("男人",totalMan)
|
967
|
960
|
this.totalMan = totalMan
|
968
|
|
- var totalWoman = total - totalMan
|
|
961
|
+ var totalWoman = response.data.data.totalWoman
|
969
|
962
|
this.totalWoman = totalWoman
|
970
|
963
|
}
|
971
|
964
|
})
|
972
|
965
|
},
|
973
|
966
|
//统计传染病
|
974
|
|
- getTotalInfectiousCount(timeStar,timeEnd){
|
975
|
|
- getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
|
|
967
|
+ getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType){
|
|
968
|
+ getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
|
976
|
969
|
if(response.data.state === 1){
|
977
|
970
|
this.InfectiousTotal = response.data.data.total
|
978
|
971
|
var infectious = response.data.data.count
|
|
@@ -995,11 +988,10 @@ export default {
|
995
|
988
|
}
|
996
|
989
|
})
|
997
|
990
|
},
|
998
|
|
- getTotalAgeCount(timeStar,timeEnd){
|
999
|
|
- getTotalAgeCount(timeStar,timeEnd).then(response=>{
|
|
991
|
+ getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType){
|
|
992
|
+ getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
|
1000
|
993
|
if(response.data.state == 1){
|
1001
|
994
|
var ageCount = response.data.data.ageCount
|
1002
|
|
- // console.log("ageCount",ageCount)
|
1003
|
995
|
var arr = []
|
1004
|
996
|
arr = ageCount.sort(this.compare('age'))
|
1005
|
997
|
this.ageCount = arr
|
|
@@ -1017,8 +1009,8 @@ export default {
|
1017
|
1009
|
}
|
1018
|
1010
|
},
|
1019
|
1011
|
//统计透析年龄
|
1020
|
|
- getTotalDialysisCount(timeStar,timeEnd){
|
1021
|
|
- getTotalDialysisCount(timeStar,timeEnd).then(response=>{
|
|
1012
|
+ getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType){
|
|
1013
|
+ getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
|
1022
|
1014
|
if(response.data.state == 1){
|
1023
|
1015
|
var dataage = response.data.data.dataage
|
1024
|
1016
|
// console.log("dataage",dataage)
|
|
@@ -1175,7 +1167,9 @@ export default {
|
1175
|
1167
|
this.modesDataTwo.xAxis = []
|
1176
|
1168
|
const params = {
|
1177
|
1169
|
start_time:this.start,
|
1178
|
|
- end_time:this.end
|
|
1170
|
+ end_time:this.end,
|
|
1171
|
+ lapsetotype:this.lapsetoType,
|
|
1172
|
+ sourcetype:this.sourceType,
|
1179
|
1173
|
}
|
1180
|
1174
|
getRolloutCount(params).then(response=>{
|
1181
|
1175
|
if(response.data.state == 1){
|
|
@@ -1224,8 +1218,10 @@ export default {
|
1224
|
1218
|
this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
1225
|
1219
|
this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
1226
|
1220
|
this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1221
|
+ this.getRolloutCount(this.lapsetoType,this.sourceType)
|
1227
|
1222
|
},
|
1228
|
|
- selectLapseTo(lapseto) {
|
|
1223
|
+ selectLapseOne(lapseto) {
|
|
1224
|
+ console.log("lapseto22222",lapseto)
|
1229
|
1225
|
this.lapsetoType = lapseto
|
1230
|
1226
|
this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
1231
|
1227
|
this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
@@ -1233,6 +1229,7 @@ export default {
|
1233
|
1229
|
this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
1234
|
1230
|
this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
1235
|
1231
|
this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
|
|
1232
|
+ this.getRolloutCount(this.lapsetoType,this.sourceType)
|
1236
|
1233
|
},
|
1237
|
1234
|
},
|
1238
|
1235
|
created() {
|
|
@@ -1269,7 +1266,7 @@ export default {
|
1269
|
1266
|
this.start = timeStar
|
1270
|
1267
|
this.end = timeEnd
|
1271
|
1268
|
|
1272
|
|
- this.getRolloutCount(timeStar,timeEnd)
|
|
1269
|
+ this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
|
1273
|
1270
|
|
1274
|
1271
|
|
1275
|
1272
|
},
|