feat: 移除工位模板、AGV 链路增强与产品BOM/混产模板完善

- 移除工位模板体系(handler/logic 全删),同步路由与 seed
- AGV 链路增强:点位锁、车辆状态、退料派车调整,新增海康 RCS Postman 调试集合
- MES 产品BOM/混产模板完善:新增 ProductBOMDialog 组件,调整 handler/logic;日排产达成对比调整
- WMS 业务完善:出入库、检验、备料、退料、成品入库、缺料代报等 handler 与前端页面调整
- 前端通用:双端新增 RemotePageSelect 组件,统一 nextStep 规则/帮助文档/布局/请求拦截
- 文档:更新产线API/案例/部署手册/问题记录等
This commit is contained in:
SunYF
2026-11-18 09:53:42 +08:00
parent 5c9a7e32d2
commit f8482b18f6
122 changed files with 3381 additions and 2004 deletions
+3 -3
View File
@@ -103,7 +103,7 @@ func isTimeout(err error) bool {
return strings.Contains(s, "timeout") || strings.Contains(s, "deadline exceeded")
}
// FinishedLookup MES 透传的成品档案快照(WMS 只读展示,禁止前端改写)。
// FinishedLookup MES 透传的产品档案快照(WMS 只读展示,禁止前端改写)。
type FinishedLookup struct {
Sn string `json:"sn"`
OrderNo string `json:"orderNo"`
@@ -114,7 +114,7 @@ type FinishedLookup struct {
OwnershipNo string `json:"ownershipNo"`
}
// LookupFinishedBySN 调 MES /api/internal/finished/lookup?sn= 反查工单与成品档案。
// LookupFinishedBySN 调 MES /api/internal/finished/lookup?sn= 反查工单与产品档案。
// 反查本身即「MES 在线」判据,省去额外一次 Ping(4s);业务错与网络错分开返回。
func (c *Client) LookupFinishedBySN(ctx context.Context, sn string) (*FinishedLookup, error) {
u := c.BaseURL() + "/api/internal/finished/lookup?sn=" + url.QueryEscape(sn)
@@ -351,7 +351,7 @@ func (c *Client) CreateCall(ctx context.Context, stationNo int, callDate string,
// CreateShortageOnBehalf 库管代工位提交补料申请(转发 MES /api/internal/shortage/on-behalf)。
// 复用 MES 现有补料申请 logic 只生成待主管审批的补料单;WMS 不审批、不调增叫料池额度。
// 产品工号不作为独立字段下发(补料申请表无此列),由调用方附在补料原因里带过去。
// 工单号不作为独立字段下发(补料申请表无此列),由调用方附在补料原因里带过去。
func (c *Client) CreateShortageOnBehalf(ctx context.Context, stationNo int, materialCode, materialName, unit string, qty int, reason, operator string) error {
return c.postJSON(ctx, "/api/internal/shortage/on-behalf", map[string]any{
"stationNo": stationNo, "materialCode": materialCode,