feat: 核心业务实体扩充(混产模板/产品BOM/试制记录)、WMS 库存检验增强与前端通用能力

- MES 新增实体:混产模板、产品BOM、产品工艺物料、试制记录(schema + ent 生成码 + logic/handler/前端页)
- WMS 实体增强:检验记录、库存、半成品重构;新增序列号库存与短缺代报
- AGV 与产能:AGV 手动点位与链路、物料守卫、短缺预测、原因字典
- 前端通用能力:新增下一步引导组件 NextStepBar,统一帮助文档/布局/请求拦截与操作列
- 工位终端:界面与各 handler 调整(api/store/绑定/PLC/拧紧/上报等)
- 配置与文档:更新 mes-api.yaml、WMS README 及案例/产线API/问题记录/项目说明/流程说明
This commit is contained in:
SunYF
2026-11-15 12:17:39 +08:00
parent 7e8066ab66
commit 1e92b2a596
221 changed files with 26421 additions and 2230 deletions
+52 -44
View File
@@ -22,12 +22,15 @@ import (
"bj_power_mes/ent/material"
"bj_power_mes/ent/materialqtyreport"
"bj_power_mes/ent/materialrequest"
"bj_power_mes/ent/mixproductiontemplate"
"bj_power_mes/ent/permission"
"bj_power_mes/ent/plcsendlog"
"bj_power_mes/ent/processflow"
"bj_power_mes/ent/processstep"
"bj_power_mes/ent/productbom"
"bj_power_mes/ent/productprocess"
"bj_power_mes/ent/productprocessitem"
"bj_power_mes/ent/productprocessmaterial"
"bj_power_mes/ent/role"
"bj_power_mes/ent/semiflow"
"bj_power_mes/ent/shortagerequest"
@@ -40,6 +43,7 @@ import (
"bj_power_mes/ent/syncfailure"
"bj_power_mes/ent/sysconfig"
"bj_power_mes/ent/torquerecord"
"bj_power_mes/ent/trialrecord"
"bj_power_mes/ent/user"
"bj_power_mes/ent/userstation"
"bj_power_mes/ent/workorder"
@@ -116,50 +120,54 @@ var (
func checkColumn(t, c string) error {
initCheck.Do(func() {
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
agvpoint.Table: agvpoint.ValidColumn,
agvtask.Table: agvtask.ValidColumn,
agvvehiclestate.Table: agvvehiclestate.ValidColumn,
alert.Table: alert.ValidColumn,
alertrule.Table: alertrule.ValidColumn,
associationtrace.Table: associationtrace.ValidColumn,
attachment.Table: attachment.ValidColumn,
backuprecord.Table: backuprecord.ValidColumn,
callpool.Table: callpool.ValidColumn,
dailyplan.Table: dailyplan.ValidColumn,
dock.Table: dock.ValidColumn,
eventlog.Table: eventlog.ValidColumn,
flowmaterial.Table: flowmaterial.ValidColumn,
inspectionrecord.Table: inspectionrecord.ValidColumn,
linepoint.Table: linepoint.ValidColumn,
lossledger.Table: lossledger.ValidColumn,
material.Table: material.ValidColumn,
materialqtyreport.Table: materialqtyreport.ValidColumn,
materialrequest.Table: materialrequest.ValidColumn,
permission.Table: permission.ValidColumn,
plcsendlog.Table: plcsendlog.ValidColumn,
processflow.Table: processflow.ValidColumn,
processstep.Table: processstep.ValidColumn,
productprocess.Table: productprocess.ValidColumn,
productprocessitem.Table: productprocessitem.ValidColumn,
role.Table: role.ValidColumn,
semiflow.Table: semiflow.ValidColumn,
shortagerequest.Table: shortagerequest.ValidColumn,
station.Table: station.ValidColumn,
stationshift.Table: stationshift.ValidColumn,
stationstate.Table: stationstate.ValidColumn,
stepcriterion.Table: stepcriterion.ValidColumn,
stepdata.Table: stepdata.ValidColumn,
stepsignrecord.Table: stepsignrecord.ValidColumn,
syncfailure.Table: syncfailure.ValidColumn,
sysconfig.Table: sysconfig.ValidColumn,
torquerecord.Table: torquerecord.ValidColumn,
user.Table: user.ValidColumn,
userstation.Table: userstation.ValidColumn,
workorder.Table: workorder.ValidColumn,
workpiece.Table: workpiece.ValidColumn,
workpiecebind.Table: workpiecebind.ValidColumn,
workpiecelifecyclelog.Table: workpiecelifecyclelog.ValidColumn,
workpieceprocess.Table: workpieceprocess.ValidColumn,
agvpoint.Table: agvpoint.ValidColumn,
agvtask.Table: agvtask.ValidColumn,
agvvehiclestate.Table: agvvehiclestate.ValidColumn,
alert.Table: alert.ValidColumn,
alertrule.Table: alertrule.ValidColumn,
associationtrace.Table: associationtrace.ValidColumn,
attachment.Table: attachment.ValidColumn,
backuprecord.Table: backuprecord.ValidColumn,
callpool.Table: callpool.ValidColumn,
dailyplan.Table: dailyplan.ValidColumn,
dock.Table: dock.ValidColumn,
eventlog.Table: eventlog.ValidColumn,
flowmaterial.Table: flowmaterial.ValidColumn,
inspectionrecord.Table: inspectionrecord.ValidColumn,
linepoint.Table: linepoint.ValidColumn,
lossledger.Table: lossledger.ValidColumn,
material.Table: material.ValidColumn,
materialqtyreport.Table: materialqtyreport.ValidColumn,
materialrequest.Table: materialrequest.ValidColumn,
mixproductiontemplate.Table: mixproductiontemplate.ValidColumn,
permission.Table: permission.ValidColumn,
plcsendlog.Table: plcsendlog.ValidColumn,
processflow.Table: processflow.ValidColumn,
processstep.Table: processstep.ValidColumn,
productbom.Table: productbom.ValidColumn,
productprocess.Table: productprocess.ValidColumn,
productprocessitem.Table: productprocessitem.ValidColumn,
productprocessmaterial.Table: productprocessmaterial.ValidColumn,
role.Table: role.ValidColumn,
semiflow.Table: semiflow.ValidColumn,
shortagerequest.Table: shortagerequest.ValidColumn,
station.Table: station.ValidColumn,
stationshift.Table: stationshift.ValidColumn,
stationstate.Table: stationstate.ValidColumn,
stepcriterion.Table: stepcriterion.ValidColumn,
stepdata.Table: stepdata.ValidColumn,
stepsignrecord.Table: stepsignrecord.ValidColumn,
syncfailure.Table: syncfailure.ValidColumn,
sysconfig.Table: sysconfig.ValidColumn,
torquerecord.Table: torquerecord.ValidColumn,
trialrecord.Table: trialrecord.ValidColumn,
user.Table: user.ValidColumn,
userstation.Table: userstation.ValidColumn,
workorder.Table: workorder.ValidColumn,
workpiece.Table: workpiece.ValidColumn,
workpiecebind.Table: workpiecebind.ValidColumn,
workpiecelifecyclelog.Table: workpiecelifecyclelog.ValidColumn,
workpieceprocess.Table: workpieceprocess.ValidColumn,
})
})
return columnCheck(t, c)