aps-agent/docs/demo/ruiyang-collaboration-packe...

33 lines
2.6 KiB
Markdown
Raw 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-08-05)
## 后端 Helmholtz
- 输入:`D:\ItemSpace\14.工业智核\锐扬\湖南锐扬MOM主数据收集表.xlsx`。
- 正式链路:`import_mom_excel` 内部调用 `apply_mom_pack_to_world`,随后调用 `sync_flex_to_classic_master` 和 `sync_flex_orders_to_sales`。
- 必须同时验证 flex/canonical:完整文件实测 `flexBom=383 / bomItems=383`、`flexRoutings=400 / routingSteps=400`;最低门禁为 `boms>=3、bomItems>=42、routings>=3、routingSteps>=15`。
- MRP 预期:订单 1、自制 106、采购 124、委外 0。
- 订单面板形态:`salesOrders`、`makeSuggestions`、`purchaseOrders`、`outsourceOrders`、`productionOrders`、`workOrders`。
- 严格闭环仍会 BLOCKED:模板工艺未确认、部分路线缺失、DRAFT 采购不可视为可信供应。
- 数据脚本不会修改 server;产物入口:`outputs/ruiyang-demo/world-ruiyang-demo.json` 和 `07-order-panel.json`。
## 桌面 Poincare
- 一键命令:
`powershell -ExecutionPolicy Bypass -File .\scripts\run-ruiyang-demo.ps1 -SourceDir 'D:\ItemSpace\14.工业智核\锐扬' -BusinessDate '2026-08-05' -ScheduleStart '2026-08-06' -DueDate '2026-09-04'`
- 依赖:项目 Python 环境、`openpyxl`、现有 `server` 包;不需要 Node 侧额外依赖。
- 成功标志:`outputs/ruiyang-demo/summary.json` 中 `orderPanel.productionOrders=1`、`workOrders=5`,`manifest.json` 完整。
- 加载文件:`world-ruiyang-demo.json`;订单视图可先读取 `07-order-panel.json` 做安装包演示联调。
- 脚本默认不覆盖活动 world,桌面需明确执行“加载演示 world/新建演示项目”。
## 闭环排产 Raman
- 多层 BOM:完整 XLSX 解析 `flexBom=383`,canonical `boms=119/bomItems=383`;根产品 `A0050101-00280`。
- 工艺:当前正式导入器生成 80 条 canonical routing、400 条 routingSteps;根产品演示为 CUT→BEND→WELD→PAINT→ASM。
- 真实设备映射:A00076、A00047、A00883、A00281、A00050(ASM 为压铆代理)。
- 复现:运行上述 PowerShell 命令,再检查 `04-strict-readiness.json` 与 `06-schedule.json`。
- 两条结果必须同时验收:严格闭环 BLOCKED 原因真实;显式演示适配后生产订单 1、工单 5、冲突 0。
## 主线程关键结论
会话文字“已分解”不能作为成功依据。订单卡片为空的直接风险是项目 world 只写入 flex 数据,没有 canonical `boms/bomItems/routings/routingSteps`。新脚本把双投影计数设为硬门禁,并用真实 Excel 重新导入;随后 MRP 生成 106/124/0,演示适配生成 1 张生产订单和 5 张工单。