feat(shipping-notice): 完善 XFA 模板映射与订单审核流程

- 统一 XFA 数据集、字段拆分、校验及运行时解析
- 完善订单模板管理、发布检查与迁移状态
- 优化订单审核草稿、预约回退及 STP 投影缓存
- 更新前端模板编辑器、映射组件与多语言错误文案
- 补充后端与前端测试,并更新本地集成启动配置
This commit is contained in:
hugo committed 2026-09-12 22:41:21 +08:00
1 parent 43a30a7489
commit 4ec436d44c
67 files changed
+5411 -528

No files matched your search

@@ -781,12 +781,17 @@ def assert_case_not_blocked_manual(*, case_no: str, case: ShippingOrderReviewCas
# 兼容修复前已落库的技术异常:旧结果被错误写成 retryable=false,
# 但 SHIPPING.STP_AUTO_CREATE_UNEXPECTED 本身不是业务裁决原因,普通
# retry 应创建新的 Job,而不是强制用户走 reconcile-and-progress。
# ORDER_FREEZE_BLOCKED:冻结门禁每次 confirm 重算(如预约单号表头回退已修复),
# 允许技术重试再入队,避免 UI/API 死锁在「人工裁决」文案上。
effective_error_code = error_code or (
blocking_reason.get('code')
if isinstance(blocking_reason, dict)
else str(blocking_reason or '').strip()
)
if not retryable_flag and effective_error_code == 'SHIPPING.STP_AUTO_CREATE_UNEXPECTED':
if not retryable_flag and effective_error_code in {
'SHIPPING.STP_AUTO_CREATE_UNEXPECTED',
'SHIPPING.ORDER_FREEZE_BLOCKED',
}:
return
if should_general_retry_be_removed(retryable_flag=retryable_flag, blocking_reason=blocking_reason):
raise ConflictError(