feat: 新增工序签字功能,移除移料指令模块

新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
SunYF
2026-10-05 20:15:38 +08:00
parent c33acab9c8
commit f1cf57e9b2
181 changed files with 9785 additions and 9699 deletions
@@ -25,6 +25,10 @@ const (
FieldIsTorque = "is_torque"
// FieldNeedCheck holds the string denoting the needcheck field in the database.
FieldNeedCheck = "need_check"
// FieldNeedOperatorSign holds the string denoting the needoperatorsign field in the database.
FieldNeedOperatorSign = "need_operator_sign"
// FieldNeedInspectorSign holds the string denoting the needinspectorsign field in the database.
FieldNeedInspectorSign = "need_inspector_sign"
// FieldAttachment holds the string denoting the attachment field in the database.
FieldAttachment = "attachment"
// FieldRemark holds the string denoting the remark field in the database.
@@ -44,6 +48,8 @@ var Columns = []string{
FieldCollectType,
FieldIsTorque,
FieldNeedCheck,
FieldNeedOperatorSign,
FieldNeedInspectorSign,
FieldAttachment,
FieldRemark,
FieldCreatedAt,
@@ -72,6 +78,10 @@ var (
DefaultIsTorque bool
// DefaultNeedCheck holds the default value on creation for the "needCheck" field.
DefaultNeedCheck bool
// DefaultNeedOperatorSign holds the default value on creation for the "needOperatorSign" field.
DefaultNeedOperatorSign bool
// DefaultNeedInspectorSign holds the default value on creation for the "needInspectorSign" field.
DefaultNeedInspectorSign bool
// DefaultRemark holds the default value on creation for the "remark" field.
DefaultRemark string
// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
@@ -120,6 +130,16 @@ func ByNeedCheck(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNeedCheck, opts...).ToFunc()
}
// ByNeedOperatorSign orders the results by the needOperatorSign field.
func ByNeedOperatorSign(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNeedOperatorSign, opts...).ToFunc()
}
// ByNeedInspectorSign orders the results by the needInspectorSign field.
func ByNeedInspectorSign(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNeedInspectorSign, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, opts...).ToFunc()