feat: 新增产品工艺管理与工序审核功能

- 新增产品工艺(product_process)及明细(product_process_item)数据模型
- 新增工序审核开关(need_audit)与审核角色(audit_role)字段
- 新增待审核签字页面与路由
- 优化 WMS/MES 接口交互,增加业务错误处理与友好提示
- 补充库存过滤逻辑,避免返回已出库 SN 数据
- 调整默认查询时间范围为近一个月,优化用户体验
This commit is contained in:
SunYF
2026-10-09 13:46:33 +08:00
parent e2f1dacf76
commit b032f47fc7
95 changed files with 10546 additions and 1457 deletions
+2 -2
View File
@@ -10,13 +10,13 @@ import (
"github.com/zeromicro/go-zero/rest/pathvar"
)
// ListProcessFlowsHandler GET /process-flows?stationNo=
// ListProcessFlowsHandler GET /process-flows?stationNo=&pp=(pp=按产品工艺名称反查过滤)
func ListProcessFlowsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
stationNo := atoiDefault(r.URL.Query().Get("stationNo"), 0)
page := atoiDefault(r.URL.Query().Get("page"), 0)
pageSize := atoiDefault(r.URL.Query().Get("pageSize"), 20)
data, err := logic.New(svcCtx).ListFlows(r.Context(), stationNo, page, pageSize)
data, err := logic.New(svcCtx).ListFlows(r.Context(), stationNo, r.URL.Query().Get("pp"), page, pageSize)
if err != nil {
httpx.Fail(w, 2201, err.Error())
return