feat: 新增产品工艺管理与工序审核功能
- 新增产品工艺(product_process)及明细(product_process_item)数据模型 - 新增工序审核开关(need_audit)与审核角色(audit_role)字段 - 新增待审核签字页面与路由 - 优化 WMS/MES 接口交互,增加业务错误处理与友好提示 - 补充库存过滤逻辑,避免返回已出库 SN 数据 - 调整默认查询时间范围为近一个月,优化用户体验
This commit is contained in:
+36
-32
@@ -20,6 +20,8 @@ import (
|
||||
"bj_power_mes/ent/plcsendlog"
|
||||
"bj_power_mes/ent/processflow"
|
||||
"bj_power_mes/ent/processstep"
|
||||
"bj_power_mes/ent/productprocess"
|
||||
"bj_power_mes/ent/productprocessitem"
|
||||
"bj_power_mes/ent/role"
|
||||
"bj_power_mes/ent/semiflow"
|
||||
"bj_power_mes/ent/station"
|
||||
@@ -104,38 +106,40 @@ var (
|
||||
func checkColumn(t, c string) error {
|
||||
initCheck.Do(func() {
|
||||
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
|
||||
alert.Table: alert.ValidColumn,
|
||||
alertrule.Table: alertrule.ValidColumn,
|
||||
associationtrace.Table: associationtrace.ValidColumn,
|
||||
attachment.Table: attachment.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,
|
||||
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,
|
||||
role.Table: role.ValidColumn,
|
||||
semiflow.Table: semiflow.ValidColumn,
|
||||
station.Table: station.ValidColumn,
|
||||
stationstate.Table: stationstate.ValidColumn,
|
||||
stepcriterion.Table: stepcriterion.ValidColumn,
|
||||
stepdata.Table: stepdata.ValidColumn,
|
||||
stepsignrecord.Table: stepsignrecord.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,
|
||||
workpieceprocess.Table: workpieceprocess.ValidColumn,
|
||||
alert.Table: alert.ValidColumn,
|
||||
alertrule.Table: alertrule.ValidColumn,
|
||||
associationtrace.Table: associationtrace.ValidColumn,
|
||||
attachment.Table: attachment.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,
|
||||
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,
|
||||
station.Table: station.ValidColumn,
|
||||
stationstate.Table: stationstate.ValidColumn,
|
||||
stepcriterion.Table: stepcriterion.ValidColumn,
|
||||
stepdata.Table: stepdata.ValidColumn,
|
||||
stepsignrecord.Table: stepsignrecord.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,
|
||||
workpieceprocess.Table: workpieceprocess.ValidColumn,
|
||||
})
|
||||
})
|
||||
return columnCheck(t, c)
|
||||
|
||||
Reference in New Issue
Block a user