feat: 移除工位模板、AGV 链路增强与产品BOM/混产模板完善
- 移除工位模板体系(handler/logic 全删),同步路由与 seed - AGV 链路增强:点位锁、车辆状态、退料派车调整,新增海康 RCS Postman 调试集合 - MES 产品BOM/混产模板完善:新增 ProductBOMDialog 组件,调整 handler/logic;日排产达成对比调整 - WMS 业务完善:出入库、检验、备料、退料、成品入库、缺料代报等 handler 与前端页面调整 - 前端通用:双端新增 RemotePageSelect 组件,统一 nextStep 规则/帮助文档/布局/请求拦截 - 文档:更新产线API/案例/部署手册/问题记录等
This commit is contained in:
@@ -253,7 +253,7 @@ func makeOutboundHandler(ctx *svc.ServiceContext, outboundType string) http.Hand
|
||||
}
|
||||
}()
|
||||
|
||||
pw := "" // 产品工号:从源库存取,出库单创建后回填(五页带出)
|
||||
pw := "" // 工单号:从源库存取,出库单创建后回填(五页带出)
|
||||
obCreate := tx.OutboundOrder.Create().
|
||||
SetOutboundNo(outboundNo).
|
||||
SetOutboundType(outboundType).
|
||||
@@ -327,7 +327,7 @@ func makeOutboundHandler(ctx *svc.ServiceContext, outboundType string) http.Hand
|
||||
fail(w, http.StatusBadRequest, "批次不存在: "+req.BatchNo)
|
||||
return
|
||||
}
|
||||
pw = b.ProductWorkNo // 取源库存产品工号,回填出库单
|
||||
pw = b.ProductWorkNo // 取源库存工单号,回填出库单
|
||||
// 质量门禁(U5,客户口径):发货/样品/其他类出库仅允许「合格」品流向下游;
|
||||
// 退货/报废/退料类豁免(本身即处置不合格品)。
|
||||
if outboundBlocksUnqualified(req.OutboundCategory) && !qualityShippable(b.QualityStatus) {
|
||||
@@ -428,10 +428,10 @@ func makeOutboundHandler(ctx *svc.ServiceContext, outboundType string) http.Hand
|
||||
return
|
||||
}
|
||||
|
||||
// 回填产品工号(从源库存取,五页带出展示/筛选)
|
||||
// 回填工单号(从源库存取,五页带出展示/筛选)
|
||||
if pw != "" {
|
||||
if _, e := tx.OutboundOrder.UpdateOneID(ob.ID).SetNillableProductWorkNo(strPtr(pw)).Save(ctx0()); e != nil {
|
||||
fail(w, http.StatusInternalServerError, "回填产品工号失败: "+e.Error())
|
||||
fail(w, http.StatusInternalServerError, "回填工单号失败: "+e.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user