产品-薪资账套薪资项目项新增排序问题

This commit is contained in:
黎永顺 2023-05-18 14:50:04 +08:00
parent 7e7450af07
commit a3832918cf
1 changed files with 7 additions and 2 deletions

View File

@ -260,10 +260,15 @@ class LedgerSalaryItem extends Component {
itemGroups: _.map(itemGroups, it => {
if (id === it.uuid) {
return {
...it, items: [...it.items, ..._.map(items, child => {
...it, items: _.map([..._.map(items, child => {
const { id: itemsId, ...extraItems } = child;
return { ...extraItems, salaryItemGroupId: it.uuid };
})]
}), ...it.items], (childItem, childItemIndex) => {
return {
...childItem,
sortedIndex: childItemIndex
};
})
};
}
return { ...it };