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
+9 -9
View File
@@ -17,27 +17,27 @@ type SerialNumber struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// 序列号
SnCode string `json:"sn_code,omitempty"`
SnCode string `json:"snCode,omitempty"`
// 物料编码
MaterialCode string `json:"material_code,omitempty"`
MaterialCode string `json:"materialCode,omitempty"`
// 所属批次
BatchNo string `json:"batch_no,omitempty"`
BatchNo string `json:"batchNo,omitempty"`
// 在库/锁定/出库/使用/报废
Status string `json:"status,omitempty"`
// 当前区域
CurrentZone string `json:"current_zone,omitempty"`
CurrentZone string `json:"currentZone,omitempty"`
// 检验状态 未检/合格/不合格
QualityStatus string `json:"quality_status,omitempty"`
QualityStatus string `json:"qualityStatus,omitempty"`
// 最近入库时间
LastInboundAt string `json:"last_inbound_at,omitempty"`
LastInboundAt string `json:"lastInboundAt,omitempty"`
// 最近出库时间
LastOutboundAt string `json:"last_outbound_at,omitempty"`
LastOutboundAt string `json:"lastOutboundAt,omitempty"`
// 备注
Remark string `json:"remark,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt int64 `json:"created_at,omitempty"`
CreatedAt int64 `json:"createdAt,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt int64 `json:"updated_at,omitempty"`
UpdatedAt int64 `json:"updatedAt,omitempty"`
selectValues sql.SelectValues
}