feat: 新增工序签字功能,移除移料指令模块
新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
@@ -176,18 +176,6 @@ func (f PermissionFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value,
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.PermissionMutation", m)
|
||||
}
|
||||
|
||||
// The PlcMoveCmdFunc type is an adapter to allow the use of ordinary
|
||||
// function as PlcMoveCmd mutator.
|
||||
type PlcMoveCmdFunc func(context.Context, *ent.PlcMoveCmdMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f PlcMoveCmdFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.PlcMoveCmdMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.PlcMoveCmdMutation", m)
|
||||
}
|
||||
|
||||
// The PlcSendLogFunc type is an adapter to allow the use of ordinary
|
||||
// function as PlcSendLog mutator.
|
||||
type PlcSendLogFunc func(context.Context, *ent.PlcSendLogMutation) (ent.Value, error)
|
||||
@@ -296,6 +284,18 @@ func (f StepDataFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, er
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.StepDataMutation", m)
|
||||
}
|
||||
|
||||
// The StepSignRecordFunc type is an adapter to allow the use of ordinary
|
||||
// function as StepSignRecord mutator.
|
||||
type StepSignRecordFunc func(context.Context, *ent.StepSignRecordMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f StepSignRecordFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.StepSignRecordMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.StepSignRecordMutation", m)
|
||||
}
|
||||
|
||||
// The SysConfigFunc type is an adapter to allow the use of ordinary
|
||||
// function as SysConfig mutator.
|
||||
type SysConfigFunc func(context.Context, *ent.SysConfigMutation) (ent.Value, error)
|
||||
@@ -308,18 +308,6 @@ func (f SysConfigFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, e
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.SysConfigMutation", m)
|
||||
}
|
||||
|
||||
// The TorqueAuditLogFunc type is an adapter to allow the use of ordinary
|
||||
// function as TorqueAuditLog mutator.
|
||||
type TorqueAuditLogFunc func(context.Context, *ent.TorqueAuditLogMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f TorqueAuditLogFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.TorqueAuditLogMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.TorqueAuditLogMutation", m)
|
||||
}
|
||||
|
||||
// The TorqueRecordFunc type is an adapter to allow the use of ordinary
|
||||
// function as TorqueRecord mutator.
|
||||
type TorqueRecordFunc func(context.Context, *ent.TorqueRecordMutation) (ent.Value, error)
|
||||
|
||||
Reference in New Issue
Block a user