iccn-erp

【零壹问界IC ERP外贸管理系统】,提供查询数据的技能。当用户提到查询订单、采购单、需求单、入库单、出库单、客户、供应商、库存、现货等任何ERP业务数据时,必须使用此技能。触发词包括但不限于:"查订单"、"采购单详情"、"需求单"、"入库记录"、"出库情况"、"客户信息"、"供应商"、"现货库存"、"有没有货"、"库存多少"等,应立即触发此技能。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "iccn-erp" with this command: npx skills add jexm/iccn-erp

ERP 系统查询技能

统一调用规范

所有查询统一使用以下方式:

  • 方法:POST
  • Content-Type:application/json
  • URL 格式{ERP_API_BASE_URL}/v1/{table}/lists
  • Token:从环境变量 ERP_API_TOKEN 读取
const ERP_TOKEN = process.env.ERP_API_TOKEN;
const ERP_BASE_URL = process.env.ERP_API_BASE_URL;

const erpQuery = async (table, params = {}) => {
  const url = `${ERP_BASE_URL}/v1/${table}/lists`;
  const body = {
    page: 1,
    pagenum: 50,
    like: {},
    where: {},
    order: {},
    ...params
  };
  const response = await fetch(url, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'authorization': `Bearer ${ERP_TOKEN}`
    },
    body: JSON.stringify(body)
  });
  return await response.json();
};

表格映射

用户说的table 名称说明
订单、销售单order销售订单
采购单、采购订单purchase采购单
需求单、需求demand需求单
入库单、入库记录purchase_in采购入库单
出库单、出库记录order_out销售出库单
客户、客户信息customer客户档案
供应商、供应商信息supplier供应商档案
现货、库存、有没有货products_inventory现货库存

查询参数说明

参数类型说明
pagenumber页码,默认 1
pagenumnumber每页条数,默认 50
likeobject模糊搜索,如 {"model":"ABC"}
whereobject精确过滤,如 {"status":"1"}
orderobject排序,如 {"created_at":"desc"}

调用示例

const data = await erpQuery('order', { where: { order_no: 'SO20240001' } });
const data = await erpQuery('products_inventory', { like: { model: 'ABS10' } });
const data = await erpQuery('customer', { like: { name: 'ABC公司' } });
const data = await erpQuery('supplier', { like: { name: '某供应商' } });
const data = await erpQuery('purchase', { where: { purchase_no: 'PO20240001' } });
const data = await erpQuery('purchase_in', { where: { purchase_no: 'PO20240001' } });
const data = await erpQuery('order_out', { where: { order_no: 'SO20240001' } });
const data = await erpQuery('demand', { like: { model: 'ABC123' } });

调用流程

  1. 识别意图:对照"表格映射"确定 table
  2. 提取参数:有单号用 where 精确匹配,有关键词用 like 模糊搜索,不足则主动询问
  3. 调用接口:使用 erpQuery(table, params) 发起请求
  4. 展示结果:以表格形式展示,标注总条数
  5. 报错处理:401 提示 Token 过期;空结果提示检查参数

注意事项

  • Token 和 API 地址通过环境变量注入,在 openclaw.jsonskills.entries.iccn-erp.env 中配置
  • 更换 Token 只需修改 openclaw.json,无需改动此文件
  • 模糊搜索用 like,精确匹配用 where,可同时使用

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Zoom

Zoom API integration with managed OAuth. Manage meetings, webinars, recordings, and user profiles. Use this skill when users want to schedule meetings, manag...

Registry SourceRecently Updated
General

Kleinanzeigen.de Helper

Erstelle und verwalte Verkaufsanzeigen speziell auf kleinanzeigen.de. Verwende diesen Skill wenn der Human sagt, er will etwas auf kleinanzeigen.de verkaufen...

Registry SourceRecently Updated
General

Poku

Sends and receives phone calls and messages (like SMS, WhatsApp, Slack), and reserves dedicated phone numbers using the Poku API. Example use cases: calling...

Registry SourceRecently Updated
General

IMAP/SMTP Email - Maddy Fix

Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Sup...

Registry SourceRecently Updated