feat: 支持待分配/待抢单修改付款金额并增加价格历史

This commit is contained in:
2026-11-03 10:31:46 +08:00
parent 232ef6ce79
commit 96676841b5
22 changed files with 626 additions and 78 deletions
@@ -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 {