feat(shipping-notice): 增强发货通知与审计功能,支持敏感数据控制与哈希链校验

- 更新发货通知工具 API,剥离不可信的操作人身份字段,确保审计安全
- 引入审计事件的哈希链校验机制,支持数据完整性验证
- 增强订单抽取与审计功能,支持敏感快照的访问控制
- 更新相关模型与服务,确保新功能的完整性与可追溯性
- 完善文档与代码注释,反映新的业务逻辑与审计要求
This commit is contained in:
hugo committed 2026-07-31 08:59:44 +08:00
1 parent 95cdfe66b0
commit d0fe084999
225 files changed
+25923 -6653

No files matched your search

+100 -62
View File
@@ -40,8 +40,7 @@
"shippingOrderDocumentProfiles": "Doc Templates",
"shippingFieldAssets": "Field Assets",
"shippingOrderSchema": "Order Schema",
"shippingAudit": "Audit center",
"shippingReviewSupervision": "Review supervision"
"shippingAudit": "Audit center"
},
"shippingOrderExtractionRuns": {
"eyebrow": "READ-ONLY RUN DIAGNOSTICS",
@@ -541,6 +540,38 @@
"selectAdoptedField": "Select an adopted field on the left",
"adoptFieldHint": "Adopt fields on the left first, then edit version rules here.",
"adoptedFieldEditingHint": "Scope/type are locked by the asset; only version rules are editable here.",
"effectiveReservationGate": "Combined gate: every line must have an effective Reservation (line overrides header).",
"schemaPolicyGroupTitle": "Schema-level policies",
"schemaPolicyGroupHint": "Auto-creation and field derivation apply to the whole schema version; changes stay in draft until publish.",
"schemaPolicyDraftBadge": "Draft editable · save/publish pending",
"schemaPolicyPublishedBadge": "Published version (read-only)",
"derivationRulesTitle": "Field derivation rules (current schema draft)",
"derivationRulesHint": "Line-to-line derivation only; rules freeze with the published schema version.",
"derivationRulesNote": "Phase 1 supports copy_if_empty only: copy customer PO line into internal line_no when empty.",
"derivationEnabled": "Enabled",
"derivationSource": "Source field",
"derivationTarget": "Target field",
"derivationStrategy": "Strategy",
"derivationStrategyCopyIfEmpty": "Copy if empty",
"derivationSimulate": "Simulate",
"derivationSimulateTitle": "Derivation simulation",
"derivationSimulateSample": "Sample JSON (array of line objects)",
"derivationSimulateModeHistory": "Historical extraction sample",
"derivationSimulateModeInline": "Manual JSON",
"derivationSimulateHistorySample": "Select a traceable sample",
"derivationSimulateSamplesLoading": "Loading samples…",
"derivationSimulateSamplesEmpty": "No historical samples available",
"derivationSimulateSampleOption": "Extraction #{id} · {lines} lines · {status}",
"derivationSimulateSampleRequired": "Please select a historical sample",
"derivationSimulateRun": "Run simulation",
"derivationSimulateSampleInvalid": "Sample JSON must be an array of objects",
"derivationSimulateSummary": "Rule version V{version} · checksum {checksum}… · derived {derived} · skipped {skipped}",
"derivationSimulateNoMutate": "This operation does not create or modify orders.",
"derivationBefore": "Internal line_no before",
"derivationAfter": "Internal line_no after",
"derivationResult": "Result",
"derivationStatusDerived": "Derived",
"derivationStatusSkipped": "Skipped: {reason}",
"viewFieldImpact": "Impact analysis",
"assetIdentity": "Asset identity (read-only)",
"assetKindLabel": "Asset kind",
@@ -762,7 +793,8 @@
"business_no": "Official business number",
"warehouse_id": "Freight warehouse",
"inventory_source_code": "Inventory source code",
"export_date": "Export date"
"export_date": "Export date",
"export_sequence": "Export row sequence"
},
"orderFieldOptionsEmpty": "There are no published order-template fields. Publish an Order Template Configuration version first; source fields will then appear here.",
"constantValueHint": "Writes the same value for every export, for example a fixed forwarder code.",
@@ -2821,6 +2853,8 @@
"uploading": "Uploading",
"sampleParsing": "Parsing now. This file will be selected automatically when ready.",
"sampleParseFailed": "Parsing failed. Upload again or choose an existing sample.",
"sampleLayoutCoordinatesMissing": "Template layout parsing failed: table-cell coordinates are missing. Use another sample or check MinerU output.",
"sampleLayoutSnapshotTooLarge": "Template layout parsing failed: the snapshot exceeds the size limit. Use a shorter or simpler sample.",
"sampleReady": "Sample parsed and selected. You can continue.",
"sampleSelected": "Current sample",
"reuseSample": "Reuse an existing sample",
@@ -2856,7 +2890,7 @@
"sourceRows": "Source physical rows: {rows}",
"rebuildAfterFieldMapping": "Field mappings changed. Rebuild the candidate again and review the final logical lines.",
"multiSubrowEnabled": "Each line item spans multiple physical rows",
"multiSubrowHint": "Row 1 must map its line-number column to line_no. Add rows 2, 3, 4, and beyond as needed; each row has independent boundaries that may overlap other rows.",
"multiSubrowHint": "Row 1 must map its start-anchor column to customer_po_line_no (or the configured start field). Add rows 2, 3, 4, and beyond as needed; each row has independent boundaries that may overlap other rows.",
"subrowColumn": "Column {index}",
"firstSubrow": "Row 1 (starts an item)",
"followingSubrow": "Row {index}",
@@ -2866,7 +2900,9 @@
"layoutSuggestionReady": "Row layout suggestions are ready. Confirm each field, then rebuild the table candidate.",
"columnBoundariesAdvanced": "Column boundaries (advanced calibration; usually unchanged)",
"columnSamples": "Samples: {samples}",
"lineNoRequired": "Map the order line-number column in row 1 to line_no.",
"lineNoRequired": "Map the start-anchor column in row 1 (default customer_po_line_no) to the matching field.",
"lineStartAnchorRequired": "Row 1 must bind the configured start-anchor field (default customer_po_line_no).",
"lineStartAnchorField": "Line start anchor",
"layoutRow": "Physical row layout",
"fieldMapping": "Column samples and field mapping",
"rowActions": "Actions",
@@ -2874,7 +2910,8 @@
"livePreview": "Live candidate",
"livePreviewUpdating": "Updating from the current mapping…",
"livePreviewReady": "Updated from the current mapping",
"livePreviewWaitingLineNo": "Map the order line-number column in row 1 to line_no first",
"livePreviewWaitingLineNo": "Map the start-anchor column in row 1 to customer_po_line_no first",
"livePreviewWaitingLineStart": "Map the start-anchor column in row 1 to the configured field first",
"livePreviewFailed": "Automatic update failed. Use Rebuild table candidate to view the error",
"livePreviewEmpty": "Change a field or boundary to update the candidate here",
"confirmPreview": "Confirm candidate",
@@ -3154,6 +3191,25 @@
"publishedAt": "Published: {time}",
"publish": "Publish",
"newVersion": "Create new version",
"schemaMigration": {
"listAction": "Migrate Schema",
"versionMatched": "Schema v{version}",
"versionMismatch": "Bound v{bound} · Current v{current}",
"action": "Migrate to Schema v{version}",
"title": "Migrate template to current Schema",
"description": "Create a new draft based on Schema v{to} from this Schema v{from} template.",
"revalidation": "Annotation and training samples are copied. Blind tests, validations, and publish qualification are not copied; validate again before publishing.",
"lineStartRequired": "The line-start field “{field}” cannot be unbound. Select a compatible replacement in the migration decisions.",
"duplicateSchemaField": "The current Schema duplicates field code “{field}” ({existingScope} and {duplicateScope}). Create and publish a new Schema version with distinct codes before migrating the template.",
"invalidPath": "Invalid configuration path: {path}",
"reason": "Change reason: {reason}",
"resolution": "Field handling",
"unbind": "Unbind and retain coordinates for later rebinding",
"noBreakingChanges": "No field requires a decision; stable field bindings will be retained automatically.",
"cancel": "Cancel",
"confirm": "Create migration draft",
"created": "Migration draft created. Confirm field bindings and validate again."
},
"retire": "Retire",
"created": "Profile draft created",
"updated": "Profile draft updated",
@@ -3173,7 +3229,7 @@
"candidateCount": "{count} candidates · {status}",
"candidateItem": "Candidate {count}",
"emptyCandidateValue": "No value detected",
"noCandidateRows": "No valid item was detected. Check the physical lines, line_no, and field regions.",
"noCandidateRows": "No valid item was detected. Check the physical lines, start anchor (customer_po_line_no), and field regions.",
"blindTest": {
"title": "Blind test",
"gateTitle": "Pre-publish blind test",
@@ -3192,7 +3248,7 @@
"loadIndependentSamples": "Load available samples",
"loadingIndependentSamples": "Loading available samples…",
"loadIndependentSamplesTimedOut": "Loading available samples timed out. Confirm the backend is running, then try again.",
"loadIndependentSamplesHint": "Load candidates only when adding a blind-test sample, so opening this page does not wait for historical-sample scanning.",
"uploadSample": "Upload sample",
"selectSamplePlaceholder": "Select an order not used to annotate this template",
"sampleOption": "{filename} · P{page} · Table {table} · {rows} rows x {columns} columns · {header}",
"noIndependentSamples": "No independent sample is available. Upload and parse another matching order first.",
@@ -3203,7 +3259,7 @@
"confirmReview": "Confirm review and add",
"correctionInvalid": "A line correction must be a JSON field object.",
"expectedRows": "Human truth (JSON array)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsPlaceholder": "[{\"customer_po_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.",
"expectedOrderFields": "Order field truth (JSON object)",
@@ -3219,6 +3275,7 @@
"removeSample": "Remove sample",
"sampleRemoved": "Blind-test sample removed",
"addCurrentSample": "Add current blind sample",
"previewAndReview": "Preview and review",
"backToValidation": "Back to validation",
"goPublishCheck": "Go to publish check",
"latestResult": "Latest run: {status} ({passed}/{count} passed)",
@@ -3254,6 +3311,14 @@
"exportLocalDraft": "Export local draft",
"recoverLease": "Reacquire lease",
"takeOverLease": "Take over lease",
"headerExport": "Export",
"headerRecoverLease": "Get lease",
"headerTakeOverLease": "Take over",
"headerTrainingSample": "Training sample bound",
"headerAddTrainingSample": "Bind sample",
"headerSaveDraft": "Save",
"headerValidate": "Validate",
"headerReturnToLibrary": "Templates",
"invalidDefinitionPath": "Template configuration is invalid: {path}",
"suggestionReadyForDecision": "Suggestion is ready for a decision",
"acceptSuggestion": "Accept",
@@ -3355,7 +3420,7 @@
"documentMatchAnchorTool": "Match anchor",
"documentMatchAnchorLabel": "Match anchor label",
"documentMatchAnchorValue": "Match anchor value",
"documentMatchAnchorHint": "Use the left toolbar to select the label and fixed value. Only text inside these boxes is matched, so notes cannot produce a false match.",
"documentMatchAnchorHint": "Select static text as a match anchor.",
"documentMatchAnchorEmpty": "Use the Match anchor tool: select the label first, then the fixed value.",
"documentMatchAnchorTextMissing": "No text was detected in the selected area. Adjust the selection and try again.",
"orderFieldAnchorNext": "Field label read. Select the field value.",
@@ -3415,7 +3480,8 @@
"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.",
"orderFieldStopAnchor": "A multi-line order field requires a stop label."
"orderFieldStopAnchor": "A multi-line order field requires a stop label.",
"lineStartAnchorRequired": "When the main line has field bindings, it must include the configured start anchor (default customer_po_line_no)."
}
}
},
@@ -3548,8 +3614,8 @@
}
},
"shippingAudit": {
"title": "Run & audit",
"subtitle": "Query shipping audit events by time, actor, Run/Task and event type. Details show whitelist diffs only; exports are controlled and audited.",
"title": "Run & Audit",
"subtitle": "Trace the full audit chain by Workflow / Item / Run / PDF / Case / Task, actor, action, result and time. Sensitive snapshots are permission-trimmed; export and hash verify are audited.",
"refresh": "Refresh",
"export": "Export CSV",
"exporting": "Exporting...",
@@ -3576,15 +3642,16 @@
"q": "ID search",
"all": "All",
"actorId": "Actor ID",
"documentId": "Document ID",
"documentId": "PDF / Document ID",
"conversationId": "Conversation ID",
"sessionItemId": "Session work item",
"reviewCaseNo": "Review case no.",
"ownerUserId": "Owner user ID",
"requestId": "request_id",
"result": "Result",
"createdFrom": "From",
"createdTo": "To"
"createdTo": "To",
"workflowId": "Workflow",
"workflowItemId": "Workflow Item"
},
"columns": {
"time": "Time",
@@ -3594,52 +3661,23 @@
"task": "Task",
"result": "Result",
"conversation": "Conversation",
"sessionItem": "Work item",
"reviewCase": "Case"
}
},
"shippingReviewSupervision": {
"title": "Review supervision",
"subtitle": "Cross-user session PDF work items. Terminate or revoke confirmation requires a reason and explicit confirmation.",
"refresh": "Refresh",
"apply": "Apply",
"loading": "Loading...",
"empty": "No work items",
"loadFailed": "Failed to load supervision list",
"actionFailed": "Action failed. Please try again.",
"terminate": "Terminate",
"revoke": "Revoke confirmation",
"terminateTitle": "Terminate work item",
"revokeTitle": "Revoke confirmation",
"terminateImpact": "This forcibly closes work item {itemNo}. The owner can no longer review it.",
"revokeImpact": "This revokes the confirmation for work item {itemNo} (within 24h and before inventory match).",
"reasonLabel": "Reason (required)",
"reasonRequired": "A reason is required",
"confirmTerminate": "I confirm terminating this work item (CONFIRM_TERMINATE)",
"confirmRevoke": "I confirm revoking this confirmation (CONFIRM_REVOKE)",
"confirmRequired": "Check the confirmation box before submitting",
"submit": "Submit",
"submitting": "Submitting...",
"terminateSuccess": "Work item terminated",
"revokeSuccess": "Confirmation revoked",
"total": "{count} total",
"previous": "Previous",
"next": "Next",
"filters": {
"lifecycleStatus": "Lifecycle",
"ownerUserId": "Owner user ID",
"conversationId": "Conversation ID",
"q": "Search by ID",
"all": "All"
"reviewCase": "Case",
"workflow": "Workflow",
"workflowItem": "Item"
},
"columns": {
"itemNo": "Work item",
"owner": "Owner",
"conversation": "Conversation",
"document": "Current PDF",
"status": "Status",
"updated": "Updated",
"actions": "Actions"
}
"sensitiveRedacted": "Sensitive snapshots and diffs are redacted for your account.",
"verifyChain": "Verify hash chain",
"verifying": "Verifying...",
"verifyFailed": "Hash chain verification failed",
"verifyOk": "OK",
"verifyFailedShort": "Failed",
"verifySummary": "Hash verify: {ok}; checked {checked}, failed {failed}",
"loadChain": "Association chain",
"chainSeedRequired": "Association chain needs at least one of Workflow / Item / Run / PDF / Case / Task",
"chainFailed": "Association chain query failed",
"chainSummary": "Association chain: {total} events{truncated}",
"chainTruncated": " (truncated)",
"eventHash": "Event hash",
"previousEventHash": "Previous hash"
}
}