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
+14
View File
@@ -341,8 +341,10 @@ var (
{Name: "material_code", Type: field.TypeString, Nullable: true},
{Name: "quantity", Type: field.TypeInt, Default: 0},
{Name: "operator", Type: field.TypeString, Nullable: true},
{Name: "contract_no", Type: field.TypeString, Nullable: true},
{Name: "remark", Type: field.TypeString, Nullable: true},
{Name: "created_at", Type: field.TypeInt64},
{Name: "updated_at", Type: field.TypeInt64, Nullable: true},
}
// PackageBoxesTable holds the schema information for the "package_boxes" table.
PackageBoxesTable = &schema.Table{
@@ -355,6 +357,16 @@ var (
Unique: false,
Columns: []*schema.Column{PackageBoxesColumns[3]},
},
{
Name: "packagebox_contract_no",
Unique: false,
Columns: []*schema.Column{PackageBoxesColumns[6]},
},
{
Name: "packagebox_operator",
Unique: false,
Columns: []*schema.Column{PackageBoxesColumns[5]},
},
},
}
// SemiFinishedsColumns holds the columns for the "semi_finisheds" table.
@@ -514,7 +526,9 @@ var (
{Name: "zone_code", Type: field.TypeString, Unique: true},
{Name: "zone_name", Type: field.TypeString},
{Name: "description", Type: field.TypeString, Nullable: true},
{Name: "status", Type: field.TypeString, Default: "启用"},
{Name: "created_at", Type: field.TypeInt64},
{Name: "updated_at", Type: field.TypeInt64, Nullable: true},
}
// ZonesTable holds the schema information for the "zones" table.
ZonesTable = &schema.Table{