feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程
新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
This commit is contained in:
@@ -59,26 +59,3 @@ func ListPointsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
httpx.Ok(w, data)
|
||||
}
|
||||
}
|
||||
|
||||
// CallMaterialHandler POST /line/call-material(工位终端叫料:选接驳台)
|
||||
func CallMaterialHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
var req struct {
|
||||
StationNo int `json:"stationNo"`
|
||||
Dock string `json:"dock"`
|
||||
OrderNo string `json:"orderNo"`
|
||||
Items []logic.CallMaterialItem `json:"items"`
|
||||
}
|
||||
if err := httpx.ParseJSON(r, &req); err != nil {
|
||||
httpx.BadRequest(w, "请求体解析失败")
|
||||
return
|
||||
}
|
||||
production.LogImpersonation(svcCtx, r, "", "/api/internal/line/call-material")
|
||||
n, err := logic.New(svcCtx).CallMaterial(r.Context(), req.StationNo, req.Dock, req.OrderNo, production.StationOp(r, ""), req.Items)
|
||||
if err != nil {
|
||||
httpx.Fail(w, 2406, err.Error())
|
||||
return
|
||||
}
|
||||
httpx.OkMessage(w, "叫料已提交", map[string]any{"count": n})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user