refactor(mes): 移除工位接驳台绑定逻辑,改为独立dock主数据

- 移除station表的hasDock、dockCode字段及相关代码
- 新增dock表注释及关联逻辑,支持一个工位绑定多个接驳台
- 更新工位相关的seed、logic、schema及前端代码,适配新的接驳台管理方式
- 新增SQL注释固化脚本,完善MES表注释
This commit is contained in:
SunYF
2026-10-08 13:09:53 +08:00
parent 7c7c16ee6d
commit 1f7a42fc38
132 changed files with 2799 additions and 1090 deletions
+8
View File
@@ -2,6 +2,8 @@ package schema
import (
"entgo.io/ent"
"entgo.io/ent/dialect/entsql"
"entgo.io/ent/schema"
"entgo.io/ent/schema/field"
"entgo.io/ent/schema/index"
)
@@ -11,6 +13,9 @@ type StocktakeOrder struct {
ent.Schema
}
func (StocktakeOrder) Annotations() []schema.Annotation {
return []schema.Annotation{entsql.Table("stocktake_orders"), entsql.WithComments(true), schema.Comment("StocktakeOrder 盘点单:发起时冻结当时库存快照(明细行)")}
}
func (StocktakeOrder) Fields() []ent.Field {
return []ent.Field{
field.String("stocktake_no").Unique().Comment("盘点单号"),
@@ -45,6 +50,9 @@ type StocktakeItem struct {
ent.Schema
}
func (StocktakeItem) Annotations() []schema.Annotation {
return []schema.Annotation{entsql.Table("stocktake_items"), entsql.WithComments(true), schema.Comment("StocktakeItem 盘点明细(发起时的账面快照 + 扫码实盘数)")}
}
func (StocktakeItem) Fields() []ent.Field {
return []ent.Field{
field.String("stocktake_no").Comment("所属盘点单号"),