【全系统 · 接驳台编码终版统一(12-01 用户拍板)】
- 新增 dockcode 包作为唯一真源:工位接驳台 = GW{工位号}{Z|Y}(Z=左/Y=右,工位1~10同一规则,废除左右互换),库房 = JBT21 不变
- 编码即海康 RCS 地图点位码:落库/界面/下发 RCS/读 PLC 传感器全用同一套;旧 DOCK01~20 全量废弃,系统内无第二套编号、无换算层
- dock 表去 side 字段;agv_task.target_dock、line_point、看板点位态与中文名、dockLabel 工具全部改 GW 规则
- 产线布局说明.md 同步终版(图纸名 GxZ/GxY 与 AGV 码 GWxZ/GWxY 一一对应;注明 RCS 图与主线流向图相差 180°,读图一律以 GW 码为准)
【MES · 签字模型二次重构(11-30 实测后定稿)】
- _OPERATOR 签字整体废除:工艺步骤删 needOperatorSign / needAudit / auditRole 字段,签字角色改 CALL(工人报检呼叫)+ INSPECTOR(检验员审核签)
- 呼叫时落步骤录入快照(stepValue/stepText/stepChecked/processId),供检验员查看与指纹比对;「待签任务」只认检验员签名步骤
- 「签字复核」(AuditPending 页面 + produce.audit 菜单 + 路由)整套删除
【MES · 台账续流根因修复(11-30 对账发现)】
- 流转目标「G6」与 line_point.point_no「6」对不上导致到位落账查不到、却先释放源位→工件从调度消失;新增 ledgerPointByTarget 归一
- settleDirect/settleInTransit 改为先占目标位、成功才释放源位;目标被占原样保留,工件进缓存位排队(实测 C2 排队不再丢件)
【WMS · 末级库位强校验与上架移库】
- 新增 LocationCascade 四级联动选择器(区/架/层/号,只从启用 level=4 节点派生);手工入库、半成品/成品入库、隔离库位一律四级必填且命中启用节点
- 新增上架/移库 relocate:只改四级库位与 updated_at,不动质量状态/数量/锁定量;不合格与锁定行同样允许移库;支持 ids 逐行指定或 scope 按物料+原库位整组搬
- MES 新增 WMS 自动回流库位配置(半成品/成品各一组末级库位,默认值 1区/1架/1层/1号,存 sys_config 可改)
【MES · 统一口径与工程整改】
- 新增 workpiece_location:工单详情工件列表/WIP/追溯三处共用位置判定(SCRAPPED→DONE→SEMI_STORED→在 StationNo→在途→待流转)
- 新增 workorder_close_warn:工单完工/取消时汇总各工位实物余料出一条预警,不阻断关单
- 分页下沉:新增 pagination 工具,同步失败台账(两端)改 Count+LIMIT/OFFSET 真分页,列表不再全量切片
- 全网对账/孤儿扫描(问题临时.md 第25/26节):10 类关系边断言实测,给出 8 条可重复巡检项
【文档】
- 产线布局说明.md 按 GW 编码终版重写;问题临时.md 新增 24.7 闭环实测、25 全网对账、26 补料→配送→报工人库闭环
133 lines
4.6 KiB
Go
133 lines
4.6 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package dock
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
const (
|
|
// Label holds the string label denoting the dock type in the database.
|
|
Label = "dock"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldDockCode holds the string denoting the dockcode field in the database.
|
|
FieldDockCode = "dock_code"
|
|
// FieldName holds the string denoting the name field in the database.
|
|
FieldName = "name"
|
|
// FieldDockType holds the string denoting the docktype field in the database.
|
|
FieldDockType = "dock_type"
|
|
// FieldStationNo holds the string denoting the stationno field in the database.
|
|
FieldStationNo = "station_no"
|
|
// FieldHasPallet holds the string denoting the haspallet field in the database.
|
|
FieldHasPallet = "has_pallet"
|
|
// FieldPalletRef holds the string denoting the palletref field in the database.
|
|
FieldPalletRef = "pallet_ref"
|
|
// FieldStatus holds the string denoting the status field in the database.
|
|
FieldStatus = "status"
|
|
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
|
FieldCreatedAt = "created_at"
|
|
// Table holds the table name of the dock in the database.
|
|
Table = "dock"
|
|
)
|
|
|
|
// Columns holds all SQL columns for dock fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldDockCode,
|
|
FieldName,
|
|
FieldDockType,
|
|
FieldStationNo,
|
|
FieldHasPallet,
|
|
FieldPalletRef,
|
|
FieldStatus,
|
|
FieldCreatedAt,
|
|
}
|
|
|
|
// ValidColumn reports if the column name is valid (part of the table columns).
|
|
func ValidColumn(column string) bool {
|
|
for i := range Columns {
|
|
if column == Columns[i] {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|
|
|
|
var (
|
|
// DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
|
|
DockCodeValidator func(string) error
|
|
// DefaultName holds the default value on creation for the "name" field.
|
|
DefaultName string
|
|
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
|
NameValidator func(string) error
|
|
// DefaultDockType holds the default value on creation for the "dockType" field.
|
|
DefaultDockType string
|
|
// DockTypeValidator is a validator for the "dockType" field. It is called by the builders before save.
|
|
DockTypeValidator func(string) error
|
|
// DefaultStationNo holds the default value on creation for the "stationNo" field.
|
|
DefaultStationNo int
|
|
// DefaultHasPallet holds the default value on creation for the "hasPallet" field.
|
|
DefaultHasPallet bool
|
|
// DefaultPalletRef holds the default value on creation for the "palletRef" field.
|
|
DefaultPalletRef string
|
|
// PalletRefValidator is a validator for the "palletRef" field. It is called by the builders before save.
|
|
PalletRefValidator func(string) error
|
|
// DefaultStatus holds the default value on creation for the "status" field.
|
|
DefaultStatus string
|
|
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
|
StatusValidator func(string) error
|
|
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
|
DefaultCreatedAt func() time.Time
|
|
)
|
|
|
|
// OrderOption defines the ordering options for the Dock queries.
|
|
type OrderOption func(*sql.Selector)
|
|
|
|
// ByID orders the results by the id field.
|
|
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldID, opts...).ToFunc()
|
|
}
|
|
|
|
// ByDockCode orders the results by the dockCode field.
|
|
func ByDockCode(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldDockCode, opts...).ToFunc()
|
|
}
|
|
|
|
// ByName orders the results by the name field.
|
|
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldName, opts...).ToFunc()
|
|
}
|
|
|
|
// ByDockType orders the results by the dockType field.
|
|
func ByDockType(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldDockType, opts...).ToFunc()
|
|
}
|
|
|
|
// ByStationNo orders the results by the stationNo field.
|
|
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
|
}
|
|
|
|
// ByHasPallet orders the results by the hasPallet field.
|
|
func ByHasPallet(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldHasPallet, opts...).ToFunc()
|
|
}
|
|
|
|
// ByPalletRef orders the results by the palletRef field.
|
|
func ByPalletRef(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldPalletRef, opts...).ToFunc()
|
|
}
|
|
|
|
// ByStatus orders the results by the status field.
|
|
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
|
}
|
|
|
|
// ByCreatedAt orders the results by the createdAt field.
|
|
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
|
}
|