feat(shipping-notice): 添加识别定义和规则集管理功能,支持客户和站点的可配置识别规则

This commit is contained in:
hugo committed 2026-07-20 19:28:17 +08:00
1 parent 88408490d7
commit 34d489a2d1
167 files changed
+10365 -7978

No files matched your search

@@ -259,21 +259,6 @@ def build_dify_openapi_spec(base_url: str) -> dict[str, Any]:
"写入任务库存行或执行库存匹配。"
),
),
"/tools/parse_notice": _post_op(
"parse_notice",
"解析发货通知文本",
{
"task_id": task_id,
"raw_text": _str_prop("待解析的发货通知全文"),
"structured": {
"type": "object",
"description": "Dify LLM 解析后的结构化结果对象。若提供,后端优先使用该对象中的 lines/confidence/reservation_id 等字段落库。",
"additionalProperties": True,
},
"lang": _str_prop("可选语言代码:zh|en|th"),
},
required=["task_id"],
),
"/tools/update_notice_fields": _post_op(
"update_notice_fields",
"更新解析后的发货通知单头字段,如客户、PO、交期、收货地",