From c18fb35511f2831fa13f616426a8b32e0583244f Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Mon, 3 Nov 2025 13:41:19 +0800 Subject: [PATCH] =?UTF-8?q?custom/=E7=BD=91=E8=81=94=E6=B8=85=E7=AE=97?= =?UTF-8?q?=E6=9C=89=E9=99=90=E5=85=AC=E5=8F=B8(0401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../welfareArchive/components/welfareTableList/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js index 9ad49279..464b2932 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js @@ -239,13 +239,14 @@ class Index extends Component { childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*"); }; handleChangeProgramme = (type, schemeId, payload) => { + const { archivesStore: { welfareProfileForm } } = this.props; this.getPaymentForm({ ...payload, welfareTypeEnum: welfareTypeEnum[type], schemeId }) .then(({ status, data }) => { if (status) { let { data: defVal, items, comData, comItems } = data; if (type !== "other") { - const replaceValue = type === "social" ? this.state.welfareEditSlide.socialBaseData["SOCIAL_SECURITY"].base : - this.state.welfareEditSlide.fundBaseData["ACCUMULATION_FUND"].base; + const replaceValue = type === "social" ? (welfareProfileForm.getFormParams().socialBase ? welfareProfileForm.getFormParams().socialBase : this.state.welfareEditSlide.socialBaseData["SOCIAL_SECURITY"].base) : + (welfareProfileForm.getFormParams().fundBase ? welfareProfileForm.getFormParams().fundBase : this.state.welfareEditSlide.fundBaseData["ACCUMULATION_FUND"].base); defVal = _.reduce(_.keys(defVal), (pre, cur) => { if (!parseFloat(defVal[cur]) && !!replaceValue) { return { ...pre, [cur]: replaceValue };