feat: 完成WMS系统权限体系与业务功能迭代
本提交完成了WMS系统的多维度优化升级: 1. 新增RBAC权限系统,支持角色/菜单/按钮三级权限管控 2. 重构库存盘点、物料管理、区域维护等模块的查询筛选与展示逻辑 3. 优化入库/出库/质检等业务流程,完善数据冗余与业务闭环 4. 移除旧装箱表,将装箱逻辑合并到出库主表 5. 新增前端权限判断工具、导出工具与端到端测试用例 6. 补充完善各类注释与数据库字段说明
This commit is contained in:
@@ -37,6 +37,12 @@ const (
|
||||
FieldTargetDock = "target_dock"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldBoxNo holds the string denoting the box_no field in the database.
|
||||
FieldBoxNo = "box_no"
|
||||
// FieldBoxSnList holds the string denoting the box_sn_list field in the database.
|
||||
FieldBoxSnList = "box_sn_list"
|
||||
// FieldContractNo holds the string denoting the contract_no field in the database.
|
||||
FieldContractNo = "contract_no"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the outboundorder in the database.
|
||||
@@ -59,6 +65,9 @@ var Columns = []string{
|
||||
FieldReviewer,
|
||||
FieldTargetDock,
|
||||
FieldRemark,
|
||||
FieldBoxNo,
|
||||
FieldBoxSnList,
|
||||
FieldContractNo,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -156,6 +165,21 @@ func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBoxNo orders the results by the box_no field.
|
||||
func ByBoxNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBoxNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBoxSnList orders the results by the box_sn_list field.
|
||||
func ByBoxSnList(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBoxSnList, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByContractNo orders the results by the contract_no field.
|
||||
func ByContractNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldContractNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user