fix(admin): align loading history and pallet lookup

This commit is contained in:
2026-09-01 11:10:22 +08:00
parent 4711bcc4e6
commit e3ecba7133
8 changed files with 136 additions and 20 deletions
@@ -115,6 +115,7 @@ export interface LoadingItem {
export interface LoadingHistory {
historyId: string
itemId: string | null
operationId: string
actionType: string
fromStatus: string | null
toStatus: string | null
@@ -251,6 +252,7 @@ function normalizeHistory(raw: LoadingHistory): LoadingHistory {
...raw,
historyId: requiredId(raw.historyId),
itemId: optionalId(raw.itemId),
operationId: requiredId(raw.operationId),
operatorId: requiredId(raw.operatorId),
}
}