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

+30 -1
View File
@@ -2946,6 +2946,8 @@
"semanticDiffReview": "This version has semantic changes. Confirm that you reviewed them.",
"unknownIssue": "The publish check found an issue that needs attention.",
"xfaFieldMappingsRequired": "Final value mappings are incomplete.",
"xfaRequiredPathCoverageIncomplete": "Required or auto-create-key Schema fields are missing XFA path mappings: {fields}",
"xfaRequiredPathFieldsUnknown": "(no field details returned)",
"xfaVisualCoverageInsufficient": "Visual binding coverage is below 100%.",
"xfaEvidenceRetentionInsufficient": "evidence_only retention is below 100%.",
"xfaMirrorConsistencyInsufficient": "Mirror formal-field consistency is below 100%.",
@@ -3550,8 +3552,28 @@
"coordinateEvidenceMissing": "{sample}: table or page coordinate evidence is missing, so the blind test cannot run.",
"xfaEvidenceMissing": "{sample}: usable XFA structure-analysis evidence is missing, so the blind test cannot run.",
"rowsMismatch": "{sample}: reread order lines differ from the human truth.",
"extractionFailed": "{sample}: formal extraction failed ({reason}).",
"ocrDatasetsMismatchLegacy": "{sample}: a legacy gate treated OCR↔datasets mismatch as a hard failure; datasets is now authoritative—rerun. See diagnostics below for fields.",
"visualMetricLegacy": "{sample}: a legacy gate treated {metric} as a hard failure; XFA now judges by datasets truth—rerun. See metrics and soft diagnostics.",
"unknown": "{sample}: the blind test did not pass; check the raw diagnostic code below."
},
"softDiagnostic": {
"title": "Cross-check diagnostics (non-blocking)",
"hint": "For XFA, datasets is the formal value source; OCR/visual metrics are side-by-side only. Differences below do not block a datasets-based blind-test pass.",
"ocrDatasetsMismatch": "{sample}: OCR vs datasets mismatched fields ({count}): {fields}",
"ocrDatasetsFieldDiff": "{sample} · {field}: OCR \"{ocr}\" ≠ datasets \"{datasets}\"",
"ocrDatasetsFieldDiffInline": "{field}: OCR \"{ocr}\" ≠ datasets \"{datasets}\"",
"previewOcrMismatch": "OCR vs datasets mismatch ({count}): {fields}. Formal values still follow datasets; you may continue review.",
"previewOcrMismatchIntro": "OCR vs datasets mismatch ({count}). Formal values still follow datasets; continue review:",
"visualMetricSoft": "{sample}: {metric} is {rate} (diagnostic only, non-blocking)",
"metric": {
"visual_coverage_soft": "visual positioning coverage",
"mirror_consistency_soft": "mirror consistency",
"evidence_retention_soft": "evidence_only retention"
},
"fieldsUnknown": "(no field codes returned)",
"emptyValue": "(empty)"
},
"run": "Run",
"approve": "Approve"
},
@@ -3575,6 +3597,7 @@
"headerTrainingSample": "Training sample bound",
"headerAddTrainingSample": "Bind sample",
"headerSaveDraft": "Save",
"noUnsavedChanges": "No unsaved changes",
"headerValidate": "Validate",
"headerReturnToLibrary": "Templates",
"invalidDefinitionPath": "Template configuration is invalid: {path}",
@@ -3589,6 +3612,7 @@
"xfaVisualReadbackUnavailable": "XFA visual readback failed; the value box was kept. Continue binding the datasets field.",
"orderFieldValueReading": "Reading",
"orderFieldValueFailed": "Read failed",
"orderFieldDuplicatePreview": "Order field {fields} is bound more than once; remove the extra box before reading sample values",
"currentSampleValue": "Current sample value",
"visualEvidenceSource": "Visual evidence: {source}",
"visualEvidenceSources": {
@@ -4025,7 +4049,9 @@
"datasourceField": "Data source field",
"splitRuleField": "Split rules",
"datasetsPath": "Datasets path",
"pickDatasetsPath": "Pick datasets path",
"pickDatasetsPath": "Choose data source",
"pickDatasetsPathTitle": "Choose data source field",
"pickDatasetsPathHint": "Select a leaf path or split rule to bind the current field. Sample values are shown in full for mapping.",
"datasetsSampleValue": "Datasets sample value",
"lineInheritsHeaderHint": "This is a line field: the selected Header value will be inherited by every line.",
"previewStatusTitle": "Preview & OCR status",
@@ -4201,6 +4227,9 @@
"validationRequired": "Required",
"validationSegmentCode": "Must be lowercase snake_case starting with a letter",
"validationMappedTarget": "Mapped handling requires a target field",
"ruleAlreadyMapped": "This rule is already mapped to another Schema field; change the target in the split editor or unbind first",
"applyNeedsSelectedField": "Select a Schema field on the canvas first, then click a split rule",
"splitVisualReuseHint": "Multiple fields from one source share one visual box; map targets in split rules instead of drawing duplicate boxes",
"validationPrefixValue": "Prefix label is required",
"validationPrefixSeparators": "At least one separator is required",
"validationRegexPattern": "Regex pattern is required",