fix(报价单): 拉取对方提议时保留 sku_name(界面显示配送商品名)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user