refactor(shipping-notice): 移除废弃的履约策略模型与相关逻辑

- 删除 `ShippingFulfillmentPolicy` 模型及其依赖,简化字段治理逻辑
- 更新相关服务与 API,确保自动建单策略通过 Schema 草稿管理
- 调整文档与代码注释,反映新的固定履约契约逻辑
- 增强事件审计功能,记录任务状态变化与操作人信息
This commit is contained in:
hugo committed 2026-07-29 23:23:27 +08:00
1 parent aa8fb2616c
commit c85997884b
81 files changed
+2625 -1965

No files matched your search

+66 -12
View File
@@ -274,6 +274,7 @@
"auditEmpty": "No configuration audit events",
"auditLoadMore": "Load more audit events",
"auditFieldSummary": "Added {added}, removed {removed}, changed {changed} fields",
"auditAutoCreationSummary": "Automatic task creation: {before} → {after}",
"auditEvent": {
"draft_created": "Created draft",
"draft_saved": "Saved draft",
@@ -2687,6 +2688,7 @@
"orderProfileValidation": {
"eyebrow": "DRAFT VALIDATION",
"title": "Validate Order Document Profile",
"validateTemplate": "Validate template",
"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",
@@ -2699,13 +2701,15 @@
"time": "Created",
"empty": "No validation runs yet.",
"completed": "Validation run completed.",
"failed": "Validation run failed."
"failed": "Validation run failed.",
"currentDraft": "Current draft validation", "currentDraftHint": "The system checks the configuration and reads the current sample once.", "validateCurrent": "Validate current draft", "validating": "Validating...", "goPublishCheck": "Continue to publish check", "structureCheck": "Configuration check", "structureCheckHint": "Checks bindings, page coordinates, scopes, and line structure.", "sampleCheck": "Current sample read", "sampleCheckHint": "Checks whether the annotated sample returns fields and line items.",
"state": { "ready": "Current draft can enter publish check", "stale": "Configuration changed; validate again", "failed": "Validation failed; return to the editor", "pending": "Current draft has not been validated" }, "stateHint": { "ready": "Both configuration and sample checks passed.", "stale": "Historical validation belongs to an earlier draft and cannot publish.", "failed": "Fix the annotations and validate again.", "pending": "Save the annotations, then validate once." }, "runStatus": { "passed": "Passed", "failed": "Failed", "stale": "Stale", "pending": "Not run", "running": "Running" }, "resultsTitle": "Current sample results", "resultsHint": "Only reads from the current draft and current annotations. Deleted lines are shown for review only and are excluded from the order result.", "refreshResults": "Read again", "resultsLoading": "Reading current sample...", "resultsFailed": "No value was read or the read failed. Check the annotations in the editor.", "headerResults": "Order header", "lineResults": "Order lines", "noHeaderResults": "No order header fields were read from the current sample.", "noLineResults": "No order lines were read from the current sample.", "noValue": "No value read", "rowStatus": "Status", "deleted": "Deleted; excluded", "read": "Read"
},
"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",
"back": "Back to validation",
"selectRun": "Select a passing validation run",
"noRun": "The current draft has no passing validation run for publication.",
"create": "Create publish-check report",
@@ -2715,7 +2719,7 @@
"noBlocking": "No blocking items.",
"warnings": "Warnings (confirm each item)",
"confirm": "Confirm publication",
"failed": "Publish check failed."
"failed": "Publish check failed.", "readyTitle": "Validated draft", "readyHint": "The current-sample validation passed. Generate a check to review prerequisites and changes.", "reportTitle": "Publish check result", "blockedHint": "These issues must be fixed and cannot be acknowledged away.", "reviewHint": "Confirm all listed changes to publish this template version.", "confirmHint": "Confirm that you reviewed the changes above.", "currentValidationRequired": "The current draft must pass current-sample validation first.", "semanticDiffReview": "This version has semantic changes. Confirm that you reviewed them.", "unknownIssue": "The publish check found an issue that needs attention."
},
"shippingOrderProfiles": {
"title": "Order Document Profiles",
@@ -2737,10 +2741,10 @@
"wizard": {
"title": "Create order document template",
"steps": "Step {step} of 3",
"description": "Define the template, then choose a sample for annotation.",
"description": "Define the template, then choose the first modelling and training sample for annotation.",
"stepLabel": "Step {step}",
"identityStep": "Basics",
"sampleStep": "Choose sample",
"sampleStep": "Choose modelling sample",
"tableStep": "Choose order line table",
"namePlaceholder": "For example: ACME purchase order",
"systemCodeHint": "The system creates an immutable code after creation for versions, routing, and audit.",
@@ -2762,7 +2766,7 @@
"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.",
"sampleHint": "Uploading or selecting a sample does not create a template; once created, it becomes both annotation and training evidence.",
"tableLoadFailed": "Failed to load sample tables.",
"tableOption": "Page {page} · {rows} rows · {columns} columns",
"orderLineTable": "Order line table",
@@ -2878,6 +2882,7 @@
"continueEditing": "Continue editing",
"viewVersion": "View version",
"familyVersions": "Version navigation",
"technicalDetails": "Technical details",
"loading": "Loading version detail...",
"tabsLabel": "Profile version detail tabs",
"tabs": {
@@ -3056,9 +3061,12 @@
"sampleSummaryTitle": "Sample summary",
"annotationCount": "Annotation samples",
"trainingCount": "Training samples",
"blindTestCount": "Blind-test samples",
"boundBlindTestCount": "Bound blind-test samples",
"firstSample": "First sample",
"testSummaryTitle": "Test summary",
"testSummaryTitle": "Blind-test suite",
"blindTestSuiteSampleCount": "Blind-test suite samples",
"serviceUnavailable": "The service is temporarily unavailable. Confirm the local backend is running, then try again.",
"retry": "Reload",
"approvedAt": "Approved at",
"latestRun": "Latest run",
"sourceVersionTitle": "Source version",
@@ -3101,10 +3109,17 @@
"noCandidateRows": "No valid item was detected. Check the physical lines, line_no, and field regions.",
"blindTest": {
"title": "Blind test",
"gateTitle": "Pre-publish blind test",
"gateRequiredHint": "Complete and approve an independent blind test before entering the publish check.",
"gateApprovedHint": "The blind test for this draft is approved; you can enter the publish check.",
"status": { "missing": "Not created", "draft": "Action required", "approved": "Approved", "superseded": "Superseded" },
"samples": "Samples: {count} · {status}",
"notRun": "not run",
"approvedHint": "This blind test is approved; no further run or approval is needed.",
"selectIndependentSample": "Select independent sample",
"loadIndependentSamples": "Load available samples",
"loadingIndependentSamples": "Loading available samples…",
"loadIndependentSamplesHint": "Load candidates only when adding a blind-test sample, so opening this page does not wait for historical-sample scanning.",
"selectSamplePlaceholder": "Select an order not used to annotate this template",
"noIndependentSamples": "No independent sample is available. Upload and parse another matching order first.",
"reviewHint": "Mark every item correct or incorrect. Provide a correction for incorrect items; unreviewed items cannot be added.",
@@ -3123,32 +3138,44 @@
"expectedOrderFieldsInvalid": "Order field truth must be a JSON object.",
"trainingAdded": "Current training sample bound",
"addTrainingSample": "Add training sample",
"trainingRequired": "Before approval, add the current annotation sample as a training sample in the editor.",
"goToEditor": "Return to editor to bind training sample",
"addedSamples": "Added blind-test samples",
"addedSamplesHint": "Draft samples can be removed; approved samples remain auditable.",
"removeSample": "Remove sample",
"sampleRemoved": "Blind-test sample removed",
"addCurrentSample": "Add current blind sample",
"backToValidation": "Back to validation",
"goPublishCheck": "Go to publish check",
"latestResult": "Latest run: {status} ({passed}/{count} passed)",
"candidateRowsEmpty": "This sample produced no line items and cannot become blind-test truth.",
"correctedValue": "Enter human-corrected value",
"execution": "Run and approve",
"runHint": "Run reparses every blind-test sample with the current draft; all samples must pass before approval.",
"unknownSample": "Unknown sample",
"failure": { "title": "Execution failure details", "hint": "Use the reason to adjust annotations or reconfirm blind-test truth, then run again.", "fieldMismatch": "{sample}: the reread value for order field {field} differs from the human truth.", "fieldNeedsReview": "{sample}: order field {field} is not confirmed; check its anchor and coordinate range.", "fieldUnavailable": "{sample}: no usable value was read for order field {field}; check its anchor, page, and coordinate evidence.", "coordinateEvidenceMissing": "{sample}: table or page coordinate evidence is missing, so the blind test cannot run.", "rowsMismatch": "{sample}: reread order lines differ from the human truth.", "unknown": "{sample}: the blind test did not pass; check the raw diagnostic code below." },
"run": "Run",
"approve": "Approve"
},
"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.", "returnToLibrary": "Back to document templates",
"structure": "Structure",
"saveStatus": {
"saved": "Saved",
"saving": "Saving",
"failed": "Save failed; local edits are retained",
"readonly": "Read-only: edit lease expired"
"readonly": "Read-only: edit lease unavailable"
},
"exportLocalDraft": "Export local draft",
"recoverLease": "Reacquire lease",
"takeOverLease": "Take over lease",
"invalidDefinitionPath": "Template configuration is invalid: {path}",
"suggestionReadyForDecision": "Suggestion is ready for a decision",
"acceptSuggestion": "Accept",
"acceptAdjustedSuggestion": "Accept with adjustments",
"rejectSuggestion": "Reject",
"suggestionAdjustmentField": "Choose replacement field",
"suggestionAdjustmentField": "Choose replacement field", "sampleValueUnavailable": "No value read", "orderFieldValueReading": "Reading", "orderFieldValueFailed": "Read failed", "currentSampleValue": "Current sample value", "selectedRegion": "Selected annotation", "recognitionResults": "Recognition results", "orderHeaderResults": "Order header fields", "orderLineResults": "Order line fields", "noRecognitionResults": "No structured result available", "lineResultField": "Line {row} · {field}", "previewState": { "idle": "Waiting", "updating": "Reading", "ready": "Updated", "failed": "Read failed" }, "evidenceStatus": { "read": "Read", "review": "Needs review", "loading": "Reading", "failed": "Read failed", "deleted": "Deleted; excluded from results", "unavailable": "No value read" },
"openCanvas": "Create draft and open canvas",
"loadingPage": "Loading page...",
"canvasZoom": "Page zoom",
@@ -3164,7 +3191,7 @@
"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.",
"autoSuggestComplete": "Suggestion generated; it has not been saved.",
"autoSuggestNoRows": "No item rows were detected for marking.",
"autoSuggestFailed": "Auto-marking failed. See the reason below.",
"schemaCompatible": "Field-compatible; can be inherited automatically",
@@ -3350,6 +3377,33 @@
"auditSnapshot": "Change snapshot",
"auditSnapshotRaw": "Raw JSON snapshot",
"auditDiffEmpty": "No property-level differences",
"auditValueNull": "null",
"auditValueYes": "Yes",
"auditValueNo": "No",
"auditValueEmpty": "(empty)",
"auditValueEmptyList": "(empty list)",
"auditValueObjectList": "{count} items",
"auditArrayLength": "{path} count",
"auditProperty": {
"field_code": "Field code",
"display_name": "Display name",
"display_name_default": "Default display name",
"semantic_description": "Semantic description",
"status": "Status",
"scope": "Scope",
"value_type": "Type",
"asset_kind": "Asset kind",
"storage_mode": "Storage mode",
"storage_column": "Storage column",
"storage_path": "Storage path",
"retired_reason": "Retirement reason",
"reason": "Reason",
"action": "Action",
"blocking_count": "Blocking references",
"updated_at": "Updated at",
"created_at": "Created at",
"display_sequence": "Catalog sequence"
},
"auditEvent": {
"field_adopted": "Field adopted in Schema",
"field_unadopted": "Field un-adopted in Schema",