漏组批次统计参数调整

This commit is contained in:
wuteng 2025-10-10 10:51:31 +08:00
parent bc14b13eaa
commit da12522c2e

View File

@ -93,11 +93,7 @@ export default {
/** 查询TMS漏组批次信息表列表 */ /** 查询TMS漏组批次信息表列表 */
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams = this.addDateRange(this.queryParams, this.dateRange); this.initQueryParams();
if (this.dateRange.length > 0) {
this.queryParams.startTime = this.queryParams.params.beginTime;
this.queryParams.endTime = this.queryParams.params.endTime;
}
emisTmsSiteBatchMissStatistics(this.queryParams).then(response => { emisTmsSiteBatchMissStatistics(this.queryParams).then(response => {
this.emisTmsSiteBatchMissStatisticsList = response.rows; this.emisTmsSiteBatchMissStatisticsList = response.rows;
this.total = response.total; this.total = response.total;
@ -130,13 +126,25 @@ export default {
}, },
/** 统计 导出按钮操作 */ /** 统计 导出按钮操作 */
handleExport() { handleExport() {
this.initQueryParams();
this.download('emis/emisTmsSiteBatchMissStatistics/exportStatistics', this.queryParams, `漏组统计数据.xlsx`); this.download('emis/emisTmsSiteBatchMissStatistics/exportStatistics', this.queryParams, `漏组统计数据.xlsx`);
}, },
/**详情 导出按钮操作 */ /**详情 导出按钮操作 */
handleExportDetail( handleExportDetail(
) { ) {
this.initQueryParams();
this.download('emis/emisTmsSiteBatchMissStatistics/exportDetail', this.queryParams, `漏组详细数据.xlsx`); 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;
}
}
} }
}; };
</script> </script>