fix(报价单): 拉取对方提议时保留 sku_name(界面显示配送商品名)

This commit is contained in:
Ubuntu
2026-10-18 22:58:49 +08:00
parent db704b5b19
commit e3a7d9535c
@@ -210,7 +210,12 @@ export function normalizeRemoteRow(raw: unknown): RemoteQuotePriceProposalRow |
const sku = toText(row2.sku_code);
const price = toNumber(row2.price ?? row2.sale_price);
if (!sku || price === null) return null;
return { sku_code: sku, unit: toText(row2.unit), price };
return {
sku_code: sku,
sku_name: toText(row2.sku_name) || null,
unit: toText(row2.unit),
price,
};
})
.filter((item): item is QuotePriceProposalItemPayload => item !== null),
note: toText(row.note),