feat(shipping-notice): 增强订单文档 Profile 管理功能,新增复核与草稿管理
- 添加订单复核相关模型及 API,支持复核案例的创建、更新和确认 - 实现复核草稿的管理功能,允许用户对复核内容进行编辑和保存 - 引入复核事件审计,确保复核过程的可追溯性 - 更新数据库模型以支持复核和草稿的关系管理 - 完善相关服务逻辑,确保复核与草稿的状态管理和数据一致性 - 增强文档模板的管理能力,支持更复杂的业务场景
This commit is contained in:
1 parent
61ac6403c4
commit
b7307fc573
147 files changed
+15108
-1522
No files matched your search
@@ -2534,8 +2534,30 @@
|
||||
"enterOneField": "Please enter at least one field to update",
|
||||
"batchDeleteResult": "Deleted {count} users."
|
||||
},
|
||||
"orderProfileValidation": {
|
||||
"eyebrow": "DRAFT VALIDATION",
|
||||
"title": "Validate Order Document Profile",
|
||||
"description": "Run summaries exclude PDFs, object-storage addresses, and blind-test ground truth. Historical runs become stale after a draft change.",
|
||||
"backToEditor": "Back to editor",
|
||||
"instantCheck": "Run instant check",
|
||||
"currentSample": "Run current sample",
|
||||
"loading": "Loading validation runs...",
|
||||
"run": "Run",
|
||||
"type": "Type",
|
||||
"status": "Status",
|
||||
"summary": "Safe summary",
|
||||
"time": "Created",
|
||||
"empty": "No validation runs yet.",
|
||||
"completed": "Validation run completed.",
|
||||
"failed": "Validation run failed."
|
||||
},
|
||||
"orderProfilePublishCheck": {
|
||||
"eyebrow": "PUBLISH GATE", "title": "Confirm Order Document Profile Publication", "description": "The report freezes the draft version and becomes invalid when the draft changes.", "back": "Back", "selectRun": "Select a passing validation run", "noRun": "The current draft has no passing validation run for publication.", "create": "Create publish-check report", "report": "Report {reportNo}", "status": "Status: {status} · Revision {revision}", "blocking": "Blocking items", "noBlocking": "No blocking items.", "warnings": "Warnings (confirm each item)", "confirm": "Confirm publication", "failed": "Publish check failed."
|
||||
},
|
||||
"shippingOrderProfiles": {
|
||||
"title": "Order Document Profiles",
|
||||
"library": { "title": "Order document templates", "subtitle": "Manage template families, drafts, published versions, and historical views.", "create": "Create template", "search": "Search templates", "status": "Current status", "actions": "Actions", "draft": "Draft", "published": "Published v{version}", "retired": "Retired", "loading": "Loading templates...", "empty": "No templates found.", "loadFailed": "Failed to load templates.", "createFailed": "Failed to create the new version draft." },
|
||||
"wizard": { "title": "Create order document template", "steps": "Step {step} of 3", "codeHint": "This code is permanent after creation and is used for routing, version grouping, and audit.", "selectSchema": "Select a published schema", "previous": "Back", "next": "Next", "createDraft": "Create draft", "createAndEdit": "Create and start annotation", "incomplete": "Complete the required fields before continuing.", "loadFailed": "Failed to load wizard options.", "uploadFailed": "Failed to upload the template sample.", "sampleHint": "Uploading or selecting a sample does not create a template.", "tableLoadFailed": "Failed to load sample tables.", "tableOption": "Page {page} · {rows} rows · {columns} columns", "noTable": "This sample has no available table. Choose another parsed sample.", "createFailed": "The template draft could not be created. No partial template was kept." },
|
||||
"subtitle": "Configure exact column mappings from MinerU table samples without editing JSON or fingerprints.",
|
||||
"structureBlocked": "This table has a structural error and cannot create a profile. Wait for coordinate-evidence reconstruction and review it; do not repair the raw grid with field mappings.",
|
||||
"reconstructionRequired": "This header contains line data. Confirm column boundaries and rebuild the table first; the result requires manual review.",
|
||||
@@ -2638,6 +2660,209 @@
|
||||
"compositePart": "Composite customer/internal part",
|
||||
"previewEmpty": "Select a sample document and table to preview",
|
||||
"versions": "Profile versions",
|
||||
"versionCenter": {
|
||||
"eyebrow": "Version Center",
|
||||
"backToWorkbench": "Back to Workbench",
|
||||
"continueEditing": "Continue editing",
|
||||
"viewVersion": "View version",
|
||||
"familyVersions": "Version navigation",
|
||||
"loading": "Loading version detail...",
|
||||
"tabsLabel": "Profile version detail tabs",
|
||||
"tabs": {
|
||||
"overview": "Overview",
|
||||
"canvas": "Sample canvas",
|
||||
"diff": "Version diff",
|
||||
"audit": "Audit log",
|
||||
"usage": "Usage"
|
||||
},
|
||||
"tabPlaceholders": {
|
||||
"canvas": "The sample canvas arrives in phase 4 and will remain strictly read-only from frozen evidence.",
|
||||
"diff": "Version diff arrives in phase 5 with a stable server-side semantic diff.",
|
||||
"audit": "Audit log arrives in phase 6. This phase keeps only the detail route and overview.",
|
||||
"usage": "Usage arrives in phase 6. This phase keeps only the detail route and overview."
|
||||
},
|
||||
"diff": {
|
||||
"title": "Semantic version diff",
|
||||
"subtitle": "Only compares structured rule changes inside the same profile family. No document body, object storage address, or blind-test truth is exposed.",
|
||||
"compareTarget": "Compare against",
|
||||
"defaultPrevious": "Previous version by default",
|
||||
"initialVersion": "Initial version (compared with an empty baseline)",
|
||||
"comparedWith": "Comparing with: {target}",
|
||||
"loading": "Loading version diff...",
|
||||
"loadFailed": "Failed to load the version diff",
|
||||
"noChanges": "There is no semantic change to show between these versions.",
|
||||
"rawJson": "View raw JSON snapshots",
|
||||
"beforeSnapshot": "Baseline snapshot",
|
||||
"afterSnapshot": "Current snapshot",
|
||||
"empty": "Empty",
|
||||
"orderChanged": "Order only changed",
|
||||
"addedValues": "Added: {values}",
|
||||
"removedValues": "Removed: {values}",
|
||||
"summary": {
|
||||
"added": "Added {count}",
|
||||
"removed": "Removed {count}",
|
||||
"modified": "Modified {count}",
|
||||
"unchanged": "Unchanged {count}"
|
||||
},
|
||||
"changeType": {
|
||||
"added": "Added",
|
||||
"removed": "Removed",
|
||||
"modified": "Modified",
|
||||
"unchanged": "Unchanged"
|
||||
},
|
||||
"entityType": {
|
||||
"profile_meta": "Profile governance",
|
||||
"document_match": "Document match",
|
||||
"table_region": "Table region",
|
||||
"header_layout": "Header layout",
|
||||
"header_field_region": "Header field region",
|
||||
"line_layout": "Line layout",
|
||||
"line_field_region": "Line field region",
|
||||
"termination_rule": "Termination rule",
|
||||
"exclusion_region": "Exclusion region",
|
||||
"order_field_layout": "Order field layout",
|
||||
"sample_binding": "Sample evidence"
|
||||
}
|
||||
},
|
||||
"audit": {
|
||||
"title": "Audit timeline",
|
||||
"subtitle": "Replay governance actions for this version by request id, event type, actor, and date range.",
|
||||
"eventType": "Event type",
|
||||
"actor": "Actor",
|
||||
"requestId": "Request ID",
|
||||
"createdFrom": "Created from",
|
||||
"createdTo": "Created to",
|
||||
"apply": "Apply",
|
||||
"reset": "Reset",
|
||||
"loading": "Loading audit events...",
|
||||
"loadFailed": "Failed to load audit events",
|
||||
"empty": "No audit event matches the current filters.",
|
||||
"previous": "Previous",
|
||||
"next": "Next"
|
||||
},
|
||||
"usage": {
|
||||
"title": "Actual usage",
|
||||
"subtitle": "Only the latest routing fact of each document unit is shown, with a link to the read-only run audit.",
|
||||
"refresh": "Refresh",
|
||||
"loading": "Loading actual usage...",
|
||||
"loadFailed": "Failed to load actual usage",
|
||||
"empty": "This version has no actual usage yet.",
|
||||
"openDiagnostic": "Open run audit",
|
||||
"previous": "Previous",
|
||||
"next": "Next",
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"columns": {
|
||||
"runNo": "Run no",
|
||||
"document": "Document",
|
||||
"matchStatus": "Match status",
|
||||
"executionStatus": "Execution status",
|
||||
"identityMode": "Match mode",
|
||||
"autoCreateApproved": "Auto completed",
|
||||
"createdAt": "Time",
|
||||
"reasonCodes": "Failure/degrade reasons"
|
||||
},
|
||||
"runStatuses": {
|
||||
"queued": "Queued",
|
||||
"processing": "Processing",
|
||||
"completed": "Completed",
|
||||
"partially_completed": "Partially completed",
|
||||
"review_required": "Review required",
|
||||
"failed": "Failed",
|
||||
"cancelled": "Cancelled"
|
||||
},
|
||||
"matchStatuses": {
|
||||
"unique_match": "Unique match",
|
||||
"no_match": "No match",
|
||||
"ambiguous": "Ambiguous",
|
||||
"layout_drift": "Layout drift",
|
||||
"evidence_insufficient": "Insufficient evidence"
|
||||
},
|
||||
"executionStatuses": {
|
||||
"pending": "Pending",
|
||||
"routing": "Routing",
|
||||
"matching_profile": "Matching profile",
|
||||
"extracting": "Extracting",
|
||||
"merging_supplement": "Merging supplement",
|
||||
"candidate_ready": "Candidate ready",
|
||||
"review_required": "Review required",
|
||||
"failed": "Failed",
|
||||
"cancelled": "Cancelled"
|
||||
},
|
||||
"identityModes": {
|
||||
"direct_profile_id": "Direct foreign-key match",
|
||||
"snapshot_identity_match": "Frozen snapshot match"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"currentDraft": "Current draft",
|
||||
"currentPublished": "Current published",
|
||||
"retired": "Retired"
|
||||
},
|
||||
"schemaVersion": "Schema v",
|
||||
"sampleCount": "Samples {count}",
|
||||
"checksum": "Profile checksum",
|
||||
"schemaChecksum": "Schema checksum",
|
||||
"publishedAt": "Published at",
|
||||
"retiredAt": "Retired at",
|
||||
"definitionStats": "Definition scale",
|
||||
"tableRegions": "Table regions",
|
||||
"headerLayouts": "Header layouts",
|
||||
"lineLayouts": "Line layouts",
|
||||
"orderFieldLayouts": "Order field layouts",
|
||||
"frozenEvidenceTitle": "Frozen evidence",
|
||||
"statusLabel": "Status",
|
||||
"sampleCountPlain": "Sample count",
|
||||
"frozenSampleCount": "Frozen samples",
|
||||
"auditReady": "Audit ready",
|
||||
"readonlyCanvasBadge": "Read-only canvas",
|
||||
"loadingCanvas": "Loading read-only canvas...",
|
||||
"canvasLoadFailed": "Failed to load the read-only canvas",
|
||||
"draftCanvasHint": "Draft versions should continue in the workbench. The detail-page canvas is reserved for frozen-evidence review.",
|
||||
"noReadableSamples": "This version has no annotation/training sample available for the ordinary read-only canvas.",
|
||||
"readonlySample": "Read-only sample",
|
||||
"sampleFrozenEvidenceMissing": "This sample does not have complete frozen evidence. The system will not fall back to the current document or latest layout.",
|
||||
"frozenEvidencePanelTitle": "Frozen evidence panel",
|
||||
"selectSampleHint": "Select a frozen sample to inspect its evidence.",
|
||||
"sampleFile": "Sample file",
|
||||
"layoutVersionId": "Layout version ID",
|
||||
"evidenceFrozenAt": "Frozen at",
|
||||
"pageCountPlain": "Page count",
|
||||
"parserIdentity": "Parser identity",
|
||||
"parserVersionTitle": "Parser version",
|
||||
"frozenTableId": "Frozen table ID",
|
||||
"frozenPageNo": "Frozen page",
|
||||
"frozenRowCount": "Frozen rows",
|
||||
"layoutChecksumTitle": "Layout checksum",
|
||||
"contentHashTitle": "Content hash",
|
||||
"regionSummaryTitle": "Region summary",
|
||||
"selectRegionHint": "Click a region on the canvas to inspect its binding summary.",
|
||||
"regionLabelTitle": "Region label",
|
||||
"regionKindTitle": "Region kind",
|
||||
"regionFieldCodeTitle": "Field code",
|
||||
"regionPageTitle": "Page",
|
||||
"sampleSummaryTitle": "Sample summary",
|
||||
"annotationCount": "Annotation samples",
|
||||
"trainingCount": "Training samples",
|
||||
"blindTestCount": "Blind-test samples",
|
||||
"firstSample": "First sample",
|
||||
"testSummaryTitle": "Test summary",
|
||||
"approvedAt": "Approved at",
|
||||
"latestRun": "Latest run",
|
||||
"sourceVersionTitle": "Source version",
|
||||
"noSourceVersion": "This version was not cloned from a historical version.",
|
||||
"frozenEvidence": {
|
||||
"pending": "Pending",
|
||||
"ready": "Ready",
|
||||
"missing": "Missing"
|
||||
},
|
||||
"testStatus": {
|
||||
"missing": "Missing",
|
||||
"draft": "Draft",
|
||||
"approved": "Approved",
|
||||
"superseded": "Superseded"
|
||||
}
|
||||
},
|
||||
"currentVersion": "Current",
|
||||
"publishedAt": "Published: {time}",
|
||||
"publish": "Publish",
|
||||
@@ -2697,7 +2922,7 @@
|
||||
},
|
||||
"workbench": {
|
||||
"boundHistoricalSchema": "bound historical version",
|
||||
"intro": "Drag evidence regions on a controlled document page; saved definitions contain no HTML or storage URL.",
|
||||
"intro": "Drag evidence regions on a controlled document page; saved definitions contain no HTML or storage URL.", "structure": "Structure", "saveStatus": { "saved": "Saved", "saving": "Saving", "failed": "Save failed; local edits are retained", "readonly": "Read-only: edit lease expired" }, "exportLocalDraft": "Export local draft", "recoverLease": "Reacquire lease", "takeOverLease": "Take over lease", "suggestionReadyForDecision": "Suggestion is ready for a decision", "acceptSuggestion": "Accept", "acceptAdjustedSuggestion": "Accept with adjustments", "rejectSuggestion": "Reject", "suggestionAdjustmentField": "Choose replacement field",
|
||||
"openCanvas": "Create draft and open canvas",
|
||||
"loadingPage": "Loading page...",
|
||||
"canvasZoom": "Page zoom",
|
||||
|
||||
Reference in new issue
Block a user