修改提交

This commit is contained in:
2026-08-11 20:11:00 +08:00
parent acc594655e
commit 917ffa73c7
3 changed files with 12 additions and 6 deletions
@@ -105,6 +105,9 @@ export interface UnifiedOrderResource {
taxMode?: string | null
fullContainer?: boolean | null
customsInspection?: boolean | null
recommendedPalletType?: string | null
locationCodes?: string | null
/** Legacy aliases retained while older order responses are still deployed. */
totalPalletCount?: number | null
chargeableVolumeCbm?: number | null
volumetricWeightKg?: number | null
@@ -315,6 +318,9 @@ function normalizeRow(raw: UnifiedOrderResource): UnifiedOrderResource {
inboundId: id(raw.inboundId),
inboundVersion: nullableInteger(raw.inboundVersion),
totalPackageCount: nullableInteger(raw.totalPackageCount),
totalPalletCount: nullableInteger(raw.totalPalletCount),
recommendedPalletType: raw.recommendedPalletType ?? null,
locationCodes: raw.locationCodes ?? raw.location ?? null,
measurement: raw.measurement ? {
...raw.measurement,
actualGrossWeightKg: numberValue(raw.measurement.actualGrossWeightKg),