release/2.18.2.2412.02

This commit is contained in:
lys 2024-12-31 13:42:33 +08:00
parent a3f0e27f49
commit 2d659768ac
2 changed files with 4 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class LedgerSalaryItem extends Component {
items: [...it.items, {
...extraItems,
salaryItemGroupId: moveToItemId,
key: moveId,
key: moveId ? moveId : items.key,
sortedIndex: !_.isEmpty(it.items) ? it.items[it.items.length - 1].sortedIndex + 1 : 0
}]
};

View File

@ -288,7 +288,9 @@ class LedgerSalaryItemTable extends Component {
width: 80,
render: (text, record) => <WeaCheckbox
value={text ? String(text) : !text ? "0" : "1"}
onChange={value => this.handleChangeItem(value, record.id || record.key)}
onChange={value => {
this.handleChangeItem(value, record.id || record.key)
}}
/>
},
{