feat: 新增工序签字功能,移除移料指令模块
新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -84,6 +84,16 @@ func NeedCheck(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedCheck, v))
|
||||
}
|
||||
|
||||
// NeedOperatorSign applies equality check predicate on the "needOperatorSign" field. It's identical to NeedOperatorSignEQ.
|
||||
func NeedOperatorSign(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedOperatorSign, v))
|
||||
}
|
||||
|
||||
// NeedInspectorSign applies equality check predicate on the "needInspectorSign" field. It's identical to NeedInspectorSignEQ.
|
||||
func NeedInspectorSign(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedInspectorSign, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldRemark, v))
|
||||
@@ -334,6 +344,26 @@ func NeedCheckNEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldNeedCheck, v))
|
||||
}
|
||||
|
||||
// NeedOperatorSignEQ applies the EQ predicate on the "needOperatorSign" field.
|
||||
func NeedOperatorSignEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedOperatorSign, v))
|
||||
}
|
||||
|
||||
// NeedOperatorSignNEQ applies the NEQ predicate on the "needOperatorSign" field.
|
||||
func NeedOperatorSignNEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldNeedOperatorSign, v))
|
||||
}
|
||||
|
||||
// NeedInspectorSignEQ applies the EQ predicate on the "needInspectorSign" field.
|
||||
func NeedInspectorSignEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedInspectorSign, v))
|
||||
}
|
||||
|
||||
// NeedInspectorSignNEQ applies the NEQ predicate on the "needInspectorSign" field.
|
||||
func NeedInspectorSignNEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldNeedInspectorSign, v))
|
||||
}
|
||||
|
||||
// AttachmentIsNil applies the IsNil predicate on the "attachment" field.
|
||||
func AttachmentIsNil() predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIsNull(FieldAttachment))
|
||||
|
||||
Reference in New Issue
Block a user