feature/2.9.10.2312.02-社保档案个人和公司基数设置

This commit is contained in:
黎永顺 2023-12-15 13:37:21 +08:00
parent cf47cdeb56
commit 446aaf2cad
1 changed files with 18 additions and 12 deletions

View File

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