feat: 完成客户第12条需求+多系统改造
1. 新增预警表添加工单号字段,支持按工单号检索预警 2. 添加工单过滤在制品/绩效报表/预警中心查询 3. 补全WMS台账字段口径与权限配置 4. 修复备料单与数量不符处理流程 5. 新增配送进度/库位联动/自动出库功能 6. 修复AGV配送状态更新逻辑 7. 优化退料与库存管理细节
This commit is contained in:
@@ -15,6 +15,10 @@ const (
|
||||
FieldOutboundNo = "outbound_no"
|
||||
// FieldOutboundType holds the string denoting the outbound_type field in the database.
|
||||
FieldOutboundType = "outbound_type"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldNeedAgv holds the string denoting the need_agv field in the database.
|
||||
FieldNeedAgv = "need_agv"
|
||||
// FieldOutboundCategory holds the string denoting the outbound_category field in the database.
|
||||
FieldOutboundCategory = "outbound_category"
|
||||
// FieldOwnershipType holds the string denoting the ownership_type field in the database.
|
||||
@@ -35,6 +39,12 @@ const (
|
||||
FieldBatchNo = "batch_no"
|
||||
// FieldZoneCode holds the string denoting the zone_code field in the database.
|
||||
FieldZoneCode = "zone_code"
|
||||
// FieldShelfNo holds the string denoting the shelf_no field in the database.
|
||||
FieldShelfNo = "shelf_no"
|
||||
// FieldLayerNo holds the string denoting the layer_no field in the database.
|
||||
FieldLayerNo = "layer_no"
|
||||
// FieldPositionNo holds the string denoting the position_no field in the database.
|
||||
FieldPositionNo = "position_no"
|
||||
// FieldQuantity holds the string denoting the quantity field in the database.
|
||||
FieldQuantity = "quantity"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
@@ -62,6 +72,8 @@ var Columns = []string{
|
||||
FieldID,
|
||||
FieldOutboundNo,
|
||||
FieldOutboundType,
|
||||
FieldStatus,
|
||||
FieldNeedAgv,
|
||||
FieldOutboundCategory,
|
||||
FieldOwnershipType,
|
||||
FieldOwnershipNo,
|
||||
@@ -72,6 +84,9 @@ var Columns = []string{
|
||||
FieldManageMode,
|
||||
FieldBatchNo,
|
||||
FieldZoneCode,
|
||||
FieldShelfNo,
|
||||
FieldLayerNo,
|
||||
FieldPositionNo,
|
||||
FieldQuantity,
|
||||
FieldOperator,
|
||||
FieldReviewer,
|
||||
@@ -96,6 +111,10 @@ func ValidColumn(column string) bool {
|
||||
var (
|
||||
// DefaultOutboundType holds the default value on creation for the "outbound_type" field.
|
||||
DefaultOutboundType string
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// DefaultNeedAgv holds the default value on creation for the "need_agv" field.
|
||||
DefaultNeedAgv bool
|
||||
// DefaultManageMode holds the default value on creation for the "manage_mode" field.
|
||||
DefaultManageMode int
|
||||
// DefaultQuantity holds the default value on creation for the "quantity" field.
|
||||
@@ -122,6 +141,16 @@ func ByOutboundType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOutboundType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByNeedAgv orders the results by the need_agv field.
|
||||
func ByNeedAgv(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldNeedAgv, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOutboundCategory orders the results by the outbound_category field.
|
||||
func ByOutboundCategory(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOutboundCategory, opts...).ToFunc()
|
||||
@@ -172,6 +201,21 @@ func ByZoneCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldZoneCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByShelfNo orders the results by the shelf_no field.
|
||||
func ByShelfNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldShelfNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLayerNo orders the results by the layer_no field.
|
||||
func ByLayerNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLayerNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPositionNo orders the results by the position_no field.
|
||||
func ByPositionNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPositionNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQuantity orders the results by the quantity field.
|
||||
func ByQuantity(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQuantity, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user