【MES · 签字循环重构(业务重构,非修 bug)】 - 旧模型作废(签字随报工落库、检验员分支永不生效的死代码);新口径: 工人干完点「呼叫签字」→ 检验员巡检端签 OK/NG → OK 后工人再点一次「报工」;NG 整改后重新呼叫(新一轮) - 内容指纹(SHA256):呼叫时算一次落库,报工时重算比对,变了即「签字后改数据作废本轮」要求重呼; 只覆盖步骤录入(值/文本/勾选/拧紧结果),装机绑定不进指纹(独立台账)、改备注不触发 - 轮次统一:一次呼叫=一轮,操作工/检验员共用 round;NG/撤回/重呼=新一轮,旧轮作废历史保留 - 三档状态(作业中/签字中/待整改/可报工)从签字记录推导,不建表不存终端 - 报工闸门:本轮需签步骤齐全(操作工+检验员OK)+ 指纹未变才放行 - 撤回呼叫整轮作废;超时巡检每分钟扫描(阈值 30 分钟可在基础设置调),超时落预警中心+异常角标不进铃铛,60 分钟窗口去重 - 工位终端新增签字交互接口与呼叫/撤回/状态查询;巡检端保留 NG 回看 【MES · 叫料池实物账(十五节 Q1/Q16 + 17.6 裁决)】 - call_pool 新增 receivedQty(已收累计,拒收按退库单冲减)/ returnedQty(已退累计,按退库单号防重)两列实物账,与 sentQty 额度账并存 - 台面在手(可用)= 已收 − 已装 − 已退;在途 = 已发 − 已收 【工位终端 · 物料/叫料页重构(十五节 Q1~Q17 拍板落地)】 - 「本工位物料明细」改名「物料明细」,四数列改为:可用/需求/已发/已收/已装,量为 0 也显示不分左右托盘 - 去除「刷新池子」「刷新」按钮(有长连接);「我的叫料单」扩为类银行流水(叫料/退料/等等) - 叫料/退料数量列直排,提交时弹窗确认数量并选接驳台;管理端叫料与退料 AGV 派车流程统一收归库管 - 工位流水按包真分页(2026-11-29 拍板):后端按包号分组 Count+Limit/Offset,每页 20 包,前端不再内存聚合 【下线 · 单据流转提示条】 - MES/WMS 前端整体删除 NextStepBar / nextStep / nextStepRules(35 条规则表整套下线),页面不再出现常驻「下一步」提示条 【文档】 - 问题临时.md 新增十四节(主控独立审计:终端账号删除/心跳/闸门函数 8 处对码全过)+ 十五节(工位物料叫料 8 条原话逐字留档与 Q1~Q17 拍板底稿) - 新增《工位终端页面.md》;案例.md 同步更新验收口径
213 lines
8.0 KiB
Go
213 lines
8.0 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package callpool
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
const (
|
|
// Label holds the string label denoting the callpool type in the database.
|
|
Label = "call_pool"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldStationNo holds the string denoting the stationno field in the database.
|
|
FieldStationNo = "station_no"
|
|
// FieldMaterialCode holds the string denoting the materialcode field in the database.
|
|
FieldMaterialCode = "material_code"
|
|
// FieldMaterialName holds the string denoting the materialname field in the database.
|
|
FieldMaterialName = "material_name"
|
|
// FieldUnit holds the string denoting the unit field in the database.
|
|
FieldUnit = "unit"
|
|
// FieldSnMode holds the string denoting the snmode field in the database.
|
|
FieldSnMode = "sn_mode"
|
|
// FieldReqQty holds the string denoting the reqqty field in the database.
|
|
FieldReqQty = "req_qty"
|
|
// FieldAdjQty holds the string denoting the adjqty field in the database.
|
|
FieldAdjQty = "adj_qty"
|
|
// FieldSentQty holds the string denoting the sentqty field in the database.
|
|
FieldSentQty = "sent_qty"
|
|
// FieldReservedQty holds the string denoting the reservedqty field in the database.
|
|
FieldReservedQty = "reserved_qty"
|
|
// FieldInstalledQty holds the string denoting the installedqty field in the database.
|
|
FieldInstalledQty = "installed_qty"
|
|
// FieldReceivedQty holds the string denoting the receivedqty field in the database.
|
|
FieldReceivedQty = "received_qty"
|
|
// FieldReturnedQty holds the string denoting the returnedqty field in the database.
|
|
FieldReturnedQty = "returned_qty"
|
|
// FieldCrossDay holds the string denoting the crossday field in the database.
|
|
FieldCrossDay = "cross_day"
|
|
// FieldPlanDates holds the string denoting the plandates field in the database.
|
|
FieldPlanDates = "plan_dates"
|
|
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
|
FieldCreatedAt = "created_at"
|
|
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
|
FieldUpdatedAt = "updated_at"
|
|
// Table holds the table name of the callpool in the database.
|
|
Table = "call_pool"
|
|
)
|
|
|
|
// Columns holds all SQL columns for callpool fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldStationNo,
|
|
FieldMaterialCode,
|
|
FieldMaterialName,
|
|
FieldUnit,
|
|
FieldSnMode,
|
|
FieldReqQty,
|
|
FieldAdjQty,
|
|
FieldSentQty,
|
|
FieldReservedQty,
|
|
FieldInstalledQty,
|
|
FieldReceivedQty,
|
|
FieldReturnedQty,
|
|
FieldCrossDay,
|
|
FieldPlanDates,
|
|
FieldCreatedAt,
|
|
FieldUpdatedAt,
|
|
}
|
|
|
|
// 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 (
|
|
// MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
|
MaterialCodeValidator func(string) error
|
|
// DefaultMaterialName holds the default value on creation for the "materialName" field.
|
|
DefaultMaterialName string
|
|
// MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
|
MaterialNameValidator func(string) error
|
|
// DefaultUnit holds the default value on creation for the "unit" field.
|
|
DefaultUnit string
|
|
// UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
|
UnitValidator func(string) error
|
|
// DefaultSnMode holds the default value on creation for the "snMode" field.
|
|
DefaultSnMode int
|
|
// DefaultReqQty holds the default value on creation for the "reqQty" field.
|
|
DefaultReqQty int
|
|
// DefaultAdjQty holds the default value on creation for the "adjQty" field.
|
|
DefaultAdjQty int
|
|
// DefaultSentQty holds the default value on creation for the "sentQty" field.
|
|
DefaultSentQty int
|
|
// DefaultReservedQty holds the default value on creation for the "reservedQty" field.
|
|
DefaultReservedQty int
|
|
// DefaultInstalledQty holds the default value on creation for the "installedQty" field.
|
|
DefaultInstalledQty int
|
|
// DefaultReceivedQty holds the default value on creation for the "receivedQty" field.
|
|
DefaultReceivedQty int
|
|
// DefaultReturnedQty holds the default value on creation for the "returnedQty" field.
|
|
DefaultReturnedQty int
|
|
// DefaultCrossDay holds the default value on creation for the "crossDay" field.
|
|
DefaultCrossDay bool
|
|
// DefaultPlanDates holds the default value on creation for the "planDates" field.
|
|
DefaultPlanDates string
|
|
// PlanDatesValidator is a validator for the "planDates" field. It is called by the builders before save.
|
|
PlanDatesValidator func(string) error
|
|
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
|
DefaultCreatedAt func() time.Time
|
|
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
|
|
DefaultUpdatedAt func() time.Time
|
|
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
|
UpdateDefaultUpdatedAt func() time.Time
|
|
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
|
IDValidator func(int) error
|
|
)
|
|
|
|
// OrderOption defines the ordering options for the CallPool 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()
|
|
}
|
|
|
|
// ByStationNo orders the results by the stationNo field.
|
|
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
|
}
|
|
|
|
// ByMaterialCode orders the results by the materialCode field.
|
|
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
|
}
|
|
|
|
// ByMaterialName orders the results by the materialName field.
|
|
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
|
|
}
|
|
|
|
// ByUnit orders the results by the unit field.
|
|
func ByUnit(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldUnit, opts...).ToFunc()
|
|
}
|
|
|
|
// BySnMode orders the results by the snMode field.
|
|
func BySnMode(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldSnMode, opts...).ToFunc()
|
|
}
|
|
|
|
// ByReqQty orders the results by the reqQty field.
|
|
func ByReqQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldReqQty, opts...).ToFunc()
|
|
}
|
|
|
|
// ByAdjQty orders the results by the adjQty field.
|
|
func ByAdjQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldAdjQty, opts...).ToFunc()
|
|
}
|
|
|
|
// BySentQty orders the results by the sentQty field.
|
|
func BySentQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldSentQty, opts...).ToFunc()
|
|
}
|
|
|
|
// ByReservedQty orders the results by the reservedQty field.
|
|
func ByReservedQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldReservedQty, opts...).ToFunc()
|
|
}
|
|
|
|
// ByInstalledQty orders the results by the installedQty field.
|
|
func ByInstalledQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldInstalledQty, opts...).ToFunc()
|
|
}
|
|
|
|
// ByReceivedQty orders the results by the receivedQty field.
|
|
func ByReceivedQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldReceivedQty, opts...).ToFunc()
|
|
}
|
|
|
|
// ByReturnedQty orders the results by the returnedQty field.
|
|
func ByReturnedQty(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldReturnedQty, opts...).ToFunc()
|
|
}
|
|
|
|
// ByCrossDay orders the results by the crossDay field.
|
|
func ByCrossDay(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldCrossDay, opts...).ToFunc()
|
|
}
|
|
|
|
// ByPlanDates orders the results by the planDates field.
|
|
func ByPlanDates(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldPlanDates, opts...).ToFunc()
|
|
}
|
|
|
|
// ByCreatedAt orders the results by the createdAt field.
|
|
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
|
}
|
|
|
|
// ByUpdatedAt orders the results by the updatedAt field.
|
|
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
|
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
|
}
|