feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
+85
-11
@@ -4,6 +4,7 @@ package ent
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/agvtask"
|
||||
"bj_power_wms/ent/attachment"
|
||||
"bj_power_wms/ent/dock"
|
||||
"bj_power_wms/ent/eventlog"
|
||||
"bj_power_wms/ent/inbounddetail"
|
||||
@@ -16,6 +17,7 @@ import (
|
||||
"bj_power_wms/ent/outbounddetail"
|
||||
"bj_power_wms/ent/outboundorder"
|
||||
"bj_power_wms/ent/permission"
|
||||
"bj_power_wms/ent/returnorder"
|
||||
"bj_power_wms/ent/role"
|
||||
"bj_power_wms/ent/semifinished"
|
||||
"bj_power_wms/ent/stocktakeitem"
|
||||
@@ -95,6 +97,16 @@ func init() {
|
||||
agvtaskDescCreatedAt := agvtaskFields[11].Descriptor()
|
||||
// agvtask.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
agvtask.DefaultCreatedAt = agvtaskDescCreatedAt.Default.(func() int64)
|
||||
attachmentFields := schema.Attachment{}.Fields()
|
||||
_ = attachmentFields
|
||||
// attachmentDescFileSize is the schema descriptor for file_size field.
|
||||
attachmentDescFileSize := attachmentFields[4].Descriptor()
|
||||
// attachment.DefaultFileSize holds the default value on creation for the file_size field.
|
||||
attachment.DefaultFileSize = attachmentDescFileSize.Default.(int64)
|
||||
// attachmentDescCreatedAt is the schema descriptor for created_at field.
|
||||
attachmentDescCreatedAt := attachmentFields[7].Descriptor()
|
||||
// attachment.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
attachment.DefaultCreatedAt = attachmentDescCreatedAt.Default.(func() int64)
|
||||
dockFields := schema.Dock{}.Fields()
|
||||
_ = dockFields
|
||||
// dockDescDockCode is the schema descriptor for dock_code field.
|
||||
@@ -193,8 +205,12 @@ func init() {
|
||||
inboundorderDescQuantity := inboundorderFields[7].Descriptor()
|
||||
// inboundorder.DefaultQuantity holds the default value on creation for the quantity field.
|
||||
inboundorder.DefaultQuantity = inboundorderDescQuantity.Default.(int)
|
||||
// inboundorderDescOwnershipType is the schema descriptor for ownership_type field.
|
||||
inboundorderDescOwnershipType := inboundorderFields[11].Descriptor()
|
||||
// inboundorder.DefaultOwnershipType holds the default value on creation for the ownership_type field.
|
||||
inboundorder.DefaultOwnershipType = inboundorderDescOwnershipType.Default.(string)
|
||||
// inboundorderDescCreatedAt is the schema descriptor for created_at field.
|
||||
inboundorderDescCreatedAt := inboundorderFields[11].Descriptor()
|
||||
inboundorderDescCreatedAt := inboundorderFields[13].Descriptor()
|
||||
// inboundorder.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
inboundorder.DefaultCreatedAt = inboundorderDescCreatedAt.Default.(func() int64)
|
||||
inspectionrecordFields := schema.InspectionRecord{}.Fields()
|
||||
@@ -215,12 +231,16 @@ func init() {
|
||||
inspectionrecordDescPassQty := inspectionrecordFields[7].Descriptor()
|
||||
// inspectionrecord.DefaultPassQty holds the default value on creation for the pass_qty field.
|
||||
inspectionrecord.DefaultPassQty = inspectionrecordDescPassQty.Default.(int)
|
||||
// inspectionrecordDescDisposalType is the schema descriptor for disposal_type field.
|
||||
inspectionrecordDescDisposalType := inspectionrecordFields[12].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[13].Descriptor()
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[16].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[14].Descriptor()
|
||||
inspectionrecordDescUpdatedAt := inspectionrecordFields[17].Descriptor()
|
||||
// inspectionrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
inspectionrecord.DefaultUpdatedAt = inspectionrecordDescUpdatedAt.Default.(func() int64)
|
||||
inventoryFields := schema.Inventory{}.Fields()
|
||||
@@ -301,16 +321,20 @@ func init() {
|
||||
materialDescIsSerialManaged := materialFields[9].Descriptor()
|
||||
// material.DefaultIsSerialManaged holds the default value on creation for the is_serial_managed field.
|
||||
material.DefaultIsSerialManaged = materialDescIsSerialManaged.Default.(bool)
|
||||
// materialDescSafetyStock is the schema descriptor for safety_stock field.
|
||||
materialDescSafetyStock := materialFields[12].Descriptor()
|
||||
// material.DefaultSafetyStock holds the default value on creation for the safety_stock field.
|
||||
material.DefaultSafetyStock = materialDescSafetyStock.Default.(int)
|
||||
// materialDescIsActive is the schema descriptor for is_active field.
|
||||
materialDescIsActive := materialFields[12].Descriptor()
|
||||
materialDescIsActive := materialFields[13].Descriptor()
|
||||
// material.DefaultIsActive holds the default value on creation for the is_active field.
|
||||
material.DefaultIsActive = materialDescIsActive.Default.(bool)
|
||||
// materialDescCreatedAt is the schema descriptor for created_at field.
|
||||
materialDescCreatedAt := materialFields[13].Descriptor()
|
||||
materialDescCreatedAt := materialFields[14].Descriptor()
|
||||
// material.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
material.DefaultCreatedAt = materialDescCreatedAt.Default.(func() int64)
|
||||
// materialDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
materialDescUpdatedAt := materialFields[14].Descriptor()
|
||||
materialDescUpdatedAt := materialFields[15].Descriptor()
|
||||
// material.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
material.DefaultUpdatedAt = materialDescUpdatedAt.Default.(func() int64)
|
||||
ordermaterialledgerFields := schema.OrderMaterialLedger{}.Fields()
|
||||
@@ -328,11 +352,11 @@ func init() {
|
||||
// ordermaterialledger.DefaultStatus holds the default value on creation for the status field.
|
||||
ordermaterialledger.DefaultStatus = ordermaterialledgerDescStatus.Default.(string)
|
||||
// ordermaterialledgerDescCreatedAt is the schema descriptor for created_at field.
|
||||
ordermaterialledgerDescCreatedAt := ordermaterialledgerFields[7].Descriptor()
|
||||
ordermaterialledgerDescCreatedAt := ordermaterialledgerFields[8].Descriptor()
|
||||
// ordermaterialledger.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
ordermaterialledger.DefaultCreatedAt = ordermaterialledgerDescCreatedAt.Default.(func() int64)
|
||||
// ordermaterialledgerDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
ordermaterialledgerDescUpdatedAt := ordermaterialledgerFields[8].Descriptor()
|
||||
ordermaterialledgerDescUpdatedAt := ordermaterialledgerFields[9].Descriptor()
|
||||
// ordermaterialledger.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
ordermaterialledger.DefaultUpdatedAt = ordermaterialledgerDescUpdatedAt.Default.(func() int64)
|
||||
outbounddetailFields := schema.OutboundDetail{}.Fields()
|
||||
@@ -415,6 +439,56 @@ func init() {
|
||||
permissionDescUpdatedAt := permissionFields[9].Descriptor()
|
||||
// permission.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
permission.DefaultUpdatedAt = permissionDescUpdatedAt.Default.(func() int64)
|
||||
returnorderFields := schema.ReturnOrder{}.Fields()
|
||||
_ = returnorderFields
|
||||
// returnorderDescSourceType is the schema descriptor for source_type field.
|
||||
returnorderDescSourceType := returnorderFields[1].Descriptor()
|
||||
// returnorder.DefaultSourceType holds the default value on creation for the source_type field.
|
||||
returnorder.DefaultSourceType = returnorderDescSourceType.Default.(string)
|
||||
// returnorderDescOrderNo is the schema descriptor for order_no field.
|
||||
returnorderDescOrderNo := returnorderFields[2].Descriptor()
|
||||
// returnorder.DefaultOrderNo holds the default value on creation for the order_no field.
|
||||
returnorder.DefaultOrderNo = returnorderDescOrderNo.Default.(string)
|
||||
// returnorderDescStationNo is the schema descriptor for station_no field.
|
||||
returnorderDescStationNo := returnorderFields[3].Descriptor()
|
||||
// returnorder.DefaultStationNo holds the default value on creation for the station_no field.
|
||||
returnorder.DefaultStationNo = returnorderDescStationNo.Default.(int)
|
||||
// returnorderDescSn is the schema descriptor for sn field.
|
||||
returnorderDescSn := returnorderFields[4].Descriptor()
|
||||
// returnorder.DefaultSn holds the default value on creation for the sn field.
|
||||
returnorder.DefaultSn = returnorderDescSn.Default.(string)
|
||||
// returnorderDescQty is the schema descriptor for qty field.
|
||||
returnorderDescQty := returnorderFields[8].Descriptor()
|
||||
// returnorder.DefaultQty holds the default value on creation for the qty field.
|
||||
returnorder.DefaultQty = returnorderDescQty.Default.(int)
|
||||
// returnorderDescUnit is the schema descriptor for unit field.
|
||||
returnorderDescUnit := returnorderFields[9].Descriptor()
|
||||
// returnorder.DefaultUnit holds the default value on creation for the unit field.
|
||||
returnorder.DefaultUnit = returnorderDescUnit.Default.(string)
|
||||
// returnorderDescReason is the schema descriptor for reason field.
|
||||
returnorderDescReason := returnorderFields[10].Descriptor()
|
||||
// returnorder.DefaultReason holds the default value on creation for the reason field.
|
||||
returnorder.DefaultReason = returnorderDescReason.Default.(string)
|
||||
// returnorderDescStatus is the schema descriptor for status field.
|
||||
returnorderDescStatus := returnorderFields[11].Descriptor()
|
||||
// returnorder.DefaultStatus holds the default value on creation for the status field.
|
||||
returnorder.DefaultStatus = returnorderDescStatus.Default.(string)
|
||||
// returnorderDescOperator is the schema descriptor for operator field.
|
||||
returnorderDescOperator := returnorderFields[12].Descriptor()
|
||||
// returnorder.DefaultOperator holds the default value on creation for the operator field.
|
||||
returnorder.DefaultOperator = returnorderDescOperator.Default.(string)
|
||||
// returnorderDescReceiveBy is the schema descriptor for receive_by field.
|
||||
returnorderDescReceiveBy := returnorderFields[13].Descriptor()
|
||||
// returnorder.DefaultReceiveBy holds the default value on creation for the receive_by field.
|
||||
returnorder.DefaultReceiveBy = returnorderDescReceiveBy.Default.(string)
|
||||
// returnorderDescCreatedAt is the schema descriptor for created_at field.
|
||||
returnorderDescCreatedAt := returnorderFields[14].Descriptor()
|
||||
// returnorder.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
returnorder.DefaultCreatedAt = returnorderDescCreatedAt.Default.(func() int64)
|
||||
// returnorderDescReceiveAt is the schema descriptor for receive_at field.
|
||||
returnorderDescReceiveAt := returnorderFields[15].Descriptor()
|
||||
// returnorder.DefaultReceiveAt holds the default value on creation for the receive_at field.
|
||||
returnorder.DefaultReceiveAt = returnorderDescReceiveAt.Default.(int64)
|
||||
roleFields := schema.Role{}.Fields()
|
||||
_ = roleFields
|
||||
// roleDescName is the schema descriptor for name field.
|
||||
@@ -514,15 +588,15 @@ func init() {
|
||||
zoneFields := schema.Zone{}.Fields()
|
||||
_ = zoneFields
|
||||
// zoneDescStatus is the schema descriptor for status field.
|
||||
zoneDescStatus := zoneFields[3].Descriptor()
|
||||
zoneDescStatus := zoneFields[6].Descriptor()
|
||||
// zone.DefaultStatus holds the default value on creation for the status field.
|
||||
zone.DefaultStatus = zoneDescStatus.Default.(string)
|
||||
// zoneDescCreatedAt is the schema descriptor for created_at field.
|
||||
zoneDescCreatedAt := zoneFields[4].Descriptor()
|
||||
zoneDescCreatedAt := zoneFields[7].Descriptor()
|
||||
// zone.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
zone.DefaultCreatedAt = zoneDescCreatedAt.Default.(func() int64)
|
||||
// zoneDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
zoneDescUpdatedAt := zoneFields[5].Descriptor()
|
||||
zoneDescUpdatedAt := zoneFields[8].Descriptor()
|
||||
// zone.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
zone.DefaultUpdatedAt = zoneDescUpdatedAt.Default.(func() int64)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user