feature/2.12.1.2403.02-个税-外籍人员信息报送

This commit is contained in:
黎永顺 2024-04-09 10:00:27 +08:00
parent 1a06b46faf
commit ba0c516263
1 changed files with 10 additions and 9 deletions

View File

@ -272,15 +272,16 @@ class Index extends Component {
taxAgentId, taxYearMonth: taxYearMonth + "-01",
reportType: this.state.reportType
};
this.setState({ loading: { ...this.state.loading, issuance: true } });
taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
this.setState({ loading: { ...this.state.loading, issuance: false } });
if (status && !_.isEmpty(data.vouchers)) {
window.open(`${window.ecologyContentPath || ""}/spa/hrmSalary/static/index.html#/main/hrmSalary/enterprisePayCertificationDetail?${convertToUrlString(payload)}`);
} else {
message.error(errormsg || "");
}
}).catch(() => this.setState({ loading: { ...this.state.loading, issuance: false } }));
window.open(`${window.ecologyContentPath || ""}/spa/hrmSalary/static/index.html#/main/hrmSalary/enterprisePayCertificationDetail?${convertToUrlString(payload)}`);
// this.setState({ loading: { ...this.state.loading, issuance: true } });
// taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
// this.setState({ loading: { ...this.state.loading, issuance: false } });
// if (status && !_.isEmpty(data.vouchers)) {
// window.open(`${window.ecologyContentPath || ""}/spa/hrmSalary/static/index.html#/main/hrmSalary/enterprisePayCertificationDetail?${convertToUrlString(payload)}`);
// } else {
// message.error(errormsg || "");
// }
// }).catch(() => this.setState({ loading: { ...this.state.loading, issuance: false } }));
};
export = () => {
const [incomeCategory, taxDeclarationId] = this.state.selectedKey.split("%%");