chore: 批量完成项目多模块迭代优化
1. 废弃半成品库存表并统一库存主表 2. 修复列表排序与搜索大小写不敏感问题 3. 新增用户最近登录时间、工单BOM名称字段 4. 完善角色管理、工位选择器功能 5. 增加拧紧数据补录、成品自动回流WMS能力 6. 统一导出时间范围校验规则 7. 丰富物料/备料单筛选条件 8. 调整菜单与权限命名适配产品型号业务
This commit is contained in:
@@ -15,6 +15,8 @@ const (
|
||||
FieldID = "id"
|
||||
// FieldProductCode holds the string denoting the productcode field in the database.
|
||||
FieldProductCode = "product_code"
|
||||
// FieldBomName holds the string denoting the bomname field in the database.
|
||||
FieldBomName = "bom_name"
|
||||
// FieldMaterialCode holds the string denoting the materialcode field in the database.
|
||||
FieldMaterialCode = "material_code"
|
||||
// FieldMaterialName holds the string denoting the materialname field in the database.
|
||||
@@ -45,6 +47,7 @@ const (
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldProductCode,
|
||||
FieldBomName,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldSpec,
|
||||
@@ -73,6 +76,10 @@ var (
|
||||
DefaultProductCode string
|
||||
// ProductCodeValidator is a validator for the "productCode" field. It is called by the builders before save.
|
||||
ProductCodeValidator func(string) error
|
||||
// DefaultBomName holds the default value on creation for the "bomName" field.
|
||||
DefaultBomName string
|
||||
// BomNameValidator is a validator for the "bomName" field. It is called by the builders before save.
|
||||
BomNameValidator func(string) error
|
||||
// MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
MaterialCodeValidator func(string) error
|
||||
// DefaultMaterialName holds the default value on creation for the "materialName" field.
|
||||
@@ -118,6 +125,11 @@ func ByProductCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBomName orders the results by the bomName field.
|
||||
func ByBomName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBomName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the materialCode field.
|
||||
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user