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

+3 -3
View File
@@ -70,10 +70,10 @@ def _build_query_from_yaml(raw: dict[str, Any]) -> dict[str, Any]:
"""复用 dsv_export_smoke 口径,从 YAML 构造 worker 兼容 query。"""
navigation = dict(raw.get("navigation") or {})
parameters = [dict(item) for item in (raw.get("parameters") or []) if isinstance(item, dict)]
source_type = str(raw.get("source_type") or "dsv360").strip().lower()
connector_type = str(raw.get("connector_type") or "dsv360").strip().lower()
warehouse_id = str(raw.get("warehouse_id") or "").strip()
query: dict[str, Any] = {}
if source_type == "dsv360":
if connector_type == "dsv360":
for key in ("program_group", "program_label", "report_group", "report_name"):
if navigation.get(key):
query[key] = navigation[key]
@@ -113,7 +113,7 @@ def _build_rpa_source_from_yaml(source_code: str) -> dict[str, Any] | None:
parameters = [dict(item) for item in (raw.get("parameters") or []) if isinstance(item, dict)]
return {
"source_code": str(raw.get("source_code") or source_code).upper(),
"source_type": str(raw.get("source_type") or "dsv360").strip().lower(),
"connector_type": str(raw.get("connector_type") or "dsv360").strip().lower(),
"site_id": str(raw.get("site_id") or "").strip().upper() or None,
"warehouse_id": str(raw.get("warehouse_id") or "").strip(),
"entry_url": str(raw.get("entry_url") or ""),