feat(shipping-notice): 添加订单文档 Profile 的样本和审计管理功能,支持样本绑定、审计记录和模板预览,增强文档模板的管理和验证能力

This commit is contained in:
hugo committed 2026-07-27 09:11:25 +08:00
1 parent d62f5107b2
commit 93777fd6df
63 files changed
+9707 -1491

No files matched your search

+140 -6
View File
@@ -79,6 +79,9 @@
"eyebrow": "Order field template",
"title": "Order Template Configuration",
"subtitle": "All EML, PDF, and Word orders share one published field contract. Published versions are immutable.",
"profileImpactTitle": "Confirm publication impact",
"profileImpactSummary": "{profile_count} profiles are involved: {breaking_count} published profiles have breaking impacts, {review_required_count} require review, and {draft_impact_count} drafts are affected.",
"confirmImpactPublish": "Confirm impact and publish",
"fulfillmentEyebrow": "Shipping fulfillment governance",
"fulfillmentTitle": "Field capabilities and shipping policy",
"fulfillmentHint": "Only compatible fields from the published Schema can bind to controlled capabilities. Frozen orders retain the full policy snapshot.",
@@ -96,10 +99,10 @@
"fulfillmentPublished": "Fulfillment policy published; frozen orders are not reinterpreted",
"fulfillmentDraftHint": "Policy draft V{version} has locked field bindings. Confirm and publish it.",
"fulfillmentCapability": {
"fulfillment.reservation_identity": "Reservation identity",
"fulfillment.part_number": "Part number",
"fulfillment.quantity": "Shipping quantity",
"routing.inventory_source_hint": "Inventory source routing hint"
"reservationIdentity": "Reservation number",
"partNumber": "Internal part number",
"quantity": "Quantity",
"inventorySourceHint": "Inventory source hint"
},
"schemaName": "Template name",
"description": "Description",
@@ -308,6 +311,12 @@
"enumOptions": "Enum options (comma separated)",
"validators": "Content validation",
"sourcePrecedence": "Recognizable content sources",
"coordinateSources": "Coordinate evidence sources",
"coordinateSourcesHint": "Used by order document profile regions. Selecting both only authorizes this field for either template type; it does not merge or vote on coordinates in one extraction. Use PDF coordinates for text-layer PDFs and OCR coordinates for scans.",
"coordinateSourceOption": {
"pdf_coordinate": "PDF coordinates",
"ocr_coordinate": "OCR coordinates"
},
"extractionInstruction": "Recognition guidance (optional)",
"extractionInstructionPlaceholder": "For example: Prefer the manufacturer part number in the order item table",
"advancedRules": "Advanced recognition rules",
@@ -2501,7 +2510,11 @@
"reconstructTable": "Rebuild table candidate",
"confirmReconstruction": "I reviewed the rebuilt grid and allow it to be used for this profile draft",
"reconstructionPreview": "Logical line reconstruction (continuations merged; manual review required)",
"rowRole": { "header": "Field mapping", "data": "Active line", "deleted": "Deleted" },
"rowRole": {
"header": "Field mapping",
"data": "Active line",
"deleted": "Deleted"
},
"sourceRows": "Source visual rows: {rows}",
"rebuildAfterFieldMapping": "Field mappings changed. Rebuild the candidate again and review the final logical lines.",
"multiSubrowEnabled": "Each line item spans multiple physical rows",
@@ -2567,6 +2580,13 @@
"code": "Profile code",
"name": "Profile name",
"schema": "Order schema version",
"migrateSchema": "Migrate field version",
"migrateSchemaConfirm": "This profile has {count} fields requiring migration. Coordinates will be preserved and an unbound draft will be created. Continue?",
"migrateSchemaCreated": "Field migration draft created",
"migrationNeedsReview": "Migration draft requires blind-test review",
"migrationTitle": "Field version migration",
"unbindField": "Unbind and preserve coordinates",
"createMigrationDraft": "Create migration draft",
"headerRow": "Last header row",
"dataRow": "First data row",
"multiRowHeaderMapping": "Multi-row header mapping",
@@ -2599,6 +2619,120 @@
"deleteConfirm": "Delete this profile draft?",
"retireConfirm": "Retire the published profile? New runs will no longer use it.",
"duplicateTargets": "A target field cannot be mapped from multiple columns: {fields}",
"loadFailed": "Failed to load order document profiles"
"loadFailed": "Failed to load order document profiles",
"candidateCount": "{count} candidates · {status}",
"candidateItem": "Candidate {count}",
"sourceRows": "Source physical rows: {rows}",
"emptyCandidateValue": "No value detected",
"noCandidateRows": "No valid item was detected. Check the physical lines, line_no, and field regions.",
"blindTest": {
"title": "Blind test",
"samples": "Samples: {count} · {status}",
"notRun": "not run",
"expectedRows": "Human truth (JSON array)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsHint": "Enter at least one human-confirmed line truth; do not copy the candidate output.",
"expectedRowsInvalid": "Truth must be a JSON array containing at least one non-empty line object.",
"trainingAdded": "Current training sample bound",
"addTrainingSample": "Add training sample",
"addCurrentSample": "Add current blind sample",
"run": "Run",
"approve": "Approve"
},
"workbench": {
"intro": "Drag evidence regions on a controlled document page; saved definitions contain no HTML or storage URL.",
"openCanvas": "Create draft and open canvas",
"loadingPage": "Loading page...",
"canvasZoom": "Page zoom",
"zoomOut": "Zoom out",
"zoomIn": "Zoom in",
"fitPage": "Fit page",
"hideAnnotationTools": "Hide annotation tools",
"showAnnotationTools": "Show annotation tools",
"resizeHandle": "Resize region ({direction})",
"autoSuggest": "Auto-mark",
"autoSuggestRunning": "Auto-marking",
"autoSuggestCheckingCoordinates": "Checking character coordinates...",
"autoSuggestOcr": "Coordinates are missing; generating OCR coordinate evidence...",
"autoSuggestAnalyzing": "Analyzing physical rows and column boundaries...",
"autoSuggestApplying": "Generating review markers...",
"autoSuggestComplete": "Auto-marking completed. Review the results.",
"autoSuggestNoRows": "No item rows were detected for marking.",
"autoSuggestFailed": "Auto-marking failed. See the reason below.",
"schemaCompatible": "Field-compatible; can be inherited automatically",
"schemaBreaking": "Breaking field changes require migration",
"regionSuggestionReady": "Review the generated row and column marks, then confirm field bindings before saving.",
"unboundColumn": "Unbound column {count}",
"drawHeader": "Draw header",
"drawLine": "Draw physical line",
"drawField": "Draw field",
"drawExclusion": "Draw exclusion",
"duplicateRegion": "Duplicate region",
"duplicateRegionShortcut": "Duplicate region (Ctrl+D)",
"uploadSample": "Upload sample",
"deleteSample": "Delete sample",
"sampleQueued": "Sample uploaded and queued for parsing. It will appear in the sample list when ready.",
"deleteSampleConfirm": "Delete template sample {name}? Only samples not bound to a profile or blind test can be deleted.",
"regionGuideTitle": "Annotation guide",
"regionGuideHeader": "Header: draw only the row containing column names such as ITEM NO, MATERIAL NO, and QUANTITY.",
"regionGuideLine": "Physical line: draw the vertical extent of one complete item; for multi-line items, draw each fixed sub-row.",
"regionGuideField": "Field: within a physical line, draw only the actual column, then bind its Schema field on the right.",
"regionGuideExclusion": "Exclusion: draw deleted markers, totals, footers, and other content that must not become item data.",
"selectBoundPdf": "Select a bound PDF sample to load one page.",
"canvasUnavailable": "The controlled PDF canvas is temporarily unavailable. Your draft is saved; recognized tables and candidate results remain available for review.",
"retryCanvas": "Retry canvas",
"recognizedTable": "Recognized table",
"noRecognizedTable": "No recognized table is available for this page.",
"bindableFields": "Bindable fields",
"noBindableFields": "The current schema has no bindable fields.",
"review": "Review",
"noIssues": "No blocking configuration issue.",
"currentConfiguration": "Current configuration",
"undo": "Undo",
"redo": "Redo",
"header": "Header",
"matchCurrentHeader": "Match current header",
"matchAllHeaders": "Match all headers",
"confirmHeaderBinding": "Confirm “{text}” as {field}",
"headerBindingUnmapped": "“{text}” does not uniquely match a Schema field. Select one manually.",
"applyHeaderBinding": "Apply header column suggestion: {field}",
"previewIdle": "Waiting for preview",
"previewUpdating": "Updating candidates",
"previewReady": "Candidates updated",
"previewFailed": "Candidate update failed. Adjust bound fields or try again later.",
"coordinateEvidenceUnavailable": "OCR coordinate recovery was attempted, but this sample still cannot produce character-coordinate evidence and cannot be annotated by coordinates.",
"mainLine": "Main line",
"line": "Physical line",
"field": "Field",
"exclusion": "Exclusion",
"label": "Label",
"schemaField": "Schema field",
"lineLayout": "Physical line",
"selectField": "Select field",
"dragHint": "Drag the selected region or its lower-right edge; numeric coordinates stay hidden.",
"deleteRegion": "Delete region",
"deleteRegionShortcut": "Delete region (Delete)",
"chooseRegion": "Choose a region or add one to begin annotation.",
"localCandidate": "Local candidate",
"rowCount": "{count} rows · {status}",
"previewDelay": "Updates 400ms after a region change.",
"leaveConfirm": "You have unsaved region changes. Leave this page?",
"pageNavigation": "Document pages",
"page": "Page {page}",
"regionLabels": {
"header": "Header {count}",
"header_field": "Header field {count}",
"line": "Physical line {count}",
"field": "Field {count}",
"exclusion": "Exclusion {count}"
},
"issues": {
"sample": "Select a controlled sample document.",
"table": "Select a table on the current page.",
"line": "Add at least one main line layout.",
"field": "Bind at least one line field.",
"coordinateField": "The current order schema has no enabled line field authorized for PDF-coordinate evidence. Authorize one in the order field template before creating a profile."
}
}
}
}