feat: 完成多模块迭代更新

- 新增过程巡检按步骤上报、数量不符上报、工位退料功能
- 增加工单工程编号三级归属字段
- 新增物料安全库存与缺货预警
- 新增附件管理、退库单管理模块
- 优化生产看板展示逻辑与前端页面文案
- 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
SunYF
2026-09-15 16:37:39 +08:00
parent 951f3dfecd
commit 4a5e2d7bac
494 changed files with 24702 additions and 139223 deletions
+24
View File
@@ -17,6 +17,12 @@ const (
FieldZoneName = "zone_name"
// FieldDescription holds the string denoting the description field in the database.
FieldDescription = "description"
// 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"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldCreatedAt holds the string denoting the created_at field in the database.
@@ -33,6 +39,9 @@ var Columns = []string{
FieldZoneCode,
FieldZoneName,
FieldDescription,
FieldShelfNo,
FieldLayerNo,
FieldPositionNo,
FieldStatus,
FieldCreatedAt,
FieldUpdatedAt,
@@ -80,6 +89,21 @@ func ByDescription(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDescription, 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()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()