refactor(shipping-ui): 收口订单复核与库存流程前端投影

This commit is contained in:
hugo committed 2026-09-04 21:01:59 +08:00
1 parent 265a6e179a
commit 4e8b2f8db2
27 files changed
+618 -407

No files matched your search

+38 -60
View File
@@ -101,25 +101,6 @@
"shippingNoticeDuplicateResolved": "Duplicate resolution saved.",
"shippingNoticeDuplicateResolveFailed": "Failed to save duplicate resolution.",
"shippingCandidateTitle": "Order candidate review",
"shippingCustomerMatch": {
"title": "Customer matching",
"role": "Role",
"rawName": "Order text",
"standardName": "Standard customer",
"shortCode": "Short code",
"site": "Delivery site",
"statusLabel": "Status",
"roles": {
"bill_to": "Bill-to",
"ship_to": "Ship-to"
},
"status": {
"unmatched": "Unmatched",
"unique_candidate": "Unique candidate",
"ambiguous": "Multiple candidates",
"confirmed": "Confirmed"
}
},
"shippingCandidateCount": "{count} orders",
"shippingCandidateReady": "Ready",
"shippingCandidateNeedsReview": "Needs review",
@@ -1486,10 +1467,11 @@
"completed": "Completed, view only",
"blocked": "Prerequisite incomplete",
"prerequisite": "Complete the current stage first",
"autoAdvanced": "Auto-advanced to {stage}",
"identity": {"po": "PO: {value}", "case": "Case: {value}", "version": "Order version: V{value}"},
"descriptions": {"intake_parse": "Review the email body and current attachment, then resolve intake parsing issues.", "order_review": "Verify fields and evidence, resolve conflicts, and freeze the order.", "fulfillment_prep": "Complete inventory matching and generate the notice Excel.", "freight_upload": "Download the notice, run RPA or register a manual upload, and reconcile unknown results.", "upload_complete": "Shown only after complete upload-success evidence is verified."},
"intakeParse": {"title": "Intake and parsing", "email": "Email body", "emailPreviewTitle": "Safe email body preview", "noEmail": "No email context", "attachment": "Current attachment", "fileName": "File name", "fileType": "File type", "preview": "Attachment preview", "previewLoading": "Loading attachment preview…", "loadPreview": "Load attachment preview", "previewUnsupported": "The current attachment is not a PDF and cannot be previewed here.", "loading": "Loading intake parsing context…", "loadFailed": "Failed to load intake parsing context.", "retry": "Retry"},
"prepare": {"title": "Notice preparation", "subtitle": "Handle inventory candidates, matching issues, and notice generation here.", "frozenOrder": "Frozen order", "inventorySource": "Inventory source", "excel": "Shipping Excel", "downloadInventory": "Download inventory file", "retryInventory": "Re-fetch inventory", "releaseShortage": "Release shortage", "releaseShortageHint": "Release allows shipping Excel generation. State the reason for this shortage release.", "releaseReasonPlaceholder": "Enter release reason (required)", "releaseConfirm": "Confirm release", "requiredQty": "Required quantity", "matchWorkspace": "Inventory matching", "lineCount": "{count} inventory results", "lineStatus": "Match status", "matched": "Matched", "shortage": "Inventory shortage", "matchStatus": {"not_found": "Inventory not found", "preparing": "Preparing inventory", "mapping_failed": "Inventory mapping failed", "unavailable": "Inventory unavailable", "source_conflict": "Inventory source conflict", "invalid_key": "Invalid match key", "result_missing": "Awaiting match result", "unknown": "Unknown status"}, "pending": "Inventory matching or the shipping file is not ready yet. Use the current processing card to continue.", "loadFailed": "Failed to load notice preparation details; current data could not be confirmed.", "detailUnavailable": "Notice preparation details have not returned yet, so frozen order and inventory matching data cannot be shown.", "retry": "Reload"},
"prepare": {"customerPoLine": "Customer PO Line No.", "title": "Notice preparation", "subtitle": "Handle inventory candidates, matching issues, and notice generation here.", "frozenOrder": "Frozen order", "inventorySource": "Inventory source", "excel": "Shipping Excel", "downloadInventory": "Download inventory file", "retryInventory": "Re-fetch inventory", "sourceAmbiguous": "This line matched multiple inventory sources; select the actual shipping warehouse", "sourceLocked": "Notice Excel generated; inventory source is locked", "selectSource": "Select inventory source", "releaseShortage": "Release shortage", "releaseShortageHint": "Release allows shipping Excel generation. State the reason for this shortage release.", "releaseReasonPlaceholder": "Enter release reason (required)", "releaseConfirm": "Confirm release", "requiredQty": "Required quantity", "matchWorkspace": "Inventory matching", "lineCount": "{count} inventory results", "lineStatus": "Match status", "matched": "Matched", "shortage": "Inventory shortage", "matchStatus": {"not_found": "Inventory not found", "preparing": "Preparing inventory", "mapping_failed": "Inventory mapping failed", "unavailable": "Inventory unavailable", "source_conflict": "Inventory source conflict", "invalid_key": "Invalid match key", "result_missing": "Awaiting match result", "unknown": "Unknown status"}, "pending": "Inventory matching or the shipping file is not ready yet. Use the current processing card to continue.", "loadFailed": "Failed to load notice preparation details; current data could not be confirmed.", "detailUnavailable": "Notice preparation details have not returned yet, so frozen order and inventory matching data cannot be shown.", "retry": "Reload", "capability": {"retry_inventory_preparation": "Re-fetch inventory", "reload_inventory_result": "Reload inventory result", "override_line_inventory_source": "Change inventory source"}, "capabilityDisabled": {"excel_locked": "Notice Excel generated; inventory source is locked", "no_candidates": "No available inventory source candidates", "no_prior_result": "No prior inventory result"}},
"freightUpload": {"title": "Freight upload", "subtitle": "Grouped by shipping notice; each shipping notice has one Excel.", "loading": "Loading shipping notices…", "loadFailed": "Failed to load shipping notices. Refresh and try again.", "poMissing": "The current task has no recognized PO, so notices cannot be grouped yet.", "empty": "No uploadable shipping notices for this PO.", "download": "Download Excel", "lineNo": "Line", "lineNoSourceCustomerPo": "Customer PO line no.", "lineNoSourceSequence": "System sequence (internal line no. not recognized)", "selected": "{count} notices selected", "batchDownload": "Download selected", "batchRpa": "Batch RPA upload", "batchConfirm": "Confirm selected uploaded", "noticeCount": "{count} shipping notice(s)", "uploadError": "Upload error reason: {reason}", "uploadStatus": {"pending": "Pending upload", "uploading": "Uploading", "failed": "Upload failed", "uploaded": "Uploaded", "needsHuman": "Manual upload needed"}},
"uploadComplete": {"title": "Notification completion", "subtitle": "Upload-success evidence is verified. This view is read only.", "batchCount": "{count} shipping notice(s) uploaded in this batch", "batchDownload": "Download batch ZIP", "batchDownloading": "Packaging…", "uploaded": "Uploaded", "uploadedAt": "{time}", "exportFile": "File: {file}", "expand": "Show line details", "collapse": "Hide line details", "uploadMode": "Upload method: {mode}", "uploadModeManual": "Manual confirmation", "uploadModeRpa": "RPA upload", "empty": "No uploaded shipping notices in this batch."},
"upload": {"title": "Freight upload", "subtitle": "Download the notice Excel, upload it on the freight platform and confirm the manual upload, or run RPA.", "manualUpload": "Confirm manual upload", "attempt": "Latest upload attempt: {mode} · {status}"},
@@ -1703,15 +1685,11 @@
},
"machineSource": "Source: system recognition",
"manualSource": "Source: manual edit",
"derivedSource": "Source: rule derivation",
"overrideSource": "Source: manual override (locked)",
"skippedSource": "Source: derivation skipped",
"valueSources": {
"machine": "System recognized",
"manual": "Manual edit",
"manual_override": "Manual override",
"derived": "Derived",
"skipped": "Derivation skipped",
"llm_suggested": "AI suggested (pending)"
},
"llmSuggestion": {
@@ -1765,38 +1743,15 @@
"cancel": "Cancel",
"submit": "Submit decision"
},
"lineNoOverrideDialog": {
"title": "Override internal line no.",
"impact": "Overriding the internal line number is permanently audited and locks the field until restored. Please select a reason.",
"newValue": "New value: {value}",
"reasonCodeLabel": "Override reason",
"reasonCodeRequired": "Please select an override reason",
"reasonTextLabel": "Additional notes",
"reasonTextPlaceholder": "Required when reason is Other",
"reasonTextRequired": "Notes are required when reason is Other",
"confirm": "Confirm override",
"reasons": {
"recognition_error": "Recognition error",
"customer_line_exception": "Customer line exception",
"business_correction": "Business correction",
"other": "Other"
}
},
"restoreMachine": "Restore recognized value",
"restorePriorProjection": "Restore extracted/derived value",
"lineNoUnsavedHint": "Unsaved · enter override reason on blur",
"lineNoUnsavedHint": "Unsaved",
"lockedHint": "Locked",
"derivedFrom": "From field {field}",
"derivationRuleId": "Rule {ruleId}",
"derivationSkipReason": "Skip reason {reason}",
"lineage": {
"source": "Source",
"locked": "Lock",
"overrideReason": "Override reason",
"overrideNote": "Note",
"derivedFrom": "Derived from",
"ruleId": "Rule ID",
"skipReason": "Skip reason"
"derivedFrom": "Derived from"
},
"saved": "Saved",
"saving": "Saving",
@@ -1932,6 +1887,7 @@
"backToSession": "Back to this session",
"workItemHeader": "Work item {itemNo} · {version}",
"jumpToCurrentVersion": "Go to current version",
"autoJumpedToCurrentVersion": "Switched to the current version",
"currentVersionUnavailable": "The current version is not ready or progress cannot be refreshed yet. Please try again shortly.",
"showContext": "Conversation context",
"hideContext": "Hide context",
@@ -2209,7 +2165,8 @@
},
"automation": {
"waitingPreOt": "Waiting for the system to start auto-create",
"waitingPostOt": "Waiting for the system to start"
"waitingPostOt": "Waiting for the system to start",
"retryStp": "Retry auto-advance"
},
"currentProcessing": {
"title": "Current processing",
@@ -2577,14 +2534,26 @@
},
"shippingProcessing": {
"batchStatusTitle": "Batch Processing Status",
"batchSummaryIncomplete": "Batch incomplete · {recognized} files recognized · {failed} exception(s)",
"batchSummaryProcessing": "Batch processing · {recognized} files recognized",
"batchSummaryCompleted": "Batch processing complete · {recognized} files recognized",
"recognizingAttachments": "Recognizing attachments…",
"recognizedOfTotal": "Recognized {recognized}/{submitted}",
"notRecognized": "Not recognized",
"notRecognizedHint": "Not recognized yet; the system is still processing. You can check the reason later.",
"ignoredNonOrderAttachment": "Ignored",
"ignoredNonOrderAttachmentHint": "Not an order PDF; excluded from order recognition",
"batchWorkbench": {
"inGroupCount": "{inGroup} of {total} files in this group",
"overview": {
"totalFiles": "Total files",
"processing": "Processing",
"completed": "Completed",
"needsAction": "Needs action",
"ignored": "Ignored",
"completion": "{percent}% complete",
"processedOfTotal": "{completed}/{total} processed"
"processedOfTotal": "{completed}/{total} processed",
"processedOfTotalWithIgnored": "{completed}/{total} order files processed · {ignored} files ignored"
},
"groups": {
"failed": "Exceptions · {count} files",
@@ -2647,17 +2616,24 @@
"pendingMaterials": "Pending materials",
"orderTasks": "Order tasks",
"groupNeedsAction": "Needs your action · {count} tasks",
"groupFailed": "Exceptions / failed · {count} tasks",
"groupWaitingHuman": "Needs manual action / interrupted · {count} tasks",
"groupProcessing": "System processing · {count} tasks",
"groupFailed": "Exceptions / failed · {count} files",
"groupWaitingHuman": "Needs manual action / interrupted · {count} files",
"groupProcessing": "System processing · {count} files",
"groupIgnored": "Ignored · {count} files",
"aggregate": {
"completed": "Uploaded {count}",
"processing": "Processing {count}",
"needsAction": "Needs action {count}",
"failed": "Failed {count}"
},
"groupCompleted": "Completed · {count}",
"groupProcessingRecords": "Processing records · {count}",
"statusBadge": {
"completed": "Completed",
"processing": "Processing",
"needsAction": "Needs action",
"failed": "Failed"
},
"groupCompleted": "Completed · {count} files",
"groupProcessingRecords": "Processing records · {count} files",
"groupRecordCompleted": "Completed",
"groupRecordHistoryVersions": "History versions",
"groupRecordCancelled": "Cancelled",
@@ -2838,13 +2814,15 @@
"panelPinnedHint": "Active tasks keep this panel open; you can still collapse file details",
"panelPinnedLabel": "Action needed",
"groupHistory": "History · {count}",
"groupHistoryRecords": "Past versions · {count}",
"groupCancelled": "Cancelled · {count}",
"groupHistoryRecords": "Past versions · {count} files",
"groupCancelled": "Cancelled · {count} files",
"expandHistory": "Expand",
"collapseHistory": "Collapse",
"taskFiles": "{count} files",
"taskPdfCount": "{count} PDFs",
"multiPdfTaskTitle": "Order recognition task",
"multiPdfTaskTitle": "Order File Processing",
"completedAndIgnoredFileSummary": "Order files: {completed} completed · {ignored} ignored",
"ignoredFileSummary": "{count} ignored",
"multiPdfNameSeparator": ", ",
"multiPdfNamesMore": "{names} and {count} PDFs",
"cancelEntireTask": "Cancel entire task",
@@ -3523,4 +3501,4 @@
"selectedRetryableCount": "{count} retryable",
"noRetryable": "No selected source needs retry (already ready or fetching)"
}
}
}
+7 -12
View File
@@ -1,4 +1,4 @@
{
{
"generic": "Request failed.",
"codes": {
"SHIPPING.FULFILLMENT_POLICY_INVALID": "The fulfillment policy or field capability binding is invalid.",
@@ -329,24 +329,18 @@
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "This field cannot be edited on the formal task.",
"SHIPPING_ORDER_EXCEL_FROZEN": "Shipping Excel is ready; formal task fields are frozen.",
"SHIPPING.ORDER_EXCEL_FROZEN": "Shipping Excel is ready; formal task fields are frozen.",
"SHIPPING_EDIT_WINDOW_FIELD_LOCKED": "This field is outside the edit window (Excel generated or system busy).",
"SHIPPING.EDIT_WINDOW_FIELD_LOCKED": "This field is outside the edit window (Excel generated or system busy).",
"SHIPPING_EDIT_WINDOW_SYSTEM_BUSY": "System is processing; please modify later.",
"SHIPPING.EDIT_WINDOW_SYSTEM_BUSY": "System is processing; please modify later.",
"SHIPPING_INVALID_CONFLICT_RESOLUTION": "Invalid conflict resolution.",
"SHIPPING_CASE_NOT_FOUND": "Shipping case not found.",
"SHIPPING_BUSINESS_NUMBER_DAILY_LIMIT_REACHED": "The customer's two-digit daily sequence is exhausted (01-99).",
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_REQUIRED": "Confirm the standard customer before assigning a business number.",
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_INVALID": "The customer is inactive or missing; a business number cannot be assigned.",
"SHIPPING_BUSINESS_NUMBER_SHORT_CODE_INVALID": "The customer short code must contain 2-6 uppercase letters.",
"SHIPPING_CUSTOMER_CORRECTION_TASK_REQUIRED": "Enter the technical or business number to correct.",
"SHIPPING_CUSTOMER_CORRECTION_REASON_REQUIRED": "A reason is required for customer correction.",
"SHIPPING_CUSTOMER_CORRECTION_NUMBER_REQUIRED": "Only a numbered business case can be corrected.",
"SHIPPING_CUSTOMER_CORRECTION_ALREADY_REPLACED": "This business case has already been replaced. Use the current business number.",
"SHIPPING_CUSTOMER_CORRECTION_UNCHANGED": "The corrected customer is the same as the current customer.",
"SHIPPING_CUSTOMER_CORRECTION_TASK_MISSING": "The task or business case to correct was not found.",
"SHIPPING_CUSTOMER_CORRECTION_UPLOADED_BLOCKED": "The task was uploaded to the forwarder. Complete the external cancellation workflow first.",
"SHIPPING_ORDER_EXTRACTION_NOT_FOUND": "The order extraction does not exist or is not accessible.",
"SHIPPING_ORDER_CUSTOMER_REQUIRED": "Select a standard customer.",
"SHIPPING_ORDER_CUSTOMER_ROLE_INVALID": "The customer role is invalid.",
"SHIPPING_ORDER_CUSTOMER_MATCH_NOT_FOUND": "The order customer match does not exist.",
"SHIPPING_ORDER_CUSTOMER_SITE_INVALID": "Select an active delivery site belonging to this customer.",
"SHIPPING_CUSTOMER_NOT_FOUND": "Customer not found.",
"SHIPPING_CUSTOMER_CHANGE_REASON_REQUIRED": "A reason is required when changing customer status, short code, or auto-match authorization.",
"SHIPPING_CUSTOMER_NAME_REQUIRED": "Standard customer name is required.",
@@ -484,6 +478,7 @@
"SHIPPING.ORDER_DOCUMENT_PROFILE_PDF_AUTOMARK_LAYOUT_STALE": "The sample layout changed while auto-marking. Refresh or rebind the current sample, then retry.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "The layout result changed. Refresh the sample and preview it again.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "The layout result is still being prepared. Refresh the status shortly.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_SUITE_CHECKSUM_CONFLICT": "The publish credential is already occupied by another blind-test suite. Do not manually change template status; contact an administrator.",
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "This review case is already confirmed. Retry post-confirm auto-progress instead.",
"SHIPPING.STP_ENQUEUE_FAILED": "Failed to enqueue auto-create. Please retry later or contact an administrator.",
"SHIPPING.STP_NOT_ELIGIBLE": "This order is not yet eligible for auto-create. Complete checks and gates, then retry.",
@@ -544,4 +539,4 @@
"TRANSFER.SELECTION_INVALID": "Selection contains non-executable invoices.",
"TRANSFER.INVALID_STATE_TRANSITION": "Invalid state transition."
}
}
}
+2 -1
View File
@@ -312,6 +312,7 @@
"retry_inventory_from_field_mapping": "Recover from field mapping",
"retry_inventory_from_matching": "Rematch using current inventory",
"retry_inventory_matching": "Retry inventory matching",
"override_line_inventory_source": "Override line inventory source",
"open_inventory_match_review": "Open inventory match review",
"recheck_inventory_sufficiency": "Recheck inventory sufficiency",
"open_shortage_review": "Open shortage review",
@@ -463,7 +464,7 @@
"matched_rule_codes": "Matched rules",
"raw_rule_source_codes": "Raw rule candidates",
"candidate_inventory_source_codes": "Effective candidates",
"line_key": "Line",
"line_no": "Line no.",
"line_index": "Line no.",
"field_code": "Field",
"request_id": "Request ID",