feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -247,6 +247,14 @@ func (c *Client) ExportProductTypes(ctx context.Context, code, name, category, i
|
||||
return buf.Bytes(), nil
|
||||
}
|
||||
|
||||
// CreateReturnOrder 调 WMS /api/internal/return-order 预建退库单(工位退料回库房,待 WMS 确认收货)。
|
||||
func (c *Client) CreateReturnOrder(ctx context.Context, orderNo, sn, materialCode, materialName, spec, reason, operator string, stationNo, qty int, unit string) error {
|
||||
return c.post(ctx, "/api/internal/return-order", map[string]any{
|
||||
"orderNo": orderNo, "sn": sn, "materialCode": materialCode, "materialName": materialName,
|
||||
"spec": spec, "qty": qty, "unit": unit, "reason": reason, "operator": operator, "stationNo": stationNo,
|
||||
})
|
||||
}
|
||||
|
||||
// DisplayOverview 拉取 WMS 免登录看板总览 /api/display/overview。
|
||||
// 用于看板「仓储动态」屏。WMS 不可达时返回 err,由调用方降级为空对象(看板其余屏不受影响)。
|
||||
func (c *Client) DisplayOverview(ctx context.Context) (map[string]any, error) {
|
||||
|
||||
Reference in New Issue
Block a user