Files
Excelbuilder/Agents/v4-每个工位独立维护MES基本变量数据.md
2026-06-01 17:55:16 +08:00

31 lines
1.4 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.
# v4每个工位独立维护 MES 基本变量数据
## Summary
- 将当前“全局变量模板”改为“每个设备/工位拥有自己的 `MES_基本变量原始数据`”。
- 左侧点击不同设备时,右侧显示并编辑该设备自己的变量清单,修改后只影响当前工位。
- 导出 Excel 时仍只生成两个 Sheet。
## Key Changes
- 数据结构调整:
- `devices` 中每个设备增加独立 `variables` 数组。
- 旧的全局 `tableData.variables` 作为兼容迁移来源。
- 页面行为调整:
- 右侧变量表只显示当前选中设备的 `variables`
- 新增、编辑、复制、删除变量只操作当前选中设备。
- 未选择设备时,右侧显示空状态。
- Excel 生成规则调整:
- `设备类型对应表` 继续由 `devices` 生成。
- `MES_基本变量原始数据` 由所有设备的独立变量合并生成。
- 每行导出前强制覆盖 `工位号 / 数据来源 / IP / DbName`
## Test Plan
- 选择 ST04新增一条变量。
- 切换到 ST05确认 ST05 不出现 ST04 新增的变量。
- 修改 ST04 某条变量的 `TagName`,确认 ST05 对应变量不变化。
- 导出文件只包含两个 Sheet且每个设备的变量行都正确展开。
## Assumptions
- 右侧变量清单以后是“当前工位独立变量”。
- 旧数据迁移时,原全局变量复制到每个设备下。
- 导出时以网页设备字段为准。