feature/2.10.1.2402.01-个税-个税申报线下对比添加导出功能以及缓存对比项目的功能开发

This commit is contained in:
黎永顺 2024-03-04 14:01:25 +08:00
parent 2a7db5f6d3
commit 22590c1577
1 changed files with 3 additions and 2 deletions

View File

@ -53,10 +53,11 @@ class Index extends Component {
}, () => this.getTaxdeclarationContrastList());
};
handleExport = async () => {
const { params: { taxDeclarationId } } = this.props;
const { params: { taxDeclarationId }, payrollFilesStore: { declareTableStore } } = this.props;
const { queryParams } = this.state;
const columns = _.map(toJS(declareTableStore.columns), k => k.dataIndex);
WeaLoadingGlobal.start();
const payload = { taxDeclarationId, ...queryParams };
const payload = { taxDeclarationId, columns, ...queryParams };
const promise = await exportContrast(payload);
WeaLoadingGlobal.destroy();
};