feat: 来料检处置项实体与复检、日排产达成对比、PLC/WMS 传输日志
- WMS 新增「检验处置项」实体(schema + ent 生成码),配套检验记录实体调整与复检接口,完善来料检/不良退货/入库检验前端 - MES 日排产:新增达成率统计与计划对比逻辑,调整日排产前端与流程卡/工序流 - 日志与传输:MES 新增 PLC 日志与 WMS 客户端传输日志,WMS 新增 MES 客户端传输日志 - MES 其他:扫码、工单/工件、AGV 客户端与告警、产品导入等逻辑完善及前端调整 - 工位终端:上线面板/作业面板、工件 handler 与 MES 客户端调整 - 配置与文档:更新 mes-api.yaml、三端构建产物与问题记录文档
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"bj_power_wms/ent/eventlog"
|
||||
"bj_power_wms/ent/inbounddetail"
|
||||
"bj_power_wms/ent/inboundorder"
|
||||
"bj_power_wms/ent/inspectiondisposalitem"
|
||||
"bj_power_wms/ent/inspectionrecord"
|
||||
"bj_power_wms/ent/inventory"
|
||||
"bj_power_wms/ent/inventorylock"
|
||||
@@ -332,6 +333,20 @@ func init() {
|
||||
inboundorderDescCreatedAt := inboundorderFields[23].Descriptor()
|
||||
// inboundorder.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
inboundorder.DefaultCreatedAt = inboundorderDescCreatedAt.Default.(func() int64)
|
||||
inspectiondisposalitemFields := schema.InspectionDisposalItem{}.Fields()
|
||||
_ = inspectiondisposalitemFields
|
||||
// inspectiondisposalitemDescQty is the schema descriptor for qty field.
|
||||
inspectiondisposalitemDescQty := inspectiondisposalitemFields[2].Descriptor()
|
||||
// inspectiondisposalitem.QtyValidator is a validator for the "qty" field. It is called by the builders before save.
|
||||
inspectiondisposalitem.QtyValidator = inspectiondisposalitemDescQty.Validators[0].(func(int) error)
|
||||
// inspectiondisposalitemDescOperator is the schema descriptor for operator field.
|
||||
inspectiondisposalitemDescOperator := inspectiondisposalitemFields[4].Descriptor()
|
||||
// inspectiondisposalitem.DefaultOperator holds the default value on creation for the operator field.
|
||||
inspectiondisposalitem.DefaultOperator = inspectiondisposalitemDescOperator.Default.(string)
|
||||
// inspectiondisposalitemDescCreatedAt is the schema descriptor for created_at field.
|
||||
inspectiondisposalitemDescCreatedAt := inspectiondisposalitemFields[5].Descriptor()
|
||||
// inspectiondisposalitem.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
inspectiondisposalitem.DefaultCreatedAt = inspectiondisposalitemDescCreatedAt.Default.(func() int64)
|
||||
inspectionrecordFields := schema.InspectionRecord{}.Fields()
|
||||
_ = inspectionrecordFields
|
||||
// inspectionrecordDescInspectionType is the schema descriptor for inspection_type field.
|
||||
@@ -374,16 +389,12 @@ func init() {
|
||||
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[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[28].Descriptor()
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[25].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[29].Descriptor()
|
||||
inspectionrecordDescUpdatedAt := inspectionrecordFields[26].Descriptor()
|
||||
// inspectionrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
inspectionrecord.DefaultUpdatedAt = inspectionrecordDescUpdatedAt.Default.(func() int64)
|
||||
inventoryFields := schema.Inventory{}.Fields()
|
||||
|
||||
Reference in New Issue
Block a user