feat(shipping-process-gates): 落地全门禁中断恢复并消除双真相

纳入 Execution/Gate/Attempt 模型与迁移、Worker/API/前端恢复卡片与 Admin 诊断,
Gate 阻断时清零旧 action_buttons,异常摘要统一脱敏,并为运维筛选与 Attempt Diff 补齐入口。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-01 13:08:32 +08:00
1 parent b352c281d5
commit 323928626b
92 files changed
+11930 -458

No files matched your search

+99 -32
View File
@@ -198,7 +198,7 @@
"nonOrderReasonPrompt": "请填写标记非订单的原因",
"reparseReasonPrompt": "请填写重新识别的原因",
"reasonRequired": "必须填写原因后才能继续",
"caseRequired": "当前工作项缺少复核 Case,请先进入人工复核",
"caseRequired": "当前文件尚未生成复核单,请稍后再进入人工复核",
"versionHistoryTitle": "版本历史",
"currentVersion": "当前",
"readonlyVersion": "只读",
@@ -378,7 +378,8 @@
"candidate_ready": "候选已生成",
"review_required": "需要人工复核",
"failed": "处理失败",
"cancelled": "已取消"
"cancelled": "已取消",
"unknown": "状态待确认"
},
"shippingOrderExtractionReason": {
"profile_not_found": "未找到适用的已发布订单模板。",
@@ -429,12 +430,14 @@
"generic_deterministic": "通用规则确定性解析",
"llm_assisted_review": "AI 辅助复核",
"manual_review": "人工复核",
"rejected": "已拒识"
"rejected": "已拒识",
"unknown": "处理方式待确认"
},
"shippingOrderExtractionFreezeSource": {
"profile_deterministic": "自动冻结来源:异型模板",
"generic_deterministic": "自动冻结来源:通用规则",
"manual_confirmation": "冻结来源:人工确认"
"manual_confirmation": "确认方式:人工确认",
"unknown": "确认方式待确认"
},
"shippingOrderExtractionPlanSummary": "本轮从 {total} 个附件中规划 {groups} 个订单组,首轮最多识别 {attachments} 个附件,并发 {concurrency} 个。",
"shippingOrderExtractionPlanSelected": "已选 {count} 个附件",
@@ -473,7 +476,8 @@
},
"shippingOrderExtractionEmailSupplementRelation": {
"po_mpn": "关联方式:PO + 料号",
"po_fallback": "关联方式:按 PO 回退"
"po_fallback": "关联方式:按 PO 匹配",
"unknown": "关联方式待确认"
},
"shippingOrderExtractionEmailSupplementField": {
"reservation": "Reservation:",
@@ -1469,7 +1473,7 @@
"unknown": "状态未知"
},
"previewTitle": "PDF 预览",
"buildGateRail": "建单资格与库存候选",
"buildGateRail": "订单检查与库存来源",
"previewLoading": "正在加载 PDF 预览...",
"previewUnavailable": "PDF 预览不可用,草稿编辑不受影响。",
"previewCollapsed": "该证据只有页码和引文,没有可靠坐标;已收起 PDF 预览。",
@@ -1480,15 +1484,36 @@
"viewEvidence": "查看证据",
"locateSource": "定位原文:{field}",
"orderFields": "订单字段",
"schemaVersion": "冻结 Schema #{version}",
"schemaVersion": "订单字段版本 V{version}",
"issues": "待处理问题",
"machineSource": "来源:机器识别",
"issueCodes": {
"customer_unresolved": "客户信息尚未确认",
"machine_order_unavailable": "未识别到可复核的订单内容",
"machine_multiple_orders_legacy": "文件中可能包含多份订单,请人工确认",
"required_field_missing": "缺少创建订单所需的信息",
"field_value_invalid": "部分订单信息格式不正确",
"invalid_order_line": "部分订单明细不完整或格式不正确",
"effective_reservation_missing": "缺少有效的预约单号",
"reservation_duplicated_in_order": "订单内存在重复的预约单号",
"require_manual_review": "库存来源需要人工确认",
"no_inventory_source_candidates": "未找到可用的库存来源",
"manual_inventory_source_reason_required": "请选择库存来源并填写原因",
"manual_inventory_source_invalid": "所选库存来源当前不可用",
"inventory_source_unresolved": "库存来源尚未确定",
"auto_build_gate_approved_template": "该文件需要人工复核后创建订单",
"auto_build_gate_fields_complete": "请补全订单信息后继续",
"auto_build_gate_evidence_passed": "部分识别结果需要人工核对",
"auto_build_gate_no_conflict_or_duplicate": "请确认订单是否重复或存在信息冲突",
"auto_build_gate_quality_gate_passed": "自动建单策略尚未放行,需人工确认",
"unknown": "系统发现一项需要人工确认的内容"
},
"machineSource": "来源:系统识别",
"manualSource": "来源:人工修改",
"derivedSource": "来源:规则派生",
"overrideSource": "来源:人工覆盖(已锁定)",
"skippedSource": "来源:派生跳过",
"valueSources": {
"machine": "机器识别",
"machine": "系统识别",
"manual": "人工修改",
"manual_override": "人工覆盖",
"derived": "规则派生",
@@ -1504,10 +1529,11 @@
"compare": "对比建议",
"scope": "证据范围:{level}",
"evidenceLevel": {
"L1_field": "字段原文",
"L1_field": "当前字段内容",
"L2_table": "所在表格",
"L3_page": "所在页面",
"L4_pdf": "整份 PDF(需授权)"
"L4_pdf": "整份 PDF(需授权)",
"unknown": "相关文档内容"
},
"review": "裁决",
"empty": "尚无 AI 建议。选择字段后点击请求。",
@@ -1527,7 +1553,8 @@
"accepted": "已接受",
"modified": "已修改",
"rejected": "已拒绝",
"failed": "不可用"
"failed": "不可用",
"unknown": "状态待确认"
},
"decisions": {
"accept": "接受",
@@ -1558,7 +1585,7 @@
"other": "其他"
}
},
"restoreMachine": "恢复机器值",
"restoreMachine": "恢复系统识别值",
"restorePriorProjection": "恢复识别/派生值",
"lineNoUnsavedHint": "未保存 · 失焦后填写覆盖原因",
"lockedHint": "已锁定",
@@ -1591,7 +1618,7 @@
"addLine": "新增行",
"copyLine": "复制行",
"deleteLine": "删除行",
"noMachineOrder": "机器识别结果待人工确认,可创建草稿进行修正。",
"noMachineOrder": "系统识别结果需要人工确认,可创建草稿进行修正。",
"lines": "订单明细",
"line": "第 {index} 行",
"noLines": "未识别到订单明细。",
@@ -1634,9 +1661,19 @@
"manual_upload_pending": "待人工上传登记"
}
},
"reparseProgress": {
"title": "PDF 重新识别进度",
"subtitle": "进度来自当前工作项,完成后将自动打开新版复核草稿。",
"polling": "正在刷新真实进度…",
"refreshFailed": "暂时无法刷新进度,正在保留当前阶段并自动重试。",
"failed": "重新识别未完成,已保留上一版本。您可以直接再次识别。",
"retry": "重新识别",
"stages": { "submitted": "已提交", "layout_parsing": "读取页面内容", "extracting": "提取订单信息", "draft_ready": "准备复核内容" }
},
"backToSession": "返回本次处理",
"workItemHeader": "工作项 {itemNo} · {version}",
"jumpToCurrentVersion": "跳转当前版本",
"currentVersionUnavailable": "当前版本尚未生成或进度暂时无法刷新,请稍后重试。",
"showContext": "对话上下文",
"hideContext": "收起对话上下文",
"contextTitle": "对话上下文",
@@ -1649,6 +1686,7 @@
"reparse_in_progress": "此 PDF 正在重新识别,请等待完成后继续复核。",
"restored": "重识别失败已恢复上一版本,可继续编辑。",
"draft_version_conflict": "草稿版本冲突:本地编辑已过期,请重新加载最新版本后再继续。"
,"unknown": "订单状态已更新,请刷新后继续处理。"
},
"versionHistory": {
"title": "版本历史",
@@ -1660,31 +1698,33 @@
"open": "打开"
},
"buildEligibility": {
"title": "建单资格",
"subtitle": "校验草稿后汇总的 Reservation 与库存源门禁。",
"title": "订单检查",
"subtitle": "检查订单信息和库存来源是否满足创建条件。",
"canBuildYes": "可建单",
"canBuildNo": "暂不可建单",
"statusLabel": "资格状态",
"blockingSummary": "阻断摘要",
"lineProjections": "明细投影",
"blockingSummary": "需要处理",
"lineProjections": "明细检查结果",
"lineCanBuild": "可建单",
"lineBlocked": "阻断",
"reservation": "有效 Reservation",
"routingStatusLabel": "路由状态",
"lineBlocked": "需要处理",
"reservation": "预约单号",
"routingStatusLabel": "库存来源状态",
"sourceHint": "库存线索",
"candidates": "候选库存源",
"blockReason": "阻断原因",
"blockReason": "需要处理的原因",
"manualReason": "人工说明",
"confirmBlocked": "当前草稿未满足建单资格,请先处理库存源或校验问题后再确认。",
"status": {
"ready": "可建单",
"needs_review": "待复核"
"needs_review": "待复核",
"unknown": "待确认"
},
"routingStatus": {
"resolved": "已解析",
"ambiguous": "多候选",
"unresolved": "未解析",
"conflicted": "需人工复核"
"conflicted": "需人工确认",
"unknown": "待确认"
},
"blockReasons": {
"require_manual_review": "规则要求人工复核库存源",
@@ -1692,20 +1732,33 @@
"manual_inventory_source_reason_required": "须填写人工选源原因",
"manual_inventory_source_invalid": "所选库存源无效或未启用",
"inventory_source_unresolved": "库存源未解析",
"effective_reservation_missing": "缺少有效 Reservation"
"effective_reservation_missing": "缺少有效的预约单号",
"unknown": "系统发现一项需要人工确认的内容"
}
},
"inventoryCandidates": {
"title": "人工选择库存源",
"subtitle": "为未决明细选择一个或多个已启用库存源,并说明原因。",
"subtitle": "为未决明细选择一个或多个已启用库存源,并说明原因;也可重新匹配规则或处理待决建议。",
"selectSources": "选择候选源",
"selectEnabledSources": "从已启用库存源中选择",
"noCandidates": "暂无可选库存源,请检查路由规则或联系管理员。",
"noCandidates": "暂无可选库存来源,请联系管理员检查相关配置。",
"noEnabledSources": "系统中没有已启用的库存源,请联系管理员启用后再选择。",
"reasonLabel": "选择原因(必填)",
"reasonPlaceholder": "请说明为何选择这些库存源...",
"submit": "提交候选"
},
"inventoryRouting": {
"reroute": "重新匹配路由",
"adoptSuggestion": "采用规则结果",
"keepManual": "保留人工结果",
"suggestionPending": "规则建议与当前人工结果不一致,请选择采用或保留。",
"rawCandidates": "规则原始候选",
"unavailableCandidates": "不可用候选",
"ruleSuggestion": "规则建议源",
"ruleVersions": "规则版本",
"hint": "库存源提示",
"rerouteHint": "可随时重新匹配路由;若存在待决规则建议,请选择采用或保留人工结果。"
},
"confirmDialog": {
"reasonLabel": "原因(必填)",
"reasonPlaceholder": "请说明操作原因...",
@@ -1734,7 +1787,7 @@
"reasonCodeRequired": "请选择原因类型",
"quality_issue": {
"title": "标记文件质量异常",
"impact": "保留当前 PDF、草稿与机器识别结果,供补件或重新识别;须选择原因并在选择「其他」时填写说明。",
"impact": "保留当前 PDF、草稿与系统识别结果,供补件或重新识别;须选择原因并在选择「其他」时填写说明。",
"confirm": "确认标记"
},
"qualityReasons": {
@@ -1782,7 +1835,7 @@
},
"itemStatus": {
"queued": "排队中",
"layout_parsing": "版面解析中",
"layout_parsing": "读取页面内容中",
"extracting": "识别中",
"building_order": "建单中",
"inventory_matching": "库存匹配中",
@@ -1792,7 +1845,8 @@
"failed": "失败",
"closed": "已完成",
"cancelled": "已取消",
"manual_upload_pending": "待人工上传登记"
"manual_upload_pending": "待人工上传登记",
"unknown": "状态待确认"
},
"closedReason": {
"confirmed": "已确认建单",
@@ -1802,11 +1856,21 @@
},
"actions": {
"refresh": "刷新",
"openReview": "进入复核工作台",
"viewProgress": "查看进度",
"cancelFile": "取消此文件",
"reparse": "重新识别",
"retryFailedRun": "重试失败识别"
},
"reparseError": {
"title": "重新识别未完成",
"schemaUnavailable": "当前订单字段规则版本不可用,系统没有生成新的识别结果。",
"fallback": "原有识别版本已保留,建议进入复核工作台人工处理。",
"contactAdmin": "如果多个文件同时出现此问题,请联系管理员检查订单字段规则版本。",
"pending": "该文件正在重新识别,请等待当前任务完成后再操作。",
"generic": "重新识别未完成,请查看处理详情或稍后重试。",
"requestId": "处理编号:{id}"
},
"reasonDialog": {
"cancelTitle": "取消此文件",
"reparseTitle": "重试/重新识别",
@@ -1825,14 +1889,17 @@
"filename": "文件名",
"status": "状态",
"stage": "阶段",
"runNo": "抽取 Run",
"caseNo": "复核 Case",
"runNo": "识别批次",
"caseNo": "复核编号",
"lastActivity": "最近活动",
"closedReason": "关闭原因",
"eventsTitle": "事件时间线",
"eventsEmpty": "暂无事件记录",
"empty": "未选择文件"
},
"event": {
"unknown": "处理状态已更新"
},
"versionHistoryNote": "完整版本历史待后端接口补齐;当前仅展示工作项最新版本。"
}
}