feat: 核心业务实体扩充(混产模板/产品BOM/试制记录)、WMS 库存检验增强与前端通用能力
- MES 新增实体:混产模板、产品BOM、产品工艺物料、试制记录(schema + ent 生成码 + logic/handler/前端页) - WMS 实体增强:检验记录、库存、半成品重构;新增序列号库存与短缺代报 - AGV 与产能:AGV 手动点位与链路、物料守卫、短缺预测、原因字典 - 前端通用能力:新增下一步引导组件 NextStepBar,统一帮助文档/布局/请求拦截与操作列 - 工位终端:界面与各 handler 调整(api/store/绑定/PLC/拧紧/上报等) - 配置与文档:更新 mes-api.yaml、WMS README 及案例/产线API/问题记录/项目说明/流程说明
This commit is contained in:
@@ -362,16 +362,28 @@ func init() {
|
||||
inspectionrecordDescRejectQty := inspectionrecordFields[16].Descriptor()
|
||||
// inspectionrecord.DefaultRejectQty holds the default value on creation for the reject_qty field.
|
||||
inspectionrecord.DefaultRejectQty = inspectionrecordDescRejectQty.Default.(int)
|
||||
// inspectionrecordDescInspectionConclusion is the schema descriptor for inspection_conclusion field.
|
||||
inspectionrecordDescInspectionConclusion := inspectionrecordFields[21].Descriptor()
|
||||
// inspectionrecord.DefaultInspectionConclusion holds the default value on creation for the inspection_conclusion field.
|
||||
inspectionrecord.DefaultInspectionConclusion = inspectionrecordDescInspectionConclusion.Default.(string)
|
||||
// inspectionrecordDescDisposalStatus is the schema descriptor for disposal_status field.
|
||||
inspectionrecordDescDisposalStatus := inspectionrecordFields[22].Descriptor()
|
||||
// inspectionrecord.DefaultDisposalStatus holds the default value on creation for the disposal_status field.
|
||||
inspectionrecord.DefaultDisposalStatus = inspectionrecordDescDisposalStatus.Default.(string)
|
||||
// inspectionrecordDescParentRecordID is the schema descriptor for parent_record_id field.
|
||||
inspectionrecordDescParentRecordID := inspectionrecordFields[23].Descriptor()
|
||||
// inspectionrecord.DefaultParentRecordID holds the default value on creation for the parent_record_id field.
|
||||
inspectionrecord.DefaultParentRecordID = inspectionrecordDescParentRecordID.Default.(int64)
|
||||
// inspectionrecordDescDisposalType is the schema descriptor for disposal_type field.
|
||||
inspectionrecordDescDisposalType := inspectionrecordFields[21].Descriptor()
|
||||
inspectionrecordDescDisposalType := inspectionrecordFields[24].Descriptor()
|
||||
// inspectionrecord.DefaultDisposalType holds the default value on creation for the disposal_type field.
|
||||
inspectionrecord.DefaultDisposalType = inspectionrecordDescDisposalType.Default.(string)
|
||||
// inspectionrecordDescCreatedAt is the schema descriptor for created_at field.
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[25].Descriptor()
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[28].Descriptor()
|
||||
// inspectionrecord.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
inspectionrecord.DefaultCreatedAt = inspectionrecordDescCreatedAt.Default.(func() int64)
|
||||
// inspectionrecordDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
inspectionrecordDescUpdatedAt := inspectionrecordFields[26].Descriptor()
|
||||
inspectionrecordDescUpdatedAt := inspectionrecordFields[29].Descriptor()
|
||||
// inspectionrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
inspectionrecord.DefaultUpdatedAt = inspectionrecordDescUpdatedAt.Default.(func() int64)
|
||||
inventoryFields := schema.Inventory{}.Fields()
|
||||
@@ -413,17 +425,17 @@ func init() {
|
||||
// inventory.CompletedProcessValidator is a validator for the "completed_process" field. It is called by the builders before save.
|
||||
inventory.CompletedProcessValidator = inventoryDescCompletedProcess.Validators[0].(func(string) error)
|
||||
// inventoryDescStocktakeNo is the schema descriptor for stocktake_no field.
|
||||
inventoryDescStocktakeNo := inventoryFields[29].Descriptor()
|
||||
inventoryDescStocktakeNo := inventoryFields[30].Descriptor()
|
||||
// inventory.DefaultStocktakeNo holds the default value on creation for the stocktake_no field.
|
||||
inventory.DefaultStocktakeNo = inventoryDescStocktakeNo.Default.(string)
|
||||
// inventory.StocktakeNoValidator is a validator for the "stocktake_no" field. It is called by the builders before save.
|
||||
inventory.StocktakeNoValidator = inventoryDescStocktakeNo.Validators[0].(func(string) error)
|
||||
// inventoryDescCreatedAt is the schema descriptor for created_at field.
|
||||
inventoryDescCreatedAt := inventoryFields[31].Descriptor()
|
||||
inventoryDescCreatedAt := inventoryFields[32].Descriptor()
|
||||
// inventory.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
inventory.DefaultCreatedAt = inventoryDescCreatedAt.Default.(func() int64)
|
||||
// inventoryDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
inventoryDescUpdatedAt := inventoryFields[32].Descriptor()
|
||||
inventoryDescUpdatedAt := inventoryFields[33].Descriptor()
|
||||
// inventory.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
inventory.DefaultUpdatedAt = inventoryDescUpdatedAt.Default.(func() int64)
|
||||
inventorylockFields := schema.InventoryLock{}.Fields()
|
||||
|
||||
Reference in New Issue
Block a user