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
+10
View File
@@ -35,6 +35,8 @@ const (
FieldTemplateCode = "template_code"
// FieldDrawingNo holds the string denoting the drawing_no field in the database.
FieldDrawingNo = "drawing_no"
// FieldSafetyStock holds the string denoting the safety_stock field in the database.
FieldSafetyStock = "safety_stock"
// FieldIsActive holds the string denoting the is_active field in the database.
FieldIsActive = "is_active"
// FieldCreatedAt holds the string denoting the created_at field in the database.
@@ -60,6 +62,7 @@ var Columns = []string{
FieldIsSerialManaged,
FieldTemplateCode,
FieldDrawingNo,
FieldSafetyStock,
FieldIsActive,
FieldCreatedAt,
FieldUpdatedAt,
@@ -84,6 +87,8 @@ var (
DefaultIsBatchManaged bool
// DefaultIsSerialManaged holds the default value on creation for the "is_serial_managed" field.
DefaultIsSerialManaged bool
// DefaultSafetyStock holds the default value on creation for the "safety_stock" field.
DefaultSafetyStock int
// DefaultIsActive holds the default value on creation for the "is_active" field.
DefaultIsActive bool
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
@@ -160,6 +165,11 @@ func ByDrawingNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDrawingNo, opts...).ToFunc()
}
// BySafetyStock orders the results by the safety_stock field.
func BySafetyStock(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldSafetyStock, opts...).ToFunc()
}
// ByIsActive orders the results by the is_active field.
func ByIsActive(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldIsActive, opts...).ToFunc()