dy-dashboard/vault/知识库/工作指南/训练记录/2026-07-08-国内订单详情弹窗优化.md
2026-10-28 11:14:17 +08:00

17 lines
923 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.

# 2026-07-08 国内订单详情弹窗优化
### 1. 到货批次+包材信息
**旭东 → OpenClaw:**
> 国内订单管理点击详情之后的弹窗里面,优化下面几点
> 1、到货批次及数量列表增加一列订单未完结数量
> 2、再增加一个列表叫做包材信息
> 3、包材信息分为6列,分别是货品编号、货品名称、下单数量、到货数量、到货日期、进度
**OpenClaw 响应:**
新增 `/api/domestic/orders/detail_extras` 接口,联查 domestic_orders(同产品编码的其他订单到货记录作为批次)和 BOM+packaging_orders(包材信息)。前端动态加载渲染。
改动:
- routes/purchase.py:新增 detail_extras API,返回到货批次(含订单未完结数量)+ BOM包材物料和对应包材订单信息
- static/js/app.js:到货批次表头加"订单未完结数量"列+新增包材信息表,弹窗开启后异步加载