feat(shipping-notice): 新增库存确认来源接口及相关逻辑

This commit is contained in:
hugo committed 2026-07-13 21:53:45 +08:00
1 parent a31735b689
commit 0a9bd6415d
69 files changed
+8442 -775

No files matched your search

+35
View File
@@ -170,6 +170,41 @@
"diagnosisReservationRequiredAdvice": "Add the Reservation ID, or confirm this customer can proceed without one.",
"diagnosisInventoryWaitingTitle": "Waiting for inventory file or inventory entry confirmation.",
"diagnosisInventoryWaitingAdvice": "Upload the batch inventory snapshot or confirm the automatic capture entry.",
"diagnosisInventorySourceTitle": "Inventory query source is not confirmed yet.",
"diagnosisInventorySourceAdvice": "Pick a candidate source or type a destination/warehouse hint (e.g. AWSDU, Dublin), then confirm.",
"diagnosisInventorySourceAmbiguousTitle": "Multiple inventory sources matched; auto-selection is not possible.",
"diagnosisInventorySourceAmbiguousAdvice": "Choose the official source code explicitly; site and warehouse will be generated from config after confirmation.",
"blockedInventorySource": "Inventory source pending confirmation",
"suggestConfirmInventorySource": "Select or enter inventory source, then confirm",
"inventorySource": {
"title": "Inventory query source",
"waitingConfirm": "Waiting for inventory source confirmation",
"autoMatched": "Inventory source auto-matched",
"unresolved": "Inventory source could not be determined",
"ambiguous": "Multiple candidate inventory sources matched",
"invalid": "Inventory source configuration is invalid",
"conflicted": "Inventory source adjudication conflict",
"changed": "Routing changed; re-confirmation required",
"confirmAction": "Confirm inventory source",
"retryResolveAction": "Re-evaluate",
"confirmDisplay": "Confirm inventory source: {label}",
"confirmWithTask": "Confirm inventory source\nTask: {taskId}",
"actionWithTask": "{message} (Task: {taskId})",
"inputHint": "Enter the inventory source hint to use, e.g. AWSDU, Dublin, or Singapore.",
"confirmFailed": "Failed to confirm inventory source",
"retryResolveDone": "Inventory source status refreshed",
"candidatesTitle": "Candidate inventory sources",
"siteId": "Site ID",
"warehouseId": "Warehouse ID",
"sourceCode": "Source code",
"statusResolved": "Auto-resolved",
"statusUserConfirmed": "User confirmed",
"statusUnresolved": "Unresolved",
"statusAmbiguous": "Ambiguous",
"statusInvalid": "Invalid",
"statusConflicted": "Conflicted",
"identityMismatch": "Inventory snapshot does not match task inventory source"
},
"diagnosisCompletedTitle": "Task is completed and archived.",
"diagnosisCompletedAdvice": "No action required; review export files or upload receipts if needed.",
"diagnosisStepWaitingTitle": "Step {step} is waiting for a prerequisite.",
+11 -1
View File
@@ -24,6 +24,16 @@
"WECOM_NOTIFY_DISABLED": "WeCom notifications are disabled. Enable them under Admin → WeCom → Notify Settings.",
"WECOM_RESET_URL_NOT_CONFIGURED": "Public base URL is not configured. Set WECOM_PUBLIC_BASE_URL in system settings.",
"AUTH_PASSWORD_RESET_RATE_LIMITED": "Too many requests. Please try again later.",
"AUTH_RESET_TOKEN_INVALID": "Reset link is invalid or expired. Please request password reset again."
"AUTH_RESET_TOKEN_INVALID": "Reset link is invalid or expired. Please request password reset again.",
"SHIPPING_INVENTORY_SOURCE_UNRESOLVED": "Cannot determine inventory source from the shipping notice. Please confirm manually.",
"SHIPPING_INVENTORY_SOURCE_AMBIGUOUS": "Multiple inventory sources matched. Please choose the official source code.",
"SHIPPING_INVENTORY_SOURCE_INVALID": "Inventory source configuration is invalid or missing site/warehouse parameters.",
"SHIPPING_INVENTORY_SOURCE_CONFLICTED": "Inventory source adjudication conflict. Please re-confirm.",
"SHIPPING_INVENTORY_SOURCE_CONFIRMATION_REQUIRED": "Inventory source is not confirmed yet. Please complete manual confirmation first.",
"SHIPPING_INVENTORY_SOURCE_CHANGED": "Shipping routing changed. Inventory source must be re-confirmed.",
"SHIPPING_INVENTORY_IDENTITY_MISMATCH": "Inventory snapshot does not match the task inventory source. Re-fetch or upload inventory.",
"SHIPPING_INVENTORY_SOURCE_GATE_BLOCKED": "Inventory source is not ready. This step is blocked.",
"SHIPPING_INVENTORY_WAREHOUSE_ID_NOT_ALLOWED": "Callback warehouse ID is not in the allowed list.",
"SHIPPING_INVENTORY_REUSED_SNAPSHOT_CONTENT_MISMATCH": "Reused inventory snapshot content does not match the callback file."
}
}
+25
View File
@@ -180,6 +180,31 @@
"shipTo": "Ship to",
"freightRef": "Freight ref no."
},
"inventorySource": {
"title": "Inventory query source",
"sourceCode": "Source code",
"sourceType": "Source type",
"siteId": "Site ID",
"warehouseId": "Warehouse ID",
"status": "Adjudication status",
"method": "Resolution method",
"configVersion": "Config version",
"confirmedAt": "Confirmed at",
"confirmedBy": "Confirmed by (user ID)",
"statusLabels": {
"resolved": "Auto-resolved",
"user_confirmed": "User confirmed",
"unresolved": "Unresolved",
"ambiguous": "Ambiguous",
"invalid": "Invalid",
"conflicted": "Conflicted"
},
"methodLabels": {
"auto": "Auto match",
"user": "User confirmed",
"config": "Config direct"
}
},
"inventorySnapshot": {
"title": "Inventory snapshot",
"warehouseId": "Warehouse ID",