Merge pull request '漏组批次统计参数调整' (#113) from master-dev into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/113
This commit is contained in:
commit
f5d244e50e
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user