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
+3
View File
@@ -29,6 +29,8 @@ const (
FieldHasDock = "has_dock"
// FieldDockCode holds the string denoting the dockcode field in the database.
FieldDockCode = "dock_code"
// FieldVisibleTabs holds the string denoting the visibletabs field in the database.
FieldVisibleTabs = "visible_tabs"
// FieldCreatedAt holds the string denoting the createdat field in the database.
FieldCreatedAt = "created_at"
// Table holds the table name of the station in the database.
@@ -46,6 +48,7 @@ var Columns = []string{
FieldIsBuiltin,
FieldHasDock,
FieldDockCode,
FieldVisibleTabs,
FieldCreatedAt,
}
+10
View File
@@ -469,6 +469,16 @@ func DockCodeContainsFold(v string) predicate.Station {
return predicate.Station(sql.FieldContainsFold(FieldDockCode, v))
}
// VisibleTabsIsNil applies the IsNil predicate on the "visibleTabs" field.
func VisibleTabsIsNil() predicate.Station {
return predicate.Station(sql.FieldIsNull(FieldVisibleTabs))
}
// VisibleTabsNotNil applies the NotNil predicate on the "visibleTabs" field.
func VisibleTabsNotNil() predicate.Station {
return predicate.Station(sql.FieldNotNull(FieldVisibleTabs))
}
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtEQ(v time.Time) predicate.Station {
return predicate.Station(sql.FieldEQ(FieldCreatedAt, v))