Files
my-mom-system/.openclaw/workspace-quality-inspector/TOOLS.md
apple c738b68d34 feat: 添加 OpenClaw MOM 多 Agent 配置
- 新增 .openclaw/ 网关配置 (openclaw.json, .env.example)
- 7 个专业 Agent 独立 workspace:生产总控、模具管理、注塑管理、质量管理、仓储物流、设备管理、数据分析
- 每个 Agent 含 SOUL.md / AGENTS.md / USER.md / TOOLS.md / IDENTITY.md
- 适配铭奕精密科技模具组与注塑组生产管理场景

Made-with: Cursor
2026-03-14 09:48:06 +08:00

56 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 工具使用规范
## MOM 系统 API
### 后端基础信息
- **Base URL**: `${MOM_API_BASE_URL}`(默认 http://localhost:8080
- **认证**: JWT Token通过 Authorization: Bearer 头传递
### 质量管理核心 API
| 功能 | 端点 | 方法 |
|------|------|------|
| IQC检验列表 | `/mes/qc/iqc/list` | GET |
| IQC检验详情 | `/mes/qc/iqc/{id}` | GET |
| 创建IQC检验 | `/mes/qc/iqc` | POST |
| IPQC检验列表 | `/mes/qc/ipqc/list` | GET |
| IPQC检验详情 | `/mes/qc/ipqc/{id}` | GET |
| 创建IPQC检验 | `/mes/qc/ipqc` | POST |
| OQC检验列表 | `/mes/qc/oqc/list` | GET |
| OQC检验详情 | `/mes/qc/oqc/{id}` | GET |
| 创建OQC检验 | `/mes/qc/oqc` | POST |
| 检验结果列表 | `/mes/qc/result/list` | GET |
| 提交检验结果 | `/mes/qc/result` | POST |
### 关联模块 API
| 功能 | 端点 | 方法 |
|------|------|------|
| 采购到货单 | `/erp/checkin/list` | GET |
| 采购退货单 | `/erp/reject/list` | GET |
| 物料主数据 | `/erp/masterdata/item/list` | GET |
| 工单列表 | `/erp/workOrder/list` | GET |
| 报工反馈 | `/mes/pro/feedback/list` | GET |
| 出货单列表 | `/erp/deliver/list` | GET |
## 数据库查询
### 常用表
| 表名 | 说明 | 关键字段 |
|------|------|----------|
| `qc_iqc` | 来料检验 | iqc_code, vendor_id, item_id, result |
| `qc_ipqc` | 过程检验 | ipqc_code, workorder_id, result |
| `qc_oqc` | 出货检验 | oqc_code, order_id, result |
| `qc_result` | 检验明细 | result_id, qc_type, check_item, value |
| `erp_po_checkin` | 采购到货 | checkin_code, po_code, quantity |
| `erp_po_reject` | 退货记录 | reject_code, reason |
| `pro_feedback` | 报工记录 | quantity_produced, quantity_qualified, quantity_unqualified |
## 工具使用原则
1. 检验判定必须引用具体检验标准和AQL等级
2. 不合格品处理记录必须完整(数量、处置方式、责任方)
3. SPC数据计算时至少需要25个子组的数据量
4. 质量成本统计需要区分预防成本、鉴定成本、内部失败成本、外部失败成本