feat: 两库对等物料管理及产品工号贯通全流程

- 新增 MES 本地物料表及双向同步接口,WMS 物料变更自动同步
- 全流程新增产品工号字段,贯通入库/库存/出库/检验环节
- 工单管理支持多工单混产,移除单工单互斥限制
- 新增批次号/SN 字段支持质量检验联动 WMS 库存处置
- 修复权限规则,仅内置管理员账号不允许修改删除
- 工位终端新增 SN 扫码自动切换所属工单功能
This commit is contained in:
SunYF
2026-09-29 14:55:03 +08:00
parent a229b6727a
commit 76c9b6a7e2
103 changed files with 9412 additions and 1726 deletions
+6 -2
View File
@@ -182,6 +182,7 @@ var (
{Name: "inspection_no", Type: field.TypeString},
{Name: "ownership_type", Type: field.TypeString, Default: "none"},
{Name: "ownership_no", Type: field.TypeString, Nullable: true},
{Name: "product_work_no", Type: field.TypeString, Nullable: true},
{Name: "quality_status", Type: field.TypeString, Nullable: true},
{Name: "voided", Type: field.TypeBool, Default: false},
{Name: "void_reason", Type: field.TypeString, Nullable: true},
@@ -221,6 +222,7 @@ var (
{Name: "material_name", Type: field.TypeString, Nullable: true},
{Name: "ownership_type", Type: field.TypeString, Nullable: true},
{Name: "ownership_no", Type: field.TypeString, Nullable: true},
{Name: "product_work_no", Type: field.TypeString, Nullable: true},
{Name: "related_standard", Type: field.TypeString, Nullable: true},
{Name: "manufacturer", Type: field.TypeString, Nullable: true},
{Name: "inspection_type", Type: field.TypeString, Default: "incoming"},
@@ -259,12 +261,12 @@ var (
{
Name: "inspectionrecord_inspection_type",
Unique: false,
Columns: []*schema.Column{InspectionRecordsColumns[9]},
Columns: []*schema.Column{InspectionRecordsColumns[10]},
},
{
Name: "inspectionrecord_status",
Unique: false,
Columns: []*schema.Column{InspectionRecordsColumns[10]},
Columns: []*schema.Column{InspectionRecordsColumns[11]},
},
},
}
@@ -289,6 +291,7 @@ var (
{Name: "supplier", Type: field.TypeString, Nullable: true},
{Name: "inbound_no", Type: field.TypeString, Nullable: true},
{Name: "order_no", Type: field.TypeString, Size: 64, Default: ""},
{Name: "product_work_no", Type: field.TypeString, Nullable: true},
{Name: "completed_process", Type: field.TypeString, Size: 64, Default: ""},
{Name: "ownership_type", Type: field.TypeString, Nullable: true},
{Name: "ownership_no", Type: field.TypeString, Nullable: true},
@@ -535,6 +538,7 @@ var (
{Name: "box_sn_list", Type: field.TypeString, Nullable: true},
{Name: "contract_no", Type: field.TypeString, Nullable: true},
{Name: "inspection_no", Type: field.TypeString, Nullable: true},
{Name: "product_work_no", Type: field.TypeString, Nullable: true},
{Name: "created_at", Type: field.TypeInt64},
}
// OutboundOrdersTable holds the schema information for the "outbound_orders" table.