feat(shipping-notice): 新增临时库存管理功能,支持创建会话、获取分析结果及字段映射建议
This commit is contained in:
1 parent
46eb63f5bb
commit
e9bdd81f1a
320 files changed
+28361
-10487
No files matched your search
@@ -2,7 +2,7 @@
|
||||
backend/app/services/schedule/job_options.py
|
||||
|
||||
用途:平台任务参数 schema 的动态选项来源(options_source → 统一 label/value 列表)。
|
||||
依赖:models.Agent、shipping_notice.inventory_sources。
|
||||
依赖:models.Agent、shipping_notice.inventory_source_repository。
|
||||
逻辑:api/schedule/platform_tasks.py options 接口与 job_params 选项范围校验调用;
|
||||
前端只认识 options_source 字符串,不感知数据来自哪张表/哪个配置文件。
|
||||
"""
|
||||
@@ -32,8 +32,8 @@ def _agent_apps_options() -> list[dict[str, Any]]:
|
||||
|
||||
|
||||
def _shipping_inventory_sources_options() -> list[dict[str, Any]]:
|
||||
"""启用中的货代库存源(value=source_code,来自 backend/config/shipping_inventory_sources.yaml)。"""
|
||||
from app.services.shipping_notice.inventory_sources import list_inventory_sources
|
||||
"""启用中的货代库存源(value=source_code,来自数据库主数据)。"""
|
||||
from app.services.shipping_notice.inventory_source_repository import list_database_inventory_sources
|
||||
|
||||
return [
|
||||
{
|
||||
@@ -41,11 +41,11 @@ def _shipping_inventory_sources_options() -> list[dict[str, Any]]:
|
||||
"value": source.get("source_code"),
|
||||
"description": (
|
||||
f"{source.get('connector_type')} · "
|
||||
f"{source.get('site_id') or '-'} · "
|
||||
f"{source.get('warehouse_id')}"
|
||||
f"{source.get('warehouse_resolution_mode')} · "
|
||||
f"{source.get('fixed_warehouse_id') or '-'}"
|
||||
),
|
||||
}
|
||||
for source in list_inventory_sources()
|
||||
for source in list_database_inventory_sources()
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user