feat(shipping-notice): 新增库存确认来源接口及相关逻辑
This commit is contained in:
1 parent
a31735b689
commit
0a9bd6415d
69 files changed
+8442
-775
No files matched your search
+10
-5
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* features/admin/modules/schedules/composables/schedule-admin/useScheduleAdminDeepLink.ts
|
||||
* 用途:解析企微深链 query,定位排程执行记录并标记原始库存手动下载入口。
|
||||
* 用途:解析企微深链 query,定位排程执行记录并在登录后自动下载原始库存包。
|
||||
* 依赖:vue-router、schedule-admin.state、useScheduleAdminRuns。
|
||||
* 逻辑:SchedulesPage onMounted 在 loadAll 后调用;消费 task_id/run_id/raw_zip,不自动下载。
|
||||
* 逻辑:SchedulesPage onMounted 在 loadAll 后调用;消费 task_id/run_id/raw_zip/download,自动下载失败时保留手动入口。
|
||||
*/
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import type { ScheduleAdminState } from './schedule-admin.state';
|
||||
@@ -15,12 +15,12 @@ function parsePositiveInt(raw: unknown): number | null {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据路由 query 打开工作台执行记录;raw_zip=1 时仅展开 run 并突出手动下载按钮。
|
||||
* 核心逻辑:不自动触发下载,避免企微内置浏览器拦截异步下载。
|
||||
* 根据路由 query 打开工作台执行记录;raw_zip=1 时展开 run 并保留手动下载按钮。
|
||||
* 核心逻辑:download=inventory_raw_zip 时登录后自动下载一次;若企微内置浏览器拦截,用户仍可点醒目按钮重试。
|
||||
*/
|
||||
export function useScheduleAdminDeepLink(
|
||||
state: ScheduleAdminState,
|
||||
runs: Pick<ScheduleAdminRuns, 'viewScheduleRuns'>,
|
||||
runs: Pick<ScheduleAdminRuns, 'viewScheduleRuns' | 'downloadScheduleInventoryRawZip'>,
|
||||
) {
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -31,6 +31,7 @@ export function useScheduleAdminDeepLink(
|
||||
|
||||
const runId = parsePositiveInt(route.query.run_id);
|
||||
const rawZipPrompt = String(route.query.raw_zip || '') === '1';
|
||||
const shouldAutoDownloadRawZip = rawZipPrompt && String(route.query.download || '') === 'inventory_raw_zip';
|
||||
|
||||
state.scheduleViewMode.value = 'workbench';
|
||||
state.selectedScheduleId.value = taskId;
|
||||
@@ -43,6 +44,9 @@ export function useScheduleAdminDeepLink(
|
||||
const target = state.selectedScheduleRuns.value.find((item) => item.id === runId);
|
||||
if (target?.inventory_raw_zip_available) {
|
||||
state.wecomRawZipPromptRunId.value = runId;
|
||||
if (shouldAutoDownloadRawZip) {
|
||||
await runs.downloadScheduleInventoryRawZip(runId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,6 +55,7 @@ export function useScheduleAdminDeepLink(
|
||||
delete nextQuery.task_id;
|
||||
delete nextQuery.run_id;
|
||||
delete nextQuery.raw_zip;
|
||||
delete nextQuery.download;
|
||||
await router.replace({ path: route.path, query: nextQuery });
|
||||
};
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ watch(
|
||||
:ref="bindShippingPickerRef"
|
||||
type="file"
|
||||
class="hidden"
|
||||
accept=".xlsx,.xls,.csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,text/csv"
|
||||
accept=".xlsx,.csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv"
|
||||
@change="emit('shipping-inventory-selected', $event)"
|
||||
/>
|
||||
|
||||
|
||||
@@ -324,6 +324,21 @@ const resolveTaskDiagnosis = (task: ShippingTaskSummary | ShippingTaskDetail) =>
|
||||
advice: t('chat.shippingNoticeUi.diagnosisReservationRequiredAdvice'),
|
||||
};
|
||||
}
|
||||
if (reason === 'inventory_source_unresolved') {
|
||||
const resolution = (task as ShippingTaskDetail).inventory_source_resolution;
|
||||
const status = resolution && typeof resolution === 'object'
|
||||
? String((resolution as { status?: unknown }).status || '').trim()
|
||||
: '';
|
||||
const isAmbiguous = status === 'ambiguous';
|
||||
return {
|
||||
title: t(isAmbiguous
|
||||
? 'chat.shippingNoticeUi.diagnosisInventorySourceAmbiguousTitle'
|
||||
: 'chat.shippingNoticeUi.diagnosisInventorySourceTitle'),
|
||||
advice: t(isAmbiguous
|
||||
? 'chat.shippingNoticeUi.diagnosisInventorySourceAmbiguousAdvice'
|
||||
: 'chat.shippingNoticeUi.diagnosisInventorySourceAdvice'),
|
||||
};
|
||||
}
|
||||
if (reason === 'map_infer' || processStatus === 'waiting_inventory') {
|
||||
return {
|
||||
title: t('chat.shippingNoticeUi.diagnosisInventoryWaitingTitle'),
|
||||
@@ -352,6 +367,9 @@ const resolveSuggestedAction = (task: ShippingTaskSummary | ShippingTaskDetail)
|
||||
if (reason === 'low_confidence' || reviewStatus === 'parse_review') {
|
||||
return t('chat.shippingNoticeUi.suggestReviewParse');
|
||||
}
|
||||
if (reason === 'inventory_source_unresolved') {
|
||||
return t('chat.shippingNoticeUi.suggestConfirmInventorySource');
|
||||
}
|
||||
if (isFailedTask(task)) {
|
||||
return t('chat.shippingNoticeUi.suggestRetryStep');
|
||||
}
|
||||
|
||||
@@ -130,6 +130,7 @@ function deriveCurrentIndex(task: ShippingTaskStepperSource | null | undefined):
|
||||
|| reviewStatus === 'rsv_required'
|
||||
|| pendingReason === 'low_confidence'
|
||||
|| pendingReason === 'rsv_required'
|
||||
|| pendingReason === 'inventory_source_unresolved'
|
||||
) {
|
||||
return 1;
|
||||
}
|
||||
@@ -159,7 +160,12 @@ export function buildShippingWorkflowSteps(
|
||||
}
|
||||
|
||||
if (
|
||||
(index === 1 && (reviewStatus === 'parse_review' || pendingReason === 'low_confidence' || pendingReason === 'rsv_required'))
|
||||
(index === 1 && (
|
||||
reviewStatus === 'parse_review'
|
||||
|| pendingReason === 'low_confidence'
|
||||
|| pendingReason === 'rsv_required'
|
||||
|| pendingReason === 'inventory_source_unresolved'
|
||||
))
|
||||
|| (index === 2 && (pendingReason === 'inv_unavail' || pendingReason === 'rpa_exhausted'))
|
||||
|| (index === 3 && (reviewStatus === 'align_review' || pendingReason === 'align_review'))
|
||||
|| (index === 4 && (reviewStatus === 'shortage_review' || pendingReason === 'shortage_review' || pendingReason === 'shortage'))
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface ShippingMenuHandlerContext {
|
||||
refreshShippingActions: () => Promise<void>;
|
||||
startChatTurn: (options: StartChatTurnOptions) => Promise<boolean>;
|
||||
msg: { warning: (text: string) => void; info: (text: string) => void };
|
||||
t: (key: string) => string;
|
||||
t: (key: string, ...args: unknown[]) => string;
|
||||
}
|
||||
|
||||
export interface HandleShippingMenuActionOptions {
|
||||
@@ -97,8 +97,8 @@ export function createShippingMenuHandlers(ctx: ShippingMenuHandlerContext) {
|
||||
if (!turnSpec) return false;
|
||||
const displayBase = String(action.message || actionId || '操作').trim();
|
||||
const displayText = actionId === 'confirm_inventory_source'
|
||||
? `${displayBase}\n任务编号:${taskId}`
|
||||
: `${displayBase}(任务编号:${taskId})`;
|
||||
? ctx.t('chat.shippingNoticeUi.inventorySource.confirmWithTask', { taskId })
|
||||
: ctx.t('chat.shippingNoticeUi.inventorySource.actionWithTask', { message: displayBase, taskId });
|
||||
await ctx.startChatTurn({
|
||||
agentId: ctx.currentAgentId.value,
|
||||
inputType: 'action',
|
||||
@@ -168,7 +168,7 @@ export function createShippingMenuHandlers(ctx: ShippingMenuHandlerContext) {
|
||||
sourceCode = await resolveInventorySourceCodeFromContext(taskId);
|
||||
}
|
||||
if (!sourceCode) {
|
||||
ctx.msg.warning('请直接输入要使用的库存源线索,例如 AWSDU、Dublin 或 Singapore。');
|
||||
ctx.msg.warning(ctx.t('chat.shippingNoticeUi.inventorySource.inputHint'));
|
||||
if (chatMsg) chatMsg.shipping_actions_used = false;
|
||||
return;
|
||||
}
|
||||
@@ -179,7 +179,7 @@ export function createShippingMenuHandlers(ctx: ShippingMenuHandlerContext) {
|
||||
}
|
||||
const label = String(('label' in action ? action.label : '') || sourceCode).trim();
|
||||
const displayMessage = action.id === 'confirm_inventory_source'
|
||||
? `确认库存查询来源:${label || sourceCode}`
|
||||
? ctx.t('chat.shippingNoticeUi.inventorySource.confirmDisplay', { label: label || sourceCode })
|
||||
: action.message;
|
||||
await runShippingActionTurn(
|
||||
{ ...action, message: displayMessage },
|
||||
@@ -195,7 +195,7 @@ export function createShippingMenuHandlers(ctx: ShippingMenuHandlerContext) {
|
||||
|
||||
if (action.id === 'retry_resolve_inventory_source') {
|
||||
await ctx.refreshShippingActions();
|
||||
ctx.msg.info('已重新刷新库存源状态');
|
||||
ctx.msg.info(ctx.t('chat.shippingNoticeUi.inventorySource.retryResolveDone'));
|
||||
return;
|
||||
}
|
||||
if (action.id === 'edit_inventory_mapping') {
|
||||
|
||||
@@ -66,7 +66,7 @@ export interface ShippingSendHandlerContext {
|
||||
isShippingShortageQueryIntent: (text: string) => boolean;
|
||||
queryShippingShortageDetails: (taskNo?: string, displayText?: string) => Promise<boolean>;
|
||||
msg: { warning: (text: string) => void; info: (text: string) => void };
|
||||
t: (key: string) => string;
|
||||
t: (key: string, ...args: unknown[]) => string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,13 +114,13 @@ export function createShippingSendHandlers(ctx: ShippingSendHandlerContext) {
|
||||
const label = String(hit?.display_name || sourceCode).trim();
|
||||
await ctx.handleShippingMenuAction({
|
||||
id: 'confirm_inventory_source',
|
||||
message: `确认库存查询来源:${label}`,
|
||||
message: ctx.t('chat.shippingNoticeUi.inventorySource.confirmDisplay', { label }),
|
||||
label,
|
||||
source_code: sourceCode,
|
||||
});
|
||||
return true;
|
||||
} catch (e: unknown) {
|
||||
const errorMessage = e instanceof Error ? e.message : '确认库存源失败';
|
||||
const errorMessage = e instanceof Error ? e.message : ctx.t('chat.shippingNoticeUi.inventorySource.confirmFailed');
|
||||
ctx.msg.warning(errorMessage);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,42 @@
|
||||
* 依赖:无(纯类型模块)。
|
||||
* 逻辑:shipping.api.ts 与 Chat/工作台组件统一引用本文件 DTO 类型。
|
||||
*/
|
||||
export type InventorySourceStatus =
|
||||
| 'unresolved'
|
||||
| 'ambiguous'
|
||||
| 'resolved'
|
||||
| 'user_confirmed'
|
||||
| 'invalid'
|
||||
| 'conflicted';
|
||||
|
||||
export type InventorySourceMethod =
|
||||
| 'rule_exact'
|
||||
| 'rule_combined'
|
||||
| 'user_confirmed'
|
||||
| 'legacy_migrated';
|
||||
|
||||
export interface ShippingInventorySourceCandidate {
|
||||
source_code: string;
|
||||
display_name?: string | null;
|
||||
site_id?: string | null;
|
||||
warehouse_id?: string | null;
|
||||
source_type?: string | null;
|
||||
match_score?: number | null;
|
||||
matched_by?: string | null;
|
||||
}
|
||||
|
||||
export interface ShippingInventorySourceResolution {
|
||||
status?: InventorySourceStatus | null;
|
||||
method?: InventorySourceMethod | null;
|
||||
reason?: string | null;
|
||||
candidates?: ShippingInventorySourceCandidate[];
|
||||
destination_candidates?: string[];
|
||||
evidence?: Record<string, unknown>[];
|
||||
conflicts?: string[];
|
||||
config_version?: string | null;
|
||||
routing_fingerprint?: string | null;
|
||||
}
|
||||
|
||||
export interface ShippingInventorySnapshot {
|
||||
inventory_file_no?: string | null;
|
||||
source_code?: string | null;
|
||||
@@ -48,7 +84,21 @@ export interface ShippingTaskSummary {
|
||||
};
|
||||
rpa_runtime?: ShippingRpaRuntime | null;
|
||||
rpa_inventory_source?: Record<string, unknown> | null;
|
||||
inventory_source_resolution?: Record<string, unknown> | null;
|
||||
inventory_source_resolution?: ShippingInventorySourceResolution | null;
|
||||
destination_code?: string | null;
|
||||
destination_city?: string | null;
|
||||
destination_country?: string | null;
|
||||
warehouse_hint?: string | null;
|
||||
inventory_source_code?: string | null;
|
||||
inventory_source_type?: string | null;
|
||||
inventory_site_id?: string | null;
|
||||
inventory_warehouse_id?: string | null;
|
||||
inventory_source_status?: InventorySourceStatus | null;
|
||||
inventory_source_method?: InventorySourceMethod | null;
|
||||
inventory_source_config_version?: string | null;
|
||||
inventory_routing_fingerprint?: string | null;
|
||||
inventory_source_confirmed_at?: string | null;
|
||||
inventory_source_confirmed_by?: number | null;
|
||||
inventory_snapshot?: ShippingInventorySnapshot | null;
|
||||
created_at?: string | null;
|
||||
updated_at?: string | null;
|
||||
|
||||
@@ -141,6 +141,31 @@ const inventorySnapshotLabel = (triggerType?: string | null) => {
|
||||
return map[key] || map.on_demand;
|
||||
};
|
||||
|
||||
const inventorySourceStatusLabel = (status?: string | null) => {
|
||||
const key = String(status || '').trim();
|
||||
if (!key) return '—';
|
||||
const i18nKey = `workspace.shippingNotice.inventorySource.statusLabels.${key}`;
|
||||
return te(i18nKey) ? t(i18nKey) : key;
|
||||
};
|
||||
|
||||
const inventorySourceMethodLabel = (method?: string | null) => {
|
||||
const key = String(method || '').trim();
|
||||
if (!key) return '—';
|
||||
const i18nKey = `workspace.shippingNotice.inventorySource.methodLabels.${key}`;
|
||||
return te(i18nKey) ? t(i18nKey) : key;
|
||||
};
|
||||
|
||||
const hasInventorySourceFields = computed(() => {
|
||||
const item = detail.value;
|
||||
if (!item) return false;
|
||||
return !!(
|
||||
item.inventory_source_code
|
||||
|| item.inventory_site_id
|
||||
|| item.inventory_warehouse_id
|
||||
|| item.inventory_source_status
|
||||
);
|
||||
});
|
||||
|
||||
const loadCases = async () => {
|
||||
loading.value = true;
|
||||
try {
|
||||
@@ -388,6 +413,45 @@ onMounted(async () => {
|
||||
<div><dt class="text-muted">{{ $t('workspace.shippingNotice.fields.freightRef') }}</dt><dd>{{ detail.freight_ref_no || '—' }}</dd></div>
|
||||
</dl>
|
||||
|
||||
<div
|
||||
v-if="hasInventorySourceFields"
|
||||
class="rounded-2xl border border-default/80 bg-surface px-4 py-3 text-sm"
|
||||
>
|
||||
<h3 class="mb-2 text-sm font-semibold text-secondary">
|
||||
{{ $t('workspace.shippingNotice.inventorySource.title') }}
|
||||
</h3>
|
||||
<dl class="grid gap-2 sm:grid-cols-2">
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.sourceCode') }}</dt>
|
||||
<dd class="font-mono">{{ detail.inventory_source_code || '—' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.status') }}</dt>
|
||||
<dd>{{ inventorySourceStatusLabel(detail.inventory_source_status) }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.siteId') }}</dt>
|
||||
<dd class="font-mono">{{ detail.inventory_site_id || '—' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.warehouseId') }}</dt>
|
||||
<dd class="font-mono">{{ detail.inventory_warehouse_id || '—' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.method') }}</dt>
|
||||
<dd>{{ inventorySourceMethodLabel(detail.inventory_source_method) }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.configVersion') }}</dt>
|
||||
<dd class="font-mono text-xs">{{ detail.inventory_source_config_version || '—' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-xs text-muted">{{ $t('workspace.shippingNotice.inventorySource.confirmedBy') }}</dt>
|
||||
<dd class="font-mono">{{ detail.inventory_source_confirmed_by ?? '—' }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="detail.inventory_snapshot"
|
||||
class="rounded-2xl border border-default/80 bg-surface px-4 py-3 text-sm"
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -170,6 +170,41 @@
|
||||
"diagnosisReservationRequiredAdvice": "เพิ่ม Reservation ID หรือยืนยันว่าลูกค้ารายนี้ดำเนินการได้โดยไม่ต้องมีใบจอง",
|
||||
"diagnosisInventoryWaitingTitle": "กำลังรอไฟล์สต็อกหรือการยืนยันช่องทางสต็อก",
|
||||
"diagnosisInventoryWaitingAdvice": "อัปโหลดสแนปช็อตสต็อกของชุดงาน หรือยืนยันช่องทางดึงอัตโนมัติ",
|
||||
"diagnosisInventorySourceTitle": "ยังไม่ได้ยืนยันแหล่งสต็อกสำหรับการค้นหา",
|
||||
"diagnosisInventorySourceAdvice": "เลือกจากรายการตัวเลือก หรือพิมพ์คำใบ้ปลายทาง/คลัง (เช่น AWSDU, Dublin) แล้วยืนยัน",
|
||||
"diagnosisInventorySourceAmbiguousTitle": "พบหลายแหล่งสต็อกที่ตรงกัน ไม่สามารถเลือกอัตโนมัติได้",
|
||||
"diagnosisInventorySourceAmbiguousAdvice": "เลือกรหัสแหล่งสต็อกอย่างชัดเจน ระบบจะสร้าง site และ warehouse จาก config หลังยืนยัน",
|
||||
"blockedInventorySource": "รอการยืนยันแหล่งสต็อก",
|
||||
"suggestConfirmInventorySource": "เลือกหรือป้อนแหล่งสต็อกแล้วยืนยัน",
|
||||
"inventorySource": {
|
||||
"title": "แหล่งสต็อกสำหรับการค้นหา",
|
||||
"waitingConfirm": "รอการยืนยันแหล่งสต็อก",
|
||||
"autoMatched": "จับคู่แหล่งสต็อกอัตโนมัติแล้ว",
|
||||
"unresolved": "ไม่สามารถระบุแหล่งสต็อกได้",
|
||||
"ambiguous": "พบหลายแหล่งสต็อกที่เป็นไปได้",
|
||||
"invalid": "การตั้งค่าแหล่งสต็อกไม่ถูกต้อง",
|
||||
"conflicted": "ผลการตัดสินแหล่งสต็อกขัดแย้งกัน",
|
||||
"changed": "เส้นทางเปลี่ยน ต้องยืนยันใหม่",
|
||||
"confirmAction": "ยืนยันแหล่งสต็อก",
|
||||
"retryResolveAction": "ประเมินใหม่",
|
||||
"confirmDisplay": "ยืนยันแหล่งสต็อก: {label}",
|
||||
"confirmWithTask": "ยืนยันแหล่งสต็อก\nงาน: {taskId}",
|
||||
"actionWithTask": "{message} (งาน: {taskId})",
|
||||
"inputHint": "ป้อนคำใบ้แหล่งสต็อก เช่น AWSDU, Dublin หรือ Singapore",
|
||||
"confirmFailed": "ยืนยันแหล่งสต็อกไม่สำเร็จ",
|
||||
"retryResolveDone": "รีเฟรชสถานะแหล่งสต็อกแล้ว",
|
||||
"candidatesTitle": "แหล่งสต็อกที่เป็นไปได้",
|
||||
"siteId": "Site ID",
|
||||
"warehouseId": "Warehouse ID",
|
||||
"sourceCode": "รหัสแหล่ง",
|
||||
"statusResolved": "แก้ไขอัตโนมัติแล้ว",
|
||||
"statusUserConfirmed": "ผู้ใช้ยืนยันแล้ว",
|
||||
"statusUnresolved": "ยังไม่แก้ไข",
|
||||
"statusAmbiguous": "คลุมเครือ",
|
||||
"statusInvalid": "ไม่ถูกต้อง",
|
||||
"statusConflicted": "ขัดแย้ง",
|
||||
"identityMismatch": "สแนปช็อตสต็อกไม่ตรงกับแหล่งสต็อกของงาน"
|
||||
},
|
||||
"diagnosisCompletedTitle": "งานเสร็จแล้วและถูกจัดเก็บแล้ว",
|
||||
"diagnosisCompletedAdvice": "ไม่ต้องดำเนินการ หากต้องการตรวจสอบให้ดูไฟล์ส่งออกหรือใบตอบรับ",
|
||||
"diagnosisStepWaitingTitle": "ขั้นตอน {step} กำลังรอเงื่อนไขก่อนหน้า",
|
||||
|
||||
@@ -24,6 +24,16 @@
|
||||
"WECOM_NOTIFY_DISABLED": "การแจ้งเตือน WeCom ถูกปิด โปรดเปิดใน Admin → WeCom → Notify Settings",
|
||||
"WECOM_RESET_URL_NOT_CONFIGURED": "ยังไม่ได้ตั้งค่า Public Base URL โปรดกรอก WECOM_PUBLIC_BASE_URL ในการตั้งค่าระบบ",
|
||||
"AUTH_PASSWORD_RESET_RATE_LIMITED": "คำขอถี่เกินไป โปรดลองอีกครั้งในภายหลัง",
|
||||
"AUTH_RESET_TOKEN_INVALID": "ลิงก์รีเซ็ตหมดอายุหรือใช้แล้ว โปรดขอรีเซ็ตรหัสผ่านใหม่"
|
||||
"AUTH_RESET_TOKEN_INVALID": "ลิงก์รีเซ็ตหมดอายุหรือใช้แล้ว โปรดขอรีเซ็ตรหัสผ่านใหม่",
|
||||
"SHIPPING_INVENTORY_SOURCE_UNRESOLVED": "ไม่สามารถระบุแหล่งสต็อกจากใบแจ้งส่งได้ โปรดยืนยันด้วยตนเอง",
|
||||
"SHIPPING_INVENTORY_SOURCE_AMBIGUOUS": "พบหลายแหล่งสต็อกที่ตรงกัน โปรดเลือกรหัสแหล่งอย่างเป็นทางการ",
|
||||
"SHIPPING_INVENTORY_SOURCE_INVALID": "การตั้งค่าแหล่งสต็อกไม่ถูกต้องหรือขาดพารามิเตอร์ site/warehouse",
|
||||
"SHIPPING_INVENTORY_SOURCE_CONFLICTED": "ผลการตัดสินแหล่งสต็อกขัดแย้งกัน โปรดยืนยันใหม่",
|
||||
"SHIPPING_INVENTORY_SOURCE_CONFIRMATION_REQUIRED": "ยังไม่ได้ยืนยันแหล่งสต็อก โปรดยืนยันด้วยตนเองก่อน",
|
||||
"SHIPPING_INVENTORY_SOURCE_CHANGED": "เส้นทางการส่งเปลี่ยน ต้องยืนยันแหล่งสต็อกใหม่",
|
||||
"SHIPPING_INVENTORY_IDENTITY_MISMATCH": "สแนปช็อตสต็อกไม่ตรงกับแหล่งสต็อกของงาน โปรดดึงหรืออัปโหลดสต็อกใหม่",
|
||||
"SHIPPING_INVENTORY_SOURCE_GATE_BLOCKED": "แหล่งสต็อกยังไม่พร้อม ขั้นตอนนี้ถูกบล็อก",
|
||||
"SHIPPING_INVENTORY_WAREHOUSE_ID_NOT_ALLOWED": "รหัสคลังจาก callback ไม่อยู่ในรายการที่อนุญาต",
|
||||
"SHIPPING_INVENTORY_REUSED_SNAPSHOT_CONTENT_MISMATCH": "เนื้อหาไฟล์ callback ไม่ตรงกับสแนปช็อตสต็อกที่นำกลับมาใช้"
|
||||
}
|
||||
}
|
||||
@@ -110,6 +110,31 @@
|
||||
"shipTo": "ที่อยู่จัดส่ง",
|
||||
"freightRef": "เลขอ้างอิงขนส่ง"
|
||||
},
|
||||
"inventorySource": {
|
||||
"title": "แหล่งสต็อกสำหรับการค้นหา",
|
||||
"sourceCode": "รหัสแหล่ง",
|
||||
"sourceType": "ประเภทแหล่ง",
|
||||
"siteId": "Site ID",
|
||||
"warehouseId": "Warehouse ID",
|
||||
"status": "สถานะการตัดสิน",
|
||||
"method": "วิธีการตัดสิน",
|
||||
"configVersion": "เวอร์ชัน config",
|
||||
"confirmedAt": "ยืนยันเมื่อ",
|
||||
"confirmedBy": "ผู้ยืนยัน (user ID)",
|
||||
"statusLabels": {
|
||||
"resolved": "แก้ไขอัตโนมัติแล้ว",
|
||||
"user_confirmed": "ผู้ใช้ยืนยันแล้ว",
|
||||
"unresolved": "ยังไม่แก้ไข",
|
||||
"ambiguous": "คลุมเครือ",
|
||||
"invalid": "ไม่ถูกต้อง",
|
||||
"conflicted": "ขัดแย้ง"
|
||||
},
|
||||
"methodLabels": {
|
||||
"auto": "จับคู่อัตโนมัติ",
|
||||
"user": "ผู้ใช้ยืนยัน",
|
||||
"config": "จาก config โดยตรง"
|
||||
}
|
||||
},
|
||||
"inventorySnapshot": {
|
||||
"title": "สแนปช็อตสต็อก",
|
||||
"warehouseId": "Warehouse ID",
|
||||
|
||||
@@ -170,6 +170,41 @@
|
||||
"diagnosisReservationRequiredAdvice": "建议补充 Reservation ID,或确认该客户允许不带预订单处理。",
|
||||
"diagnosisInventoryWaitingTitle": "等待库存文件或库存入口确认。",
|
||||
"diagnosisInventoryWaitingAdvice": "建议上传本批库存快照,或确认系统自动抓取入口。",
|
||||
"diagnosisInventorySourceTitle": "库存查询来源尚未确定,需先确认后再继续。",
|
||||
"diagnosisInventorySourceAdvice": "请从候选列表选择库存源,或直接输入目的地/仓库线索(如 AWSDU、Dublin)后确认。",
|
||||
"diagnosisInventorySourceAmbiguousTitle": "匹配到多个候选库存源,无法自动判定。",
|
||||
"diagnosisInventorySourceAmbiguousAdvice": "请明确选择正式库存源编码;确认后系统将自动生成站点与仓库参数。",
|
||||
"blockedInventorySource": "库存源待确认",
|
||||
"suggestConfirmInventorySource": "选择或输入库存源后确认",
|
||||
"inventorySource": {
|
||||
"title": "库存查询来源",
|
||||
"waitingConfirm": "等待确认库存查询来源",
|
||||
"autoMatched": "已自动匹配库存源",
|
||||
"unresolved": "无法确定库存源",
|
||||
"ambiguous": "匹配到多个候选库存源",
|
||||
"invalid": "库存源配置无效",
|
||||
"conflicted": "库存源判定冲突",
|
||||
"changed": "路由信息变更,需重新确认",
|
||||
"confirmAction": "确认库存源",
|
||||
"retryResolveAction": "重新判断",
|
||||
"confirmDisplay": "确认库存查询来源:{label}",
|
||||
"confirmWithTask": "确认库存查询来源\n任务编号:{taskId}",
|
||||
"actionWithTask": "{message}(任务编号:{taskId})",
|
||||
"inputHint": "请直接输入要使用的库存源线索,例如 AWSDU、Dublin 或 Singapore。",
|
||||
"confirmFailed": "确认库存源失败",
|
||||
"retryResolveDone": "已重新刷新库存源状态",
|
||||
"candidatesTitle": "候选库存源",
|
||||
"siteId": "站点 ID",
|
||||
"warehouseId": "仓库 ID",
|
||||
"sourceCode": "库存源编码",
|
||||
"statusResolved": "已自动解析",
|
||||
"statusUserConfirmed": "已人工确认",
|
||||
"statusUnresolved": "未解析",
|
||||
"statusAmbiguous": "多候选",
|
||||
"statusInvalid": "配置无效",
|
||||
"statusConflicted": "冲突",
|
||||
"identityMismatch": "库存快照与任务库存源不一致"
|
||||
},
|
||||
"diagnosisCompletedTitle": "任务已完成并归档。",
|
||||
"diagnosisCompletedAdvice": "无需处理;如需核验可查看导出文件或上传回执。",
|
||||
"diagnosisStepWaitingTitle": "步骤 {step} 正在等待前置条件。",
|
||||
|
||||
@@ -24,6 +24,16 @@
|
||||
"WECOM_NOTIFY_DISABLED": "企微通知已关闭,请在管理端「企业微信 → 通知设置」开启。",
|
||||
"WECOM_RESET_URL_NOT_CONFIGURED": "未配置公网访问地址,请在系统配置中填写公网基地址(WECOM_PUBLIC_BASE_URL)。",
|
||||
"AUTH_PASSWORD_RESET_RATE_LIMITED": "操作过于频繁,请稍后再试。",
|
||||
"AUTH_RESET_TOKEN_INVALID": "重置链接已失效或已过期,请重新申请找回密码"
|
||||
"AUTH_RESET_TOKEN_INVALID": "重置链接已失效或已过期,请重新申请找回密码",
|
||||
"SHIPPING_INVENTORY_SOURCE_UNRESOLVED": "无法根据发货通知确定库存查询来源,请人工确认。",
|
||||
"SHIPPING_INVENTORY_SOURCE_AMBIGUOUS": "匹配到多个候选库存源,请选择正式库存源编码。",
|
||||
"SHIPPING_INVENTORY_SOURCE_INVALID": "库存源配置无效或缺少站点/仓库参数。",
|
||||
"SHIPPING_INVENTORY_SOURCE_CONFLICTED": "库存源判定结果冲突,请重新确认。",
|
||||
"SHIPPING_INVENTORY_SOURCE_CONFIRMATION_REQUIRED": "库存源尚未确认,请先完成人工确认。",
|
||||
"SHIPPING_INVENTORY_SOURCE_CHANGED": "发货路由信息已变更,需重新确认库存源。",
|
||||
"SHIPPING_INVENTORY_IDENTITY_MISMATCH": "库存快照与任务库存源不一致,请重新获取或上传库存。",
|
||||
"SHIPPING_INVENTORY_SOURCE_GATE_BLOCKED": "库存源未就绪,当前步骤已被阻断。",
|
||||
"SHIPPING_INVENTORY_WAREHOUSE_ID_NOT_ALLOWED": "回调库位不在配置允许列表中。",
|
||||
"SHIPPING_INVENTORY_REUSED_SNAPSHOT_CONTENT_MISMATCH": "复用库存快照时回调文件与托管文件内容不一致。"
|
||||
}
|
||||
}
|
||||
@@ -181,6 +181,31 @@
|
||||
"shipTo": "收货地址",
|
||||
"freightRef": "货代单号"
|
||||
},
|
||||
"inventorySource": {
|
||||
"title": "库存查询来源",
|
||||
"sourceCode": "库存源编码",
|
||||
"sourceType": "源类型",
|
||||
"siteId": "站点 ID",
|
||||
"warehouseId": "仓库 ID",
|
||||
"status": "判定状态",
|
||||
"method": "判定方式",
|
||||
"configVersion": "配置版本",
|
||||
"confirmedAt": "确认时间",
|
||||
"confirmedBy": "确认人 ID",
|
||||
"statusLabels": {
|
||||
"resolved": "已自动解析",
|
||||
"user_confirmed": "已人工确认",
|
||||
"unresolved": "未解析",
|
||||
"ambiguous": "多候选",
|
||||
"invalid": "配置无效",
|
||||
"conflicted": "冲突"
|
||||
},
|
||||
"methodLabels": {
|
||||
"auto": "自动匹配",
|
||||
"user": "人工确认",
|
||||
"config": "配置直出"
|
||||
}
|
||||
},
|
||||
"inventorySnapshot": {
|
||||
"title": "库存快照",
|
||||
"warehouseId": "Warehouse ID",
|
||||
|
||||
@@ -170,6 +170,41 @@
|
||||
"diagnosisReservationRequiredAdvice": "建議補充 Reservation ID,或確認該客戶允許不帶預訂單處理。",
|
||||
"diagnosisInventoryWaitingTitle": "等待庫存檔案或庫存入口確認。",
|
||||
"diagnosisInventoryWaitingAdvice": "建議上傳本批庫存快照,或確認系統自動抓取入口。",
|
||||
"diagnosisInventorySourceTitle": "庫存查詢來源尚未確定,需先確認後再繼續。",
|
||||
"diagnosisInventorySourceAdvice": "請從候選清單選擇庫存源,或直接輸入目的地/倉庫線索(如 AWSDU、Dublin)後確認。",
|
||||
"diagnosisInventorySourceAmbiguousTitle": "匹配到多個候選庫存源,無法自動判定。",
|
||||
"diagnosisInventorySourceAmbiguousAdvice": "請明確選擇正式庫存源編碼;確認後系統將自動產生站點與倉庫參數。",
|
||||
"blockedInventorySource": "庫存源待確認",
|
||||
"suggestConfirmInventorySource": "選擇或輸入庫存源後確認",
|
||||
"inventorySource": {
|
||||
"title": "庫存查詢來源",
|
||||
"waitingConfirm": "等待確認庫存查詢來源",
|
||||
"autoMatched": "已自動匹配庫存源",
|
||||
"unresolved": "無法確定庫存源",
|
||||
"ambiguous": "匹配到多個候選庫存源",
|
||||
"invalid": "庫存源設定無效",
|
||||
"conflicted": "庫存源判定衝突",
|
||||
"changed": "路由資訊變更,需重新確認",
|
||||
"confirmAction": "確認庫存源",
|
||||
"retryResolveAction": "重新判斷",
|
||||
"confirmDisplay": "確認庫存查詢來源:{label}",
|
||||
"confirmWithTask": "確認庫存查詢來源\n任務編號:{taskId}",
|
||||
"actionWithTask": "{message}(任務編號:{taskId})",
|
||||
"inputHint": "請直接輸入要使用的庫存源線索,例如 AWSDU、Dublin 或 Singapore。",
|
||||
"confirmFailed": "確認庫存源失敗",
|
||||
"retryResolveDone": "已重新整理庫存源狀態",
|
||||
"candidatesTitle": "候選庫存源",
|
||||
"siteId": "站點 ID",
|
||||
"warehouseId": "倉庫 ID",
|
||||
"sourceCode": "庫存源編碼",
|
||||
"statusResolved": "已自動解析",
|
||||
"statusUserConfirmed": "已人工確認",
|
||||
"statusUnresolved": "未解析",
|
||||
"statusAmbiguous": "多候選",
|
||||
"statusInvalid": "設定無效",
|
||||
"statusConflicted": "衝突",
|
||||
"identityMismatch": "庫存快照與任務庫存源不一致"
|
||||
},
|
||||
"diagnosisCompletedTitle": "任務已完成並歸檔。",
|
||||
"diagnosisCompletedAdvice": "無需處理;如需核驗可查看匯出檔或上傳回執。",
|
||||
"diagnosisStepWaitingTitle": "步驟 {step} 正在等待前置條件。",
|
||||
|
||||
@@ -24,6 +24,16 @@
|
||||
"WECOM_NOTIFY_DISABLED": "企微通知已關閉,請在管理端「企業微信 → 通知設定」開啟。",
|
||||
"WECOM_RESET_URL_NOT_CONFIGURED": "未配置公網訪問地址,請在系統配置中填寫公網基地址(WECOM_PUBLIC_BASE_URL)。",
|
||||
"AUTH_PASSWORD_RESET_RATE_LIMITED": "操作過於頻繁,請稍後再試。",
|
||||
"AUTH_RESET_TOKEN_INVALID": "重設連結已失效或已過期,請重新申請找回密碼"
|
||||
"AUTH_RESET_TOKEN_INVALID": "重設連結已失效或已過期,請重新申請找回密碼",
|
||||
"SHIPPING_INVENTORY_SOURCE_UNRESOLVED": "無法根據發貨通知確定庫存查詢來源,請人工確認。",
|
||||
"SHIPPING_INVENTORY_SOURCE_AMBIGUOUS": "匹配到多個候選庫存源,請選擇正式庫存源編碼。",
|
||||
"SHIPPING_INVENTORY_SOURCE_INVALID": "庫存源設定無效或缺少站點/倉庫參數。",
|
||||
"SHIPPING_INVENTORY_SOURCE_CONFLICTED": "庫存源判定結果衝突,請重新確認。",
|
||||
"SHIPPING_INVENTORY_SOURCE_CONFIRMATION_REQUIRED": "庫存源尚未確認,請先完成人工確認。",
|
||||
"SHIPPING_INVENTORY_SOURCE_CHANGED": "發貨路由資訊已變更,需重新確認庫存源。",
|
||||
"SHIPPING_INVENTORY_IDENTITY_MISMATCH": "庫存快照與任務庫存源不一致,請重新取得或上傳庫存。",
|
||||
"SHIPPING_INVENTORY_SOURCE_GATE_BLOCKED": "庫存源未就緒,當前步驟已被阻斷。",
|
||||
"SHIPPING_INVENTORY_WAREHOUSE_ID_NOT_ALLOWED": "回調庫位不在設定允許清單中。",
|
||||
"SHIPPING_INVENTORY_REUSED_SNAPSHOT_CONTENT_MISMATCH": "複用庫存快照時回調檔案與託管檔案內容不一致。"
|
||||
}
|
||||
}
|
||||
@@ -180,6 +180,31 @@
|
||||
"shipTo": "收貨地址",
|
||||
"freightRef": "貨代單號"
|
||||
},
|
||||
"inventorySource": {
|
||||
"title": "庫存查詢來源",
|
||||
"sourceCode": "庫存源編碼",
|
||||
"sourceType": "源類型",
|
||||
"siteId": "站點 ID",
|
||||
"warehouseId": "倉庫 ID",
|
||||
"status": "判定狀態",
|
||||
"method": "判定方式",
|
||||
"configVersion": "設定版本",
|
||||
"confirmedAt": "確認時間",
|
||||
"confirmedBy": "確認人 ID",
|
||||
"statusLabels": {
|
||||
"resolved": "已自動解析",
|
||||
"user_confirmed": "已人工確認",
|
||||
"unresolved": "未解析",
|
||||
"ambiguous": "多候選",
|
||||
"invalid": "設定無效",
|
||||
"conflicted": "衝突"
|
||||
},
|
||||
"methodLabels": {
|
||||
"auto": "自動匹配",
|
||||
"user": "人工確認",
|
||||
"config": "設定直出"
|
||||
}
|
||||
},
|
||||
"inventorySnapshot": {
|
||||
"title": "庫存快照",
|
||||
"warehouseId": "Warehouse ID",
|
||||
|
||||
Reference in new issue
Block a user