From da12522c2eacbb2aa9fdc8c2ba99c40fe78f9e88 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Fri, 10 Oct 2025 10:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=8F=E7=BB=84=E6=89=B9=E6=AC=A1=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emisTmsSiteBatchMissStatistics/index.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/views/emis/emisTmsSiteBatchMissStatistics/index.vue b/src/views/emis/emisTmsSiteBatchMissStatistics/index.vue index a30ad9be..290d3ed6 100644 --- a/src/views/emis/emisTmsSiteBatchMissStatistics/index.vue +++ b/src/views/emis/emisTmsSiteBatchMissStatistics/index.vue @@ -93,11 +93,7 @@ export default { /** 查询TMS漏组批次信息表列表 */ getList() { this.loading = true; - this.queryParams = this.addDateRange(this.queryParams, this.dateRange); - if (this.dateRange.length > 0) { - this.queryParams.startTime = this.queryParams.params.beginTime; - this.queryParams.endTime = this.queryParams.params.endTime; - } + this.initQueryParams(); emisTmsSiteBatchMissStatistics(this.queryParams).then(response => { this.emisTmsSiteBatchMissStatisticsList = response.rows; this.total = response.total; @@ -130,13 +126,25 @@ export default { }, /** 统计 导出按钮操作 */ handleExport() { + this.initQueryParams(); this.download('emis/emisTmsSiteBatchMissStatistics/exportStatistics', this.queryParams, `漏组统计数据.xlsx`); }, /**详情 导出按钮操作 */ handleExportDetail( ) { + this.initQueryParams(); this.download('emis/emisTmsSiteBatchMissStatistics/exportDetail', this.queryParams, `漏组详细数据.xlsx`); }, + initQueryParams() { + this.queryParams = this.addDateRange(this.queryParams, this.dateRange); + if (this.dateRange && this.dateRange.length > 0) { + this.queryParams.startTime = this.queryParams.params.beginTime; + this.queryParams.endTime = this.queryParams.params.endTime; + }else{ + this.queryParams.startTime = null; + this.queryParams.endTime = null; + } + } } };