feat(shipping-order): 迭代货代订单提取与履约全流程功能
添加订单字段自动标注配置,默认仅关键字段参与自动框选 完善字段规范化逻辑,支持更多日期格式解析 添加订单候选人工采纳、驳回的完整流程,包含API、前端交互与状态管理 完善盲测功能,支持订单级字段真值校验,调整盲测集唯一性约束 加固库存校验逻辑,防止重复预约与数量不一致问题 优化坐标匹配逻辑,支持表格外的锚点定位 新增上传结果未知的状态处理,完善任务状态机 更新多语言文案与文档说明,补充功能细节 修复订单合并、重解析的边缘情况问题 补充相关测试用例,完善质量保障
This commit is contained in:
1 parent
11079910ec
commit
90f77634d6
76 files changed
+5056
-338
No files matched your search
@@ -36,6 +36,7 @@ from app.services.shipping_notice.constants import (
|
||||
CP_UPLOADED,
|
||||
CP_COMPLETED,
|
||||
CP_UPLOAD_FAILED,
|
||||
CP_UPLOAD_RESULT_UNKNOWN,
|
||||
CP_UPLOAD_REQ,
|
||||
CP_WAITING_UPLOAD,
|
||||
PH_INV_UNAVAIL,
|
||||
@@ -48,6 +49,7 @@ from app.services.shipping_notice.constants import (
|
||||
PH_SHORTAGE,
|
||||
PH_UPLOAD_RPA_FAILED,
|
||||
PH_UPLOAD_RPA_PENDING,
|
||||
PH_UPLOAD_RESULT_UNKNOWN,
|
||||
RS_CONFIRMED,
|
||||
RS_PARSE_REVIEW,
|
||||
RS_REJECTED,
|
||||
@@ -121,6 +123,7 @@ CHECKPOINT_REGISTRY: dict[str, tuple[str, ...]] = {
|
||||
CP_NOTICE_TEXT_EXTRACTION_FAILED: ("replace_notice_file", "reparse", "reject"),
|
||||
CP_UPLOAD_FAILED: ("retry_upload", "download_excel", "mark_manual_uploaded"),
|
||||
CP_WAITING_UPLOAD: ("refresh", "retry_upload", "download_excel", "mark_manual_uploaded"),
|
||||
CP_UPLOAD_RESULT_UNKNOWN: ("refresh", "download_excel", "mark_manual_uploaded"),
|
||||
CP_READY_MATCH: ("match_inventory",),
|
||||
CP_READY_EXPORT: ("generate_excel",),
|
||||
CP_EXPORT_READY: ("download_excel", "mark_manual_uploaded"),
|
||||
@@ -355,6 +358,11 @@ def resolve_task_ui_state(task: ShippingTask) -> TaskUiState:
|
||||
checkpoint=CP_UPLOAD_FAILED,
|
||||
human_options=list(CHECKPOINT_REGISTRY[CP_UPLOAD_FAILED]),
|
||||
)
|
||||
if reason == PH_UPLOAD_RESULT_UNKNOWN:
|
||||
return TaskUiState(
|
||||
checkpoint=CP_UPLOAD_RESULT_UNKNOWN,
|
||||
human_options=list(CHECKPOINT_REGISTRY[CP_UPLOAD_RESULT_UNKNOWN]),
|
||||
)
|
||||
if reason == PH_RPA_PENDING or (
|
||||
task.process_status == "waiting_inventory" and reason == PH_RPA_PENDING
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user