feat: 两库对等物料管理及产品工号贯通全流程
- 新增 MES 本地物料表及双向同步接口,WMS 物料变更自动同步 - 全流程新增产品工号字段,贯通入库/库存/出库/检验环节 - 工单管理支持多工单混产,移除单工单互斥限制 - 新增批次号/SN 字段支持质量检验联动 WMS 库存处置 - 修复权限规则,仅内置管理员账号不允许修改删除 - 工位终端新增 SN 扫码自动切换所属工单功能
This commit is contained in:
+15
-15
@@ -176,45 +176,45 @@ func init() {
|
||||
// inboundorder.DefaultOwnershipType holds the default value on creation for the ownership_type field.
|
||||
inboundorder.DefaultOwnershipType = inboundorderDescOwnershipType.Default.(string)
|
||||
// inboundorderDescVoided is the schema descriptor for voided field.
|
||||
inboundorderDescVoided := inboundorderFields[17].Descriptor()
|
||||
inboundorderDescVoided := inboundorderFields[18].Descriptor()
|
||||
// inboundorder.DefaultVoided holds the default value on creation for the voided field.
|
||||
inboundorder.DefaultVoided = inboundorderDescVoided.Default.(bool)
|
||||
// inboundorderDescCreatedAt is the schema descriptor for created_at field.
|
||||
inboundorderDescCreatedAt := inboundorderFields[21].Descriptor()
|
||||
inboundorderDescCreatedAt := inboundorderFields[22].Descriptor()
|
||||
// inboundorder.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
inboundorder.DefaultCreatedAt = inboundorderDescCreatedAt.Default.(func() int64)
|
||||
inspectionrecordFields := schema.InspectionRecord{}.Fields()
|
||||
_ = inspectionrecordFields
|
||||
// inspectionrecordDescInspectionType is the schema descriptor for inspection_type field.
|
||||
inspectionrecordDescInspectionType := inspectionrecordFields[8].Descriptor()
|
||||
inspectionrecordDescInspectionType := inspectionrecordFields[9].Descriptor()
|
||||
// inspectionrecord.DefaultInspectionType holds the default value on creation for the inspection_type field.
|
||||
inspectionrecord.DefaultInspectionType = inspectionrecordDescInspectionType.Default.(string)
|
||||
// inspectionrecordDescStatus is the schema descriptor for status field.
|
||||
inspectionrecordDescStatus := inspectionrecordFields[9].Descriptor()
|
||||
inspectionrecordDescStatus := inspectionrecordFields[10].Descriptor()
|
||||
// inspectionrecord.DefaultStatus holds the default value on creation for the status field.
|
||||
inspectionrecord.DefaultStatus = inspectionrecordDescStatus.Default.(string)
|
||||
// inspectionrecordDescInspectQty is the schema descriptor for inspect_qty field.
|
||||
inspectionrecordDescInspectQty := inspectionrecordFields[11].Descriptor()
|
||||
inspectionrecordDescInspectQty := inspectionrecordFields[12].Descriptor()
|
||||
// inspectionrecord.DefaultInspectQty holds the default value on creation for the inspect_qty field.
|
||||
inspectionrecord.DefaultInspectQty = inspectionrecordDescInspectQty.Default.(int)
|
||||
// inspectionrecordDescPassQty is the schema descriptor for pass_qty field.
|
||||
inspectionrecordDescPassQty := inspectionrecordFields[12].Descriptor()
|
||||
inspectionrecordDescPassQty := inspectionrecordFields[13].Descriptor()
|
||||
// inspectionrecord.DefaultPassQty holds the default value on creation for the pass_qty field.
|
||||
inspectionrecord.DefaultPassQty = inspectionrecordDescPassQty.Default.(int)
|
||||
// inspectionrecordDescRejectQty is the schema descriptor for reject_qty field.
|
||||
inspectionrecordDescRejectQty := inspectionrecordFields[13].Descriptor()
|
||||
inspectionrecordDescRejectQty := inspectionrecordFields[14].Descriptor()
|
||||
// inspectionrecord.DefaultRejectQty holds the default value on creation for the reject_qty field.
|
||||
inspectionrecord.DefaultRejectQty = inspectionrecordDescRejectQty.Default.(int)
|
||||
// inspectionrecordDescDisposalType is the schema descriptor for disposal_type field.
|
||||
inspectionrecordDescDisposalType := inspectionrecordFields[18].Descriptor()
|
||||
inspectionrecordDescDisposalType := inspectionrecordFields[19].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[22].Descriptor()
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[23].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[23].Descriptor()
|
||||
inspectionrecordDescUpdatedAt := inspectionrecordFields[24].Descriptor()
|
||||
// inspectionrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
inspectionrecord.DefaultUpdatedAt = inspectionrecordDescUpdatedAt.Default.(func() int64)
|
||||
inventoryFields := schema.Inventory{}.Fields()
|
||||
@@ -246,23 +246,23 @@ func init() {
|
||||
// inventory.OrderNoValidator is a validator for the "order_no" field. It is called by the builders before save.
|
||||
inventory.OrderNoValidator = inventoryDescOrderNo.Validators[0].(func(string) error)
|
||||
// inventoryDescCompletedProcess is the schema descriptor for completed_process field.
|
||||
inventoryDescCompletedProcess := inventoryFields[18].Descriptor()
|
||||
inventoryDescCompletedProcess := inventoryFields[19].Descriptor()
|
||||
// inventory.DefaultCompletedProcess holds the default value on creation for the completed_process field.
|
||||
inventory.DefaultCompletedProcess = inventoryDescCompletedProcess.Default.(string)
|
||||
// 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[27].Descriptor()
|
||||
inventoryDescStocktakeNo := inventoryFields[28].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[29].Descriptor()
|
||||
inventoryDescCreatedAt := inventoryFields[30].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[30].Descriptor()
|
||||
inventoryDescUpdatedAt := inventoryFields[31].Descriptor()
|
||||
// inventory.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
inventory.DefaultUpdatedAt = inventoryDescUpdatedAt.Default.(func() int64)
|
||||
inventorylockFields := schema.InventoryLock{}.Fields()
|
||||
@@ -390,7 +390,7 @@ func init() {
|
||||
// outboundorder.DefaultQuantity holds the default value on creation for the quantity field.
|
||||
outboundorder.DefaultQuantity = outboundorderDescQuantity.Default.(int)
|
||||
// outboundorderDescCreatedAt is the schema descriptor for created_at field.
|
||||
outboundorderDescCreatedAt := outboundorderFields[26].Descriptor()
|
||||
outboundorderDescCreatedAt := outboundorderFields[27].Descriptor()
|
||||
// outboundorder.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
outboundorder.DefaultCreatedAt = outboundorderDescCreatedAt.Default.(func() int64)
|
||||
permissionFields := schema.Permission{}.Fields()
|
||||
|
||||
Reference in New Issue
Block a user