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
+8 -5
View File
@@ -77,9 +77,9 @@ func (c *Client) FinishedSnExists(ctx context.Context, sn string) (bool, string,
}
// SemiPayload MES→WMS 在制品入库/出库载荷。
// 归属三字段(2026-09-30):在制品归属自动继承其产品工号的工单归属——
// 归属三字段(2026-09-30):在制品归属自动继承其工单号的工单归属——
// ownershipType/ownershipNo 取自工单归属(workorder=合同号/project=科技项目号/other=其他),
// productWorkNo=产品工号(即工单号),均由 MES 从工单带出后传入,不做人工手选。
// productWorkNo=工单号(即工单号),均由 MES 从工单带出后传入,不做人工手选。
type SemiPayload struct {
Sn string
OrderNo string
@@ -87,7 +87,7 @@ type SemiPayload struct {
Operator string
OwnershipType string // 归属类型:workorder=合同号/project=科技项目号/other=其他
OwnershipNo string // 归属编号(合同号或科技项目号)
ProductWorkNo string // 产品工号(=所属工单号)
ProductWorkNo string // 工单号(=所属工单号)
// 2026-11-13 修复:WMS /api/internal/semi/outbound 要求 reason 必填,
// 原 MES 载荷不含该字段 → 重上线必然 400,在制品(在制品)流转链跑不通。
Reason string // 出库原因(重上线场景由 MES 固定填「重上线继续剩余工序」)
@@ -201,7 +201,7 @@ func (c *Client) DisposeInventory(ctx context.Context, req DisposeInventoryReq)
// FinishedPayload MES→WMS 成品回流入库载荷(完工检合格触发,调 /api/internal/finished/inbound)。
// 归属三字段照 semi.go 在制品归属继承模式取自工单:ownershipType/ownershipNo 取工单归属,
// productWorkNo=产品工号(即工单号),由 MES 自动带出,不做人工手选。
// productWorkNo=工单号(即工单号),由 MES 自动带出,不做人工手选。
// productStatus=完工检结论(已通过/部分通过,WMS 侧映射 qualityStatus 合格);
// relatedStandard=相关标准、testRecordNo=试验记录单号(MES 完工检记录暂无专用字段时传空)。
type FinishedPayload struct {
@@ -216,7 +216,7 @@ type FinishedPayload struct {
TestRecordNo string // 试验记录单号(无则传空)
OwnershipType string // 归属类型:workorder=合同号/project=科技项目号/other=其他
OwnershipNo string // 归属编号(合同号或科技项目号)
ProductWorkNo string // 产品工号(=所属工单号)
ProductWorkNo string // 工单号(=所属工单号)
}
// FinishedInbound 成品回流入库:调 WMS /api/internal/finished/inbound,统一库存主表 category=3。
@@ -314,6 +314,9 @@ type ProductTypeRow struct {
SyncPending bool `json:"syncPending"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
// 产品档案列表只读汇总(2026-11-17):该产品总账的材料种类数 / 单台用量合计(件数口径)。
BOMKinds int `json:"bomKinds"`
BOMQty float64 `json:"bomQty"`
}
// get 调 WMS GET 接口并解出 {code,data}