refactor: 重构产线工位与备料流程,移除冗余字段
1. 移除工单、工件、日排产中的冗余工位组合/接驳台字段 2. 新增工位接驳台编码字段与唯一约束,关联WMS接驳台主数据 3. 重构日排产为工位产量分配模式,替代原接驳台列表 4. 新增备料单工位级字段与分批出库支持 5. 移除定时同步可生产数量,改为WMS实时拉取接口 6. 过滤操作日志,排除登录/退出相关日志 7. 调整仪表盘工序展示逻辑为今日派工路线 8. 新增接驳台维护菜单与基础数据
This commit is contained in:
+38
-26
@@ -659,18 +659,36 @@ func init() {
|
||||
materialrequest.DefaultTargetDock = materialrequestDescTargetDock.Default.(string)
|
||||
// materialrequest.TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
|
||||
materialrequest.TargetDockValidator = materialrequestDescTargetDock.Validators[0].(func(string) error)
|
||||
// materialrequestDescStationNo is the schema descriptor for stationNo field.
|
||||
materialrequestDescStationNo := materialrequestFields[11].Descriptor()
|
||||
// materialrequest.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
materialrequest.DefaultStationNo = materialrequestDescStationNo.Default.(int)
|
||||
// materialrequestDescProcessCode is the schema descriptor for processCode field.
|
||||
materialrequestDescProcessCode := materialrequestFields[12].Descriptor()
|
||||
// materialrequest.DefaultProcessCode holds the default value on creation for the processCode field.
|
||||
materialrequest.DefaultProcessCode = materialrequestDescProcessCode.Default.(int)
|
||||
// materialrequestDescSentQty is the schema descriptor for sentQty field.
|
||||
materialrequestDescSentQty := materialrequestFields[13].Descriptor()
|
||||
// materialrequest.DefaultSentQty holds the default value on creation for the sentQty field.
|
||||
materialrequest.DefaultSentQty = materialrequestDescSentQty.Default.(float64)
|
||||
// materialrequestDescBatchNo is the schema descriptor for batchNo field.
|
||||
materialrequestDescBatchNo := materialrequestFields[14].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[11].Descriptor()
|
||||
materialrequestDescOperator := materialrequestFields[15].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[12].Descriptor()
|
||||
materialrequestDescCreatedAt := materialrequestFields[16].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[13].Descriptor()
|
||||
materialrequestDescUpdatedAt := materialrequestFields[17].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.
|
||||
@@ -1085,8 +1103,14 @@ func init() {
|
||||
stationDescHasDock := stationFields[7].Descriptor()
|
||||
// station.DefaultHasDock holds the default value on creation for the hasDock field.
|
||||
station.DefaultHasDock = stationDescHasDock.Default.(bool)
|
||||
// stationDescDockCode is the schema descriptor for dockCode field.
|
||||
stationDescDockCode := stationFields[8].Descriptor()
|
||||
// station.DefaultDockCode holds the default value on creation for the dockCode field.
|
||||
station.DefaultDockCode = stationDescDockCode.Default.(string)
|
||||
// station.DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
|
||||
station.DockCodeValidator = stationDescDockCode.Validators[0].(func(string) error)
|
||||
// stationDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stationDescCreatedAt := stationFields[8].Descriptor()
|
||||
stationDescCreatedAt := stationFields[9].Descriptor()
|
||||
// station.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
station.DefaultCreatedAt = stationDescCreatedAt.Default.(func() time.Time)
|
||||
// stationDescID is the schema descriptor for id field.
|
||||
@@ -1395,48 +1419,42 @@ func init() {
|
||||
workorderDescFailNum := workorderFields[7].Descriptor()
|
||||
// workorder.DefaultFailNum holds the default value on creation for the failNum field.
|
||||
workorder.DefaultFailNum = workorderDescFailNum.Default.(int)
|
||||
// workorderDescProcessSeq is the schema descriptor for processSeq field.
|
||||
workorderDescProcessSeq := workorderFields[8].Descriptor()
|
||||
// workorder.DefaultProcessSeq holds the default value on creation for the processSeq field.
|
||||
workorder.DefaultProcessSeq = workorderDescProcessSeq.Default.(string)
|
||||
// workorder.ProcessSeqValidator is a validator for the "processSeq" field. It is called by the builders before save.
|
||||
workorder.ProcessSeqValidator = workorderDescProcessSeq.Validators[0].(func(string) error)
|
||||
// workorderDescContractNo is the schema descriptor for contractNo field.
|
||||
workorderDescContractNo := workorderFields[9].Descriptor()
|
||||
workorderDescContractNo := workorderFields[8].Descriptor()
|
||||
// workorder.DefaultContractNo holds the default value on creation for the contractNo field.
|
||||
workorder.DefaultContractNo = workorderDescContractNo.Default.(string)
|
||||
// workorder.ContractNoValidator is a validator for the "contractNo" field. It is called by the builders before save.
|
||||
workorder.ContractNoValidator = workorderDescContractNo.Validators[0].(func(string) error)
|
||||
// workorderDescProjectNo is the schema descriptor for projectNo field.
|
||||
workorderDescProjectNo := workorderFields[10].Descriptor()
|
||||
workorderDescProjectNo := workorderFields[9].Descriptor()
|
||||
// workorder.DefaultProjectNo holds the default value on creation for the projectNo field.
|
||||
workorder.DefaultProjectNo = workorderDescProjectNo.Default.(string)
|
||||
// workorder.ProjectNoValidator is a validator for the "projectNo" field. It is called by the builders before save.
|
||||
workorder.ProjectNoValidator = workorderDescProjectNo.Validators[0].(func(string) error)
|
||||
// workorderDescProductSerial is the schema descriptor for productSerial field.
|
||||
workorderDescProductSerial := workorderFields[11].Descriptor()
|
||||
workorderDescProductSerial := workorderFields[10].Descriptor()
|
||||
// workorder.DefaultProductSerial holds the default value on creation for the productSerial field.
|
||||
workorder.DefaultProductSerial = workorderDescProductSerial.Default.(string)
|
||||
// workorder.ProductSerialValidator is a validator for the "productSerial" field. It is called by the builders before save.
|
||||
workorder.ProductSerialValidator = workorderDescProductSerial.Validators[0].(func(string) error)
|
||||
// workorderDescCreatedBy is the schema descriptor for createdBy field.
|
||||
workorderDescCreatedBy := workorderFields[12].Descriptor()
|
||||
workorderDescCreatedBy := workorderFields[11].Descriptor()
|
||||
// workorder.DefaultCreatedBy holds the default value on creation for the createdBy field.
|
||||
workorder.DefaultCreatedBy = workorderDescCreatedBy.Default.(string)
|
||||
// workorder.CreatedByValidator is a validator for the "createdBy" field. It is called by the builders before save.
|
||||
workorder.CreatedByValidator = workorderDescCreatedBy.Validators[0].(func(string) error)
|
||||
// workorderDescStatus is the schema descriptor for status field.
|
||||
workorderDescStatus := workorderFields[14].Descriptor()
|
||||
workorderDescStatus := workorderFields[13].Descriptor()
|
||||
// workorder.DefaultStatus holds the default value on creation for the status field.
|
||||
workorder.DefaultStatus = workorderDescStatus.Default.(string)
|
||||
// workorder.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
workorder.StatusValidator = workorderDescStatus.Validators[0].(func(string) error)
|
||||
// workorderDescCreatedAt is the schema descriptor for createdAt field.
|
||||
workorderDescCreatedAt := workorderFields[19].Descriptor()
|
||||
workorderDescCreatedAt := workorderFields[18].Descriptor()
|
||||
// workorder.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
workorder.DefaultCreatedAt = workorderDescCreatedAt.Default.(func() time.Time)
|
||||
// workorderDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
workorderDescUpdatedAt := workorderFields[20].Descriptor()
|
||||
workorderDescUpdatedAt := workorderFields[19].Descriptor()
|
||||
// workorder.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
workorder.DefaultUpdatedAt = workorderDescUpdatedAt.Default.(func() time.Time)
|
||||
// workorder.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
@@ -1457,24 +1475,18 @@ func init() {
|
||||
workpiece.DefaultOrderNo = workpieceDescOrderNo.Default.(string)
|
||||
// workpiece.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
workpiece.OrderNoValidator = workpieceDescOrderNo.Validators[0].(func(string) error)
|
||||
// workpieceDescProcessSeq is the schema descriptor for processSeq field.
|
||||
workpieceDescProcessSeq := workpieceFields[4].Descriptor()
|
||||
// workpiece.DefaultProcessSeq holds the default value on creation for the processSeq field.
|
||||
workpiece.DefaultProcessSeq = workpieceDescProcessSeq.Default.(string)
|
||||
// workpiece.ProcessSeqValidator is a validator for the "processSeq" field. It is called by the builders before save.
|
||||
workpiece.ProcessSeqValidator = workpieceDescProcessSeq.Validators[0].(func(string) error)
|
||||
// workpieceDescStatus is the schema descriptor for status field.
|
||||
workpieceDescStatus := workpieceFields[6].Descriptor()
|
||||
workpieceDescStatus := workpieceFields[5].Descriptor()
|
||||
// workpiece.DefaultStatus holds the default value on creation for the status field.
|
||||
workpiece.DefaultStatus = workpieceDescStatus.Default.(string)
|
||||
// workpiece.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
workpiece.StatusValidator = workpieceDescStatus.Validators[0].(func(string) error)
|
||||
// workpieceDescCreatedAt is the schema descriptor for createdAt field.
|
||||
workpieceDescCreatedAt := workpieceFields[9].Descriptor()
|
||||
workpieceDescCreatedAt := workpieceFields[8].Descriptor()
|
||||
// workpiece.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
workpiece.DefaultCreatedAt = workpieceDescCreatedAt.Default.(func() time.Time)
|
||||
// workpieceDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
workpieceDescUpdatedAt := workpieceFields[10].Descriptor()
|
||||
workpieceDescUpdatedAt := workpieceFields[9].Descriptor()
|
||||
// workpiece.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
workpiece.DefaultUpdatedAt = workpieceDescUpdatedAt.Default.(func() time.Time)
|
||||
// workpiece.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
|
||||
Reference in New Issue
Block a user