feat: 全端体验与稳定性整改(帮助文档清理/收集式报错/操作列统一/托盘与WS通知/物料同步重推)

- 移除 bj_power_dashboard 旧 React 大屏源码(迁移至 2D SVG 方案)
- MES/WMS/工位终端前端:清理 help.js 与 PageHelp 帮助文档,统一操作列与布局,接入请求拦截器
- 新增收集式校验错误弹窗(ErrorListDialog 统一拦截 3015,逐条列现象+建议)
- 新增托盘程序(tray)与 WebSocket(ws) 实时通知模块(三端共用)
- MES/WMS 物料档案新增同步状态字段,补齐双向失败重推与默认角色 seed
- 工单/产能/产品工艺/日排产逻辑调整;拧紧枪按工位配置
- 新增迁移 SQL:扭矩按工位、sysconfig 序列修复
- 更新 技术约束/案例/部署手册/项目说明 等文档
This commit is contained in:
SunYF
2026-11-10 23:42:50 +08:00
parent af554cea75
commit 619fc8983d
219 changed files with 8565 additions and 10739 deletions
+10
View File
@@ -31,6 +31,8 @@ const (
FieldSnMode = "sn_mode"
// FieldTemplateCode holds the string denoting the templatecode field in the database.
FieldTemplateCode = "template_code"
// FieldMaterialCode holds the string denoting the material_code field in the database.
FieldMaterialCode = "material_code"
// FieldSafetyStock holds the string denoting the safetystock field in the database.
FieldSafetyStock = "safety_stock"
// FieldIsActive holds the string denoting the isactive field in the database.
@@ -57,6 +59,7 @@ var Columns = []string{
FieldManageMode,
FieldSnMode,
FieldTemplateCode,
FieldMaterialCode,
FieldSafetyStock,
FieldIsActive,
FieldSyncPending,
@@ -101,6 +104,8 @@ var (
DefaultTemplateCode string
// TemplateCodeValidator is a validator for the "templateCode" field. It is called by the builders before save.
TemplateCodeValidator func(string) error
// MaterialCodeValidator is a validator for the "material_code" field. It is called by the builders before save.
MaterialCodeValidator func(string) error
// DefaultSafetyStock holds the default value on creation for the "safetyStock" field.
DefaultSafetyStock int
// DefaultIsActive holds the default value on creation for the "isActive" field.
@@ -168,6 +173,11 @@ func ByTemplateCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTemplateCode, opts...).ToFunc()
}
// ByMaterialCode orders the results by the material_code field.
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
}
// BySafetyStock orders the results by the safetyStock field.
func BySafetyStock(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSafetyStock, opts...).ToFunc()