feat: 支持待分配/待抢单修改付款金额并增加价格历史
This commit is contained in:
@@ -318,7 +318,16 @@ export function patchAdminWorkOrderListItems(
|
||||
)
|
||||
if (index >= 0) {
|
||||
previousRow = items[index]
|
||||
nextItems = items.map((item, itemIndex) => (itemIndex === index ? snapshot : item))
|
||||
nextItems = items.map((item, itemIndex) =>
|
||||
itemIndex === index
|
||||
? {
|
||||
...(snapshot as Record<string, unknown>),
|
||||
// 列表专用派生字段不在实时快照里,沿用旧值,避免价格历史入口消失。
|
||||
hasPaymentAmountHistory:
|
||||
(item as { hasPaymentAmountHistory?: boolean }).hasPaymentAmountHistory === true,
|
||||
}
|
||||
: item,
|
||||
)
|
||||
} else if (options.insert) {
|
||||
nextItems = [snapshot, ...items]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user