feat(shipping-notice): 新增临时库存管理功能,支持创建会话、获取分析结果及字段映射建议

This commit is contained in:
hugo committed 2026-07-18 11:41:02 +08:00
1 parent 46eb63f5bb
commit e9bdd81f1a
320 files changed
+28361 -10487

No files matched your search

+28 -3
View File
@@ -65,15 +65,40 @@ confirm_customer = customer_identity_gate.confirm_customer
# 库存阶段
ensure_inventory = inventory_workflow.ensure_inventory
parse_inventory = inventory_workflow.parse_inventory
get_inventory_schema_preview = inventory_workflow.get_inventory_schema_preview
apply_inventory_mapping = inventory_workflow.apply_inventory_mapping
upload_inventory_file = inventory_workflow.upload_inventory_file
rpa_report_inventory = inventory_rpa_workflow.rpa_report_inventory
rpa_report_inventory_batch = inventory_rpa_workflow.rpa_report_inventory_batch
repair_task_inventory_attachment = inventory_rpa_workflow.repair_task_inventory_attachment
confirm_inventory_source = inventory_rpa_workflow.confirm_inventory_source
def create_temporary_inventory_session(payload: dict):
"""创建对话上传库存候选会话;仅供 Dify 临时库存固定分支调用。"""
from app.services.shipping_notice.inventory_temporary_session import create_temporary_inventory_session as _create
return _create(payload)
def get_temporary_inventory_session(payload: dict):
"""读取临时库存候选会话的脱敏结构预览;仅供 Dify 固定分支调用。"""
from app.services.shipping_notice.inventory_temporary_session import get_temporary_inventory_session as _get
return _get(payload)
def submit_temporary_inventory_mapping_suggestion(payload: dict):
"""保存 Dify 临时库存映射候选;后端校验后仍须由用户确认。"""
from app.services.shipping_notice.inventory_temporary_session import submit_temporary_inventory_mapping_suggestion as _submit
return _submit(payload)
def confirm_temporary_inventory_use(payload: dict):
"""确认当前会话临时库存使用并执行后端确定性质量校验。"""
from app.services.shipping_notice.inventory_temporary_session import confirm_temporary_inventory_use as _confirm
return _confirm(payload)
# 履约阶段
match_inventory = fulfillment_workflow.match_inventory
generate_excel = fulfillment_workflow.generate_excel