feat: 重构BOM架构,新增基础设置与虚拟工位管理功能

本次重构删除原有BOM物料清单表,改用工单工艺组合×工艺物料清单作为唯一用料来源;新增系统基础设置表支持WMS地址、日志保留天数等配置,新增虚拟工位作业管理后台接口与前端页签控制功能,同时优化工位号校验逻辑、事件日志自动清理与工单用料查询能力。
This commit is contained in:
SunYF
2026-09-23 11:41:28 +08:00
parent d3eda6b588
commit f274da044c
74 changed files with 3637 additions and 5586 deletions
+10
View File
@@ -124,6 +124,12 @@ func (_c *StationCreate) SetNillableDockCode(v *string) *StationCreate {
return _c
}
// SetVisibleTabs sets the "visibleTabs" field.
func (_c *StationCreate) SetVisibleTabs(v []string) *StationCreate {
_c.mutation.SetVisibleTabs(v)
return _c
}
// SetCreatedAt sets the "createdAt" field.
func (_c *StationCreate) SetCreatedAt(v time.Time) *StationCreate {
_c.mutation.SetCreatedAt(v)
@@ -324,6 +330,10 @@ func (_c *StationCreate) createSpec() (*Station, *sqlgraph.CreateSpec) {
_spec.SetField(station.FieldDockCode, field.TypeString, value)
_node.DockCode = value
}
if value, ok := _c.mutation.VisibleTabs(); ok {
_spec.SetField(station.FieldVisibleTabs, field.TypeJSON, value)
_node.VisibleTabs = value
}
if value, ok := _c.mutation.CreatedAt(); ok {
_spec.SetField(station.FieldCreatedAt, field.TypeTime, value)
_node.CreatedAt = value