dy-dashboard/vault/知识库/工作指南/训练记录/2026-08-27-确认下单备份包材下单数量为0.md
2026-10-28 11:14:17 +08:00

13 lines
883 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 确认下单后备份包材下单数量全部为0
### 1. 确认下单同步到下单备份,详情弹窗包材下单数量为0
**旭东 → OpenClaw:**
> 发现一个异常需要解决
> 从待下单管理里面点击确认下单,订单同步到下单备份管理之后,发现下单备份管理下详情弹窗中包材信息列表里面的各个包材的下单数量全部为0了,订单的包材下单数量没有成功带过来
**OpenClaw 响应:**
修正为:确认下单时,当未携带前端BOM修改数据时,后端按「用量×正式下单数量」计算包材实际下单数量,但计算出的数量没有写回 `bom_items` 的 `actual_quantity` 字段,导致下单备份详情弹窗读取不到而显示为0。已在确认下单循环中写回 `actual_quantity` 和 `amount`,测试服务重启后 HTTP 200,Git 提交 `6e8fc18`。
**已记录**