feat(mes/wms/终端): 签字循环业务重构 + 叫料池实物账两列 + 工位流水按包真分页 + 下线单据提示条(2026-11-30 现场整改)
【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 同步更新验收口径
This commit is contained in:
@@ -33,6 +33,10 @@ const (
|
||||
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.
|
||||
@@ -58,6 +62,8 @@ var Columns = []string{
|
||||
FieldSentQty,
|
||||
FieldReservedQty,
|
||||
FieldInstalledQty,
|
||||
FieldReceivedQty,
|
||||
FieldReturnedQty,
|
||||
FieldCrossDay,
|
||||
FieldPlanDates,
|
||||
FieldCreatedAt,
|
||||
@@ -97,6 +103,10 @@ var (
|
||||
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.
|
||||
@@ -171,6 +181,16 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user