refactor: 重构产线工位与备料流程,移除冗余字段

1. 移除工单、工件、日排产中的冗余工位组合/接驳台字段
2. 新增工位接驳台编码字段与唯一约束,关联WMS接驳台主数据
3. 重构日排产为工位产量分配模式,替代原接驳台列表
4. 新增备料单工位级字段与分批出库支持
5. 移除定时同步可生产数量,改为WMS实时拉取接口
6. 过滤操作日志,排除登录/退出相关日志
7. 调整仪表盘工序展示逻辑为今日派工路线
8. 新增接驳台维护菜单与基础数据
This commit is contained in:
SunYF
2026-09-19 07:50:21 +08:00
parent 543655d441
commit 37f10d3a13
156 changed files with 4489 additions and 1285 deletions
+12 -1
View File
@@ -31,6 +31,8 @@ type Station struct {
IsBuiltin bool `json:"isBuiltin,omitempty"`
// 是否有接驳台(实体位置,内置不可改)
HasDock bool `json:"hasDock,omitempty"`
// 接驳台编码 DOCK01..21
DockCode string `json:"dockCode,omitempty"`
// CreatedAt holds the value of the "createdAt" field.
CreatedAt time.Time `json:"createdAt,omitempty"`
selectValues sql.SelectValues
@@ -45,7 +47,7 @@ func (*Station) scanValues(columns []string) ([]any, error) {
values[i] = new(sql.NullBool)
case station.FieldID, station.FieldStationNo, station.FieldFlowId:
values[i] = new(sql.NullInt64)
case station.FieldName, station.FieldStationType, station.FieldStatus:
case station.FieldName, station.FieldStationType, station.FieldStatus, station.FieldDockCode:
values[i] = new(sql.NullString)
case station.FieldCreatedAt:
values[i] = new(sql.NullTime)
@@ -112,6 +114,12 @@ func (_m *Station) assignValues(columns []string, values []any) error {
} else if value.Valid {
_m.HasDock = value.Bool
}
case station.FieldDockCode:
if value, ok := values[i].(*sql.NullString); !ok {
return fmt.Errorf("unexpected type %T for field dockCode", values[i])
} else if value.Valid {
_m.DockCode = value.String
}
case station.FieldCreatedAt:
if value, ok := values[i].(*sql.NullTime); !ok {
return fmt.Errorf("unexpected type %T for field createdAt", values[i])
@@ -175,6 +183,9 @@ func (_m *Station) String() string {
builder.WriteString("hasDock=")
builder.WriteString(fmt.Sprintf("%v", _m.HasDock))
builder.WriteString(", ")
builder.WriteString("dockCode=")
builder.WriteString(_m.DockCode)
builder.WriteString(", ")
builder.WriteString("createdAt=")
builder.WriteString(_m.CreatedAt.Format(time.ANSIC))
builder.WriteByte(')')