refactor: 重构产线工位与备料流程,移除冗余字段
1. 移除工单、工件、日排产中的冗余工位组合/接驳台字段 2. 新增工位接驳台编码字段与唯一约束,关联WMS接驳台主数据 3. 重构日排产为工位产量分配模式,替代原接驳台列表 4. 新增备料单工位级字段与分批出库支持 5. 移除定时同步可生产数量,改为WMS实时拉取接口 6. 过滤操作日志,排除登录/退出相关日志 7. 调整仪表盘工序展示逻辑为今日派工路线 8. 新增接驳台维护菜单与基础数据
This commit is contained in:
@@ -33,6 +33,14 @@ const (
|
||||
FieldStatus = "status"
|
||||
// FieldTargetDock holds the string denoting the targetdock field in the database.
|
||||
FieldTargetDock = "target_dock"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldProcessCode holds the string denoting the processcode field in the database.
|
||||
FieldProcessCode = "process_code"
|
||||
// FieldSentQty holds the string denoting the sentqty field in the database.
|
||||
FieldSentQty = "sent_qty"
|
||||
// FieldBatchNo holds the string denoting the batchno field in the database.
|
||||
FieldBatchNo = "batch_no"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
@@ -56,6 +64,10 @@ var Columns = []string{
|
||||
FieldReqQty,
|
||||
FieldStatus,
|
||||
FieldTargetDock,
|
||||
FieldStationNo,
|
||||
FieldProcessCode,
|
||||
FieldSentQty,
|
||||
FieldBatchNo,
|
||||
FieldOperator,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
@@ -102,6 +114,16 @@ var (
|
||||
DefaultTargetDock string
|
||||
// TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
|
||||
TargetDockValidator func(string) error
|
||||
// DefaultStationNo holds the default value on creation for the "stationNo" field.
|
||||
DefaultStationNo int
|
||||
// DefaultProcessCode holds the default value on creation for the "processCode" field.
|
||||
DefaultProcessCode int
|
||||
// DefaultSentQty holds the default value on creation for the "sentQty" field.
|
||||
DefaultSentQty float64
|
||||
// DefaultBatchNo holds the default value on creation for the "batchNo" field.
|
||||
DefaultBatchNo string
|
||||
// BatchNoValidator is a validator for the "batchNo" field. It is called by the builders before save.
|
||||
BatchNoValidator func(string) error
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
@@ -174,6 +196,26 @@ func ByTargetDock(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTargetDock, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProcessCode orders the results by the processCode field.
|
||||
func ByProcessCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProcessCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySentQty orders the results by the sentQty field.
|
||||
func BySentQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSentQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBatchNo orders the results by the batchNo field.
|
||||
func ByBatchNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBatchNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user