feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
+111
-64
@@ -12,16 +12,15 @@ import (
|
||||
"bj_power_mes/ent/eventlog"
|
||||
"bj_power_mes/ent/inspectionrecord"
|
||||
"bj_power_mes/ent/linepoint"
|
||||
"bj_power_mes/ent/materialqtyreport"
|
||||
"bj_power_mes/ent/materialrequest"
|
||||
"bj_power_mes/ent/permission"
|
||||
"bj_power_mes/ent/plcmovecmd"
|
||||
"bj_power_mes/ent/plcsendlog"
|
||||
"bj_power_mes/ent/processflow"
|
||||
"bj_power_mes/ent/processroute"
|
||||
"bj_power_mes/ent/processstep"
|
||||
"bj_power_mes/ent/producttype"
|
||||
"bj_power_mes/ent/role"
|
||||
"bj_power_mes/ent/routesegment"
|
||||
"bj_power_mes/ent/scanrecord"
|
||||
"bj_power_mes/ent/semiflow"
|
||||
"bj_power_mes/ent/station"
|
||||
@@ -408,8 +407,28 @@ func init() {
|
||||
inspectionrecord.DefaultOperator = inspectionrecordDescOperator.Default.(string)
|
||||
// inspectionrecord.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
inspectionrecord.OperatorValidator = inspectionrecordDescOperator.Validators[0].(func(string) error)
|
||||
// inspectionrecordDescProcessCode is the schema descriptor for processCode field.
|
||||
inspectionrecordDescProcessCode := inspectionrecordFields[11].Descriptor()
|
||||
// inspectionrecord.DefaultProcessCode holds the default value on creation for the processCode field.
|
||||
inspectionrecord.DefaultProcessCode = inspectionrecordDescProcessCode.Default.(int)
|
||||
// inspectionrecordDescStepId is the schema descriptor for stepId field.
|
||||
inspectionrecordDescStepId := inspectionrecordFields[12].Descriptor()
|
||||
// inspectionrecord.DefaultStepId holds the default value on creation for the stepId field.
|
||||
inspectionrecord.DefaultStepId = inspectionrecordDescStepId.Default.(int)
|
||||
// inspectionrecordDescStepName is the schema descriptor for stepName field.
|
||||
inspectionrecordDescStepName := inspectionrecordFields[13].Descriptor()
|
||||
// inspectionrecord.DefaultStepName holds the default value on creation for the stepName field.
|
||||
inspectionrecord.DefaultStepName = inspectionrecordDescStepName.Default.(string)
|
||||
// inspectionrecord.StepNameValidator is a validator for the "stepName" field. It is called by the builders before save.
|
||||
inspectionrecord.StepNameValidator = inspectionrecordDescStepName.Validators[0].(func(string) error)
|
||||
// inspectionrecordDescMeasuredValue is the schema descriptor for measuredValue field.
|
||||
inspectionrecordDescMeasuredValue := inspectionrecordFields[14].Descriptor()
|
||||
// inspectionrecord.DefaultMeasuredValue holds the default value on creation for the measuredValue field.
|
||||
inspectionrecord.DefaultMeasuredValue = inspectionrecordDescMeasuredValue.Default.(string)
|
||||
// inspectionrecord.MeasuredValueValidator is a validator for the "measuredValue" field. It is called by the builders before save.
|
||||
inspectionrecord.MeasuredValueValidator = inspectionrecordDescMeasuredValue.Validators[0].(func(string) error)
|
||||
// inspectionrecordDescCreatedAt is the schema descriptor for createdAt field.
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[11].Descriptor()
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[15].Descriptor()
|
||||
// inspectionrecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
inspectionrecord.DefaultCreatedAt = inspectionrecordDescCreatedAt.Default.(func() time.Time)
|
||||
// inspectionrecordDescID is the schema descriptor for id field.
|
||||
@@ -466,6 +485,74 @@ func init() {
|
||||
linepointDescID := linepointFields[0].Descriptor()
|
||||
// linepoint.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
linepoint.IDValidator = linepointDescID.Validators[0].(func(int) error)
|
||||
materialqtyreportFields := schema.MaterialQtyReport{}.Fields()
|
||||
_ = materialqtyreportFields
|
||||
// materialqtyreportDescStationNo is the schema descriptor for stationNo field.
|
||||
materialqtyreportDescStationNo := materialqtyreportFields[1].Descriptor()
|
||||
// materialqtyreport.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
materialqtyreport.DefaultStationNo = materialqtyreportDescStationNo.Default.(int)
|
||||
// materialqtyreportDescOrderNo is the schema descriptor for orderNo field.
|
||||
materialqtyreportDescOrderNo := materialqtyreportFields[2].Descriptor()
|
||||
// materialqtyreport.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
materialqtyreport.DefaultOrderNo = materialqtyreportDescOrderNo.Default.(string)
|
||||
// materialqtyreport.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
materialqtyreport.OrderNoValidator = materialqtyreportDescOrderNo.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescSn is the schema descriptor for sn field.
|
||||
materialqtyreportDescSn := materialqtyreportFields[3].Descriptor()
|
||||
// materialqtyreport.DefaultSn holds the default value on creation for the sn field.
|
||||
materialqtyreport.DefaultSn = materialqtyreportDescSn.Default.(string)
|
||||
// materialqtyreport.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
materialqtyreport.SnValidator = materialqtyreportDescSn.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescMaterialCode is the schema descriptor for materialCode field.
|
||||
materialqtyreportDescMaterialCode := materialqtyreportFields[4].Descriptor()
|
||||
// materialqtyreport.DefaultMaterialCode holds the default value on creation for the materialCode field.
|
||||
materialqtyreport.DefaultMaterialCode = materialqtyreportDescMaterialCode.Default.(string)
|
||||
// materialqtyreport.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
materialqtyreport.MaterialCodeValidator = materialqtyreportDescMaterialCode.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescMaterialName is the schema descriptor for materialName field.
|
||||
materialqtyreportDescMaterialName := materialqtyreportFields[5].Descriptor()
|
||||
// materialqtyreport.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
materialqtyreport.DefaultMaterialName = materialqtyreportDescMaterialName.Default.(string)
|
||||
// materialqtyreport.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
materialqtyreport.MaterialNameValidator = materialqtyreportDescMaterialName.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescPlanQty is the schema descriptor for planQty field.
|
||||
materialqtyreportDescPlanQty := materialqtyreportFields[6].Descriptor()
|
||||
// materialqtyreport.DefaultPlanQty holds the default value on creation for the planQty field.
|
||||
materialqtyreport.DefaultPlanQty = materialqtyreportDescPlanQty.Default.(int)
|
||||
// materialqtyreportDescActualQty is the schema descriptor for actualQty field.
|
||||
materialqtyreportDescActualQty := materialqtyreportFields[7].Descriptor()
|
||||
// materialqtyreport.DefaultActualQty holds the default value on creation for the actualQty field.
|
||||
materialqtyreport.DefaultActualQty = materialqtyreportDescActualQty.Default.(int)
|
||||
// materialqtyreportDescDiffQty is the schema descriptor for diffQty field.
|
||||
materialqtyreportDescDiffQty := materialqtyreportFields[8].Descriptor()
|
||||
// materialqtyreport.DefaultDiffQty holds the default value on creation for the diffQty field.
|
||||
materialqtyreport.DefaultDiffQty = materialqtyreportDescDiffQty.Default.(int)
|
||||
// materialqtyreportDescCause is the schema descriptor for cause field.
|
||||
materialqtyreportDescCause := materialqtyreportFields[9].Descriptor()
|
||||
// materialqtyreport.DefaultCause holds the default value on creation for the cause field.
|
||||
materialqtyreport.DefaultCause = materialqtyreportDescCause.Default.(string)
|
||||
// materialqtyreport.CauseValidator is a validator for the "cause" field. It is called by the builders before save.
|
||||
materialqtyreport.CauseValidator = materialqtyreportDescCause.Validators[0].(func(string) error)
|
||||
// materialqtyreportDescStatus is the schema descriptor for status field.
|
||||
materialqtyreportDescStatus := materialqtyreportFields[10].Descriptor()
|
||||
// materialqtyreport.DefaultStatus holds the default value on creation for the status field.
|
||||
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)
|
||||
// materialqtyreportDescOperator is the schema descriptor for operator field.
|
||||
materialqtyreportDescOperator := materialqtyreportFields[11].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()
|
||||
// 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.
|
||||
materialqtyreportDescID := materialqtyreportFields[0].Descriptor()
|
||||
// materialqtyreport.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
materialqtyreport.IDValidator = materialqtyreportDescID.Validators[0].(func(int) error)
|
||||
materialrequestFields := schema.MaterialRequest{}.Fields()
|
||||
_ = materialrequestFields
|
||||
// materialrequestDescRequestNo is the schema descriptor for requestNo field.
|
||||
@@ -734,38 +821,6 @@ func init() {
|
||||
processflowDescID := processflowFields[0].Descriptor()
|
||||
// processflow.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
processflow.IDValidator = processflowDescID.Validators[0].(func(int) error)
|
||||
processrouteFields := schema.ProcessRoute{}.Fields()
|
||||
_ = processrouteFields
|
||||
// processrouteDescName is the schema descriptor for name field.
|
||||
processrouteDescName := processrouteFields[1].Descriptor()
|
||||
// processroute.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
processroute.NameValidator = processrouteDescName.Validators[0].(func(string) error)
|
||||
// processrouteDescStatus is the schema descriptor for status field.
|
||||
processrouteDescStatus := processrouteFields[3].Descriptor()
|
||||
// processroute.DefaultStatus holds the default value on creation for the status field.
|
||||
processroute.DefaultStatus = processrouteDescStatus.Default.(string)
|
||||
// processroute.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
processroute.StatusValidator = processrouteDescStatus.Validators[0].(func(string) error)
|
||||
// processrouteDescRemark is the schema descriptor for remark field.
|
||||
processrouteDescRemark := processrouteFields[4].Descriptor()
|
||||
// processroute.DefaultRemark holds the default value on creation for the remark field.
|
||||
processroute.DefaultRemark = processrouteDescRemark.Default.(string)
|
||||
// processroute.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
processroute.RemarkValidator = processrouteDescRemark.Validators[0].(func(string) error)
|
||||
// processrouteDescCreatedAt is the schema descriptor for createdAt field.
|
||||
processrouteDescCreatedAt := processrouteFields[5].Descriptor()
|
||||
// processroute.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
processroute.DefaultCreatedAt = processrouteDescCreatedAt.Default.(func() time.Time)
|
||||
// processrouteDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
processrouteDescUpdatedAt := processrouteFields[6].Descriptor()
|
||||
// processroute.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
processroute.DefaultUpdatedAt = processrouteDescUpdatedAt.Default.(func() time.Time)
|
||||
// processroute.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
processroute.UpdateDefaultUpdatedAt = processrouteDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// processrouteDescID is the schema descriptor for id field.
|
||||
processrouteDescID := processrouteFields[0].Descriptor()
|
||||
// processroute.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
processroute.IDValidator = processrouteDescID.Validators[0].(func(int) error)
|
||||
processstepFields := schema.ProcessStep{}.Fields()
|
||||
_ = processstepFields
|
||||
// processstepDescSeq is the schema descriptor for seq field.
|
||||
@@ -868,32 +923,6 @@ func init() {
|
||||
roleDescID := roleFields[0].Descriptor()
|
||||
// role.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
role.IDValidator = roleDescID.Validators[0].(func(int) error)
|
||||
routesegmentFields := schema.RouteSegment{}.Fields()
|
||||
_ = routesegmentFields
|
||||
// routesegmentDescSeq is the schema descriptor for seq field.
|
||||
routesegmentDescSeq := routesegmentFields[2].Descriptor()
|
||||
// routesegment.DefaultSeq holds the default value on creation for the seq field.
|
||||
routesegment.DefaultSeq = routesegmentDescSeq.Default.(int)
|
||||
// routesegmentDescSegmentType is the schema descriptor for segmentType field.
|
||||
routesegmentDescSegmentType := routesegmentFields[5].Descriptor()
|
||||
// routesegment.DefaultSegmentType holds the default value on creation for the segmentType field.
|
||||
routesegment.DefaultSegmentType = routesegmentDescSegmentType.Default.(string)
|
||||
// routesegment.SegmentTypeValidator is a validator for the "segmentType" field. It is called by the builders before save.
|
||||
routesegment.SegmentTypeValidator = routesegmentDescSegmentType.Validators[0].(func(string) error)
|
||||
// routesegmentDescRemark is the schema descriptor for remark field.
|
||||
routesegmentDescRemark := routesegmentFields[6].Descriptor()
|
||||
// routesegment.DefaultRemark holds the default value on creation for the remark field.
|
||||
routesegment.DefaultRemark = routesegmentDescRemark.Default.(string)
|
||||
// routesegment.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
routesegment.RemarkValidator = routesegmentDescRemark.Validators[0].(func(string) error)
|
||||
// routesegmentDescCreatedAt is the schema descriptor for createdAt field.
|
||||
routesegmentDescCreatedAt := routesegmentFields[7].Descriptor()
|
||||
// routesegment.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
routesegment.DefaultCreatedAt = routesegmentDescCreatedAt.Default.(func() time.Time)
|
||||
// routesegmentDescID is the schema descriptor for id field.
|
||||
routesegmentDescID := routesegmentFields[0].Descriptor()
|
||||
// routesegment.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
routesegment.IDValidator = routesegmentDescID.Validators[0].(func(int) error)
|
||||
scanrecordFields := schema.ScanRecord{}.Fields()
|
||||
_ = scanrecordFields
|
||||
// scanrecordDescStation is the schema descriptor for station field.
|
||||
@@ -1310,18 +1339,36 @@ func init() {
|
||||
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()
|
||||
// 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()
|
||||
// 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()
|
||||
// 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)
|
||||
// workorderDescStatus is the schema descriptor for status field.
|
||||
workorderDescStatus := workorderFields[11].Descriptor()
|
||||
workorderDescStatus := workorderFields[12].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[16].Descriptor()
|
||||
workorderDescCreatedAt := workorderFields[17].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[17].Descriptor()
|
||||
workorderDescUpdatedAt := workorderFields[18].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.
|
||||
|
||||
Reference in New Issue
Block a user