feat: 两库对等物料管理及产品工号贯通全流程
- 新增 MES 本地物料表及双向同步接口,WMS 物料变更自动同步 - 全流程新增产品工号字段,贯通入库/库存/出库/检验环节 - 工单管理支持多工单混产,移除单工单互斥限制 - 新增批次号/SN 字段支持质量检验联动 WMS 库存处置 - 修复权限规则,仅内置管理员账号不允许修改删除 - 工位终端新增 SN 扫码自动切换所属工单功能
This commit is contained in:
@@ -47,6 +47,8 @@ const (
|
||||
FieldInboundNo = "inbound_no"
|
||||
// FieldOrderNo holds the string denoting the order_no field in the database.
|
||||
FieldOrderNo = "order_no"
|
||||
// FieldProductWorkNo holds the string denoting the product_work_no field in the database.
|
||||
FieldProductWorkNo = "product_work_no"
|
||||
// FieldCompletedProcess holds the string denoting the completed_process field in the database.
|
||||
FieldCompletedProcess = "completed_process"
|
||||
// FieldOwnershipType holds the string denoting the ownership_type field in the database.
|
||||
@@ -98,6 +100,7 @@ var Columns = []string{
|
||||
FieldSupplier,
|
||||
FieldInboundNo,
|
||||
FieldOrderNo,
|
||||
FieldProductWorkNo,
|
||||
FieldCompletedProcess,
|
||||
FieldOwnershipType,
|
||||
FieldOwnershipNo,
|
||||
@@ -250,6 +253,11 @@ func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProductWorkNo orders the results by the product_work_no field.
|
||||
func ByProductWorkNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductWorkNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCompletedProcess orders the results by the completed_process field.
|
||||
func ByCompletedProcess(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCompletedProcess, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user