From ba0c516263f90f4f1c12b2841c00e58c34eaf071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Tue, 9 Apr 2024 10:00:27 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E-?= =?UTF-8?q?=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF=E6=8A=A5?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/pages/declareDetail/index.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js index 56e3bff9..366ba404 100644 --- a/pc4mobx/hrmSalary/pages/declareDetail/index.js +++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js @@ -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("%%");