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
@@ -23,6 +23,8 @@ const (
FieldOutQty = "out_qty"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldTargetStation holds the string denoting the target_station field in the database.
FieldTargetStation = "target_station"
// FieldRemark holds the string denoting the remark field in the database.
FieldRemark = "remark"
// FieldCreatedAt holds the string denoting the created_at field in the database.
@@ -42,6 +44,7 @@ var Columns = []string{
FieldTotalQty,
FieldOutQty,
FieldStatus,
FieldTargetStation,
FieldRemark,
FieldCreatedAt,
FieldUpdatedAt,
@@ -108,6 +111,11 @@ func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByTargetStation orders the results by the target_station field.
func ByTargetStation(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTargetStation, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, opts...).ToFunc()