feat: 完成客户第12条需求+多系统改造
1. 新增预警表添加工单号字段,支持按工单号检索预警 2. 添加工单过滤在制品/绩效报表/预警中心查询 3. 补全WMS台账字段口径与权限配置 4. 修复备料单与数量不符处理流程 5. 新增配送进度/库位联动/自动出库功能 6. 修复AGV配送状态更新逻辑 7. 优化退料与库存管理细节
This commit is contained in:
@@ -75,20 +75,26 @@ func init() {
|
||||
alert.DefaultRefId = alertDescRefId.Default.(string)
|
||||
// alert.RefIdValidator is a validator for the "refId" field. It is called by the builders before save.
|
||||
alert.RefIdValidator = alertDescRefId.Validators[0].(func(string) error)
|
||||
// alertDescOrderNo is the schema descriptor for orderNo field.
|
||||
alertDescOrderNo := alertFields[7].Descriptor()
|
||||
// alert.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
alert.DefaultOrderNo = alertDescOrderNo.Default.(string)
|
||||
// alert.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
alert.OrderNoValidator = alertDescOrderNo.Validators[0].(func(string) error)
|
||||
// alertDescStatus is the schema descriptor for status field.
|
||||
alertDescStatus := alertFields[7].Descriptor()
|
||||
alertDescStatus := alertFields[8].Descriptor()
|
||||
// alert.DefaultStatus holds the default value on creation for the status field.
|
||||
alert.DefaultStatus = alertDescStatus.Default.(string)
|
||||
// alert.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
alert.StatusValidator = alertDescStatus.Validators[0].(func(string) error)
|
||||
// alertDescReceiver is the schema descriptor for receiver field.
|
||||
alertDescReceiver := alertFields[8].Descriptor()
|
||||
alertDescReceiver := alertFields[9].Descriptor()
|
||||
// alert.DefaultReceiver holds the default value on creation for the receiver field.
|
||||
alert.DefaultReceiver = alertDescReceiver.Default.(string)
|
||||
// alert.ReceiverValidator is a validator for the "receiver" field. It is called by the builders before save.
|
||||
alert.ReceiverValidator = alertDescReceiver.Validators[0].(func(string) error)
|
||||
// alertDescCreatedAt is the schema descriptor for createdAt field.
|
||||
alertDescCreatedAt := alertFields[9].Descriptor()
|
||||
alertDescCreatedAt := alertFields[10].Descriptor()
|
||||
// alert.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
alert.DefaultCreatedAt = alertDescCreatedAt.Default.(func() time.Time)
|
||||
// alertDescID is the schema descriptor for id field.
|
||||
@@ -639,14 +645,42 @@ func init() {
|
||||
materialqtyreport.DefaultStatus = materialqtyreportDescStatus.Default.(string)
|
||||
// materialqtyreport.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
materialqtyreport.StatusValidator = materialqtyreportDescStatus.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescHandleType is the schema descriptor for handleType field.
|
||||
materialqtyreportDescHandleType := materialqtyreportFields[11].Descriptor()
|
||||
// materialqtyreport.DefaultHandleType holds the default value on creation for the handleType field.
|
||||
materialqtyreport.DefaultHandleType = materialqtyreportDescHandleType.Default.(string)
|
||||
// materialqtyreport.HandleTypeValidator is a validator for the "handleType" field. It is called by the builders before save.
|
||||
materialqtyreport.HandleTypeValidator = materialqtyreportDescHandleType.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescHandleDocNo is the schema descriptor for handleDocNo field.
|
||||
materialqtyreportDescHandleDocNo := materialqtyreportFields[12].Descriptor()
|
||||
// materialqtyreport.DefaultHandleDocNo holds the default value on creation for the handleDocNo field.
|
||||
materialqtyreport.DefaultHandleDocNo = materialqtyreportDescHandleDocNo.Default.(string)
|
||||
// materialqtyreport.HandleDocNoValidator is a validator for the "handleDocNo" field. It is called by the builders before save.
|
||||
materialqtyreport.HandleDocNoValidator = materialqtyreportDescHandleDocNo.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescHandleNote is the schema descriptor for handleNote field.
|
||||
materialqtyreportDescHandleNote := materialqtyreportFields[13].Descriptor()
|
||||
// materialqtyreport.DefaultHandleNote holds the default value on creation for the handleNote field.
|
||||
materialqtyreport.DefaultHandleNote = materialqtyreportDescHandleNote.Default.(string)
|
||||
// materialqtyreport.HandleNoteValidator is a validator for the "handleNote" field. It is called by the builders before save.
|
||||
materialqtyreport.HandleNoteValidator = materialqtyreportDescHandleNote.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescHandledBy is the schema descriptor for handledBy field.
|
||||
materialqtyreportDescHandledBy := materialqtyreportFields[14].Descriptor()
|
||||
// materialqtyreport.DefaultHandledBy holds the default value on creation for the handledBy field.
|
||||
materialqtyreport.DefaultHandledBy = materialqtyreportDescHandledBy.Default.(string)
|
||||
// materialqtyreport.HandledByValidator is a validator for the "handledBy" field. It is called by the builders before save.
|
||||
materialqtyreport.HandledByValidator = materialqtyreportDescHandledBy.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescHandledAt is the schema descriptor for handledAt field.
|
||||
materialqtyreportDescHandledAt := materialqtyreportFields[15].Descriptor()
|
||||
// materialqtyreport.DefaultHandledAt holds the default value on creation for the handledAt field.
|
||||
materialqtyreport.DefaultHandledAt = materialqtyreportDescHandledAt.Default.(int64)
|
||||
// materialqtyreportDescOperator is the schema descriptor for operator field.
|
||||
materialqtyreportDescOperator := materialqtyreportFields[11].Descriptor()
|
||||
materialqtyreportDescOperator := materialqtyreportFields[16].Descriptor()
|
||||
// materialqtyreport.DefaultOperator holds the default value on creation for the operator field.
|
||||
materialqtyreport.DefaultOperator = materialqtyreportDescOperator.Default.(string)
|
||||
// materialqtyreport.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
materialqtyreport.OperatorValidator = materialqtyreportDescOperator.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescCreatedAt is the schema descriptor for createdAt field.
|
||||
materialqtyreportDescCreatedAt := materialqtyreportFields[12].Descriptor()
|
||||
materialqtyreportDescCreatedAt := materialqtyreportFields[17].Descriptor()
|
||||
// materialqtyreport.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
materialqtyreport.DefaultCreatedAt = materialqtyreportDescCreatedAt.Default.(func() time.Time)
|
||||
// materialqtyreportDescID is the schema descriptor for id field.
|
||||
@@ -717,24 +751,64 @@ func init() {
|
||||
materialrequestDescSentQty := materialrequestFields[13].Descriptor()
|
||||
// materialrequest.DefaultSentQty holds the default value on creation for the sentQty field.
|
||||
materialrequest.DefaultSentQty = materialrequestDescSentQty.Default.(float64)
|
||||
// materialrequestDescReceivedQty is the schema descriptor for receivedQty field.
|
||||
materialrequestDescReceivedQty := materialrequestFields[14].Descriptor()
|
||||
// materialrequest.DefaultReceivedQty holds the default value on creation for the receivedQty field.
|
||||
materialrequest.DefaultReceivedQty = materialrequestDescReceivedQty.Default.(float64)
|
||||
// materialrequestDescReceivedAt is the schema descriptor for receivedAt field.
|
||||
materialrequestDescReceivedAt := materialrequestFields[15].Descriptor()
|
||||
// materialrequest.DefaultReceivedAt holds the default value on creation for the receivedAt field.
|
||||
materialrequest.DefaultReceivedAt = materialrequestDescReceivedAt.Default.(int64)
|
||||
// materialrequestDescReceiveBy is the schema descriptor for receiveBy field.
|
||||
materialrequestDescReceiveBy := materialrequestFields[16].Descriptor()
|
||||
// materialrequest.DefaultReceiveBy holds the default value on creation for the receiveBy field.
|
||||
materialrequest.DefaultReceiveBy = materialrequestDescReceiveBy.Default.(string)
|
||||
// materialrequest.ReceiveByValidator is a validator for the "receiveBy" field. It is called by the builders before save.
|
||||
materialrequest.ReceiveByValidator = materialrequestDescReceiveBy.Validators[0].(func(string) error)
|
||||
// materialrequestDescSource is the schema descriptor for source field.
|
||||
materialrequestDescSource := materialrequestFields[17].Descriptor()
|
||||
// materialrequest.DefaultSource holds the default value on creation for the source field.
|
||||
materialrequest.DefaultSource = materialrequestDescSource.Default.(string)
|
||||
// materialrequest.SourceValidator is a validator for the "source" field. It is called by the builders before save.
|
||||
materialrequest.SourceValidator = materialrequestDescSource.Validators[0].(func(string) error)
|
||||
// materialrequestDescOverQty is the schema descriptor for overQty field.
|
||||
materialrequestDescOverQty := materialrequestFields[18].Descriptor()
|
||||
// materialrequest.DefaultOverQty holds the default value on creation for the overQty field.
|
||||
materialrequest.DefaultOverQty = materialrequestDescOverQty.Default.(float64)
|
||||
// materialrequestDescOverReason is the schema descriptor for overReason field.
|
||||
materialrequestDescOverReason := materialrequestFields[19].Descriptor()
|
||||
// materialrequest.DefaultOverReason holds the default value on creation for the overReason field.
|
||||
materialrequest.DefaultOverReason = materialrequestDescOverReason.Default.(string)
|
||||
// materialrequest.OverReasonValidator is a validator for the "overReason" field. It is called by the builders before save.
|
||||
materialrequest.OverReasonValidator = materialrequestDescOverReason.Validators[0].(func(string) error)
|
||||
// materialrequestDescRefReportNo is the schema descriptor for refReportNo field.
|
||||
materialrequestDescRefReportNo := materialrequestFields[20].Descriptor()
|
||||
// materialrequest.DefaultRefReportNo holds the default value on creation for the refReportNo field.
|
||||
materialrequest.DefaultRefReportNo = materialrequestDescRefReportNo.Default.(string)
|
||||
// materialrequest.RefReportNoValidator is a validator for the "refReportNo" field. It is called by the builders before save.
|
||||
materialrequest.RefReportNoValidator = materialrequestDescRefReportNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescNeedAgv is the schema descriptor for needAgv field.
|
||||
materialrequestDescNeedAgv := materialrequestFields[21].Descriptor()
|
||||
// materialrequest.DefaultNeedAgv holds the default value on creation for the needAgv field.
|
||||
materialrequest.DefaultNeedAgv = materialrequestDescNeedAgv.Default.(bool)
|
||||
// materialrequestDescBatchNo is the schema descriptor for batchNo field.
|
||||
materialrequestDescBatchNo := materialrequestFields[14].Descriptor()
|
||||
materialrequestDescBatchNo := materialrequestFields[22].Descriptor()
|
||||
// materialrequest.DefaultBatchNo holds the default value on creation for the batchNo field.
|
||||
materialrequest.DefaultBatchNo = materialrequestDescBatchNo.Default.(string)
|
||||
// materialrequest.BatchNoValidator is a validator for the "batchNo" field. It is called by the builders before save.
|
||||
materialrequest.BatchNoValidator = materialrequestDescBatchNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescOperator is the schema descriptor for operator field.
|
||||
materialrequestDescOperator := materialrequestFields[15].Descriptor()
|
||||
materialrequestDescOperator := materialrequestFields[23].Descriptor()
|
||||
// materialrequest.DefaultOperator holds the default value on creation for the operator field.
|
||||
materialrequest.DefaultOperator = materialrequestDescOperator.Default.(string)
|
||||
// materialrequest.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
materialrequest.OperatorValidator = materialrequestDescOperator.Validators[0].(func(string) error)
|
||||
// materialrequestDescCreatedAt is the schema descriptor for createdAt field.
|
||||
materialrequestDescCreatedAt := materialrequestFields[16].Descriptor()
|
||||
materialrequestDescCreatedAt := materialrequestFields[24].Descriptor()
|
||||
// materialrequest.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
materialrequest.DefaultCreatedAt = materialrequestDescCreatedAt.Default.(func() time.Time)
|
||||
// materialrequestDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
materialrequestDescUpdatedAt := materialrequestFields[17].Descriptor()
|
||||
materialrequestDescUpdatedAt := materialrequestFields[25].Descriptor()
|
||||
// materialrequest.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
materialrequest.DefaultUpdatedAt = materialrequestDescUpdatedAt.Default.(func() time.Time)
|
||||
// materialrequest.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
|
||||
Reference in New Issue
Block a user