From 446aaf2cad3e8f2c7f079b2cd2ff450fb9900e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 15 Dec 2023 13:37:21 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.9.10.2312.02-=E7=A4=BE=E4=BF=9D?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=E4=B8=AA=E4=BA=BA=E5=92=8C=E5=85=AC=E5=8F=B8?= =?UTF-8?q?=E5=9F=BA=E6=95=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../welfareEditArchiveSlide/index.js | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js index fd20049f..4e7c7836 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js @@ -45,22 +45,28 @@ class Index extends Component { } = props; let socialComData = {}, fundComData = {}, otherComData = {}; if (!_.isNil(socialBase.comItems) && !_.isNil(socialBase.comData)) { - _.forEach(getConditionDomkeys(socialBase.comItems), o => ({ - ...socialComData, - [`${o}_com`]: socialBase.comData[o] - })); + _.forEach(getConditionDomkeys(socialBase.comItems), o => { + socialComData = { + ...socialComData, + [`${o}_com`]: socialBase.comData[o] + }; + }); } if (!_.isNil(fundBase.comItems) && !_.isNil(fundBase.comData)) { - _.forEach(getConditionDomkeys(fundBase.comItems), o => ({ - ...fundComData, - [`${o}_com`]: fundBase.comData[o] - })); + _.forEach(getConditionDomkeys(fundBase.comItems), o => { + fundComData = { + ...fundComData, + [`${o}_com`]: fundBase.comData[o] + }; + }); } if (!_.isNil(otherBase.comItems) && !_.isNil(otherBase.comData)) { - _.forEach(getConditionDomkeys(otherBase.comItems), o => ({ - ...otherComData, - [`${o}_com`]: otherBase.comData[o] - })); + _.forEach(getConditionDomkeys(otherBase.comItems), o => { + otherComData = { + ...otherComData, + [`${o}_com`]: otherBase.comData[o] + }; + }); } const payload = { employeeId, paymentOrganization, welfareTypeEnum: "" }; API.getBaseForm(payload).then(({ status, data }) => {