feat: 退料闭环定稿(损耗台账/备料清单/退料AGV自动派车/剩余量参考)+ 工位托盘守卫
- MES 新增损耗台账 loss_ledger,差异确认损耗接口 ConfirmReceiveLoss(按工单归集) - 备料清单 preparation:MES 按 日计划×工单×工位×物料 实时计算,WMS 只读展示 PreparationList - 退料闭环:N5 工位托盘守卫(未完成禁止退料)、退料 AGV 自动派车(JBT21 空位判定 + 托盘回收链路)、退料参考剩余量接口(应剩余=实备-已耗-已退-已损) - 新增 AGV 车辆状态表 agv_vehicle_state 及查询 - 整合接驳台/叫料池/库存锁既有闭环,清理 sql 目录注释生成脚本与 catalog,更新文档
This commit is contained in:
@@ -32,6 +32,18 @@ func (f AgvTaskFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, err
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.AgvTaskMutation", m)
|
||||
}
|
||||
|
||||
// The AgvVehicleStateFunc type is an adapter to allow the use of ordinary
|
||||
// function as AgvVehicleState mutator.
|
||||
type AgvVehicleStateFunc func(context.Context, *ent.AgvVehicleStateMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f AgvVehicleStateFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.AgvVehicleStateMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.AgvVehicleStateMutation", m)
|
||||
}
|
||||
|
||||
// The AlertFunc type is an adapter to allow the use of ordinary
|
||||
// function as Alert mutator.
|
||||
type AlertFunc func(context.Context, *ent.AlertMutation) (ent.Value, error)
|
||||
|
||||
Reference in New Issue
Block a user