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 }) => {