fix: 智能填单确认时补上产品数量赋值
_selectedCandidate 分支原来只设了 product_name/spec/unit/price, 漏掉了 quantity,导致匹配到产品后数量始终为默认值 1。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
4c3e20a343
commit
235d335070
@ -570,6 +570,7 @@ function handleConfirmParse() {
|
||||
row.unit = c.unit;
|
||||
row.sale_price = c.sale_price;
|
||||
row.cost_price = c.cost_price;
|
||||
row.quantity = parsedItem.quantity || 1;
|
||||
} else {
|
||||
row.product_name = parsedItem.product_name || "";
|
||||
row.specification = parsedItem.specification || "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user