fix(cost-center): 禁止追溯改价,改价只能当前或未来生效

- 后端统一校验:retroactive 请求直接拒绝,effectiveFrom 早于当前时间拒绝
- 去掉「追溯至历史订单」入口,改价只影响之后的新订单
- 历史订单成本与成交价由快照固化,不再受改价影响
This commit is contained in:
yml2213
2026-11-01 14:53:25 +08:00
parent fed459c7aa
commit ceb786f32e
6 changed files with 46 additions and 47 deletions
@@ -145,7 +145,6 @@ export function setAdminAffiliateProductPrice(
payload: {
amountFen: number
effectiveFrom?: string
retroactive?: boolean
changeReason?: string
},
) {
@@ -486,7 +485,6 @@ export function setAdminProductPrice(
payload: {
amountFen: number
effectiveFrom?: string
retroactive?: boolean
changeReason?: string
syncOpenOrders?: boolean
},