feat: 来料检处置项实体与复检、日排产达成对比、PLC/WMS 传输日志

- WMS 新增「检验处置项」实体(schema + ent 生成码),配套检验记录实体调整与复检接口,完善来料检/不良退货/入库检验前端
- MES 日排产:新增达成率统计与计划对比逻辑,调整日排产前端与流程卡/工序流
- 日志与传输:MES 新增 PLC 日志与 WMS 客户端传输日志,WMS 新增 MES 客户端传输日志
- MES 其他:扫码、工单/工件、AGV 客户端与告警、产品导入等逻辑完善及前端调整
- 工位终端:上线面板/作业面板、工件 handler 与 MES 客户端调整
- 配置与文档:更新 mes-api.yaml、三端构建产物与问题记录文档
This commit is contained in:
SunYF
2026-11-16 16:42:44 +08:00
parent b32ec7c03d
commit d92ca803d5
72 changed files with 5135 additions and 1526 deletions
+12
View File
@@ -116,6 +116,18 @@ func (f InboundOrderFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.InboundOrderMutation", m)
}
// The InspectionDisposalItemFunc type is an adapter to allow the use of ordinary
// function as InspectionDisposalItem mutator.
type InspectionDisposalItemFunc func(context.Context, *ent.InspectionDisposalItemMutation) (ent.Value, error)
// Mutate calls f(ctx, m).
func (f InspectionDisposalItemFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
if mv, ok := m.(*ent.InspectionDisposalItemMutation); ok {
return f(ctx, mv)
}
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.InspectionDisposalItemMutation", m)
}
// The InspectionRecordFunc type is an adapter to allow the use of ordinary
// function as InspectionRecord mutator.
type InspectionRecordFunc func(context.Context, *ent.InspectionRecordMutation) (ent.Value, error)