feat(shipping-notice): 新增货代客户管理功能,支持客户导入、识别证据管理与客户确认

This commit is contained in:
hugo committed 2026-07-16 08:16:19 +08:00
1 parent b595e157e9
commit 4fbaed2b4c
176 files changed
+14011 -994

No files matched your search

@@ -16,15 +16,15 @@ from app.services.shipping_notice.po_number import normalize_po_number
from app.services.shipping_notice.reservation_id import validated_reservation_id
BUILD_REQUIRED_FIELDS = ('sku', 'qty')
PROCESS_FIELDS = ('reservation_id', 'hub_code', 'source_type')
PROCESS_FIELDS = ('reservation_id',)
def assess_candidate_business_summary(summary: dict[str, Any] | None) -> dict[str, Any]:
"""
评估规则/LLM订单结果是否达到自动建单最低条件,同时保留不完整内容供自然对话修订。
核心逻辑:SKU + 正数 Qty 是建单硬条件;Reservation/Hub/Source Type 属于流程字段,
缺失或格式异常时允许创建 Task,但必须进入后续字段补充门禁。
核心逻辑:SKU + 正数 Qty 是建单硬条件;Reservation ID 是唯一流程门禁字段。
行级 source_type 仅保留为可选库存源路由线索,缺失时不阻断建单或后续流程。
Args:
summary: 单个订单的业务摘要。