feature/2.10.1.2402.01-个税-个税申报线下对比添加导出功能以及缓存对比项目的功能开发
This commit is contained in:
parent
2a7db5f6d3
commit
22590c1577
|
|
@ -53,10 +53,11 @@ class Index extends Component {
|
||||||
}, () => this.getTaxdeclarationContrastList());
|
}, () => this.getTaxdeclarationContrastList());
|
||||||
};
|
};
|
||||||
handleExport = async () => {
|
handleExport = async () => {
|
||||||
const { params: { taxDeclarationId } } = this.props;
|
const { params: { taxDeclarationId }, payrollFilesStore: { declareTableStore } } = this.props;
|
||||||
const { queryParams } = this.state;
|
const { queryParams } = this.state;
|
||||||
|
const columns = _.map(toJS(declareTableStore.columns), k => k.dataIndex);
|
||||||
WeaLoadingGlobal.start();
|
WeaLoadingGlobal.start();
|
||||||
const payload = { taxDeclarationId, ...queryParams };
|
const payload = { taxDeclarationId, columns, ...queryParams };
|
||||||
const promise = await exportContrast(payload);
|
const promise = await exportContrast(payload);
|
||||||
WeaLoadingGlobal.destroy();
|
WeaLoadingGlobal.destroy();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue