feat: 完成区域管理、装箱功能优化与接口标准化

- 新增区域状态字段与增删改查接口,支持区域启用/停用
- 重构实体字段JSON标签为camelCase格式统一接口规范
- 优化入库、盘点、装箱流程的交互与提示文案
- 新增装箱管理功能,支持合同号关联与装箱编辑
- 调整前端菜单与帮助文档适配业务场景变更
This commit is contained in:
SunYF
2026-09-01 13:49:44 +08:00
parent ea6d55b7e6
commit bb22148625
59 changed files with 2238 additions and 357 deletions
+8 -8
View File
@@ -21,7 +21,7 @@ type Material struct {
// 物料真实名称
Name string `json:"name,omitempty"`
// 简称
ShortName string `json:"short_name,omitempty"`
ShortName string `json:"shortName,omitempty"`
// 规格型号
Spec string `json:"spec,omitempty"`
// 单位
@@ -29,19 +29,19 @@ type Material struct {
// 描述
Description string `json:"description,omitempty"`
// 管理粒度 1批次/2序列号
ManageMode int `json:"manage_mode,omitempty"`
ManageMode int `json:"manageMode,omitempty"`
// 是否批次管理
IsBatchManaged bool `json:"is_batch_managed,omitempty"`
IsBatchManaged bool `json:"isBatchManaged,omitempty"`
// 是否序列号管理
IsSerialManaged bool `json:"is_serial_managed,omitempty"`
IsSerialManaged bool `json:"isSerialManaged,omitempty"`
// 物料总状态 raw/semi/finished
MaterialType string `json:"material_type,omitempty"`
MaterialType string `json:"materialType,omitempty"`
// 物料模板编码(物料种类)
TemplateCode string `json:"template_code,omitempty"`
TemplateCode string `json:"templateCode,omitempty"`
// 创建时间
CreatedAt int64 `json:"created_at,omitempty"`
CreatedAt int64 `json:"createdAt,omitempty"`
// 更新时间
UpdatedAt int64 `json:"updated_at,omitempty"`
UpdatedAt int64 `json:"updatedAt,omitempty"`
selectValues sql.SelectValues
}