feat(shipping-notice): 增强发货通知与审计功能,支持敏感数据控制与哈希链校验
- 更新发货通知工具 API,剥离不可信的操作人身份字段,确保审计安全 - 引入审计事件的哈希链校验机制,支持数据完整性验证 - 增强订单抽取与审计功能,支持敏感快照的访问控制 - 更新相关模型与服务,确保新功能的完整性与可追溯性 - 完善文档与代码注释,反映新的业务逻辑与审计要求
This commit is contained in:
1 parent
95cdfe66b0
commit
d0fe084999
225 files changed
+25923
-6653
No files matched your search
@@ -40,8 +40,7 @@
|
||||
"shippingIdentityRules": "客户识别",
|
||||
"shippingOrderExtractionRuns": "识别任务",
|
||||
"shippingOrderDocumentProfiles": "文档模板",
|
||||
"shippingAudit": "运行与审计中心",
|
||||
"shippingReviewSupervision": "复核监管台"
|
||||
"shippingAudit": "运行与审计中心"
|
||||
},
|
||||
"shippingFieldAssets": {
|
||||
"title": "字段资产库",
|
||||
@@ -698,6 +697,38 @@
|
||||
"selectAdoptedField": "请从左侧选择已采用字段",
|
||||
"adoptFieldHint": "先在左侧勾选要纳入契约的字段,再编辑版本规则。",
|
||||
"adoptedFieldEditingHint": "范围/类型由资产锁定;此处仅编辑版本级识别规则。",
|
||||
"effectiveReservationGate": "组合门禁:每条明细必须存在有效 Reservation(行优先,回退订单头)。",
|
||||
"schemaPolicyGroupTitle": "Schema 级策略",
|
||||
"schemaPolicyGroupHint": "自动建单与字段派生作用于整份 Schema 版本;改动仅写入草稿,发布后生效。",
|
||||
"schemaPolicyDraftBadge": "草稿可编辑 · 待保存/发布",
|
||||
"schemaPolicyPublishedBadge": "仅查看已发布版本",
|
||||
"derivationRulesTitle": "字段派生规则(当前 Schema 草稿)",
|
||||
"derivationRulesHint": "仅允许同行明细字段派生;发布后规则随 Schema 版本冻结。",
|
||||
"derivationRulesNote": "首期仅支持 copy_if_empty:目标为空时从客户 PO 项次复制到内部项次。",
|
||||
"derivationEnabled": "启用",
|
||||
"derivationSource": "来源字段",
|
||||
"derivationTarget": "目标字段",
|
||||
"derivationStrategy": "策略",
|
||||
"derivationStrategyCopyIfEmpty": "仅为空复制",
|
||||
"derivationSimulate": "样本模拟",
|
||||
"derivationSimulateTitle": "派生规则模拟",
|
||||
"derivationSimulateSample": "样本 JSON(明细行数组)",
|
||||
"derivationSimulateModeHistory": "历史 Extraction 样本",
|
||||
"derivationSimulateModeInline": "手工 JSON",
|
||||
"derivationSimulateHistorySample": "选择可追溯样本",
|
||||
"derivationSimulateSamplesLoading": "正在加载样本…",
|
||||
"derivationSimulateSamplesEmpty": "暂无可用历史样本",
|
||||
"derivationSimulateSampleOption": "Extraction #{id} · {lines} 行 · {status}",
|
||||
"derivationSimulateSampleRequired": "请选择历史样本",
|
||||
"derivationSimulateRun": "运行模拟",
|
||||
"derivationSimulateSampleInvalid": "样本 JSON 必须是对象数组",
|
||||
"derivationSimulateSummary": "规则版本 V{version} · 校验和 {checksum}… · 已派生 {derived} · 跳过 {skipped}",
|
||||
"derivationSimulateNoMutate": "本操作不会创建或修改订单。",
|
||||
"derivationBefore": "派生前内部项次",
|
||||
"derivationAfter": "派生后内部项次",
|
||||
"derivationResult": "结果",
|
||||
"derivationStatusDerived": "已派生",
|
||||
"derivationStatusSkipped": "跳过:{reason}",
|
||||
"viewFieldImpact": "影响分析",
|
||||
"assetIdentity": "资产身份(只读)",
|
||||
"assetKindLabel": "资产类型",
|
||||
@@ -897,7 +928,8 @@
|
||||
"business_no": "正式业务单号",
|
||||
"warehouse_id": "货代仓库",
|
||||
"inventory_source_code": "库存源编码",
|
||||
"export_date": "导出日期"
|
||||
"export_date": "导出日期",
|
||||
"export_sequence": "导出行序号"
|
||||
},
|
||||
"orderFieldOptionsEmpty": "当前没有已发布的订单模板字段;请先完成订单模板配置并发布版本,随后此处会显示可选择的来源字段。",
|
||||
"constantValue": "常量值",
|
||||
@@ -2928,6 +2960,8 @@
|
||||
"uploading": "正在上传",
|
||||
"sampleParsing": "正在解析,完成后会自动选中。",
|
||||
"sampleParseFailed": "解析失败,请重新上传或选择已有样本。",
|
||||
"sampleLayoutCoordinatesMissing": "模板布局解析失败:未取得表格单元格坐标,请更换样本或检查 MinerU 输出。",
|
||||
"sampleLayoutSnapshotTooLarge": "模板布局解析失败:解析快照超出大小限制,请使用页数更少或内容更精简的样本。",
|
||||
"sampleReady": "样本已解析并自动选中,可继续下一步。",
|
||||
"sampleSelected": "当前样本",
|
||||
"reuseSample": "复用已有样本",
|
||||
@@ -2962,7 +2996,7 @@
|
||||
"sourceRows": "来源物理行:{rows}",
|
||||
"rebuildAfterFieldMapping": "字段映射已变化,请再次点击“重建表格候选”并审核最终逻辑明细。",
|
||||
"multiSubrowEnabled": "此模板的一条明细由多行组成",
|
||||
"multiSubrowHint": "第 1 行必须将行号列映射为 line_no;可按实际版式继续增加第 2、3、4…行,每行均可使用独立且相互重叠的列边界。",
|
||||
"multiSubrowHint": "第 1 行必须将起行锚点列映射为 customer_po_line_no(或可配置的起行字段);可按实际版式继续增加第 2、3、4…行,每行均可使用独立且相互重叠的列边界。",
|
||||
"subrowColumn": "第 {index} 列",
|
||||
"firstSubrow": "第 1 行(新明细起始)",
|
||||
"followingSubrow": "第 {index} 行",
|
||||
@@ -2972,7 +3006,9 @@
|
||||
"layoutSuggestionReady": "已生成行版式建议,请确认各列字段后重建表格候选。",
|
||||
"columnBoundariesAdvanced": "列边界(高级校准,通常无需修改)",
|
||||
"columnSamples": "示例:{samples}",
|
||||
"lineNoRequired": "第 1 行必须将订单行号所在列映射为 line_no。",
|
||||
"lineNoRequired": "第 1 行必须将起行锚点列(默认 customer_po_line_no)映射到对应字段。",
|
||||
"lineStartAnchorRequired": "第 1 行必须绑定配置的起行锚点字段(默认 customer_po_line_no)。",
|
||||
"lineStartAnchorField": "明细起行锚点",
|
||||
"layoutRow": "物理行版式",
|
||||
"fieldMapping": "列示例与字段映射",
|
||||
"rowActions": "操作",
|
||||
@@ -2980,7 +3016,8 @@
|
||||
"livePreview": "实时候选",
|
||||
"livePreviewUpdating": "正在按当前映射更新…",
|
||||
"livePreviewReady": "已按当前映射更新",
|
||||
"livePreviewWaitingLineNo": "请先将第 1 行的订单行号列映射为 line_no",
|
||||
"livePreviewWaitingLineNo": "请先将第 1 行的起行锚点列映射为 customer_po_line_no",
|
||||
"livePreviewWaitingLineStart": "请先将第 1 行的起行锚点列映射为配置字段",
|
||||
"livePreviewFailed": "自动更新失败,可点击“重建表格候选”查看错误",
|
||||
"livePreviewEmpty": "修改字段或列边界后,候选结果将在此自动更新",
|
||||
"confirmPreview": "确认候选",
|
||||
@@ -3260,6 +3297,25 @@
|
||||
"publishedAt": "发布时间:{time}",
|
||||
"publish": "发布",
|
||||
"newVersion": "创建新版本",
|
||||
"schemaMigration": {
|
||||
"listAction": "迁移 Schema",
|
||||
"versionMatched": "Schema v{version}",
|
||||
"versionMismatch": "已绑定 v{bound} · 当前 v{current}",
|
||||
"action": "迁移至 Schema v{version}",
|
||||
"title": "迁移模板至当前 Schema",
|
||||
"description": "将模板从 Schema v{from} 创建为基于 Schema v{to} 的新草稿。",
|
||||
"revalidation": "会复制标注和训练样本;盲测、验证和发布资格不会复制,必须重新验证后发布。",
|
||||
"lineStartRequired": "起行字段“{field}”不能解绑;请在迁移决议中选择兼容替换字段。",
|
||||
"duplicateSchemaField": "当前 Schema 的字段编码“{field}”重复({existingScope} 与 {duplicateScope})。请先创建并发布新的 Schema 版本,为两个字段使用不同编码后再迁移模板。",
|
||||
"invalidPath": "无效配置位置:{path}",
|
||||
"reason": "变更原因:{reason}",
|
||||
"resolution": "字段处理方式",
|
||||
"unbind": "解绑并保留坐标,稍后重新绑定",
|
||||
"noBreakingChanges": "未发现需要逐项处理的字段,稳定字段绑定将自动保留。",
|
||||
"cancel": "取消",
|
||||
"confirm": "创建迁移草稿",
|
||||
"created": "迁移草稿已创建,请完成字段确认和重新验证"
|
||||
},
|
||||
"retire": "退役",
|
||||
"created": "模板草稿已创建",
|
||||
"updated": "模板草稿已更新",
|
||||
@@ -3279,7 +3335,7 @@
|
||||
"candidateCount": "{count} 条候选 · {status}",
|
||||
"candidateItem": "候选 {count}",
|
||||
"emptyCandidateValue": "未识别到值",
|
||||
"noCandidateRows": "当前标注没有识别到有效明细,请检查物理行、line_no 和字段范围。",
|
||||
"noCandidateRows": "当前标注没有识别到有效明细,请检查物理行、起行锚点(customer_po_line_no)和字段范围。",
|
||||
"blindTest": {
|
||||
"title": "盲测",
|
||||
"gateTitle": "发布前盲测",
|
||||
@@ -3298,7 +3354,7 @@
|
||||
"loadIndependentSamples": "加载可选样本",
|
||||
"loadingIndependentSamples": "正在加载可选样本…",
|
||||
"loadIndependentSamplesTimedOut": "加载可选样本超时,请确认后端服务正常后重试。",
|
||||
"loadIndependentSamplesHint": "需要新增盲测样本时再加载候选,避免打开页面等待历史样本扫描。",
|
||||
"uploadSample": "上传样本",
|
||||
"selectSamplePlaceholder": "请选择未参与当前模板标注的订单",
|
||||
"sampleOption": "{filename} · P{page} · 表 {table} · {rows} 行 × {columns} 列 · {header}",
|
||||
"noIndependentSamples": "没有可用的独立样本;请先上传并完成解析另一份同类订单。",
|
||||
@@ -3309,7 +3365,7 @@
|
||||
"confirmReview": "确认复核并加入盲测",
|
||||
"correctionInvalid": "明细更正值必须是 JSON 字段对象。",
|
||||
"expectedRows": "人工真值(JSON 数组)",
|
||||
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
|
||||
"expectedRowsPlaceholder": "[{\"customer_po_line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
|
||||
"expectedRowsHint": "请输入至少一条人工确认的明细真值;不能复制候选结果。",
|
||||
"expectedRowsInvalid": "真值必须是至少包含一条非空明细对象的 JSON 数组。",
|
||||
"expectedOrderFields": "订单字段真值(JSON 对象)",
|
||||
@@ -3325,6 +3381,7 @@
|
||||
"removeSample": "移除样本",
|
||||
"sampleRemoved": "盲测样本已移除",
|
||||
"addCurrentSample": "添加当前盲测样本",
|
||||
"previewAndReview": "预览并复核",
|
||||
"backToValidation": "返回验证",
|
||||
"goPublishCheck": "进入发布检查",
|
||||
"latestResult": "最近执行:{status}({passed}/{count} 通过)",
|
||||
@@ -3360,6 +3417,14 @@
|
||||
"exportLocalDraft": "导出本地草稿",
|
||||
"recoverLease": "重新获取租约",
|
||||
"takeOverLease": "确认接管租约",
|
||||
"headerExport": "导出",
|
||||
"headerRecoverLease": "获取租约",
|
||||
"headerTakeOverLease": "接管租约",
|
||||
"headerTrainingSample": "训练样本已绑定",
|
||||
"headerAddTrainingSample": "绑定样本",
|
||||
"headerSaveDraft": "保存",
|
||||
"headerValidate": "验证",
|
||||
"headerReturnToLibrary": "返回模板",
|
||||
"invalidDefinitionPath": "模板配置无效:{path}",
|
||||
"suggestionReadyForDecision": "建议已生成,请确认决定",
|
||||
"acceptSuggestion": "接受",
|
||||
@@ -3461,7 +3526,7 @@
|
||||
"documentMatchAnchorTool": "匹配锚点",
|
||||
"documentMatchAnchorLabel": "匹配锚点标签",
|
||||
"documentMatchAnchorValue": "匹配锚点值",
|
||||
"documentMatchAnchorHint": "从左侧工具框选标签和固定值;系统只使用框内文字匹配,不会命中备注中的相同文字。",
|
||||
"documentMatchAnchorHint": "框选静态文字作为匹配锚点。",
|
||||
"documentMatchAnchorEmpty": "请使用左侧“匹配锚点”工具,先框选标签,再框选固定值。",
|
||||
"documentMatchAnchorTextMissing": "框选区域未识别到文字;请调整框选范围后重试。",
|
||||
"orderFieldAnchorNext": "已读取字段标签,请框选字段值。",
|
||||
@@ -3521,13 +3586,14 @@
|
||||
"line": "请至少添加一个主行布局。",
|
||||
"field": "请至少绑定一个明细字段。",
|
||||
"coordinateField": "当前订单字段版本没有授权 PDF 坐标来源的启用明细字段,请先在订单字段模板中授权后再创建。",
|
||||
"orderFieldStopAnchor": "多行订单字段必须填写结束标签。"
|
||||
"orderFieldStopAnchor": "多行订单字段必须填写结束标签。",
|
||||
"lineStartAnchorRequired": "主行已绑定字段时,必须包含配置的起行锚点(默认 customer_po_line_no)。"
|
||||
}
|
||||
}
|
||||
},
|
||||
"shippingAudit": {
|
||||
"title": "运行与审计",
|
||||
"subtitle": "按时间、操作者、Run/Task、事件类型查询货代统一审计;详情仅展示白名单前后差异,导出受控且留痕。",
|
||||
"subtitle": "按 Workflow / Item / Run / PDF / Case / Task、操作者、动作、结果与时间追溯全链审计;敏感快照受权限裁剪,导出与哈希校验留痕。",
|
||||
"refresh": "刷新",
|
||||
"export": "导出 CSV",
|
||||
"exporting": "正在导出...",
|
||||
@@ -3554,15 +3620,16 @@
|
||||
"q": "编号检索",
|
||||
"all": "全部",
|
||||
"actorId": "操作者 ID",
|
||||
"documentId": "文档 ID",
|
||||
"documentId": "PDF/文档 ID",
|
||||
"conversationId": "会话 ID",
|
||||
"sessionItemId": "工作项编号",
|
||||
"reviewCaseNo": "复核 Case",
|
||||
"ownerUserId": "属主用户 ID",
|
||||
"requestId": "request_id",
|
||||
"result": "结果",
|
||||
"createdFrom": "开始时间",
|
||||
"createdTo": "结束时间"
|
||||
"createdTo": "结束时间",
|
||||
"workflowId": "Workflow",
|
||||
"workflowItemId": "Workflow Item"
|
||||
},
|
||||
"columns": {
|
||||
"time": "时间",
|
||||
@@ -3572,52 +3639,23 @@
|
||||
"task": "Task",
|
||||
"result": "结果",
|
||||
"conversation": "会话",
|
||||
"sessionItem": "工作项",
|
||||
"reviewCase": "Case"
|
||||
}
|
||||
},
|
||||
"shippingReviewSupervision": {
|
||||
"title": "复核监管台",
|
||||
"subtitle": "跨用户查看会话 PDF 工作项;终止或撤销确认须填写理由并二次确认。",
|
||||
"refresh": "刷新",
|
||||
"apply": "应用筛选",
|
||||
"loading": "正在加载...",
|
||||
"empty": "暂无工作项",
|
||||
"loadFailed": "加载监管列表失败",
|
||||
"actionFailed": "操作失败,请稍后重试",
|
||||
"terminate": "终止",
|
||||
"revoke": "撤销确认",
|
||||
"terminateTitle": "终止工作项",
|
||||
"revokeTitle": "撤销确认",
|
||||
"terminateImpact": "将强制关闭工作项 {itemNo},属主将无法继续复核。",
|
||||
"revokeImpact": "将撤销工作项 {itemNo} 的确认结果(24 小时内且未匹配库存)。",
|
||||
"reasonLabel": "操作理由(必填)",
|
||||
"reasonRequired": "请填写操作理由",
|
||||
"confirmTerminate": "我确认终止此工作项(CONFIRM_TERMINATE)",
|
||||
"confirmRevoke": "我确认撤销此确认结果(CONFIRM_REVOKE)",
|
||||
"confirmRequired": "请勾选确认后再提交",
|
||||
"submit": "确认提交",
|
||||
"submitting": "提交中...",
|
||||
"terminateSuccess": "工作项已终止",
|
||||
"revokeSuccess": "确认已撤销",
|
||||
"total": "共 {count} 条",
|
||||
"previous": "上一页",
|
||||
"next": "下一页",
|
||||
"filters": {
|
||||
"lifecycleStatus": "生命周期",
|
||||
"ownerUserId": "属主用户 ID",
|
||||
"conversationId": "会话 ID",
|
||||
"q": "编号检索",
|
||||
"all": "全部"
|
||||
"reviewCase": "Case",
|
||||
"workflow": "Workflow",
|
||||
"workflowItem": "Item"
|
||||
},
|
||||
"columns": {
|
||||
"itemNo": "工作项",
|
||||
"owner": "属主",
|
||||
"conversation": "会话",
|
||||
"document": "当前 PDF",
|
||||
"status": "状态",
|
||||
"updated": "更新时间",
|
||||
"actions": "操作"
|
||||
}
|
||||
"sensitiveRedacted": "当前账号无敏感读权限,快照与 Diff 已脱敏。",
|
||||
"verifyChain": "校验哈希链",
|
||||
"verifying": "校验中...",
|
||||
"verifyFailed": "哈希链校验失败",
|
||||
"verifyOk": "通过",
|
||||
"verifyFailedShort": "失败",
|
||||
"verifySummary": "哈希校验:{ok};已检 {checked} 链,失败 {failed} 链",
|
||||
"loadChain": "关联链追溯",
|
||||
"chainSeedRequired": "关联链至少需要 Workflow / Item / Run / PDF / Case / Task 之一",
|
||||
"chainFailed": "关联链查询失败",
|
||||
"chainSummary": "关联链共 {total} 条{truncated}",
|
||||
"chainTruncated": "(已截断)",
|
||||
"eventHash": "事件哈希",
|
||||
"previousEventHash": "前序哈希"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user