chore: 完成多系统功能迭代与优化
1. 通用优化: - 统一系统标题为"库房客户端"/"MES产线控制",移除北自所前缀 - 调整内置账号密码为统一123456,优化密码校验逻辑 - 新增数据库自动创建逻辑,简化部署流程 - 修复日志时间格式配置,优化日志输出 - 新增纯数字密码安全提示 2. MES系统优化: - 新增日排产管理功能,支持增删改查与自动算料生成备料单 - 重构BOM模块,改为按产品编码维护而非工单维度 - 新增工艺参数模板配置与手动报工页面 - 新增产品类型自动编码功能 - 优化菜单结构,调整工单管理、扫码报工等页面名称与路由 - 新增删除日排产接口与权限保护 - 修复物料清单查询逻辑,适配新BOM结构 - 新增refreshToken支持,优化登录会话管理 3. WMS系统优化: - 新增基础数据维护页面,支持区域与物料档案管理 - 新增工单列表下拉接口,对接MES获取未完成工单优先展示 - 优化入库管理提示文案,替换英文提示为中文 - 修复精密件入库校验逻辑,优化错误提示 - 优化Excel导入功能,新增备注字段支持 - 优化登录页面与菜单文案,统一备料台账名称 - 新增自动打开浏览器功能,优化客户端启动体验 - 修复备料出库页面查询提示文案 - 新增WMS与MES对接配置,完善内部API调用逻辑 4. 其他优化: - 删除冗余的旧版静态资源文件,更新资源引用路径 - 新增帮助文档,完善基础数据模块说明 - 修复多处文案不统一、英文残留问题
This commit is contained in:
@@ -13,8 +13,8 @@ const (
|
||||
Label = "bom_item"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldWorkOrderNo holds the string denoting the workorderno field in the database.
|
||||
FieldWorkOrderNo = "work_order_no"
|
||||
// FieldProductCode holds the string denoting the productcode field in the database.
|
||||
FieldProductCode = "product_code"
|
||||
// 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.
|
||||
@@ -42,7 +42,7 @@ const (
|
||||
// Columns holds all SQL columns for bomitem fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldWorkOrderNo,
|
||||
FieldProductCode,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldSpec,
|
||||
@@ -66,8 +66,10 @@ func ValidColumn(column string) bool {
|
||||
}
|
||||
|
||||
var (
|
||||
// WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
WorkOrderNoValidator func(string) error
|
||||
// DefaultProductCode holds the default value on creation for the "productCode" field.
|
||||
DefaultProductCode string
|
||||
// ProductCodeValidator is a validator for the "productCode" field. It is called by the builders before save.
|
||||
ProductCodeValidator 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.
|
||||
@@ -106,9 +108,9 @@ func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByWorkOrderNo orders the results by the workOrderNo field.
|
||||
func ByWorkOrderNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldWorkOrderNo, opts...).ToFunc()
|
||||
// ByProductCode orders the results by the productCode field.
|
||||
func ByProductCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the materialCode field.
|
||||
|
||||
@@ -54,9 +54,9 @@ func IDLTE(id int) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// WorkOrderNo applies equality check predicate on the "workOrderNo" field. It's identical to WorkOrderNoEQ.
|
||||
func WorkOrderNo(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
// ProductCode applies equality check predicate on the "productCode" field. It's identical to ProductCodeEQ.
|
||||
func ProductCode(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEQ(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||||
@@ -104,69 +104,69 @@ func CreatedAt(v time.Time) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEQ applies the EQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEQ(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEQ(FieldWorkOrderNo, v))
|
||||
// ProductCodeEQ applies the EQ predicate on the "productCode" field.
|
||||
func ProductCodeEQ(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEQ(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoNEQ applies the NEQ predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNEQ(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldNEQ(FieldWorkOrderNo, v))
|
||||
// ProductCodeNEQ applies the NEQ predicate on the "productCode" field.
|
||||
func ProductCodeNEQ(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldNEQ(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoIn applies the In predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoIn(vs ...string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldIn(FieldWorkOrderNo, vs...))
|
||||
// ProductCodeIn applies the In predicate on the "productCode" field.
|
||||
func ProductCodeIn(vs ...string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldIn(FieldProductCode, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoNotIn applies the NotIn predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoNotIn(vs ...string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldNotIn(FieldWorkOrderNo, vs...))
|
||||
// ProductCodeNotIn applies the NotIn predicate on the "productCode" field.
|
||||
func ProductCodeNotIn(vs ...string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldNotIn(FieldProductCode, vs...))
|
||||
}
|
||||
|
||||
// WorkOrderNoGT applies the GT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGT(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldGT(FieldWorkOrderNo, v))
|
||||
// ProductCodeGT applies the GT predicate on the "productCode" field.
|
||||
func ProductCodeGT(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldGT(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoGTE applies the GTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoGTE(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldGTE(FieldWorkOrderNo, v))
|
||||
// ProductCodeGTE applies the GTE predicate on the "productCode" field.
|
||||
func ProductCodeGTE(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldGTE(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLT applies the LT predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLT(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldLT(FieldWorkOrderNo, v))
|
||||
// ProductCodeLT applies the LT predicate on the "productCode" field.
|
||||
func ProductCodeLT(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldLT(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoLTE applies the LTE predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoLTE(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldLTE(FieldWorkOrderNo, v))
|
||||
// ProductCodeLTE applies the LTE predicate on the "productCode" field.
|
||||
func ProductCodeLTE(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldLTE(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContains applies the Contains predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContains(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldContains(FieldWorkOrderNo, v))
|
||||
// ProductCodeContains applies the Contains predicate on the "productCode" field.
|
||||
func ProductCodeContains(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldContains(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasPrefix applies the HasPrefix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasPrefix(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldHasPrefix(FieldWorkOrderNo, v))
|
||||
// ProductCodeHasPrefix applies the HasPrefix predicate on the "productCode" field.
|
||||
func ProductCodeHasPrefix(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldHasPrefix(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoHasSuffix applies the HasSuffix predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoHasSuffix(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldHasSuffix(FieldWorkOrderNo, v))
|
||||
// ProductCodeHasSuffix applies the HasSuffix predicate on the "productCode" field.
|
||||
func ProductCodeHasSuffix(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldHasSuffix(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoEqualFold applies the EqualFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoEqualFold(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEqualFold(FieldWorkOrderNo, v))
|
||||
// ProductCodeEqualFold applies the EqualFold predicate on the "productCode" field.
|
||||
func ProductCodeEqualFold(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldEqualFold(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// WorkOrderNoContainsFold applies the ContainsFold predicate on the "workOrderNo" field.
|
||||
func WorkOrderNoContainsFold(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldContainsFold(FieldWorkOrderNo, v))
|
||||
// ProductCodeContainsFold applies the ContainsFold predicate on the "productCode" field.
|
||||
func ProductCodeContainsFold(v string) predicate.BomItem {
|
||||
return predicate.BomItem(sql.FieldContainsFold(FieldProductCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||||
|
||||
Reference in New Issue
Block a user