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:
@@ -104,6 +104,16 @@ func InstalledQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldInstalledQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQty applies equality check predicate on the "receivedQty" field. It's identical to ReceivedQtyEQ.
|
||||
func ReceivedQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQty applies equality check predicate on the "returnedQty" field. It's identical to ReturnedQtyEQ.
|
||||
func ReturnedQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// CrossDay applies equality check predicate on the "crossDay" field. It's identical to CrossDayEQ.
|
||||
func CrossDay(v bool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldCrossDay, v))
|
||||
@@ -599,6 +609,86 @@ func InstalledQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldInstalledQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyEQ applies the EQ predicate on the "receivedQty" field.
|
||||
func ReceivedQtyEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyNEQ applies the NEQ predicate on the "receivedQty" field.
|
||||
func ReceivedQtyNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyIn applies the In predicate on the "receivedQty" field.
|
||||
func ReceivedQtyIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldReceivedQty, vs...))
|
||||
}
|
||||
|
||||
// ReceivedQtyNotIn applies the NotIn predicate on the "receivedQty" field.
|
||||
func ReceivedQtyNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldReceivedQty, vs...))
|
||||
}
|
||||
|
||||
// ReceivedQtyGT applies the GT predicate on the "receivedQty" field.
|
||||
func ReceivedQtyGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyGTE applies the GTE predicate on the "receivedQty" field.
|
||||
func ReceivedQtyGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyLT applies the LT predicate on the "receivedQty" field.
|
||||
func ReceivedQtyLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyLTE applies the LTE predicate on the "receivedQty" field.
|
||||
func ReceivedQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQtyEQ applies the EQ predicate on the "returnedQty" field.
|
||||
func ReturnedQtyEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQtyNEQ applies the NEQ predicate on the "returnedQty" field.
|
||||
func ReturnedQtyNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQtyIn applies the In predicate on the "returnedQty" field.
|
||||
func ReturnedQtyIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldReturnedQty, vs...))
|
||||
}
|
||||
|
||||
// ReturnedQtyNotIn applies the NotIn predicate on the "returnedQty" field.
|
||||
func ReturnedQtyNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldReturnedQty, vs...))
|
||||
}
|
||||
|
||||
// ReturnedQtyGT applies the GT predicate on the "returnedQty" field.
|
||||
func ReturnedQtyGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQtyGTE applies the GTE predicate on the "returnedQty" field.
|
||||
func ReturnedQtyGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQtyLT applies the LT predicate on the "returnedQty" field.
|
||||
func ReturnedQtyLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// ReturnedQtyLTE applies the LTE predicate on the "returnedQty" field.
|
||||
func ReturnedQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldReturnedQty, v))
|
||||
}
|
||||
|
||||
// CrossDayEQ applies the EQ predicate on the "crossDay" field.
|
||||
func CrossDayEQ(v bool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldCrossDay, v))
|
||||
|
||||
Reference in New Issue
Block a user