From deda1a6a4ad02d1335487646e75a77526798fa77 Mon Sep 17 00:00:00 2001 From: luobinjie Date: Wed, 26 Nov 2025 15:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerReport/diseaseStatistics.vue | 228 +++++--- .../customerReport/positiveResultsList.vue | 28 +- .../doctorCheck/unitphysicalexamination.vue | 530 +++++++++++++----- 3 files changed, 567 insertions(+), 219 deletions(-) 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 @@
-
+ " + >
体检单位 - - + +
诊断 - - + +
状态 - - + +
@@ -56,65 +88,108 @@ 分类统计
-->
- 查询 + 查询
- 导出excel + 导出excel
- 打印 + 打印
- 柱状图 + 柱状图
- 饼图 + 饼图
-
-
+
- - - - - + " + ref="imageDom" + > + + + + + + +
-
-
+
+ " + > 疾病人数统计
-
+
@@ -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" > -