添加]}
>
From 89b9e6110eb45fc5b5d6d6954f4b17539c655355 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Mon, 9 Dec 2024 18:01:05 +0800
Subject: [PATCH 08/10] release/2.18.1.2412.01
---
.../pages/ledgerPage/components/ledgerSalaryItemAddModal.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemAddModal.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemAddModal.js
index e0707394..663aff22 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemAddModal.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemAddModal.js
@@ -138,7 +138,7 @@ export default class LedgerSalaryItemAddModal extends React.Component {
Date: Mon, 9 Dec 2024 18:14:41 +0800
Subject: [PATCH 09/10] release/2.18.1.2412.01
---
pc4mobx/hrmSalary/apis/calculate.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index fbc8abb9..009a9bd8 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -219,7 +219,8 @@ export const exportComparisonResult = (salaryAcctRecordId) => {
// 核算进度条
export const getCalculateProgress = (id = "", paymentOrganization = "") => {
- return WeaTools.callApi(`/api/bs/hrmsalary/progress/getRate?cacheKey=ACCT_PROGRESS_${id}_${paymentOrganization}`, "get", {});
+ const extra= paymentOrganization ? `_${paymentOrganization}` : paymentOrganization
+ return WeaTools.callApi(`/api/bs/hrmsalary/progress/getRate?cacheKey=ACCT_PROGRESS_${id}${extra}`, "get", {});
};
// 核算进度条
From 02a367befb1c9c004b7b4b0c2e555c4abde4aa14 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Tue, 10 Dec 2024 09:11:12 +0800
Subject: [PATCH 10/10] =?UTF-8?q?release/2.18.1.2412.01=20=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E8=BF=9B=E5=BA=A6=E6=9D=A1=E5=A4=84?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/calculate/doCalc/index.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js
index 602e48b5..4f4944c7 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js
@@ -77,7 +77,8 @@ class Index extends Component {
if (this.timer) clearInterval(this.timer);
this.timer = setInterval(() => {
getCalculateProgress(salaryAcctRecordId).then(({ data }) => {
- if ((_.isNil(data) || data.progress === 1) && this.timer) {
+ let progress = data.progress;
+ if (progress === 1 && this.timer) {
clearInterval(this.timer);
this.timer = null;
this.setState({
@@ -95,7 +96,7 @@ class Index extends Component {
});
message.error(data.message);
}
- this.setState({ progress: Number(data.progress) * 100 });
+ this.setState({ progress: Number(progress) * 100 });
});
}, 1000);
});