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
+7 -7
View File
@@ -277,14 +277,14 @@ type importErr struct {
// excelInboundHandler Excel 批量导入入库
// mode=batch(序列号=否) 列头(首行忽略):
//
// 图号 | 数量 | 生产日期 | 供应商 | 区域 | 架 | 层 | 位 | 备注 | 检测单号 | 产品工号 | 归属类型 | 归属编号
// 图号 | 数量 | 生产日期 | 供应商 | 区域 | 架 | 层 | 位 | 备注 | 检测单号 | 工单号 | 归属类型 | 归属编号
//
// 批次号不再出现在模板中(2026-10-21 批次号收口):一律由系统自动生成(物料编码-日期-流水号)。
// mode=sn(序列号=是) 列头(首行忽略):
//
// 图号 | SN | 区域 | 生产日期 | 供应商 | 架 | 层 | 位 | 备注 | 检测单号 | 产品工号 | 归属类型 | 归属编号
// 图号 | SN | 区域 | 生产日期 | 供应商 | 架 | 层 | 位 | 备注 | 检测单号 | 工单号 | 归属类型 | 归属编号
//
// 新增列(架/层/位/备注/检测单号/产品工号/归属) 均为【可选、追加在末尾】,老模板文件缺这些列仍可导入(对应字段留空)。
// 新增列(架/层/位/备注/检测单号/工单号/归属) 均为【可选、追加在末尾】,老模板文件缺这些列仍可导入(对应字段留空)。
// 归属类型填 workorder/project/other(其他值按 other 处理);workorder/project 必须同时填归属编号,other 可不填。
//
// 强约束:全成功或全失败(一次性全导入 or 全失败,禁止部分成功)。
@@ -299,14 +299,14 @@ func excelInboundImportTemplateHandler(ctx *svc.ServiceContext) http.HandlerFunc
var headers []string
var rows [][]any
if mode == "sn" {
headers = []string{"图号", "序列号", "区域", "生产日期", "供应商", "架", "层", "位", "备注", "检测单号", "产品工号", "归属类型", "归属编号"}
headers = []string{"图号", "序列号", "区域", "生产日期", "供应商", "架", "层", "位", "备注", "检测单号", "工单号", "归属类型", "归属编号"}
rows = [][]any{
{"DX100-001", "SN0001", "A区", "2026-10-21", "示例供应商", "1", "1", "1", "示例备注", "Jian001", "WO-20261021-001", "workorder", "HT-001"},
}
sendExcel(w, "入库序列号导入模板.xlsx", headers, rows)
return
}
headers = []string{"图号", "数量", "生产日期", "供应商", "区域", "架", "层", "位", "备注", "检测单号", "产品工号", "归属类型", "归属编号"}
headers = []string{"图号", "数量", "生产日期", "供应商", "区域", "架", "层", "位", "备注", "检测单号", "工单号", "归属类型", "归属编号"}
rows = [][]any{
{"DX100-001", "100", "2026-10-21", "示例供应商", "A区", "1", "1", "1", "示例备注", "Jian001", "WO-20261021-001", "workorder", "HT-001"},
}
@@ -533,7 +533,7 @@ func parseInboundImportPlan(ctx *svc.ServiceContext, rows [][]string, mode strin
pr := inboundImportPlan{row: i + 1}
pr.code = cell(0)
if mode == "sn" {
// 图号|SN|区域|生产日期|供应商|架|层|位|备注|检测单号|产品工号|归属类型|归属编号
// 图号|SN|区域|生产日期|供应商|架|层|位|备注|检测单号|工单号|归属类型|归属编号
pr.sn = cell(1)
pr.zone = cell(2)
pr.prodDate = cell(3)
@@ -547,7 +547,7 @@ func parseInboundImportPlan(ctx *svc.ServiceContext, rows [][]string, mode strin
pr.ownershipType = cell(11)
pr.ownershipNo = cell(12)
} else {
// 图号|数量|生产日期|供应商|区域|架|层|位|备注|检测单号|产品工号|归属类型|归属编号(批次号由系统自动生成,模板不再含该列)
// 图号|数量|生产日期|供应商|区域|架|层|位|备注|检测单号|工单号|归属类型|归属编号(批次号由系统自动生成,模板不再含该列)
pr.qty = atoi(cell(1), 0)
pr.prodDate = cell(2)
pr.supplier = cell(3)