feat: 完成WMS系统权限体系与业务功能迭代

本提交完成了WMS系统的多维度优化升级:
1. 新增RBAC权限系统,支持角色/菜单/按钮三级权限管控
2. 重构库存盘点、物料管理、区域维护等模块的查询筛选与展示逻辑
3. 优化入库/出库/质检等业务流程,完善数据冗余与业务闭环
4. 移除旧装箱表,将装箱逻辑合并到出库主表
5. 新增前端权限判断工具、导出工具与端到端测试用例
6. 补充完善各类注释与数据库字段说明
This commit is contained in:
SunYF
2026-09-03 14:20:37 +08:00
parent 665ff257dc
commit 572fa975bc
101 changed files with 14531 additions and 4692 deletions
+234
View File
@@ -187,6 +187,48 @@ func (_c *OutboundOrderCreate) SetNillableRemark(v *string) *OutboundOrderCreate
return _c
}
// SetBoxNo sets the "box_no" field.
func (_c *OutboundOrderCreate) SetBoxNo(v string) *OutboundOrderCreate {
_c.mutation.SetBoxNo(v)
return _c
}
// SetNillableBoxNo sets the "box_no" field if the given value is not nil.
func (_c *OutboundOrderCreate) SetNillableBoxNo(v *string) *OutboundOrderCreate {
if v != nil {
_c.SetBoxNo(*v)
}
return _c
}
// SetBoxSnList sets the "box_sn_list" field.
func (_c *OutboundOrderCreate) SetBoxSnList(v string) *OutboundOrderCreate {
_c.mutation.SetBoxSnList(v)
return _c
}
// SetNillableBoxSnList sets the "box_sn_list" field if the given value is not nil.
func (_c *OutboundOrderCreate) SetNillableBoxSnList(v *string) *OutboundOrderCreate {
if v != nil {
_c.SetBoxSnList(*v)
}
return _c
}
// SetContractNo sets the "contract_no" field.
func (_c *OutboundOrderCreate) SetContractNo(v string) *OutboundOrderCreate {
_c.mutation.SetContractNo(v)
return _c
}
// SetNillableContractNo sets the "contract_no" field if the given value is not nil.
func (_c *OutboundOrderCreate) SetNillableContractNo(v *string) *OutboundOrderCreate {
if v != nil {
_c.SetContractNo(*v)
}
return _c
}
// SetCreatedAt sets the "created_at" field.
func (_c *OutboundOrderCreate) SetCreatedAt(v int64) *OutboundOrderCreate {
_c.mutation.SetCreatedAt(v)
@@ -353,6 +395,18 @@ func (_c *OutboundOrderCreate) createSpec() (*OutboundOrder, *sqlgraph.CreateSpe
_spec.SetField(outboundorder.FieldRemark, field.TypeString, value)
_node.Remark = value
}
if value, ok := _c.mutation.BoxNo(); ok {
_spec.SetField(outboundorder.FieldBoxNo, field.TypeString, value)
_node.BoxNo = value
}
if value, ok := _c.mutation.BoxSnList(); ok {
_spec.SetField(outboundorder.FieldBoxSnList, field.TypeString, value)
_node.BoxSnList = value
}
if value, ok := _c.mutation.ContractNo(); ok {
_spec.SetField(outboundorder.FieldContractNo, field.TypeString, value)
_node.ContractNo = value
}
if value, ok := _c.mutation.CreatedAt(); ok {
_spec.SetField(outboundorder.FieldCreatedAt, field.TypeInt64, value)
_node.CreatedAt = value
@@ -625,6 +679,60 @@ func (u *OutboundOrderUpsert) ClearRemark() *OutboundOrderUpsert {
return u
}
// SetBoxNo sets the "box_no" field.
func (u *OutboundOrderUpsert) SetBoxNo(v string) *OutboundOrderUpsert {
u.Set(outboundorder.FieldBoxNo, v)
return u
}
// UpdateBoxNo sets the "box_no" field to the value that was provided on create.
func (u *OutboundOrderUpsert) UpdateBoxNo() *OutboundOrderUpsert {
u.SetExcluded(outboundorder.FieldBoxNo)
return u
}
// ClearBoxNo clears the value of the "box_no" field.
func (u *OutboundOrderUpsert) ClearBoxNo() *OutboundOrderUpsert {
u.SetNull(outboundorder.FieldBoxNo)
return u
}
// SetBoxSnList sets the "box_sn_list" field.
func (u *OutboundOrderUpsert) SetBoxSnList(v string) *OutboundOrderUpsert {
u.Set(outboundorder.FieldBoxSnList, v)
return u
}
// UpdateBoxSnList sets the "box_sn_list" field to the value that was provided on create.
func (u *OutboundOrderUpsert) UpdateBoxSnList() *OutboundOrderUpsert {
u.SetExcluded(outboundorder.FieldBoxSnList)
return u
}
// ClearBoxSnList clears the value of the "box_sn_list" field.
func (u *OutboundOrderUpsert) ClearBoxSnList() *OutboundOrderUpsert {
u.SetNull(outboundorder.FieldBoxSnList)
return u
}
// SetContractNo sets the "contract_no" field.
func (u *OutboundOrderUpsert) SetContractNo(v string) *OutboundOrderUpsert {
u.Set(outboundorder.FieldContractNo, v)
return u
}
// UpdateContractNo sets the "contract_no" field to the value that was provided on create.
func (u *OutboundOrderUpsert) UpdateContractNo() *OutboundOrderUpsert {
u.SetExcluded(outboundorder.FieldContractNo)
return u
}
// ClearContractNo clears the value of the "contract_no" field.
func (u *OutboundOrderUpsert) ClearContractNo() *OutboundOrderUpsert {
u.SetNull(outboundorder.FieldContractNo)
return u
}
// SetCreatedAt sets the "created_at" field.
func (u *OutboundOrderUpsert) SetCreatedAt(v int64) *OutboundOrderUpsert {
u.Set(outboundorder.FieldCreatedAt, v)
@@ -935,6 +1043,69 @@ func (u *OutboundOrderUpsertOne) ClearRemark() *OutboundOrderUpsertOne {
})
}
// SetBoxNo sets the "box_no" field.
func (u *OutboundOrderUpsertOne) SetBoxNo(v string) *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.SetBoxNo(v)
})
}
// UpdateBoxNo sets the "box_no" field to the value that was provided on create.
func (u *OutboundOrderUpsertOne) UpdateBoxNo() *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.UpdateBoxNo()
})
}
// ClearBoxNo clears the value of the "box_no" field.
func (u *OutboundOrderUpsertOne) ClearBoxNo() *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.ClearBoxNo()
})
}
// SetBoxSnList sets the "box_sn_list" field.
func (u *OutboundOrderUpsertOne) SetBoxSnList(v string) *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.SetBoxSnList(v)
})
}
// UpdateBoxSnList sets the "box_sn_list" field to the value that was provided on create.
func (u *OutboundOrderUpsertOne) UpdateBoxSnList() *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.UpdateBoxSnList()
})
}
// ClearBoxSnList clears the value of the "box_sn_list" field.
func (u *OutboundOrderUpsertOne) ClearBoxSnList() *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.ClearBoxSnList()
})
}
// SetContractNo sets the "contract_no" field.
func (u *OutboundOrderUpsertOne) SetContractNo(v string) *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.SetContractNo(v)
})
}
// UpdateContractNo sets the "contract_no" field to the value that was provided on create.
func (u *OutboundOrderUpsertOne) UpdateContractNo() *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.UpdateContractNo()
})
}
// ClearContractNo clears the value of the "contract_no" field.
func (u *OutboundOrderUpsertOne) ClearContractNo() *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
s.ClearContractNo()
})
}
// SetCreatedAt sets the "created_at" field.
func (u *OutboundOrderUpsertOne) SetCreatedAt(v int64) *OutboundOrderUpsertOne {
return u.Update(func(s *OutboundOrderUpsert) {
@@ -1412,6 +1583,69 @@ func (u *OutboundOrderUpsertBulk) ClearRemark() *OutboundOrderUpsertBulk {
})
}
// SetBoxNo sets the "box_no" field.
func (u *OutboundOrderUpsertBulk) SetBoxNo(v string) *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.SetBoxNo(v)
})
}
// UpdateBoxNo sets the "box_no" field to the value that was provided on create.
func (u *OutboundOrderUpsertBulk) UpdateBoxNo() *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.UpdateBoxNo()
})
}
// ClearBoxNo clears the value of the "box_no" field.
func (u *OutboundOrderUpsertBulk) ClearBoxNo() *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.ClearBoxNo()
})
}
// SetBoxSnList sets the "box_sn_list" field.
func (u *OutboundOrderUpsertBulk) SetBoxSnList(v string) *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.SetBoxSnList(v)
})
}
// UpdateBoxSnList sets the "box_sn_list" field to the value that was provided on create.
func (u *OutboundOrderUpsertBulk) UpdateBoxSnList() *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.UpdateBoxSnList()
})
}
// ClearBoxSnList clears the value of the "box_sn_list" field.
func (u *OutboundOrderUpsertBulk) ClearBoxSnList() *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.ClearBoxSnList()
})
}
// SetContractNo sets the "contract_no" field.
func (u *OutboundOrderUpsertBulk) SetContractNo(v string) *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.SetContractNo(v)
})
}
// UpdateContractNo sets the "contract_no" field to the value that was provided on create.
func (u *OutboundOrderUpsertBulk) UpdateContractNo() *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.UpdateContractNo()
})
}
// ClearContractNo clears the value of the "contract_no" field.
func (u *OutboundOrderUpsertBulk) ClearContractNo() *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {
s.ClearContractNo()
})
}
// SetCreatedAt sets the "created_at" field.
func (u *OutboundOrderUpsertBulk) SetCreatedAt(v int64) *OutboundOrderUpsertBulk {
return u.Update(func(s *OutboundOrderUpsert) {