Files
Excelbuilder/Agents/v6-设备模块支持多个工位.md
2026-06-01 17:55:16 +08:00

30 lines
1.5 KiB
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.
# v6 设计文档:设备模块支持多个工位
## Summary
- 将当前“一个设备 = 一个工位”的设计,调整为“一个设备模块 = 多个工位”。
- 左侧设备列表仍展示设备模块;设备编辑中新增“工位管理”能力。
- 生成 Excel 时按当前选中的设备模块导出,包含该设备下所有工位及各自对应的 `MES_基本变量原始数据`
## Key Changes
- 数据层级改为:
- `devices[]`:设备模块列表。
- `devices[].stations[]`:该设备下的多个工位。
- `devices[].stations[].variables[]`:该工位独立的变量数据。
- `设备类型对应表` 由当前设备模块下的 `stations[]` 生成多行。
- `MES_基本变量原始数据` 由当前设备模块下所有工位的变量合并生成。
- UI Design
- 左侧设备列表展示设备模块。
- 设备编辑弹窗增加“工位管理”区域。
- 点击左侧设备模块后,右侧顶部显示该设备下的工位切换列表。
## Test Plan
- 新建设备模块后,左侧出现一个设备模块。
- 在设备模块中新增 ST04、ST05 两个工位。
- 当前设备导出 Excel 后,`设备类型对应表` 有 ST04、ST05 两行。
- `MES_基本变量原始数据` 同时包含 ST04 和 ST05 的变量数据。
- 修改 ST04 的变量,不影响 ST05。
## Assumptions
- 点击“生成 Excel”导出当前选中的设备模块及其全部工位。
- 页面仍保存所有设备模块和工位数据;导出时只导出当前选中设备模块。