diff --git a/src/views/customerReport/diseaseStatistics.vue b/src/views/customerReport/diseaseStatistics.vue
index a14d3df..834aeb7 100644
--- a/src/views/customerReport/diseaseStatistics.vue
+++ b/src/views/customerReport/diseaseStatistics.vue
@@ -8,7 +8,8 @@
-
+
-
-
-
-
-
- {{ scope.row.percentage + '%' }}
-
+ "
+ ref="imageDom"
+ >
+
+
+
+
+
+
+ {{ scope.row.percentage + "%" }}
+
+
-
-
+
+ "
+ >
疾病人数统计
-
@@ -122,13 +197,23 @@
-
+
-
+
@@ -165,6 +250,12 @@ export default {
yAxisData: [],
pieData: [],
flag: true,
+ summary: {
+ startDate: "",
+ endDate: "",
+ femaleCount: "",
+ maleCount: "",
+ },
};
},
@@ -223,7 +314,6 @@ export default {
this.dict.asbItemAll = res.data;
}
});
-
},
getSummaries(param) {
const { columns, data } = param;
@@ -297,8 +387,8 @@ page-break-before: avoid;}}`, // 去除页眉页脚
e.dateType == "summaryDate"
? "3"
: e.dateType == "medicalStartDate"
- ? "2"
- : "1",
+ ? "2"
+ : "1",
};
if (e.customerOrgId) {
@@ -321,14 +411,16 @@ page-break-before: avoid;}}`, // 去除页眉页脚
});
}
-
-
body.customerOrgs = customerOrgs;
body.diagnosisIds = diagnosisIds;
- if(this.patientRegister.query.completeFlags && Array.isArray(this.patientRegister.query.completeFlags) && this.patientRegister.query.completeFlags.length > 0){
- body.completeFlags = this.patientRegister.query.completeFlags
- }else{
- delete body['completeFlags']
+ if (
+ this.patientRegister.query.completeFlags &&
+ Array.isArray(this.patientRegister.query.completeFlags) &&
+ this.patientRegister.query.completeFlags.length > 0
+ ) {
+ body.completeFlags = this.patientRegister.query.completeFlags;
+ } else {
+ delete body["completeFlags"];
}
// if (this.patientRegister.query.isCharge) body.isCharge = this.patientRegister.query.isCharge
@@ -338,24 +430,28 @@ page-break-before: avoid;}}`, // 去除页眉页脚
postapi("/api/customerreport/getdiseasecountstatisticsreport", body).then(
(res) => {
if (res.code != -1) {
- this.dataList = res.data;
+ this.dataList = res.data.details;
+ this.summary.startDate = res.data.startDate;
+ this.summary.endDate = res.data.endDate;
+ this.summary.femaleCount = res.data.femaleCount;
+ this.summary.maleCount = res.data.maleCount;
this.yAxisData = [];
this.seriesData = [];
- this.pieData = []
+ this.pieData = [];
let pies = {
name: "",
value: 0,
};
for (
let i = 0;
- i < (res.data.length > 10 ? 10 : res.data.length);
+ i < (this.dataList.length > 10 ? 10 : this.dataList.length);
i++
) {
let pie = JSON.parse(JSON.stringify(pies));
- this.yAxisData.push(res.data[i].diagnosisName);
- this.seriesData.push(res.data[i].patientCount);
- pie.name = res.data[i].diagnosisName;
- pie.value = res.data[i].patientCount;
+ this.yAxisData.push(this.dataList[i].diagnosisName);
+ this.seriesData.push(this.dataList[i].patientCount);
+ pie.name = this.dataList[i].diagnosisName;
+ pie.value = this.dataList[i].patientCount;
this.pieData.push(pie);
}
this.columnarChart();
@@ -512,7 +608,7 @@ page-break-before: avoid;}}`, // 去除页眉页脚
}
::v-deep .el-icon-search:before {
- color: #00F;
+ color: #00f;
}
.query:last-child {
diff --git a/src/views/customerReport/positiveResultsList.vue b/src/views/customerReport/positiveResultsList.vue
index d3ef06a..32774de 100644
--- a/src/views/customerReport/positiveResultsList.vue
+++ b/src/views/customerReport/positiveResultsList.vue
@@ -114,7 +114,8 @@
:summary-method="getSummaries"
>
-
+
+
+
@@ -177,7 +179,8 @@
:summary-method="getSummaris"
>