feat: 新增工序签字功能,移除移料指令模块
新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
@@ -133,6 +133,34 @@ func (_u *ProcessStepUpdate) SetNillableNeedCheck(v *bool) *ProcessStepUpdate {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNeedOperatorSign sets the "needOperatorSign" field.
|
||||
func (_u *ProcessStepUpdate) SetNeedOperatorSign(v bool) *ProcessStepUpdate {
|
||||
_u.mutation.SetNeedOperatorSign(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableNeedOperatorSign sets the "needOperatorSign" field if the given value is not nil.
|
||||
func (_u *ProcessStepUpdate) SetNillableNeedOperatorSign(v *bool) *ProcessStepUpdate {
|
||||
if v != nil {
|
||||
_u.SetNeedOperatorSign(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNeedInspectorSign sets the "needInspectorSign" field.
|
||||
func (_u *ProcessStepUpdate) SetNeedInspectorSign(v bool) *ProcessStepUpdate {
|
||||
_u.mutation.SetNeedInspectorSign(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableNeedInspectorSign sets the "needInspectorSign" field if the given value is not nil.
|
||||
func (_u *ProcessStepUpdate) SetNillableNeedInspectorSign(v *bool) *ProcessStepUpdate {
|
||||
if v != nil {
|
||||
_u.SetNeedInspectorSign(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetAttachment sets the "attachment" field.
|
||||
func (_u *ProcessStepUpdate) SetAttachment(v []map[string]string) *ProcessStepUpdate {
|
||||
_u.mutation.SetAttachment(v)
|
||||
@@ -262,6 +290,12 @@ func (_u *ProcessStepUpdate) sqlSave(ctx context.Context) (_node int, err error)
|
||||
if value, ok := _u.mutation.NeedCheck(); ok {
|
||||
_spec.SetField(processstep.FieldNeedCheck, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.NeedOperatorSign(); ok {
|
||||
_spec.SetField(processstep.FieldNeedOperatorSign, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.NeedInspectorSign(); ok {
|
||||
_spec.SetField(processstep.FieldNeedInspectorSign, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.Attachment(); ok {
|
||||
_spec.SetField(processstep.FieldAttachment, field.TypeJSON, value)
|
||||
}
|
||||
@@ -402,6 +436,34 @@ func (_u *ProcessStepUpdateOne) SetNillableNeedCheck(v *bool) *ProcessStepUpdate
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNeedOperatorSign sets the "needOperatorSign" field.
|
||||
func (_u *ProcessStepUpdateOne) SetNeedOperatorSign(v bool) *ProcessStepUpdateOne {
|
||||
_u.mutation.SetNeedOperatorSign(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableNeedOperatorSign sets the "needOperatorSign" field if the given value is not nil.
|
||||
func (_u *ProcessStepUpdateOne) SetNillableNeedOperatorSign(v *bool) *ProcessStepUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetNeedOperatorSign(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNeedInspectorSign sets the "needInspectorSign" field.
|
||||
func (_u *ProcessStepUpdateOne) SetNeedInspectorSign(v bool) *ProcessStepUpdateOne {
|
||||
_u.mutation.SetNeedInspectorSign(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableNeedInspectorSign sets the "needInspectorSign" field if the given value is not nil.
|
||||
func (_u *ProcessStepUpdateOne) SetNillableNeedInspectorSign(v *bool) *ProcessStepUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetNeedInspectorSign(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetAttachment sets the "attachment" field.
|
||||
func (_u *ProcessStepUpdateOne) SetAttachment(v []map[string]string) *ProcessStepUpdateOne {
|
||||
_u.mutation.SetAttachment(v)
|
||||
@@ -561,6 +623,12 @@ func (_u *ProcessStepUpdateOne) sqlSave(ctx context.Context) (_node *ProcessStep
|
||||
if value, ok := _u.mutation.NeedCheck(); ok {
|
||||
_spec.SetField(processstep.FieldNeedCheck, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.NeedOperatorSign(); ok {
|
||||
_spec.SetField(processstep.FieldNeedOperatorSign, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.NeedInspectorSign(); ok {
|
||||
_spec.SetField(processstep.FieldNeedInspectorSign, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.Attachment(); ok {
|
||||
_spec.SetField(processstep.FieldAttachment, field.TypeJSON, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user