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
@@ -52,11 +52,11 @@ def _build_source_from_config(source_code: str) -> dict:
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, object] = {}
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]
@@ -88,7 +88,7 @@ def _build_source_from_config(source_code: str) -> dict:
return {
"source_code": str(raw.get("source_code") or source_code).upper(),
"source_type": source_type,
"connector_type": connector_type,
"site_id": str(raw.get("site_id") or "").strip().upper(),
"display_name": str(raw.get("display_name") or source_code),
"enabled": bool(raw.get("enabled", True)),