feat: 完成客户第12条需求+多系统改造

1. 新增预警表添加工单号字段,支持按工单号检索预警
2. 添加工单过滤在制品/绩效报表/预警中心查询
3. 补全WMS台账字段口径与权限配置
4. 修复备料单与数量不符处理流程
5. 新增配送进度/库位联动/自动出库功能
6. 修复AGV配送状态更新逻辑
7. 优化退料与库存管理细节
This commit is contained in:
SunYF
2026-09-19 17:04:58 +08:00
parent 62e45b7379
commit 05b0b8a909
89 changed files with 7912 additions and 429 deletions
+12
View File
@@ -25,6 +25,8 @@ const (
FieldRefType = "ref_type"
// FieldRefId holds the string denoting the refid field in the database.
FieldRefId = "ref_id"
// FieldOrderNo holds the string denoting the orderno field in the database.
FieldOrderNo = "order_no"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldReceiver holds the string denoting the receiver field in the database.
@@ -44,6 +46,7 @@ var Columns = []string{
FieldContent,
FieldRefType,
FieldRefId,
FieldOrderNo,
FieldStatus,
FieldReceiver,
FieldCreatedAt,
@@ -78,6 +81,10 @@ var (
DefaultRefId string
// RefIdValidator is a validator for the "refId" field. It is called by the builders before save.
RefIdValidator func(string) error
// DefaultOrderNo holds the default value on creation for the "orderNo" field.
DefaultOrderNo string
// OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
OrderNoValidator func(string) error
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus string
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
@@ -130,6 +137,11 @@ func ByRefId(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRefId, opts...).ToFunc()
}
// ByOrderNo orders the results by the orderNo field.
func ByOrderNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldOrderNo, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()