refactor(shipping-ui): 收口订单复核与库存流程前端投影
This commit is contained in:
1 parent
265a6e179a
commit
4e8b2f8db2
27 files changed
+618
-407
No files matched your search
@@ -541,11 +541,11 @@ export const patchWorkspaceShippingOrderReviewHeaderField = (
|
||||
{ method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) },
|
||||
);
|
||||
|
||||
/** 保存一个复核订单行字段;line_key 仅接受当前 Case DTO 返回的稳定标识。 */
|
||||
/** 保存一个复核订单行字段;draft_line_id 仅接受当前 Case DTO 返回的草稿身份。 */
|
||||
export const patchWorkspaceShippingOrderReviewLineField = (
|
||||
caseNo: string, lineKey: string, fieldId: string, payload: ShippingOrderReviewDraftWrite,
|
||||
caseNo: string, draftLineId: string, fieldId: string, payload: ShippingOrderReviewDraftWrite,
|
||||
) => requestJson<ShippingOrderReviewCase>(
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/draft/lines/${encodeURIComponent(lineKey)}/fields/${encodeURIComponent(fieldId)}`,
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/draft/lines/${encodeURIComponent(draftLineId)}/fields/${encodeURIComponent(fieldId)}`,
|
||||
{ method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) },
|
||||
);
|
||||
|
||||
@@ -555,15 +555,15 @@ export const addWorkspaceShippingOrderReviewLine = (caseNo: string, expectedDraf
|
||||
{ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ expected_draft_version: expectedDraftVersion }) },
|
||||
);
|
||||
|
||||
export const copyWorkspaceShippingOrderReviewLine = (caseNo: string, lineKey: string, expectedDraftVersion: number) =>
|
||||
export const copyWorkspaceShippingOrderReviewLine = (caseNo: string, draftLineId: string, expectedDraftVersion: number) =>
|
||||
requestJson<ShippingOrderReviewCase>(
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/draft/lines/${encodeURIComponent(lineKey)}/copy`,
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/draft/lines/${encodeURIComponent(draftLineId)}/copy`,
|
||||
{ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ expected_draft_version: expectedDraftVersion }) },
|
||||
);
|
||||
|
||||
export const deleteWorkspaceShippingOrderReviewLine = (caseNo: string, lineKey: string, expectedDraftVersion: number) =>
|
||||
export const deleteWorkspaceShippingOrderReviewLine = (caseNo: string, draftLineId: string, expectedDraftVersion: number) =>
|
||||
requestJson<ShippingOrderReviewCase>(
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/draft/lines/${encodeURIComponent(lineKey)}`,
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/draft/lines/${encodeURIComponent(draftLineId)}`,
|
||||
{ method: 'DELETE', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ expected_draft_version: expectedDraftVersion }) },
|
||||
);
|
||||
|
||||
@@ -598,7 +598,7 @@ export const retryWorkspaceShippingOrderStpAutoCreate = (caseNo: string) =>
|
||||
* 为复核明细人工选定一个或多个已启用库存源候选。
|
||||
* 核心逻辑:携带 expected_draft_version 乐观锁;服务端写入行级 inventory_routing 后重跑资格校验。
|
||||
* @param caseNo - 复核 Case 编号
|
||||
* @param lineKey - Draft 行稳定标识 line_key
|
||||
* @param draftLineId - Draft 行稳定标识 draft_line_id
|
||||
* @param payload - 候选编码与强制说明
|
||||
*/
|
||||
/**
|
||||
@@ -619,7 +619,7 @@ export const getWorkspaceTaskInventoryCandidates = (
|
||||
|
||||
/**
|
||||
* 重新匹配整单或指定明细的库存路由规则。
|
||||
* 核心逻辑:携带 expected_draft_version 与幂等键;可选 line_key 限定单行。
|
||||
* 核心逻辑:携带 expected_draft_version 与幂等键;可选 draft_line_id 限定单行。
|
||||
* @param caseNo - 复核 Case 编号
|
||||
* @param payload - 版本锁、幂等键与可选行键
|
||||
*/
|
||||
@@ -905,7 +905,7 @@ export const listWorkspaceShippingOrderReviewAuditTimeline = (
|
||||
export const decideWorkspaceShippingOrderReviewLineFulfillment = (
|
||||
caseNo: string,
|
||||
payload: {
|
||||
line_key: string;
|
||||
draft_line_id: string;
|
||||
decision_code: ShippingOrderReviewLineFulfillmentDecisionCode | string;
|
||||
reason?: string;
|
||||
release_field_values?: Record<string, string>;
|
||||
@@ -927,7 +927,7 @@ export const decideWorkspaceShippingOrderReviewLineFulfillment = (
|
||||
export const waveWorkspaceShippingOrderReviewLineFulfillment = (
|
||||
caseNo: string,
|
||||
payload: {
|
||||
line_keys: string[];
|
||||
snapshot_line_ids: number[];
|
||||
expected_draft_version: number;
|
||||
idempotency_key: string;
|
||||
reason?: string;
|
||||
@@ -939,6 +939,9 @@ export const waveWorkspaceShippingOrderReviewLineFulfillment = (
|
||||
task_no?: string | null;
|
||||
wave_no?: number | null;
|
||||
notice_no?: string | null;
|
||||
/** 是否已调度异步后置波次推进(生成 Excel → OT 进入货代上传);前端据此决定是否起投影轮询。 */
|
||||
auto_progress_started?: boolean;
|
||||
confirm_outcome?: string;
|
||||
}>(
|
||||
`/api/workspace/shipping-notice/order-review-cases/${encodeURIComponent(caseNo)}/line-fulfillment/wave`,
|
||||
{
|
||||
@@ -958,7 +961,7 @@ export const closeWorkspaceShippingOrderReviewLineFulfillment = (
|
||||
caseNo: string,
|
||||
payload: {
|
||||
reason: string;
|
||||
line_keys?: string[];
|
||||
draft_line_ids?: string[];
|
||||
expected_draft_version?: number;
|
||||
},
|
||||
) => requestJson<{
|
||||
|
||||
@@ -175,6 +175,7 @@ export function buildProcessingSemanticKey(
|
||||
summary: {
|
||||
total_tasks: projection.summary?.total_tasks || 0,
|
||||
total_files: projection.summary?.total_files || 0,
|
||||
submitted_files: projection.summary?.submitted_files || 0,
|
||||
processing: projection.summary?.processing || 0,
|
||||
needs_action: projection.summary?.needs_action || 0,
|
||||
completed: projection.summary?.completed || 0,
|
||||
@@ -1037,7 +1038,10 @@ export function normalizeConversationProcessingProjection(
|
||||
status_groups: normalizedGroups,
|
||||
lifecycle_nodes: projection.lifecycle_nodes || [],
|
||||
unclassified_summary: projection.unclassified_summary || { count: 0 },
|
||||
ui_state: projection.ui_state || undefined,
|
||||
// [AUTHORITY] 批次级 ui_state 与任务级 uiState 同为后端 snake_case DTO,必须统一
|
||||
// 归一化(blocking_reason/primary_action 增补 i18nKey;lifecycle_stage→lifecycleStage),
|
||||
// 否则三面阶段口径与工作台导航会读到两套字段名。
|
||||
ui_state: normalizeUiState(projection.ui_state) || undefined,
|
||||
output_artifacts: projection.output_artifacts || [],
|
||||
};
|
||||
}
|
||||
@@ -179,6 +179,7 @@ function normalizeLifecycleEntries(raw: unknown): NonNullable<ConversationProces
|
||||
function normalizeFacts(raw: unknown): ShippingProcessingFacts | undefined {
|
||||
if (!raw || typeof raw !== 'object') return undefined;
|
||||
const item = raw as Record<string, unknown>;
|
||||
const out: ShippingProcessingFacts = {};
|
||||
const toStrArr = (value: unknown): string[] => {
|
||||
if (!Array.isArray(value)) return [];
|
||||
return value.map((c) => String(c ?? '').trim()).filter(Boolean);
|
||||
@@ -187,7 +188,12 @@ function normalizeFacts(raw: unknown): ShippingProcessingFacts | undefined {
|
||||
if (!Array.isArray(value)) return [];
|
||||
return value.filter((row): row is Record<string, unknown> => Boolean(row) && typeof row === 'object');
|
||||
};
|
||||
const out: ShippingProcessingFacts = {};
|
||||
// 冻结选择计划中「已选但尚未物化/未识别」的附件诊断标记;仅 false 显式落盘,
|
||||
// 已识别/缺省不设 recognize,便于前端以 facts.recognized === false 识别未识别行。
|
||||
if (item.recognized === false) out.recognized = false;
|
||||
if (item.plan_state != null || item.planState != null) {
|
||||
out.planState = String(item.plan_state ?? item.planState);
|
||||
}
|
||||
if ('inventory_source_status' in item || 'inventorySourceStatus' in item) {
|
||||
out.inventorySourceStatus =
|
||||
item.inventory_source_status != null
|
||||
@@ -278,6 +284,7 @@ function normalizeAggregateSummary(
|
||||
return {
|
||||
intakeNo,
|
||||
total: count('total'),
|
||||
inGroup: count('in_group') || count('inGroup'),
|
||||
completed: count('completed'),
|
||||
processing: count('processing'),
|
||||
needsAction: count('needs_action') || count('needsAction'),
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* features/chat/shipping/orderExtractionProgressDisplay.ts
|
||||
* 用途:订单抽取进度展示的纯函数(阶段文案 key、耗时格式化),禁止前端发明阶段码。
|
||||
* 依赖:无;由 ShippingOrderExtractionCard / ShippingWorkflowTimeline 调用。
|
||||
* 逻辑:仅映射后端投影字段到 i18n key 与可读耗时;阈值与阶段判定一律以后端为准。
|
||||
* 逻辑:仅映射后端投影字段到 i18n key 与可读耗时;阈值与阶段判定一律以后端为准;
|
||||
* v2 新增 run 级阶段/状态 key 唯一出口(任务中心与聊天卡同源,输出不变契约见 spec §5.5)。
|
||||
*/
|
||||
|
||||
/** 将秒数格式化为「Xm Ys」风格;空值返回空串。 */
|
||||
@@ -35,3 +36,20 @@ export function resolveOrderExtractionUserStageKey(
|
||||
if (status) return `chat.shippingOrderExtractionDocumentStatus.${status}`;
|
||||
return 'chat.shippingOrderExtractionActivity.generic_processing';
|
||||
}
|
||||
|
||||
/**
|
||||
* run 级阶段/状态展示 key 的唯一出口(任务中心「我的识别」与聊天抽取卡同源消费)。
|
||||
* 核心逻辑:有 user_visible_stage → UserStage 短语文案族;否则回退 run status 的
|
||||
* CardTitle 文案族。仅做事实→key 的受控映射,禁止发明新阶段码。
|
||||
* @param userVisibleStage - 后端 current_activity.user_visible_stage
|
||||
* @param runStatus - 后端 run.status(queued/processing/completed/…)
|
||||
* @returns i18n key(输出不变契约:与改造前页面内联字面量逐字一致)
|
||||
*/
|
||||
export function resolveOrderExtractionRunStageKey(
|
||||
userVisibleStage: string | null | undefined,
|
||||
runStatus: string,
|
||||
): string {
|
||||
const stage = String(userVisibleStage || '').trim();
|
||||
if (stage) return `chat.shippingOrderExtractionUserStage.${stage}`;
|
||||
return `chat.shippingOrderExtractionCardTitle.${String(runStatus || '').trim()}`;
|
||||
}
|
||||
@@ -3,8 +3,18 @@
|
||||
* 用途:将统一 ShippingProcessing 状态/阶段码映射到四语言 i18n 键。
|
||||
* 依赖:vue-i18n Composer(由调用方传入 t / te)。
|
||||
* 逻辑:统一读 chat.shippingProcessing.*;阶段展示优先消费后端 label_key
|
||||
* (如 waiting_system_start),禁止把 stage code 直接当用户文案。
|
||||
* (如 waiting_system_start),禁止把 stage code 直接当用户文案;
|
||||
* v2 新增 Run 级 lifecycle_progress 的状态兜底映射与动态说明解析
|
||||
* (设计:docs/superpowers/specs/2026-08-31-shipping-review-status-display-unification-design.md)。
|
||||
*/
|
||||
import type {
|
||||
ShippingOrderExtractionLifecycleProgress,
|
||||
ShippingUserProcessingStatus,
|
||||
} from '@/features/chat/types/shipping.api.types';
|
||||
import {
|
||||
LIFECYCLE_STAGE_LABEL_KEYS,
|
||||
mapProcessingStageToLifecycle,
|
||||
} from '@/features/shipping-progress/stageMapping';
|
||||
|
||||
/** 会话 processing 旧 status_label → 统一 ShippingProcessingStatus。 */
|
||||
const LEGACY_STATUS_TO_PROCESSING: Record<string, string> = {
|
||||
@@ -137,7 +147,16 @@ export function resolveShippingProcessingStageLabel(
|
||||
if (te(reviewKey)) return t(reviewKey);
|
||||
}
|
||||
const code = String(stage || '').trim();
|
||||
if (!code) return '—';
|
||||
if (!code) {
|
||||
// [契约 §1.1「当前门禁 —」] 已知正式 OT 必有阶段,投影恒有 stage/lifecycle_stage;
|
||||
// 投影未就绪由右卡 :loading 驱动骨架占位。此处禁止落「—」,改为统一的「获取中」占位文案,
|
||||
// 避免用户看到无信息的破折号。仍在无 stage 且非 loading(连降级阶段都没有)时中性呈现。
|
||||
const loadingKey = 'chat.shippingOrderReview.currentProcessing.stageLoading';
|
||||
if (te(loadingKey)) return t(loadingKey);
|
||||
const waitingKey = 'chat.shippingProcessing.stageLabel.waiting_system_start';
|
||||
if (te(waitingKey)) return t(waitingKey);
|
||||
return '正在获取最新状态…';
|
||||
}
|
||||
const stageKey = shippingProcessingStageKey(code);
|
||||
if (te(stageKey)) return t(stageKey);
|
||||
const reviewCodeKey = `chat.shippingOrderReview.currentProcessing.stages.${code}`;
|
||||
@@ -148,6 +167,57 @@ export function resolveShippingProcessingStageLabel(
|
||||
: '等待系统启动';
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析「5 业务阶段」用户文案(批次中心与工作台共用词汇)。
|
||||
*
|
||||
* 三方统一约定:内联卡、右侧批次中心、工作台只消费后端 ui_state.lifecycle_stage,
|
||||
* 映射 `chat.shippingNoticeUi.stage.<code>`(接收解析/订单复核/通知准备/货代上传/上传完成)。
|
||||
* 入参可能是 5 业务阶段码或旧 15 技术阶段码:非业务码时按共享映射聚拢,确保永不显示
|
||||
* “等待系统启动”这类技术阶段措辞。
|
||||
*
|
||||
* @param stage - ui_state.lifecycle_stage(业务码),或兼容的技术阶段码
|
||||
* @param te - i18n te
|
||||
* @param t - i18n t
|
||||
* @returns 本地化文案;未知码回退 `—`
|
||||
*/
|
||||
export function resolveShippingLifecycleStageLabel(
|
||||
stage: string | null | undefined,
|
||||
te: (key: string) => boolean,
|
||||
t: (key: string) => string,
|
||||
): string {
|
||||
const raw = String(stage || '').trim();
|
||||
if (!raw) return '—';
|
||||
const code = LIFECYCLE_STAGE_LABEL_KEYS[raw]
|
||||
? raw
|
||||
: mapProcessingStageToLifecycle(raw);
|
||||
const labelKey = LIFECYCLE_STAGE_LABEL_KEYS[code];
|
||||
const stageKey = `chat.shippingNoticeUi.stage.${labelKey}`;
|
||||
if (labelKey && te(stageKey)) return t(stageKey);
|
||||
return '—';
|
||||
}
|
||||
|
||||
/**
|
||||
* 判定阻塞原因是否为「通用兜底」(应在行内隐藏,避免与状态芯片重复)。
|
||||
*
|
||||
* 三方约定:仅当下发到具体、非兜底的阻塞原因(有真实 i18n 文案)才展示原因行;
|
||||
* 进到 reasonCode.unknown / 无 i18n_key 的通用码一律视为重复信息。
|
||||
*
|
||||
* @param reason - 后端 blocking_reason(code / i18n_key)
|
||||
* @param te - i18n te
|
||||
* @returns true=通用兜底(应隐藏)
|
||||
*/
|
||||
export function isGenericBlockingReason(
|
||||
reason: { code?: string | null; i18nKey?: string | null; i18n_key?: string | null } | null | undefined,
|
||||
te: (key: string) => boolean,
|
||||
): boolean {
|
||||
if (!reason) return true;
|
||||
const i18nKey = String(reason.i18nKey || reason.i18n_key || '').trim();
|
||||
if (i18nKey && te(i18nKey)) return false;
|
||||
const code = String(reason.code || '').trim();
|
||||
if (code && code !== 'unknown' && te(`chat.shippingProcessing.reasonCode.${code}`)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析工作项类型文案键。
|
||||
* @param workItemType - order_intake | order_task
|
||||
@@ -171,3 +241,117 @@ export function shippingProcessingSourceTypeKey(sourceType: string): string {
|
||||
? `chat.shippingProcessing.sourceType.${code}`
|
||||
: 'chat.shippingProcessing.sourceType.eml';
|
||||
}
|
||||
|
||||
/** ========================================================================
|
||||
* v2(状态展示统一):Run 级 lifecycle_progress 的状态兜底与动态说明。
|
||||
* 仅消费后端下发码;受控常量禁止运行时扩充。
|
||||
* ======================================================================== */
|
||||
|
||||
/** lifecycle_status 白名单:白名单外(completed/未知)一律不产生说明与状态映射。 */
|
||||
const EXTRACTION_ACTIVITY_STATUS_ALLOWLIST = new Set(['running', 'waiting', 'failed', 'cancelled']);
|
||||
|
||||
/**
|
||||
* Run 级 lifecycle_status → 用户态兜底映射(spec §5.1)。
|
||||
* 核心逻辑:waiting + 表内原因码才补充/细化用户态;表外原因码不映射(维持待机)。
|
||||
* queue_backlog / processing_slow / processing_attention 属 health tip,可与 running 并存。
|
||||
*/
|
||||
const RUN_STATUS_FALLBACK_MAP: Readonly<Record<string, ShippingUserProcessingStatus>> = {
|
||||
review_required: 'waiting_human',
|
||||
queue_backlog: 'running',
|
||||
processing_slow: 'running',
|
||||
processing_attention: 'running',
|
||||
};
|
||||
|
||||
/**
|
||||
* 允许隐藏动态说明的原因码白名单(spec §5.2)。
|
||||
* 核心逻辑:仅登记"纯重复状态语义"的原因;排队/偏慢/需关注属诊断信息,一律保留说明。
|
||||
* review_required 若未来文案携带更具体原因,应移出本集合。
|
||||
*/
|
||||
const REDUNDANT_DETAIL_REASON_CODES: ReadonlySet<string> = new Set(['review_required']);
|
||||
|
||||
/**
|
||||
* 从 lifecycle_progress 提取受控原因码。
|
||||
* 核心逻辑:取 blocking_reason_i18n_key 末段(受控后缀解析),禁止模糊关键词匹配;
|
||||
* 仅认 RUN_STATUS_FALLBACK_MAP 登记过的码,其余一律空串。
|
||||
* @param progress - Run 级生命周期进度投影
|
||||
* @returns 原因码(如 review_required);无则空串
|
||||
*/
|
||||
export function extractExtractionProgressReasonCode(
|
||||
progress: ShippingOrderExtractionLifecycleProgress | null | undefined,
|
||||
): string {
|
||||
const key = String(progress?.blocking_reason_i18n_key || '').trim();
|
||||
if (!key) return '';
|
||||
const segment = key.split('.').pop() || '';
|
||||
return segment in RUN_STATUS_FALLBACK_MAP ? segment : '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Run 级 lifecycle_status → 用户态兜底(spec §5.1;仅供 currentTaskUserStatus 链尾使用)。
|
||||
* 核心逻辑:running/waiting/failed 才补充用户态;原因码只能"补充/细化",
|
||||
* 不能覆盖 failed/cancelled/completed;completed/cancelled/未知一律 null
|
||||
* (避免误伤本页 next-step 与按钮逻辑)。
|
||||
* @param progress - Run 级生命周期进度投影
|
||||
* @returns 用户态 6 值之一;无可兜底值时 null
|
||||
*/
|
||||
export function resolveRunLifecycleUserStatus(
|
||||
progress: ShippingOrderExtractionLifecycleProgress | null | undefined,
|
||||
): ShippingUserProcessingStatus | null {
|
||||
const status = String(progress?.lifecycle_status || '').trim().toLowerCase();
|
||||
if (status === 'running') return 'running';
|
||||
if (status === 'failed') return 'failed';
|
||||
if (status === 'waiting') {
|
||||
return RUN_STATUS_FALLBACK_MAP[extractExtractionProgressReasonCode(progress)] ?? null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析 Run 级 lifecycle_progress 的一行动态说明(spec §5.2 detailMessage / §5.3 轻提示共用)。
|
||||
* 核心逻辑:白名单外(completed/未知)返回 null,绝不回退成"等待启动";
|
||||
* running 才可声称自动处理:诊断原因(health tip)优先于步骤句,缺省通用处理中;
|
||||
* waiting 只用原因句、缺省中性等待;failed/cancelled 强制原因 key,禁止复用 running 的 step 文案。
|
||||
* @param progress - Run 级生命周期进度投影
|
||||
* @param i18n - 调用方传入的 te / t
|
||||
* @returns 单行说明文本 + running 位;无可展示内容时 null
|
||||
*/
|
||||
export function resolveExtractionActivityMessage(
|
||||
progress: ShippingOrderExtractionLifecycleProgress | null | undefined,
|
||||
i18n: { te: (key: string) => boolean; t: (key: string) => string },
|
||||
): { text: string; running: boolean } | null {
|
||||
const status = String(progress?.lifecycle_status || '').trim().toLowerCase();
|
||||
if (!progress || !EXTRACTION_ACTIVITY_STATUS_ALLOWLIST.has(status)) return null;
|
||||
const { t, te } = i18n;
|
||||
const localized = (key: string | null | undefined): string => {
|
||||
const normalized = String(key || '').trim();
|
||||
return normalized && te(normalized) ? t(normalized) : '';
|
||||
};
|
||||
const stepText = localized(progress.current_step_i18n_key);
|
||||
const reasonText = localized(progress.blocking_reason_i18n_key);
|
||||
if (status === 'running') {
|
||||
return { text: reasonText || stepText || t('chat.shippingProcessing.progress.systemProcessingNeed'), running: true };
|
||||
}
|
||||
if (status === 'waiting') {
|
||||
return { text: reasonText || t('chat.shippingProcessing.progress.lifecycleWaitingNeed'), running: false };
|
||||
}
|
||||
const terminalKey = status === 'failed'
|
||||
? 'chat.shippingProcessing.progress.lifecycleReason.failed'
|
||||
: 'chat.shippingProcessing.progress.lifecycleReason.cancelled';
|
||||
return { text: te(terminalKey) ? t(terminalKey) : reasonText, running: false };
|
||||
}
|
||||
|
||||
/**
|
||||
* 判定动态说明是否属"纯重复"可隐藏(spec §5.2)。
|
||||
* 核心逻辑:仅白名单内原因码且其状态兜底映射结果 == 当前展示 user_status 才隐藏;
|
||||
* 未知原因默认保留;不做模糊匹配、不比较任何语言的渲染文本。
|
||||
* @param reasonCode - extractExtractionProgressReasonCode 的输出
|
||||
* @param userStatus - 当前展示的用户态
|
||||
* @returns true=隐藏说明行
|
||||
*/
|
||||
export function isRedundantExtractionDetail(
|
||||
reasonCode: string,
|
||||
userStatus: string | null | undefined,
|
||||
): boolean {
|
||||
const code = String(reasonCode || '').trim();
|
||||
if (!REDUNDANT_DETAIL_REASON_CODES.has(code)) return false;
|
||||
return RUN_STATUS_FALLBACK_MAP[code] === String(userStatus || '').trim();
|
||||
}
|
||||
@@ -208,7 +208,6 @@ export function mapServerCandidate(remote: ShippingNoticeCandidateResponse): Shi
|
||||
fieldAdjudication: remote.field_adjudication && typeof remote.field_adjudication === 'object'
|
||||
? remote.field_adjudication
|
||||
: null,
|
||||
customerMatches: Array.isArray(remote.customer_matches) ? remote.customer_matches : [],
|
||||
businessSummary: remote.business_summary || {},
|
||||
duplicate,
|
||||
duplicateResolution: remote.duplicate_resolution
|
||||
|
||||
@@ -25,6 +25,12 @@ const TERMINAL_STATUSES = new Set([
|
||||
'completed',
|
||||
'cancelled',
|
||||
]);
|
||||
/** 用户态“中断/失败/等待人工”状态:结果不会自行变化,停止轮询(约定:中断不轮询)。 */
|
||||
const INTERRUPTED_USER_STATUSES = new Set([
|
||||
'waiting_human',
|
||||
'failed',
|
||||
'interrupted',
|
||||
]);
|
||||
|
||||
export type ShippingProcessingWorkItemTypeArg = 'order_intake' | 'order_task';
|
||||
|
||||
@@ -115,7 +121,12 @@ export function useShippingProcessingWorkItem(
|
||||
error.value = null;
|
||||
clearTimer();
|
||||
const next = projection.value;
|
||||
if (continuousPolling && next && !TERMINAL_STATUSES.has(next.status) && !stopped) {
|
||||
const userStatus = String(next?.userStatus || '').trim().toLowerCase();
|
||||
const stoppedByState = Boolean(next) && (
|
||||
TERMINAL_STATUSES.has(next!.status)
|
||||
|| INTERRUPTED_USER_STATUSES.has(userStatus)
|
||||
);
|
||||
if (continuousPolling && next && !stoppedByState && !stopped) {
|
||||
timer = window.setTimeout(() => {
|
||||
void refresh();
|
||||
}, pollMs);
|
||||
|
||||
@@ -74,7 +74,6 @@ export interface ShippingProcessingStageNode {
|
||||
absoluteIndex: number;
|
||||
status: ShippingProcessingStageNodeStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一动作意图(四页面只能消费 ActionPresentation)。
|
||||
* 权威:progress_audit_contract.SHIPPING_PROCESSING_ACTION_INTENTS
|
||||
@@ -169,7 +168,6 @@ export interface ShippingProcessingBlockingReason {
|
||||
i18nKey?: string | null;
|
||||
details?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户态统一 Projection 主动作(T8 决策 F2;后端对象 {code, i18n_key, parameters})。
|
||||
*/
|
||||
@@ -182,7 +180,6 @@ export interface ShippingProcessingPrimaryAction {
|
||||
targetSurface?: 'order_lifecycle_workbench' | null;
|
||||
targetLifecycleStage?: LifecycleWorkbenchStage | null;
|
||||
}
|
||||
|
||||
/** 订单生命周期工作台的后端目标阶段。 */
|
||||
export type LifecycleWorkbenchStage = 'intake_parse' | 'order_review' | 'fulfillment_prep' | 'freight_upload' | 'upload_complete';
|
||||
|
||||
@@ -198,6 +195,10 @@ export interface ShippingProcessingLifecycleEntry {
|
||||
* 用户态统一 Projection facts(T8 决策 F2;子状态事实字典)。
|
||||
*/
|
||||
export interface ShippingProcessingFacts {
|
||||
/** 冻结选择计划中「已选但尚未物化/未识别」的附件诊断标记;true/缺省为已识别。 */
|
||||
recognized?: boolean;
|
||||
/** 计划状态:selected_pending(已选待识别)等;用于排查未识别原因。 */
|
||||
planState?: string | null;
|
||||
inventoryMilestones?: {
|
||||
candidatesCalculated: 'pending' | 'completed';
|
||||
candidatesFrozen: 'pending' | 'completed';
|
||||
@@ -404,7 +405,7 @@ export interface ShippingProcessingProjection {
|
||||
export interface ShippingInventoryPreparationSummary {
|
||||
/** 实际任务级冻结源(task.task_frozen_inventory_source_codes),顺序以冻结记录为准。 */
|
||||
requiredSources: string[];
|
||||
/** 已就绪:有 prepared 状态 Attempt,或 inventory_lines_json + inventory_snapshot_id 已载入。 */
|
||||
/** 已就绪:有 prepared 状态 Attempt,且存在有效的 InventoryFile / TaskInventoryLink。 */
|
||||
preparedSources: string[];
|
||||
/** RPA 正在跑或入队中(queued / running);active_attempt_count > 0 的对应源集合。 */
|
||||
pendingSources: string[];
|
||||
@@ -618,12 +619,14 @@ export interface ConversationProcessingUserTask {
|
||||
blockingReason?: ShippingProcessingBlockingReason | null;
|
||||
primaryAction?: ShippingProcessingPrimaryAction | null;
|
||||
facts?: ShippingProcessingFacts;
|
||||
/** EML Intake 的用户可见全局分组;前端只消费,不从附件状态自行推导。 */
|
||||
/** EML 的本次 PDF 状态分区;同一 EML 可在多个分区各出现一次。 */
|
||||
userGroup?: ShippingProcessingProjection['userGroup'];
|
||||
/** 同一 EML Intake 聚合后的子任务状态,仅供展示,不作为写操作事实。 */
|
||||
aggregateSummary?: {
|
||||
intakeNo: string;
|
||||
total: number;
|
||||
/** 当前状态分区内的 PDF 数;与 total 一起说明 EML 的局部展示范围。 */
|
||||
inGroup?: number;
|
||||
completed: number;
|
||||
processing: number;
|
||||
needsAction: number;
|
||||
@@ -644,6 +647,8 @@ export interface ConversationProcessingSummary {
|
||||
total_tasks: number;
|
||||
/** 当前会话正式任务覆盖的文件总数(含处理记录,不含 order_intake) */
|
||||
total_files?: number;
|
||||
/** 本次提交/已选附件数:来自冻结选择计划,物化前即 ≥1、单调递增;与 total_files(已识别数)解耦 */
|
||||
submitted_files?: number;
|
||||
failed_files?: number;
|
||||
waiting_human_files?: number;
|
||||
processing_files?: number;
|
||||
@@ -828,10 +833,8 @@ export interface ShippingTaskSummary {
|
||||
business_no?: string | null;
|
||||
/** 通知单列表只读行摘要;库存数据由后端当前匹配事实投影,前端不得自行计算。 */
|
||||
notice_line_summary?: Array<{
|
||||
/** 项次展示值;来源由 line_no_source 标注,前端不得按行号自行回退。 */
|
||||
/** 发货通知项次;每张通知单从 1 开始编号。 */
|
||||
line_no?: string | number | null;
|
||||
/** 项次来源:field=冻结字段,customer_po_line_no=客户 PO 行号,sequence=系统行序。 */
|
||||
line_no_source?: 'field' | 'customer_po_line_no' | 'sequence' | string | null;
|
||||
part_number?: string | null;
|
||||
customer_part_number?: string | null;
|
||||
reservation_id?: string | null;
|
||||
@@ -891,7 +894,6 @@ export interface ShippingTaskSummary {
|
||||
destination_country?: string | null;
|
||||
warehouse_hint?: string | null;
|
||||
inventory_source_code?: string | null;
|
||||
inventory_connector_type?: string | null;
|
||||
inventory_warehouse_id?: string | null;
|
||||
inventory_source_status?: InventorySourceStatus | null;
|
||||
inventory_source_method?: InventorySourceMethod | null;
|
||||
@@ -1156,6 +1158,8 @@ export interface ShippingProcessGateUserSummary {
|
||||
current_gate_code?: string | null;
|
||||
gate_status?: string | null;
|
||||
expected_gate_version?: number | null;
|
||||
/** 当前执行 Gate;系统等待态可能没有 current_blocking_gate,但阶段能力仍需以此提交。 */
|
||||
current_gate?: ShippingProcessGateProjection | null;
|
||||
current_blocking_gate?: ShippingProcessGateProjection | null;
|
||||
blocking_reason_code?: string | null;
|
||||
blocking_message?: string | null;
|
||||
@@ -1284,32 +1288,6 @@ export interface ShippingTaskBatchDispositionResponse {
|
||||
requested_count: number;
|
||||
}
|
||||
|
||||
export interface ShippingOrderCustomerMatchCandidate {
|
||||
customer_id: number;
|
||||
standard_name: string;
|
||||
short_code: string;
|
||||
site_id?: number | null;
|
||||
site_name?: string | null;
|
||||
site_code?: string | null;
|
||||
matched_by?: string[];
|
||||
}
|
||||
|
||||
export interface ShippingOrderCustomerMatch {
|
||||
id: number;
|
||||
extraction_id: number;
|
||||
role: 'bill_to' | 'ship_to';
|
||||
raw_name?: string | null;
|
||||
status: 'unmatched' | 'unique_candidate' | 'ambiguous' | 'confirmed' | string;
|
||||
customer_id?: number | null;
|
||||
site_id?: number | null;
|
||||
source_system?: string | null;
|
||||
external_code?: string | null;
|
||||
standard_name?: string | null;
|
||||
short_code?: string | null;
|
||||
candidates?: ShippingOrderCustomerMatchCandidate[];
|
||||
resolution_method?: string | null;
|
||||
}
|
||||
|
||||
export interface ShippingFieldConflict {
|
||||
id: number;
|
||||
task_id: number;
|
||||
@@ -1406,7 +1384,7 @@ export interface ShippingStpFacts {
|
||||
resolution_counts?: Record<string, number> | null;
|
||||
line_resolutions?: Array<{
|
||||
line_index?: number | null;
|
||||
line_key?: string | null;
|
||||
line_no?: number | null;
|
||||
disposition?: string | null;
|
||||
effective_reservation_id?: string | null;
|
||||
part_number?: string | null;
|
||||
@@ -1445,6 +1423,26 @@ export type ShippingBusinessStage =
|
||||
|
||||
export type ShippingActionKind = 'forward' | 'recovery' | 'view' | 'terminate';
|
||||
|
||||
export interface ShippingOrderEditWindow {
|
||||
/** 头字段是否可编辑:该订单全部通知无 Excel 且无活动 Gate Attempt。 */
|
||||
header?: boolean;
|
||||
/** 逐行是否可编辑:行所属通知无 Excel 且无活动 Attempt;未入波次行不受首单 Excel 限制。 */
|
||||
lines?: Record<string, boolean>;
|
||||
}
|
||||
|
||||
/**
|
||||
* 阶段能力(Task 2 下发;prep 工作台能力工具条消费)。
|
||||
* 权威:formalTaskDetail.ui_state.stage_context.preparation.capabilities。
|
||||
* scope:task=任务级按钮;line=行级能力(工具条仅渲染 task 级)。
|
||||
*/
|
||||
export interface ShippingStageCapability {
|
||||
code: string;
|
||||
scope: 'task' | 'line';
|
||||
action_code: string;
|
||||
enabled: boolean;
|
||||
disabled_reason?: string | null;
|
||||
}
|
||||
|
||||
export interface ShippingTaskUiState {
|
||||
task_no: string;
|
||||
stage?: {
|
||||
@@ -1455,6 +1453,8 @@ export interface ShippingTaskUiState {
|
||||
} | null;
|
||||
/** 正式任务与批次中心同源的生命周期入口,前端仅投影。 */
|
||||
lifecycle_stage?: ShippingBusinessStage | null;
|
||||
/** 二期编辑窗矩阵(D10):前端 fail-closed 禁用锁定字段;与后端 editable_scope 同构。 */
|
||||
edit_window?: ShippingOrderEditWindow | null;
|
||||
lifecycle_entries?: ShippingProcessingLifecycleEntry[];
|
||||
/** 无有效 Candidate 时的独立接收解析处置授权;不是订单生命周期入口。 */
|
||||
intake_parse_authorized?: boolean;
|
||||
@@ -1482,14 +1482,16 @@ export interface ShippingTaskUiState {
|
||||
preparation?: {
|
||||
status?: 'processing' | 'blocked' | 'ready' | string;
|
||||
reason_code?: string | null;
|
||||
/** 任务级工作面可操作:正式 OT 已确认且非仅查看(≠ 字段级 edit_window)。 */
|
||||
editable?: boolean;
|
||||
/** 锁定边界 = Excel 生成(D7):生成后行源只读,改源走撤销/人工流程。 */
|
||||
source_locked?: boolean;
|
||||
frozen_order?: { task_no?: string | null; snapshot_id?: number | null } | null;
|
||||
/** 冻结订单行始终可读;不依赖库存文件或匹配结果。 */
|
||||
frozen_order_lines?: Array<{
|
||||
line_key?: string | null;
|
||||
/** 项次展示值;来源由 line_no_source 标注。 */
|
||||
snapshot_line_id?: number | null;
|
||||
/** 发货通知项次;每张通知单从 1 开始编号。 */
|
||||
line_no?: string | number | null;
|
||||
/** 项次来源:field=冻结字段,customer_po_line_no=客户 PO 行号,sequence=系统行序。 */
|
||||
line_no_source?: 'field' | 'customer_po_line_no' | 'sequence' | string | null;
|
||||
reservation_id?: string | null;
|
||||
part_number?: string | null;
|
||||
required_qty?: string | number | null;
|
||||
@@ -1501,16 +1503,20 @@ export interface ShippingTaskUiState {
|
||||
status?: string | null;
|
||||
inventory_file_id?: number | null;
|
||||
}>;
|
||||
/** 人工覆写库存源(方案 3·放开):全部已启用源,供行级下拉人工指定。 */
|
||||
source_options?: Array<{ source_code?: string | null; display_name?: string | null }>;
|
||||
/** 阶段能力(Task 2 下发);prep 工作台能力工具条消费,scope=task 级。 */
|
||||
capabilities?: ShippingStageCapability[];
|
||||
/** 仅当前任务活动关联的库存快照才可下载。 */
|
||||
inventory_file?: { available?: boolean; file_name?: string | null } | null;
|
||||
match_status?: string | null;
|
||||
has_match_result?: boolean;
|
||||
lines?: Array<{
|
||||
line_key?: string | null;
|
||||
/** 项次展示值;来源由 line_no_source 标注。 */
|
||||
snapshot_line_id?: number | null;
|
||||
/** 发货通知项次;每张通知单从 1 开始编号。 */
|
||||
line_no?: string | number | null;
|
||||
/** 项次来源:field=冻结字段,customer_po_line_no=客户 PO 行号,sequence=系统行序。 */
|
||||
line_no_source?: 'field' | 'customer_po_line_no' | 'sequence' | string | null;
|
||||
/** 原生客户 PO 行号(业务核对主键):后端 prep line 直接下发;无值/订单 schema 未定义为 null。 */
|
||||
customer_po_line_no?: string | null;
|
||||
reservation_id?: string | null;
|
||||
part_number?: string | null;
|
||||
required_qty?: string | number | null;
|
||||
@@ -1518,6 +1524,9 @@ export interface ShippingTaskUiState {
|
||||
shortage_qty?: string | number | null;
|
||||
source_code?: string | null;
|
||||
status?: string | null;
|
||||
/** 多文件冲突行(D5):候选源列表供行内下拉,选定后走 override_line_inventory_source。 */
|
||||
source_ambiguous?: boolean;
|
||||
source_candidates?: Array<string>;
|
||||
}>;
|
||||
artifact?: { file_name?: string | null; status?: string | null } | null;
|
||||
} | null;
|
||||
@@ -1643,10 +1652,8 @@ export interface ShippingFreightNoticeGroup {
|
||||
export_file_name?: string | null;
|
||||
available_actions?: string[];
|
||||
lines: Array<{
|
||||
/** 项次展示值;来源由 line_no_source 标注,前端不得按行号自行回退。 */
|
||||
/** 发货通知项次;每张通知单从 1 开始编号。 */
|
||||
line_no?: string | number | null;
|
||||
/** 项次来源:field=冻结字段,customer_po_line_no=客户 PO 行号,sequence=系统行序。 */
|
||||
line_no_source?: 'field' | 'customer_po_line_no' | 'sequence' | string | null;
|
||||
part_number?: string | null;
|
||||
reservation_id?: string | null;
|
||||
shipment_qty?: string | number | null;
|
||||
@@ -1666,7 +1673,6 @@ export interface ShippingInventoryUploadResponse {
|
||||
checkpoint?: string;
|
||||
data?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface ShippingTaskCreateResponse {
|
||||
status: string;
|
||||
message?: string;
|
||||
@@ -2231,7 +2237,7 @@ export interface ReviewWorkbenchAuditContext {
|
||||
run_no?: string | null;
|
||||
document_id?: number | null;
|
||||
field_id?: string | null;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
/** header | line | line_unassigned | unscoped;相同 field_code 在订单头和明细行是不同业务字段。 */
|
||||
scope?: 'header' | 'line' | 'line_unassigned' | 'unscoped' | string | null;
|
||||
page_no?: number | null;
|
||||
@@ -2268,24 +2274,15 @@ export type ShippingOrderReviewValueSource =
|
||||
| 'machine'
|
||||
| 'manual'
|
||||
| 'manual_override'
|
||||
| 'derived'
|
||||
| 'skipped'
|
||||
| 'llm_suggested';
|
||||
|
||||
export interface ShippingOrderReviewDraftFieldMeta {
|
||||
value_source?: ShippingOrderReviewValueSource;
|
||||
locked?: boolean;
|
||||
override_reason_code?: string;
|
||||
override_reason_text?: string;
|
||||
derivation?: {
|
||||
rule_id?: string | null;
|
||||
skip_reason?: string | null;
|
||||
source_field_code?: string | null;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ShippingOrderReviewDraftLine {
|
||||
line_key?: string;
|
||||
draft_line_id?: string;
|
||||
machine_fields?: Array<Record<string, unknown>>;
|
||||
values?: Record<string, { value?: unknown; source?: string; locked?: boolean }>;
|
||||
field_meta?: Record<string, ShippingOrderReviewDraftFieldMeta>;
|
||||
@@ -2314,6 +2311,9 @@ export interface ShippingOrderReviewCaseSummary {
|
||||
/** 仅 parse_failed 时由后端下发,供当前阶段卡调用原 Intake retry API。 */
|
||||
intake_no?: string | null;
|
||||
source_run_no?: string | null;
|
||||
/** 正式任务身份(选法 2):与左侧文件导航共用同一来源,供正式阶段懒加载复核编辑器。 */
|
||||
confirmed_task_no?: string | null;
|
||||
has_formal_ot?: boolean;
|
||||
}
|
||||
|
||||
export interface ShippingOrderReviewRun {
|
||||
@@ -2441,7 +2441,8 @@ export interface ShippingOrderReviewInventoryRuleSuggestion {
|
||||
|
||||
/** 建单前资格行级投影;与后端 validation.line_projections 对齐。 */
|
||||
export interface ShippingOrderReviewBuildEligibilityLineProjection {
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
line_no?: number | null;
|
||||
line_index?: number;
|
||||
effective_reservation_id?: string | null;
|
||||
inventory_source_hint?: string | null;
|
||||
@@ -2475,7 +2476,7 @@ export interface ShippingOrderReviewBuildEligibilityIssue {
|
||||
code: string;
|
||||
severity?: string;
|
||||
owning_gate_code?: string;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
line_index?: number;
|
||||
field_code?: string;
|
||||
reason_code?: string;
|
||||
@@ -2522,7 +2523,7 @@ export interface ShippingOrderReviewBuildEligibility {
|
||||
export interface ShippingOrderReviewInventoryRoutingRerouteWrite {
|
||||
expected_draft_version: number;
|
||||
idempotency_key?: string;
|
||||
line_key?: string;
|
||||
draft_line_id?: string;
|
||||
}
|
||||
|
||||
/** 建单前客户识别投影(复核工作台固定客户区)。 */
|
||||
@@ -2536,7 +2537,7 @@ export interface ShippingOrderReviewCustomerResolution {
|
||||
standard_name?: string | null;
|
||||
short_code?: string | null;
|
||||
candidates?: Array<Record<string, unknown>>;
|
||||
match?: ShippingOrderCustomerMatch | null;
|
||||
match?: Record<string, unknown> | null;
|
||||
input_values?: Array<{
|
||||
definition_code?: string | null;
|
||||
definition_label?: string | null;
|
||||
@@ -2567,7 +2568,7 @@ export interface ShippingOrderReviewFieldConflict {
|
||||
conflict_key: string;
|
||||
field_code: string;
|
||||
line_index?: number | null;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
/** header | line | line_unassigned | unscoped;相同 field_code 在订单头和明细行是不同业务字段。 */
|
||||
scope?: 'header' | 'line' | 'line_unassigned' | 'unscoped' | string | null;
|
||||
severity?: string;
|
||||
@@ -2586,6 +2587,8 @@ export interface ShippingOrderReviewCase {
|
||||
/** 当前 Candidate 对应的真实 OT 编号;供复核合成进度上下文与统一投影轮询。 */
|
||||
order_task_no?: string | null;
|
||||
document: { id: number; file_name?: string | null };
|
||||
/** 兼容历史快照的 document_id(现网详情 DTO 以 document.id 为准,此处保留回退读取)。 */
|
||||
document_id?: number | null;
|
||||
/** 建单前客户确认状态;工作台始终展示,不依赖 Process Gate */
|
||||
customer_resolution?: ShippingOrderReviewCustomerResolution | null;
|
||||
/** 建单前字段冲突;有开放项时工作台侧栏展示裁决区 */
|
||||
@@ -2766,10 +2769,6 @@ export interface ShippingOrderReviewDraftWrite {
|
||||
expected_draft_version: number;
|
||||
value?: unknown;
|
||||
restore_machine?: boolean;
|
||||
/** 内部项次 line_no 人工覆盖原因分类(recognition_error / customer_line_exception / business_correction / other)。 */
|
||||
override_reason_code?: string;
|
||||
/** 「其他」时必填的补充说明。 */
|
||||
override_reason_text?: string;
|
||||
}
|
||||
|
||||
/** 字段高亮质量;与后端 field_highlight_contract 对齐。 */
|
||||
@@ -2821,7 +2820,7 @@ export interface ShippingOrderReviewEvidence {
|
||||
export interface ShippingOrderReviewLlmSuggestion {
|
||||
suggestion_no: string;
|
||||
field_id: string;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
scope: string;
|
||||
evidence_level: string;
|
||||
contract_version?: string;
|
||||
@@ -2873,7 +2872,7 @@ export interface ShippingOrderReviewLlmSuggestion {
|
||||
|
||||
export interface ShippingOrderReviewLlmSuggestionRequest {
|
||||
field_id: string;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
evidence_level?: string;
|
||||
issue_code?: string | null;
|
||||
allow_full_pdf?: boolean;
|
||||
@@ -2916,7 +2915,6 @@ export interface ShippingNoticeCandidateResponse {
|
||||
field_confidence?: Record<string, number | null | undefined>;
|
||||
evidence?: ShippingFieldEvidenceItem[];
|
||||
field_adjudication?: ShippingFieldAdjudication | null;
|
||||
customer_matches?: ShippingOrderCustomerMatch[];
|
||||
business_summary?: Record<string, unknown> | null;
|
||||
duplicate?: ShippingDuplicateResult | null;
|
||||
duplicate_resolution?: {
|
||||
@@ -3057,7 +3055,7 @@ export interface ShippingOrderReviewTechnicalProgress {
|
||||
/** 建单前 Reservation 行级投影。 */
|
||||
export interface ShippingOrderReviewReservationLine {
|
||||
line_index?: number;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
effective_reservation_id?: string | null;
|
||||
can_build?: boolean;
|
||||
block_reason?: string | null;
|
||||
@@ -3070,7 +3068,7 @@ export interface ShippingOrderReviewReservationIssue {
|
||||
severity?: string;
|
||||
message?: string | null;
|
||||
line_index?: number | null;
|
||||
line_key?: string | null;
|
||||
draft_line_id?: string | null;
|
||||
field_code?: string | null;
|
||||
}
|
||||
|
||||
@@ -3086,7 +3084,7 @@ export interface ShippingOrderReviewReservation {
|
||||
/** 行级履约决定历史/活动版本。 */
|
||||
export interface ShippingOrderReviewLineFulfillmentDecision {
|
||||
id?: number;
|
||||
line_key?: string;
|
||||
draft_line_id?: string;
|
||||
line_index?: number | null;
|
||||
decision_version?: number;
|
||||
decision_code?: string;
|
||||
@@ -3117,7 +3115,9 @@ export type ShippingOrderReviewLineFulfillmentDecisionCode =
|
||||
|
||||
/** 行级履约与库存缺口投影行(含 OT 匹配事实与 allowed_actions)。 */
|
||||
export interface ShippingOrderReviewLineFulfillmentLine {
|
||||
line_key: string;
|
||||
/** 草稿域当前身份;下游库存行另见 snapshot_line_id。 */
|
||||
draft_line_id: string;
|
||||
snapshot_line_id?: number | null;
|
||||
line_index?: number | null;
|
||||
reservation_id?: string | null;
|
||||
part_number?: string | null;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* 逻辑:附件 composable、shipping/* composable 与 Chat 消息组件统一引用本文件类型。
|
||||
*/
|
||||
|
||||
import type { ShippingFieldAdjudication, ShippingOrderCustomerMatch } from './shipping.api.types';
|
||||
import type { ShippingFieldAdjudication } from './shipping.api.types';
|
||||
|
||||
export type ShippingActionVariant = 'primary' | 'secondary' | 'danger';
|
||||
|
||||
@@ -87,7 +87,6 @@ export interface ShippingNoticeCandidate {
|
||||
fieldConfidence?: Record<string, number | null | undefined>;
|
||||
evidence?: Array<Record<string, unknown>>;
|
||||
fieldAdjudication?: ShippingFieldAdjudication | null;
|
||||
customerMatches?: ShippingOrderCustomerMatch[];
|
||||
businessSummary: Record<string, unknown>;
|
||||
duplicate?: ShippingDuplicateResult;
|
||||
duplicateResolution?: ShippingDuplicateResolution;
|
||||
|
||||
+2
-3
@@ -1,6 +1,6 @@
|
||||
<!--
|
||||
features/shipping-notice/customers/components/CustomerShadowQualityPanel.vue
|
||||
用途:展示客户影子识别分布、自动确认/纠错指标、人工标注准确率和最近样本。
|
||||
用途:展示客户影子识别分布、自动确认指标、人工标注准确率和最近样本。
|
||||
依赖:customer-master.types、vue-i18n。
|
||||
逻辑:展示质量卡片、客户事件审计与真值标签;不调用客户绑定、编号或任务接口。
|
||||
-->
|
||||
@@ -50,8 +50,7 @@ const eventBusinessChange = (detail: Record<string, unknown>): string => {
|
||||
<div v-for="card in [
|
||||
['total', report.total], ['unique', report.status_counts.unique_candidate || 0], ['ambiguous', report.status_counts.ambiguous || 0],
|
||||
['unmatched', report.status_counts.unmatched || 0], ['accuracy', report.accuracy == null ? '-' : `${(report.accuracy * 100).toFixed(1)}%`],
|
||||
['autoBound', report.auto_bound_count], ['autoRate', report.auto_resolution?.auto_confirmation_rate == null ? '-' : `${(report.auto_resolution.auto_confirmation_rate * 100).toFixed(1)}%`],
|
||||
['corrected', report.auto_resolution?.corrected_task_count || 0]
|
||||
['autoBound', report.auto_bound_count], ['autoRate', report.auto_resolution?.auto_confirmation_rate == null ? '-' : `${(report.auto_resolution.auto_confirmation_rate * 100).toFixed(1)}%`]
|
||||
]" :key="String(card[0])" class="rounded-xl border border-default p-3"><div class="text-xs text-muted">{{ t(`admin.shippingCustomers.shadow.cards.${card[0]}`) }}</div><div class="text-xl font-semibold">{{ card[1] }}</div></div>
|
||||
</div>
|
||||
<div v-if="report?.auto_resolution?.quality_gate" class="rounded-xl border p-4" :class="report.auto_resolution.quality_gate.is_eligible ? 'border-emerald-300 bg-emerald-50/50' : 'border-amber-300 bg-amber-50/50'">
|
||||
|
||||
@@ -108,7 +108,7 @@ export interface ShippingCustomerLifecycleImpact {
|
||||
shipping_notices: number;
|
||||
business_sequences: number;
|
||||
external_references: number;
|
||||
order_customer_matches: number;
|
||||
confirmed_customer_resolutions: number;
|
||||
import_target_rows: number;
|
||||
import_result_rows: number;
|
||||
shadow_top_candidates: number;
|
||||
@@ -239,7 +239,6 @@ export interface ShippingCustomerShadowReport {
|
||||
rule_version: string;
|
||||
evaluated_count: number;
|
||||
auto_confirmed_count: number;
|
||||
corrected_task_count: number;
|
||||
auto_confirmation_rate?: number | null;
|
||||
quality_gate: {
|
||||
status: 'eligible' | 'insufficient_labeled_samples' | 'insufficient_accuracy';
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
import { computed } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import type { ShippingProcessingProjection } from '@/features/chat/types/shipping.api.types';
|
||||
import { resolveShippingProcessingStageLabel, resolveShippingProcessingStatusLabel } from '@/features/chat/shipping/shippingProcessingLabels';
|
||||
import {
|
||||
resolveShippingLifecycleStageLabel,
|
||||
resolveShippingProcessingStatusLabel,
|
||||
isGenericBlockingReason,
|
||||
} from '@/features/chat/shipping/shippingProcessingLabels';
|
||||
import { useProcessingActionPresentation } from '../composables/useProcessingActionPresentation';
|
||||
import type { ActionPresentationItem } from '../types';
|
||||
import { resolveGateReasonLabel } from '../gateReasonLabel';
|
||||
@@ -35,20 +39,22 @@ const actionPresentation = useProcessingActionPresentation(projectionRef, { surf
|
||||
* 紧凑单行:● 阶段名 · 第 x/total。
|
||||
*/
|
||||
const inlineLine = computed(() => {
|
||||
const stage = props.projection.uiState?.stage || props.projection.userStage || props.projection.stage;
|
||||
const stageLabel = resolveShippingProcessingStageLabel(stage, te, t);
|
||||
const stage = props.projection.uiState?.lifecycleStage || props.projection.uiState?.stage || props.projection.userStage || props.projection.stage;
|
||||
const stageLabel = resolveShippingLifecycleStageLabel(stage, te, t);
|
||||
return `● ${stageLabel}`;
|
||||
});
|
||||
|
||||
/**
|
||||
* Gate 阻断原因(禁止展示内部码)。
|
||||
* Gate 阻断原因(仅具体、非兜底才展示,避免与状态标签重复;禁止展示内部码)。
|
||||
*/
|
||||
const gateReason = computed(() => resolveGateReasonLabel(
|
||||
props.projection.uiState
|
||||
? props.projection.uiState.blocking_reason?.code
|
||||
: (props.projection.blockingReason?.code || props.projection.currentGate?.blockingReasonCode),
|
||||
{ t, te },
|
||||
));
|
||||
const gateReason = computed(() => {
|
||||
const reason = props.projection.uiState
|
||||
? props.projection.uiState.blocking_reason
|
||||
: (props.projection.blockingReason || null);
|
||||
if (isGenericBlockingReason(reason, te)) return '';
|
||||
const code = String(reason?.code || props.projection.currentGate?.blockingReasonCode || '').trim();
|
||||
return resolveGateReasonLabel(code, { t, te });
|
||||
});
|
||||
|
||||
/** 单一状态标签:阶段行只描述位置,状态标签只描述当前可操作状态。 */
|
||||
const statusLabel = computed(() => resolveShippingProcessingStatusLabel(
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* features/shipping-progress/stageMapping.ts
|
||||
* 用途:发货通知统一阶段口径映射的唯一前端模块(处理阶段 → 5 业务标签)。
|
||||
* 依赖:features/chat/types/shipping.api.types.ts 的 ShippingProcessingStage /
|
||||
* SHIPPING_PROCESSING_STAGES(与后端 progress_audit_contract 对齐)。
|
||||
* 逻辑:批次中心卡片、生命周期工作台 5 段头部统一消费本模块,禁止前端任何页面
|
||||
* 私自分叉「处理阶段 → 5 tab」映射;后端权威映射为
|
||||
* lifecycle_projection.LIFECYCLE_STAGE_BY_PROCESSING_STAGE,此处是它的前端镜像。
|
||||
* 未知/非法阶段 clamp 到 `intake_parse` 安全兜底(阶段不漂移)。
|
||||
*/
|
||||
|
||||
import {
|
||||
SHIPPING_PROCESSING_STAGES,
|
||||
type ShippingProcessingStage,
|
||||
} from '@/features/chat/types/shipping.api.types';
|
||||
|
||||
/** 5 段业务标签(后端 lifecycle_projection.LIFECYCLE_STAGES 的前端镜像)。 */
|
||||
export const LIFECYCLE_STAGE_CODES = [
|
||||
'intake_parse',
|
||||
'order_review',
|
||||
'fulfillment_prep',
|
||||
'freight_upload',
|
||||
'upload_complete',
|
||||
] as const;
|
||||
|
||||
/** 5 段业务标签码联合类型。 */
|
||||
export type LifecycleStageCode = (typeof LIFECYCLE_STAGE_CODES)[number];
|
||||
|
||||
/** 5 段业务标签(code → i18n key 后缀;i18n 前缀 chat.shippingNoticeUi.stage.)。 */
|
||||
export const LIFECYCLE_STAGE_LABEL_KEYS: Record<string, string> = {
|
||||
intake_parse: 'intakeParse',
|
||||
order_review: 'orderReview',
|
||||
fulfillment_prep: 'fulfillmentPrep',
|
||||
freight_upload: 'freightUpload',
|
||||
upload_complete: 'uploadComplete',
|
||||
};
|
||||
|
||||
/** 处理阶段 → 5 业务标签映射(唯一);顺序即后端 15 阶,禁止前端自行增删。 */
|
||||
export const SHIPPING_STAGE_TO_LIFECYCLE: Record<string, LifecycleStageCode> = {
|
||||
upload_received: 'intake_parse',
|
||||
email_parsing: 'intake_parse',
|
||||
document_parsing: 'intake_parse',
|
||||
email_adjudicating: 'intake_parse',
|
||||
candidate_creating: 'intake_parse',
|
||||
customer_resolving: 'order_review',
|
||||
duplicate_checking: 'order_review',
|
||||
inventory_source_resolving: 'order_review',
|
||||
waiting_review: 'order_review',
|
||||
order_creating: 'fulfillment_prep',
|
||||
inventory_fetching: 'fulfillment_prep',
|
||||
// 过渡态:库存准备/充足性归入通知准备。
|
||||
inventory_preparation: 'fulfillment_prep',
|
||||
inventory_matching: 'fulfillment_prep',
|
||||
inventory_sufficiency: 'fulfillment_prep',
|
||||
excel_generating: 'fulfillment_prep',
|
||||
freight_uploading: 'freight_upload',
|
||||
// 过渡态:人工上传交接归入货代上传。
|
||||
manual_upload_handoff: 'freight_upload',
|
||||
completed: 'upload_complete',
|
||||
};
|
||||
|
||||
/**
|
||||
* 将统一处理阶段映射为 5 段业务标签;未知/非法阶段 clamp 到「接收解析」安全兜底。
|
||||
*
|
||||
* @param stage - 后端投影下发的处理阶段码(SHIPPING_PROCESSING_STAGES)。
|
||||
* @returns 5 段业务标签码(LIFECYCLE_STAGE_CODES 之一)。
|
||||
*/
|
||||
export function mapProcessingStageToLifecycle(
|
||||
stage: string | null | undefined,
|
||||
): LifecycleStageCode {
|
||||
const code = String(stage || '').trim();
|
||||
return SHIPPING_STAGE_TO_LIFECYCLE[code] ?? 'intake_parse';
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断某处理阶段码是否在共享 15 阶序列内(未知阶段返回 false,供调用方 fail-closed)。
|
||||
*
|
||||
* @param stage - 处理阶段码。
|
||||
* @returns 是否属于共享 SHIPPING_PROCESSING_STAGES。
|
||||
*/
|
||||
export function isKnownProcessingStage(
|
||||
stage: string | null | undefined,
|
||||
): stage is ShippingProcessingStage {
|
||||
return SHIPPING_PROCESSING_STAGES.includes(String(stage || '') as ShippingProcessingStage);
|
||||
}
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
SHIPPING_NOTICE_AGENT_CODE,
|
||||
} from '@/features/chat/api/shipping.api';
|
||||
import type { ShippingOrderExtractionRun } from '@/features/chat/types/shipping.api.types';
|
||||
import { formatOrderExtractionElapsed } from '@/features/chat/shipping/orderExtractionProgressDisplay';
|
||||
import { formatOrderExtractionElapsed, resolveOrderExtractionRunStageKey } from '@/features/chat/shipping/orderExtractionProgressDisplay';
|
||||
|
||||
const { t, te } = useI18n();
|
||||
const router = useRouter();
|
||||
@@ -69,14 +69,15 @@ async function load() {
|
||||
|
||||
/**
|
||||
* 用户可见阶段文案;无投影时回退状态文案。
|
||||
* v2:key 构造改走共享 resolveOrderExtractionRunStageKey(输出不变,仅事实解析同源)。
|
||||
*/
|
||||
function stageLabel(run: ShippingOrderExtractionRun): string {
|
||||
const stage = String(run.current_activity?.user_visible_stage || '').trim();
|
||||
if (stage) {
|
||||
const key = `chat.shippingOrderExtractionUserStage.${stage}`;
|
||||
const key = resolveOrderExtractionRunStageKey(stage, run.status);
|
||||
if (te(key)) return t(key);
|
||||
}
|
||||
const statusKey = `chat.shippingOrderExtractionCardTitle.${run.status}`;
|
||||
const statusKey = resolveOrderExtractionRunStageKey(null, run.status);
|
||||
return te(statusKey) ? t(statusKey) : run.status;
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ function evidenceText(row: NonNullable<ShippingStpFacts['line_resolutions']>[num
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(row, index) in lineRows"
|
||||
:key="`${row.line_key || row.line_index}-${index}`"
|
||||
:key="`${row.line_no || row.line_index}-${index}`"
|
||||
class="border-b border-default/50 align-top"
|
||||
>
|
||||
<td class="py-1.5 pr-2 font-mono">{{ (row.line_index ?? index) + 1 }}</td>
|
||||
|
||||
@@ -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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -101,25 +101,6 @@
|
||||
"shippingNoticeDuplicateResolved": "บันทึกวิธีจัดการรายการซ้ำแล้ว",
|
||||
"shippingNoticeDuplicateResolveFailed": "บันทึกวิธีจัดการรายการซ้ำไม่สำเร็จ",
|
||||
"shippingCandidateTitle": "ตรวจสอบรายการคำสั่งซื้อ",
|
||||
"shippingCustomerMatch": {
|
||||
"title": "การจับคู่ลูกค้า",
|
||||
"role": "บทบาทลูกค้า",
|
||||
"rawName": "ข้อความในคำสั่งซื้อ",
|
||||
"standardName": "ลูกค้ามาตรฐาน",
|
||||
"shortCode": "รหัสย่อ",
|
||||
"site": "สถานที่จัดส่ง",
|
||||
"statusLabel": "สถานะ",
|
||||
"roles": {
|
||||
"bill_to": "ลูกค้าวางบิล",
|
||||
"ship_to": "ลูกค้าจัดส่ง"
|
||||
},
|
||||
"status": {
|
||||
"unmatched": "ไม่พบข้อมูล",
|
||||
"unique_candidate": "พบหนึ่งรายการ",
|
||||
"ambiguous": "พบหลายรายการ",
|
||||
"confirmed": "ยืนยันแล้ว"
|
||||
}
|
||||
},
|
||||
"shippingCandidateCount": "คำสั่งซื้อ {count} รายการ",
|
||||
"shippingCandidateReady": "พร้อมสร้างงาน",
|
||||
"shippingCandidateNeedsReview": "ต้องตรวจสอบ",
|
||||
@@ -1486,10 +1467,11 @@
|
||||
"completed": "เสร็จสิ้น ดูได้อย่างเดียว",
|
||||
"blocked": "เงื่อนไขก่อนหน้ายังไม่เสร็จ",
|
||||
"prerequisite": "กรุณาทำขั้นตอนปัจจุบันให้เสร็จก่อน",
|
||||
"autoAdvanced": "เดินหน้าอัตโนมัติไปยัง {stage}",
|
||||
"identity": {"po": "PO: {value}", "case": "Case: {value}", "version": "เวอร์ชันคำสั่งซื้อ: V{value}"},
|
||||
"descriptions": {"intake_parse": "ตรวจสอบเนื้อหาอีเมลและไฟล์แนบปัจจุบัน แล้วจัดการปัญหาการแยกวิเคราะห์ขาเข้า", "order_review": "ตรวจสอบข้อมูลและหลักฐาน แก้ข้อขัดแย้ง และตรึงคำสั่งซื้อ", "fulfillment_prep": "จับคู่สต็อกและสร้าง Excel แจ้งงาน", "freight_upload": "ดาวน์โหลดไฟล์แจ้งงาน รัน RPA หรือลงทะเบียนการอัปโหลดด้วยตนเอง และตรวจสอบผลลัพธ์ที่ไม่ทราบ", "upload_complete": "แสดงเมื่อยืนยันหลักฐานความสำเร็จของการอัปโหลดครบถ้วนแล้วเท่านั้น"},
|
||||
"intakeParse": {"title": "รับและแยกวิเคราะห์", "email": "เนื้อหาอีเมล", "emailPreviewTitle": "ตัวอย่างเนื้อหาอีเมลแบบปลอดภัย", "noEmail": "ไม่มีบริบทอีเมล", "attachment": "ไฟล์แนบปัจจุบัน", "fileName": "ชื่อไฟล์", "fileType": "ประเภทไฟล์", "preview": "ตัวอย่างไฟล์แนบ", "previewLoading": "กำลังโหลดตัวอย่างไฟล์แนบ…", "loadPreview": "โหลดตัวอย่างไฟล์แนบ", "previewUnsupported": "ไฟล์แนบปัจจุบันไม่ใช่ PDF และไม่สามารถแสดงตัวอย่างที่นี่ได้", "loading": "กำลังโหลดบริบทการแยกวิเคราะห์ขาเข้า…", "loadFailed": "โหลดบริบทการแยกวิเคราะห์ขาเข้าไม่สำเร็จ", "retry": "ลองอีกครั้ง"},
|
||||
"prepare": {"title": "เตรียมการแจ้ง", "subtitle": "จัดการตัวเลือกสต็อก ปัญหาการจับคู่ และการสร้างไฟล์แจ้งงานที่นี่", "frozenOrder": "คำสั่งซื้อที่ตรึงแล้ว", "inventorySource": "แหล่งสต็อก", "excel": "Excel การจัดส่ง", "downloadInventory": "ดาวน์โหลดไฟล์สินค้าคงคลัง", "retryInventory": "ดึงข้อมูลสต็อกอีกครั้ง", "releaseShortage": "อนุมัติส่วนขาดสต็อก", "releaseShortageHint": "การอนุมัติทำให้สร้าง Excel การจัดส่งได้ โปรดระบุเหตุผลสำหรับส่วนขาดนี้", "releaseReasonPlaceholder": "กรอกเหตุผลการอนุมัติ (จำเป็น)", "releaseConfirm": "ยืนยันการอนุมัติ", "requiredQty": "จำนวนที่ต้องการ", "matchWorkspace": "การจับคู่สต็อก", "lineCount": "ผลลัพธ์สต็อก {count} รายการ", "lineStatus": "สถานะการจับคู่", "matched": "จับคู่แล้ว", "shortage": "สต็อกไม่เพียงพอ", "matchStatus": {"not_found": "ไม่พบสต็อก", "preparing": "กำลังเตรียมสต็อก", "mapping_failed": "จับคู่ฟิลด์สต็อกไม่สำเร็จ", "unavailable": "สต็อกไม่พร้อมใช้", "source_conflict": "แหล่งสต็อกขัดแย้ง", "invalid_key": "คีย์จับคู่ไม่ถูกต้อง", "result_missing": "กำลังรอผลการจับคู่", "unknown": "ไม่ทราบสถานะ"}, "pending": "การจับคู่สต็อกหรือไฟล์แจ้งการจัดส่งยังไม่พร้อม โปรดดำเนินการจากบัตรงานปัจจุบัน", "loadFailed": "โหลดรายละเอียดการเตรียมการแจ้งไม่สำเร็จ จึงยังยืนยันข้อมูลปัจจุบันไม่ได้", "detailUnavailable": "ยังไม่ได้รับรายละเอียดการเตรียมการแจ้ง จึงยังแสดงคำสั่งซื้อที่ตรึงและข้อมูลการจับคู่สต็อกไม่ได้", "retry": "โหลดอีกครั้ง"},
|
||||
"prepare": {"customerPoLine": "เลขที่บรรทัด PO ของลูกค้า", "title": "เตรียมการแจ้ง", "subtitle": "จัดการตัวเลือกสต็อก ปัญหาการจับคู่ และการสร้างไฟล์แจ้งงานที่นี่", "frozenOrder": "คำสั่งซื้อที่ตรึงแล้ว", "inventorySource": "แหล่งสต็อก", "excel": "Excel การจัดส่ง", "downloadInventory": "ดาวน์โหลดไฟล์สินค้าคงคลัง", "retryInventory": "ดึงข้อมูลสต็อกอีกครั้ง", "sourceAmbiguous": "รายการนี้ตรงกับหลายแหล่งสินค้า โปรดเลือกคลังที่จัดส่งจริง", "sourceLocked": "สร้าง Excel แจ้งเตือนแล้ว แหล่งสินค้าถูกล็อก", "selectSource": "เลือกแหล่งสินค้า", "releaseShortage": "อนุมัติส่วนขาดสต็อก", "releaseShortageHint": "การอนุมัติทำให้สร้าง Excel การจัดส่งได้ โปรดระบุเหตุผลสำหรับส่วนขาดนี้", "releaseReasonPlaceholder": "กรอกเหตุผลการอนุมัติ (จำเป็น)", "releaseConfirm": "ยืนยันการอนุมัติ", "requiredQty": "จำนวนที่ต้องการ", "matchWorkspace": "การจับคู่สต็อก", "lineCount": "ผลลัพธ์สต็อก {count} รายการ", "lineStatus": "สถานะการจับคู่", "matched": "จับคู่แล้ว", "shortage": "สต็อกไม่เพียงพอ", "matchStatus": {"not_found": "ไม่พบสต็อก", "preparing": "กำลังเตรียมสต็อก", "mapping_failed": "จับคู่ฟิลด์สต็อกไม่สำเร็จ", "unavailable": "สต็อกไม่พร้อมใช้", "source_conflict": "แหล่งสต็อกขัดแย้ง", "invalid_key": "คีย์จับคู่ไม่ถูกต้อง", "result_missing": "กำลังรอผลการจับคู่", "unknown": "ไม่ทราบสถานะ"}, "pending": "การจับคู่สต็อกหรือไฟล์แจ้งการจัดส่งยังไม่พร้อม โปรดดำเนินการจากบัตรงานปัจจุบัน", "loadFailed": "โหลดรายละเอียดการเตรียมการแจ้งไม่สำเร็จ จึงยังยืนยันข้อมูลปัจจุบันไม่ได้", "detailUnavailable": "ยังไม่ได้รับรายละเอียดการเตรียมการแจ้ง จึงยังแสดงคำสั่งซื้อที่ตรึงและข้อมูลการจับคู่สต็อกไม่ได้", "retry": "โหลดอีกครั้ง", "capability": {"retry_inventory_preparation": "ดึงข้อมูลสต็อกอีกครั้ง", "reload_inventory_result": "อ่านผลสต็อกอีกครั้ง", "override_line_inventory_source": "เปลี่ยนแหล่งสต็อก"}, "capabilityDisabled": {"excel_locked": "สร้าง Excel แจ้งเตือนแล้ว แหล่งสินค้าถูกล็อก", "no_candidates": "ยังไม่มีตัวเลือกแหล่งสต็อกที่พร้อมใช้", "no_prior_result": "ยังไม่มีผลลัพธ์สต็อกในประวัติ"}},
|
||||
"freightUpload": {"title": "อัปโหลดให้ผู้ให้บริการขนส่ง", "subtitle": "จัดกลุ่มตามใบแจ้งส่งสินค้า; แต่ละใบแจ้งส่งสินค้ามี Excel หนึ่งไฟล์", "loading": "กำลังโหลดใบแจ้งส่งสินค้า…", "loadFailed": "โหลดใบแจ้งส่งสินค้าไม่สำเร็จ โปรดลองรีเฟรช", "poMissing": "งานปัจจุบันยังไม่พบ PO จึงยังจัดกลุ่มใบแจ้งส่งสินค้าไม่ได้", "empty": "ไม่มีใบแจ้งส่งสินค้าที่อัปโหลดได้สำหรับ PO นี้", "download": "ดาวน์โหลด Excel", "lineNo": "รายการ", "lineNoSourceCustomerPo": "เลขบรรทัด PO ของลูกค้า", "lineNoSourceSequence": "ลำดับระบบ (ไม่พบเลขรายการภายใน)", "selected": "เลือกแล้ว {count} ใบแจ้งส่งสินค้า", "batchDownload": "ดาวน์โหลดที่เลือก", "batchRpa": "อัปโหลด RPA แบบกลุ่ม", "batchConfirm": "ยืนยันว่าอัปโหลดแล้ว", "noticeCount": "รวม {count} ใบแจ้งส่งสินค้า", "uploadError": "สาเหตุการอัปโหลดล้มเหลว: {reason}", "uploadStatus": {"pending": "รออัปโหลด", "uploading": "กำลังอัปโหลด", "failed": "อัปโหลดล้มเหลว", "uploaded": "อัปโหลดแล้ว", "needsHuman": "ต้องอัปโหลดด้วยตนเอง"}},
|
||||
"uploadComplete": {"title": "แจ้งเสร็จสิ้น", "subtitle": "ยืนยันหลักฐานความสำเร็จของการอัปโหลดแล้ว หน้านี้อ่านได้อย่างเดียว", "batchCount": "ชุดนี้ได้อัปโหลดใบแจ้งส่งสินค้าแล้ว {count} ใบ", "batchDownload": "ดาวน์โหลด ZIP ทั้งชุด", "batchDownloading": "กำลังแพ็ก…", "uploaded": "อัปโหลดแล้ว", "uploadedAt": "{time}", "exportFile": "ไฟล์: {file}", "expand": "แสดงรายละเอียด", "collapse": "ซ่อนรายละเอียด", "uploadMode": "วิธีอัปโหลด: {mode}", "uploadModeManual": "ยืนยันด้วยตนเอง", "uploadModeRpa": "อัปโหลด RPA", "empty": "ชุดนี้ยังไม่มีใบแจ้งส่งสินค้าที่อัปโหลดแล้ว"},
|
||||
"upload": {"title": "อัปโหลดให้ผู้ให้บริการขนส่ง", "subtitle": "ดาวน์โหลด Excel แจ้งงาน อัปโหลดบนแพลตฟอร์มขนส่งแล้วยืนยันการอัปโหลดด้วยตนเอง หรือรัน RPA", "manualUpload": "ยืนยันการอัปโหลดด้วยตนเอง", "attempt": "ความพยายามอัปโหลดล่าสุด: {mode} · {status}"},
|
||||
@@ -1703,15 +1685,11 @@
|
||||
},
|
||||
"machineSource": "แหล่งที่มา: การระบุของระบบ",
|
||||
"manualSource": "แหล่งที่มา: แก้ไขโดยผู้ใช้",
|
||||
"derivedSource": "แหล่งที่มา: อนุมานจากกฎ",
|
||||
"overrideSource": "แหล่งที่มา: เขียนทับโดยผู้ใช้ (ล็อกแล้ว)",
|
||||
"skippedSource": "แหล่งที่มา: ข้ามการอนุมาน",
|
||||
"valueSources": {
|
||||
"machine": "ระบบระบุ",
|
||||
"manual": "แก้ไขโดยผู้ใช้",
|
||||
"manual_override": "เขียนทับโดยผู้ใช้",
|
||||
"derived": "อนุมานจากกฎ",
|
||||
"skipped": "ข้ามการอนุมาน",
|
||||
"llm_suggested": "AI แนะนำ (รอยืนยัน)"
|
||||
},
|
||||
"llmSuggestion": {
|
||||
@@ -1765,38 +1743,15 @@
|
||||
"cancel": "ยกเลิก",
|
||||
"submit": "ส่งการตัดสินใจ"
|
||||
},
|
||||
"lineNoOverrideDialog": {
|
||||
"title": "เขียนทับเลขรายการภายใน",
|
||||
"impact": "การเขียนทับเลขรายการภายในจะถูกบันทึกการตรวจสอบถาวร และล็อกฟิลด์จนกว่าจะคืนค่า กรุณาเลือกเหตุผล",
|
||||
"newValue": "ค่าใหม่: {value}",
|
||||
"reasonCodeLabel": "เหตุผลการเขียนทับ",
|
||||
"reasonCodeRequired": "กรุณาเลือกเหตุผลการเขียนทับ",
|
||||
"reasonTextLabel": "รายละเอียดเพิ่มเติม",
|
||||
"reasonTextPlaceholder": "จำเป็นเมื่อเลือก อื่นๆ",
|
||||
"reasonTextRequired": "ต้องระบุรายละเอียดเมื่อเลือก อื่นๆ",
|
||||
"confirm": "ยืนยันการเขียนทับ",
|
||||
"reasons": {
|
||||
"recognition_error": "ระบุผิดพลาด",
|
||||
"customer_line_exception": "ข้อยกเว้นเลขรายการลูกค้า",
|
||||
"business_correction": "แก้ไขทางธุรกิจ",
|
||||
"other": "อื่นๆ"
|
||||
}
|
||||
},
|
||||
"restoreMachine": "คืนค่าที่ระบบระบุ",
|
||||
"restorePriorProjection": "คืนค่าจากการระบุ/อนุมาน",
|
||||
"lineNoUnsavedHint": "ยังไม่บันทึก · กรอกเหตุผลเมื่อออกจากช่อง",
|
||||
"lineNoUnsavedHint": "ยังไม่บันทึก",
|
||||
"lockedHint": "ล็อกแล้ว",
|
||||
"derivedFrom": "จากฟิลด์ {field}",
|
||||
"derivationRuleId": "กฎ {ruleId}",
|
||||
"derivationSkipReason": "เหตุผลที่ข้าม {reason}",
|
||||
"lineage": {
|
||||
"source": "แหล่งค่า",
|
||||
"locked": "สถานะล็อก",
|
||||
"overrideReason": "เหตุผลที่แก้ทับ",
|
||||
"overrideNote": "หมายเหตุ",
|
||||
"derivedFrom": "derive จาก",
|
||||
"ruleId": "รหัสกฎ",
|
||||
"skipReason": "เหตุผลที่ข้าม"
|
||||
"derivedFrom": "derive จาก"
|
||||
},
|
||||
"saved": "บันทึกแล้ว",
|
||||
"saving": "กำลังบันทึก",
|
||||
@@ -1932,6 +1887,7 @@
|
||||
"backToSession": "กลับไปการประมวลผลครั้งนี้",
|
||||
"workItemHeader": "รายการงาน {itemNo} · {version}",
|
||||
"jumpToCurrentVersion": "ไปยังเวอร์ชันปัจจุบัน",
|
||||
"autoJumpedToCurrentVersion": "สลับไปยังเวอร์ชันปัจจุบันแล้ว",
|
||||
"currentVersionUnavailable": "เวอร์ชันปัจจุบันยังไม่พร้อมหรือยังรีเฟรชความคืบหน้าไม่ได้ โปรดลองอีกครั้งในภายหลัง",
|
||||
"showContext": "บริบทการสนทนา",
|
||||
"hideContext": "ซ่อนบริบท",
|
||||
@@ -2209,7 +2165,8 @@
|
||||
},
|
||||
"automation": {
|
||||
"waitingPreOt": "รอระบบเริ่มสร้างออเดอร์อัตโนมัติ",
|
||||
"waitingPostOt": "รอระบบเริ่มทำงาน"
|
||||
"waitingPostOt": "รอระบบเริ่มทำงาน",
|
||||
"retryStp": "ลองดำเนินการอัตโนมัติอีกครั้ง"
|
||||
},
|
||||
"currentProcessing": {
|
||||
"title": "กำลังดำเนินการ",
|
||||
@@ -2577,14 +2534,26 @@
|
||||
},
|
||||
"shippingProcessing": {
|
||||
"batchStatusTitle": "สถานะการประมวลผลเป็นชุด",
|
||||
"batchSummaryIncomplete": "ชุดงานยังไม่เสร็จ · ระบุแล้ว {recognized} ไฟล์ · พบข้อผิดพลาด {failed} ไฟล์",
|
||||
"batchSummaryProcessing": "กำลังประมวลผลชุดงาน · ระบุแล้ว {recognized} ไฟล์",
|
||||
"batchSummaryCompleted": "ประมวลผลชุดงานเสร็จแล้ว · ระบุแล้ว {recognized} ไฟล์",
|
||||
"recognizingAttachments": "กำลังระบุไฟล์แนบ…",
|
||||
"recognizedOfTotal": "ระบุแล้ว {recognized}/{submitted}",
|
||||
"notRecognized": "ยังไม่ระบุ",
|
||||
"notRecognizedHint": "ยังไม่ระบุ;ระบบยังประมวลผลอยู่สามารถตรวจสอบสาเหตุได้ในภายหลัง",
|
||||
"ignoredNonOrderAttachment": "ละเว้นแล้ว",
|
||||
"ignoredNonOrderAttachmentHint": "ไม่ใช่ PDF คำสั่งซื้อ จึงไม่เข้าร่วมการระบุคำสั่งซื้อ",
|
||||
"batchWorkbench": {
|
||||
"inGroupCount": "กลุ่มนี้ {inGroup}/{total} ไฟล์",
|
||||
"overview": {
|
||||
"totalFiles": "ไฟล์ทั้งหมด",
|
||||
"processing": "กำลังประมวลผล",
|
||||
"completed": "เสร็จสิ้น",
|
||||
"needsAction": "ต้องดำเนินการ",
|
||||
"ignored": "ละเว้นแล้ว",
|
||||
"completion": "เสร็จสิ้น {percent}%",
|
||||
"processedOfTotal": "ประมวลผลแล้ว {completed}/{total}"
|
||||
"processedOfTotal": "ประมวลผลแล้ว {completed}/{total}",
|
||||
"processedOfTotalWithIgnored": "ประมวลผลไฟล์คำสั่งซื้อแล้ว {completed}/{total} · ละเว้น {ignored} ไฟล์"
|
||||
},
|
||||
"groups": {
|
||||
"failed": "ข้อผิดพลาด · {count} ไฟล์",
|
||||
@@ -2647,17 +2616,24 @@
|
||||
"pendingMaterials": "เอกสารรอดำเนินการ",
|
||||
"orderTasks": "งานคำสั่งซื้อ",
|
||||
"groupNeedsAction": "ต้องดำเนินการ · {count} งาน",
|
||||
"groupFailed": "ข้อผิดพลาด / ล้มเหลว · {count} งาน",
|
||||
"groupWaitingHuman": "ต้องดำเนินการด้วยตนเอง / ถูกขัดจังหวะ · {count} งาน",
|
||||
"groupProcessing": "ระบบกำลังประมวลผล · {count} งาน",
|
||||
"groupFailed": "ข้อผิดพลาด / ล้มเหลว · {count} ไฟล์",
|
||||
"groupWaitingHuman": "ต้องดำเนินการด้วยตนเอง / ถูกขัดจังหวะ · {count} ไฟล์",
|
||||
"groupProcessing": "ระบบกำลังประมวลผล · {count} ไฟล์",
|
||||
"groupIgnored": "ละเว้นแล้ว · {count} ไฟล์",
|
||||
"aggregate": {
|
||||
"completed": "อัปโหลดแล้ว {count}",
|
||||
"processing": "กำลังประมวลผล {count}",
|
||||
"needsAction": "รอดำเนินการ {count}",
|
||||
"failed": "ผิดปกติ {count}"
|
||||
},
|
||||
"groupCompleted": "เสร็จสิ้น · {count}",
|
||||
"groupProcessingRecords": "ประวัติการประมวลผล · {count}",
|
||||
"statusBadge": {
|
||||
"completed": "เสร็จสิ้น",
|
||||
"processing": "กำลังประมวลผล",
|
||||
"needsAction": "รอดำเนินการ",
|
||||
"failed": "ผิดปกติ"
|
||||
},
|
||||
"groupCompleted": "เสร็จสิ้น · {count} ไฟล์",
|
||||
"groupProcessingRecords": "ประวัติการประมวลผล · {count} ไฟล์",
|
||||
"groupRecordCompleted": "เสร็จสิ้น",
|
||||
"groupRecordHistoryVersions": "เวอร์ชันก่อนหน้า",
|
||||
"groupRecordCancelled": "ยกเลิกแล้ว",
|
||||
@@ -2964,13 +2940,15 @@
|
||||
"panelPinnedHint": "มีงานที่กำลังทำหรือต้องดำเนินการ แผงนี้จะเปิดค้างไว้ คุณยังยุบรายละเอียดไฟล์ได้",
|
||||
"panelPinnedLabel": "ต้องดำเนินการ",
|
||||
"groupHistory": "ประวัติ · {count}",
|
||||
"groupHistoryRecords": "เวอร์ชันก่อนหน้า · {count}",
|
||||
"groupCancelled": "ยกเลิกแล้ว · {count}",
|
||||
"groupHistoryRecords": "เวอร์ชันก่อนหน้า · {count} ไฟล์",
|
||||
"groupCancelled": "ยกเลิกแล้ว · {count} ไฟล์",
|
||||
"expandHistory": "ขยาย",
|
||||
"collapseHistory": "ย่อ",
|
||||
"taskFiles": "{count} ไฟล์",
|
||||
"taskPdfCount": "{count} PDF",
|
||||
"multiPdfTaskTitle": "งานรู้จำคำสั่งซื้อ",
|
||||
"multiPdfTaskTitle": "การประมวลผลไฟล์คำสั่งซื้อ",
|
||||
"completedAndIgnoredFileSummary": "ไฟล์คำสั่งซื้อ: เสร็จสิ้น {completed} · ละเว้น {ignored}",
|
||||
"ignoredFileSummary": "ละเว้น {count}",
|
||||
"multiPdfNameSeparator": ", ",
|
||||
"multiPdfNamesMore": "{names} รวม {count} PDF",
|
||||
"cancelEntireTask": "ยกเลิกทั้งงาน",
|
||||
@@ -3523,4 +3501,4 @@
|
||||
"selectedRetryableCount": "ลองใหม่ได้ {count} รายการ",
|
||||
"noRetryable": "ไม่มีแหล่งที่เลือกต้องลองใหม่ (พร้อมแล้วหรือกำลังดึง)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"generic": "คำขอล้มเหลว",
|
||||
"codes": {
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "นโยบายการปฏิบัติตามหรือการผูกความสามารถของฟิลด์ไม่ถูกต้อง",
|
||||
@@ -329,24 +329,18 @@
|
||||
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "ไม่สามารถแก้ไขฟิลด์นี้ในงานทางการได้",
|
||||
"SHIPPING_ORDER_EXCEL_FROZEN": "สร้าง Excel จัดส่งแล้ว ฟิลด์งานทางการถูกล็อก",
|
||||
"SHIPPING.ORDER_EXCEL_FROZEN": "สร้าง Excel จัดส่งแล้ว ฟิลด์งานทางการถูกล็อก",
|
||||
"SHIPPING_EDIT_WINDOW_FIELD_LOCKED": "ฟิลด์นี้อยู่นอกหน้าต่างแก้ไข (สร้าง Excel แล้วหรือระบบกำลังประมวลผล)",
|
||||
"SHIPPING.EDIT_WINDOW_FIELD_LOCKED": "ฟิลด์นี้อยู่นอกหน้าต่างแก้ไข (สร้าง Excel แล้วหรือระบบกำลังประมวลผล)",
|
||||
"SHIPPING_EDIT_WINDOW_SYSTEM_BUSY": "ระบบกำลังประมวลผล โปรดแก้ไขภายหลัง",
|
||||
"SHIPPING.EDIT_WINDOW_SYSTEM_BUSY": "ระบบกำลังประมวลผล โปรดแก้ไขภายหลัง",
|
||||
"SHIPPING_INVALID_CONFLICT_RESOLUTION": "วิธีแก้ความขัดแย้งไม่ถูกต้อง",
|
||||
"SHIPPING_CASE_NOT_FOUND": "ไม่พบรายการธุรกิจ",
|
||||
"SHIPPING_BUSINESS_NUMBER_DAILY_LIMIT_REACHED": "ลำดับรายวันแบบสองหลักของลูกค้าถูกใช้ครบแล้ว (01-99)",
|
||||
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_REQUIRED": "โปรดยืนยันลูกค้ามาตรฐานก่อนกำหนดหมายเลขธุรกิจ",
|
||||
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_INVALID": "ลูกค้าถูกปิดใช้งานหรือไม่มีอยู่ จึงไม่สามารถกำหนดหมายเลขธุรกิจได้",
|
||||
"SHIPPING_BUSINESS_NUMBER_SHORT_CODE_INVALID": "รหัสย่อลูกค้าต้องเป็นตัวอักษรอังกฤษพิมพ์ใหญ่ 2-6 ตัว",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_TASK_REQUIRED": "ระบุหมายเลขทางเทคนิคหรือหมายเลขธุรกิจที่ต้องแก้ไข",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_REASON_REQUIRED": "ต้องระบุเหตุผลในการแก้ไขลูกค้า",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_NUMBER_REQUIRED": "แก้ไขลูกค้าได้เฉพาะรายการธุรกิจที่มีหมายเลขแล้ว",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_ALREADY_REPLACED": "รายการธุรกิจนี้ถูกแทนที่แล้ว โปรดใช้หมายเลขธุรกิจปัจจุบัน",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_UNCHANGED": "ลูกค้าที่แก้ไขเหมือนกับลูกค้าปัจจุบัน",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_TASK_MISSING": "ไม่พบงานหรือรายการธุรกิจที่ต้องแก้ไข",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_UPLOADED_BLOCKED": "งานถูกอัปโหลดไปยังผู้รับจัดการขนส่งแล้ว โปรดยกเลิกในระบบภายนอกก่อน",
|
||||
"SHIPPING_ORDER_EXTRACTION_NOT_FOUND": "ไม่พบข้อมูลการแยกคำสั่งซื้อหรือไม่มีสิทธิ์เข้าถึง",
|
||||
"SHIPPING_ORDER_CUSTOMER_REQUIRED": "โปรดเลือกลูกค้ามาตรฐาน",
|
||||
"SHIPPING_ORDER_CUSTOMER_ROLE_INVALID": "บทบาทลูกค้าไม่ถูกต้อง",
|
||||
"SHIPPING_ORDER_CUSTOMER_MATCH_NOT_FOUND": "ไม่พบข้อมูลการจับคู่ลูกค้าของคำสั่งซื้อ",
|
||||
"SHIPPING_ORDER_CUSTOMER_SITE_INVALID": "โปรดเลือกสถานที่จัดส่งที่ใช้งานอยู่และเป็นของลูกค้ารายนี้",
|
||||
"SHIPPING_CUSTOMER_NOT_FOUND": "ไม่พบลูกค้า",
|
||||
"SHIPPING_CUSTOMER_CHANGE_REASON_REQUIRED": "ต้องระบุเหตุผลเมื่อแก้ไขสถานะ รหัสย่อ หรือสิทธิ์การจับคู่อัตโนมัติของลูกค้า",
|
||||
"SHIPPING_CUSTOMER_NAME_REQUIRED": "ต้องระบุชื่อลูกค้ามาตรฐาน",
|
||||
@@ -484,6 +478,7 @@
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_PDF_AUTOMARK_LAYOUT_STALE": "เลย์เอาต์ตัวอย่างเปลี่ยนระหว่างทำเครื่องหมายอัตโนมัติ โปรดรีเฟรชหรือผูกตัวอย่างปัจจุบันใหม่ แล้วลองอีกครั้ง",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "ผลเลย์เอาต์เปลี่ยนแปลงแล้ว โปรดรีเฟรชตัวอย่างและดูตัวอย่างอีกครั้ง",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "ผลเลย์เอาต์ยังอยู่ระหว่างการเตรียม โปรดรีเฟรชสถานะอีกครั้งในภายหลัง",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_SUITE_CHECKSUM_CONFLICT": "ข้อมูลประจำตัวการเผยแพร่ถูกชุดทดสอบแบบปิดบังอื่นใช้แล้ว โปรดอย่าเปลี่ยนสถานะเทมเพลตด้วยตนเอง และติดต่อผู้ดูแลระบบ",
|
||||
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "เคสตรวจทานนี้ยืนยันสร้างงานแล้ว กรุณารีทรายการผลักดันอัตโนมัติหลังยืนยันแทน",
|
||||
"SHIPPING.STP_ENQUEUE_FAILED": "จัดคิวสร้างออเดอร์อัตโนมัติไม่สำเร็จ กรุณาลองใหม่หรือติดต่อผู้ดูแล",
|
||||
"SHIPPING.STP_NOT_ELIGIBLE": "ออเดอร์นี้ยังไม่ผ่านเงื่อนไขสร้างอัตโนมัติ กรุณาตรวจและผ่านเกตก่อนลองใหม่",
|
||||
@@ -544,4 +539,4 @@
|
||||
"TRANSFER.SELECTION_INVALID": "รายการที่เลือกมี Invoice ที่ดำเนินการไม่ได้",
|
||||
"TRANSFER.INVALID_STATE_TRANSITION": "การเปลี่ยนสถานะไม่ถูกต้อง"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -246,6 +246,7 @@
|
||||
"retry_inventory_from_field_mapping": "กู้คืนจากขั้นแมปฟิลด์สต็อก",
|
||||
"retry_inventory_from_matching": "จับคู่ใหม่ด้วยสต็อกปัจจุบัน",
|
||||
"retry_inventory_matching": "ลองจับคู่สต็อกอีกครั้ง",
|
||||
"override_line_inventory_source": "กำหนดแหล่งสินค้าของรายการนี้ใหม่",
|
||||
"open_inventory_match_review": "เปิดการตรวจสอบการจับคู่สต็อก",
|
||||
"recheck_inventory_sufficiency": "ตรวจสอบความเพียงพอของสต็อกอีกครั้ง",
|
||||
"open_shortage_review": "เปิดการตรวจสอบสินค้าขาด",
|
||||
@@ -397,7 +398,7 @@
|
||||
"matched_rule_codes": "กฎที่ตรงกัน",
|
||||
"raw_rule_source_codes": "ตัวเลือกจากกฎ",
|
||||
"candidate_inventory_source_codes": "ตัวเลือกที่ใช้ได้",
|
||||
"line_key": "รายการ",
|
||||
"line_no": "ลำดับรายการ",
|
||||
"line_index": "แถว",
|
||||
"field_code": "ฟิลด์",
|
||||
"request_id": "รหัสคำขอ",
|
||||
|
||||
@@ -101,25 +101,6 @@
|
||||
"shippingNoticeDuplicateResolved": "重复处理方式已保存。",
|
||||
"shippingNoticeDuplicateResolveFailed": "保存重复处理方式失败。",
|
||||
"shippingCandidateTitle": "订单候选审核",
|
||||
"shippingCustomerMatch": {
|
||||
"title": "客户匹配",
|
||||
"role": "客户角色",
|
||||
"rawName": "订单原文",
|
||||
"standardName": "标准客户",
|
||||
"shortCode": "客户简称",
|
||||
"site": "送货站点",
|
||||
"statusLabel": "匹配状态",
|
||||
"roles": {
|
||||
"bill_to": "账款客户",
|
||||
"ship_to": "送货客户"
|
||||
},
|
||||
"status": {
|
||||
"unmatched": "未匹配",
|
||||
"unique_candidate": "唯一候选",
|
||||
"ambiguous": "多个候选",
|
||||
"confirmed": "已确认"
|
||||
}
|
||||
},
|
||||
"shippingCandidateCount": "共 {count} 个订单",
|
||||
"shippingCandidateReady": "可建单",
|
||||
"shippingCandidateNeedsReview": "需要审核",
|
||||
@@ -1593,10 +1574,11 @@
|
||||
"completed": "已完成,可查看",
|
||||
"blocked": "前置未完成",
|
||||
"prerequisite": "请先完成当前阶段",
|
||||
"autoAdvanced": "已自动推进到{stage}",
|
||||
"identity": {"po": "PO:{value}", "case": "Case:{value}", "version": "订单版本:V{value}"},
|
||||
"descriptions": {"intake_parse": "核对邮件正文和当前附件,处置接收解析异常。", "order_review": "核实字段和证据,处理冲突并冻结订单。", "fulfillment_prep": "完成库存匹配并生成通知 Excel。", "freight_upload": "下载通知文件、执行 RPA 或登记人工上传,并核对未知结果。", "upload_complete": "仅在上传成功证据完整时展示通知完成。"},
|
||||
"intakeParse": {"title": "接收解析", "email": "邮件正文", "emailPreviewTitle": "邮件正文安全预览", "noEmail": "无邮件上下文", "attachment": "当前附件", "fileName": "文件名", "fileType": "文件类型", "preview": "附件预览", "previewLoading": "正在加载附件预览…", "loadPreview": "加载附件预览", "previewUnsupported": "当前附件不是 PDF,不能在此预览。", "loading": "正在加载接收解析上下文…", "loadFailed": "接收解析上下文加载失败。", "retry": "重试"},
|
||||
"prepare": {"title": "通知准备", "subtitle": "库存候选、匹配异常和通知文件生成均在此阶段处理。", "frozenOrder": "冻结订单", "inventorySource": "库存源", "excel": "通知 Excel", "downloadInventory": "下载库存文件", "retryInventory": "重新获取库存", "releaseShortage": "库存缺口放行", "releaseShortageHint": "放行后可生成发货 Excel;请填写本次缺口放行原因。", "releaseReasonPlaceholder": "请输入放行原因(必填)", "releaseConfirm": "确认放行", "requiredQty": "需求数量", "matchWorkspace": "库存匹配", "lineCount": "{count} 行库存结果", "lineStatus": "匹配状态", "matched": "已匹配", "shortage": "库存不足", "matchStatus": {"not_found": "未匹配到库存", "preparing": "库存准备中", "mapping_failed": "库存映射失败", "unavailable": "库存不可用", "source_conflict": "库存源冲突", "invalid_key": "匹配键无效", "result_missing": "等待匹配结果", "unknown": "状态未知"}, "pending": "库存匹配或通知文件尚未生成。请查看右侧当前处理,按当前门禁继续。", "loadFailed": "通知准备任务详情加载失败,当前数据未能确认。", "detailUnavailable": "通知准备任务详情尚未返回,暂时无法展示冻结订单和库存匹配数据。", "retry": "重新加载"},
|
||||
"prepare": {"customerPoLine": "客户PO行号", "title": "通知准备", "subtitle": "库存候选、匹配异常和通知文件生成均在此阶段处理。", "frozenOrder": "冻结订单", "inventorySource": "库存源", "excel": "通知 Excel", "downloadInventory": "下载库存文件", "retryInventory": "重新获取库存", "sourceAmbiguous": "该行在多个库存源命中,请选择实际发货仓库", "sourceLocked": "通知 Excel 已生成,库存源已锁定", "selectSource": "选择库存源", "releaseShortage": "库存缺口放行", "releaseShortageHint": "放行后可生成发货 Excel;请填写本次缺口放行原因。", "releaseReasonPlaceholder": "请输入放行原因(必填)", "releaseConfirm": "确认放行", "requiredQty": "需求数量", "matchWorkspace": "库存匹配", "lineCount": "{count} 行库存结果", "lineStatus": "匹配状态", "matched": "已匹配", "shortage": "库存不足", "matchStatus": {"not_found": "未匹配到库存", "preparing": "库存准备中", "mapping_failed": "库存映射失败", "unavailable": "库存不可用", "source_conflict": "库存源冲突", "invalid_key": "匹配键无效", "result_missing": "等待匹配结果", "unknown": "状态未知"}, "pending": "库存匹配或通知文件尚未生成。请查看右侧当前处理,按当前门禁继续。", "loadFailed": "通知准备任务详情加载失败,当前数据未能确认。", "detailUnavailable": "通知准备任务详情尚未返回,暂时无法展示冻结订单和库存匹配数据。", "retry": "重新加载", "capability": {"retry_inventory_preparation": "重新获取库存", "reload_inventory_result": "重读库存结果", "override_line_inventory_source": "修改库存源"}, "capabilityDisabled": {"excel_locked": "通知 Excel 已生成,库存源已锁定", "no_candidates": "暂无可用库存源候选", "no_prior_result": "暂无历史库存结果"}},
|
||||
"freightUpload": {"title": "货代上传", "subtitle": "按发货通知单聚合展示;每张发货通知单对应一张 Excel。", "loading": "正在加载发货通知…", "loadFailed": "发货通知加载失败,请刷新后重试。", "poMissing": "当前任务尚未识别到 PO,暂时无法聚合发货通知。", "empty": "当前 PO 暂无可上传的发货通知。", "download": "下载 Excel", "lineNo": "项次", "lineNoSourceCustomerPo": "客户 PO 行号", "lineNoSourceSequence": "系统行序(未识别到内部项次)", "selected": "已选 {count} 个发货通知", "batchDownload": "批量下载", "batchRpa": "批量 RPA 上传", "batchConfirm": "批量确认已上传", "noticeCount": "共 {count} 张发货通知", "uploadError": "上传失败原因:{reason}", "uploadStatus": {"pending": "待上传", "uploading": "上传中", "failed": "上传失败", "uploaded": "已上传", "needsHuman": "需人工上传"}},
|
||||
"uploadComplete": {"title": "通知完成", "subtitle": "上传成功证据已核验,以下内容仅供查看。", "batchCount": "本批已上传 {count} 张发货通知", "batchDownload": "下载本批 ZIP", "batchDownloading": "正在打包…", "uploaded": "已上传", "uploadedAt": "{time}", "exportFile": "文件:{file}", "expand": "展开明细", "collapse": "收起明细", "uploadMode": "上传方式:{mode}", "uploadModeManual": "人工确认", "uploadModeRpa": "RPA 上传", "empty": "本批暂无已上传的发货通知。"},
|
||||
"upload": {"title": "货代上传", "subtitle": "下载已生成的通知 Excel,上传至货代平台后确认人工上传,或执行 RPA。", "manualUpload": "确认人工上传", "attempt": "最近上传尝试:{mode} · {status}"},
|
||||
@@ -1810,15 +1792,11 @@
|
||||
},
|
||||
"machineSource": "来源:系统识别",
|
||||
"manualSource": "来源:人工修改",
|
||||
"derivedSource": "来源:规则派生",
|
||||
"overrideSource": "来源:人工覆盖(已锁定)",
|
||||
"skippedSource": "来源:派生跳过",
|
||||
"valueSources": {
|
||||
"machine": "系统识别",
|
||||
"manual": "人工修改",
|
||||
"manual_override": "人工覆盖",
|
||||
"derived": "规则派生",
|
||||
"skipped": "派生跳过",
|
||||
"llm_suggested": "AI 建议(待确认)"
|
||||
},
|
||||
"llmSuggestion": {
|
||||
@@ -1872,38 +1850,15 @@
|
||||
"cancel": "取消",
|
||||
"submit": "提交裁决"
|
||||
},
|
||||
"lineNoOverrideDialog": {
|
||||
"title": "覆盖内部项次",
|
||||
"impact": "内部项次覆盖将永久记入审计,并锁定该字段直至恢复机器值。请选择原因。",
|
||||
"newValue": "新项次值:{value}",
|
||||
"reasonCodeLabel": "覆盖原因",
|
||||
"reasonCodeRequired": "请选择覆盖原因",
|
||||
"reasonTextLabel": "补充说明",
|
||||
"reasonTextPlaceholder": "选择「其他」时必须填写说明",
|
||||
"reasonTextRequired": "选择「其他」时必须填写补充说明",
|
||||
"confirm": "确认覆盖",
|
||||
"reasons": {
|
||||
"recognition_error": "识别错误",
|
||||
"customer_line_exception": "客户行号例外",
|
||||
"business_correction": "业务修正",
|
||||
"other": "其他"
|
||||
}
|
||||
},
|
||||
"restoreMachine": "恢复系统识别值",
|
||||
"restorePriorProjection": "恢复识别/派生值",
|
||||
"lineNoUnsavedHint": "未保存 · 失焦后填写覆盖原因",
|
||||
"lineNoUnsavedHint": "未保存",
|
||||
"lockedHint": "已锁定",
|
||||
"derivedFrom": "来源字段 {field}",
|
||||
"derivationRuleId": "规则 {ruleId}",
|
||||
"derivationSkipReason": "跳过原因 {reason}",
|
||||
"lineage": {
|
||||
"source": "值来源",
|
||||
"locked": "锁定状态",
|
||||
"overrideReason": "覆盖原因",
|
||||
"overrideNote": "补充说明",
|
||||
"derivedFrom": "派生自",
|
||||
"ruleId": "规则 ID",
|
||||
"skipReason": "跳过原因"
|
||||
"derivedFrom": "派生自"
|
||||
},
|
||||
"saved": "已保存",
|
||||
"saving": "保存中",
|
||||
@@ -2039,6 +1994,7 @@
|
||||
"backToSession": "返回本次处理",
|
||||
"workItemHeader": "工作项 {itemNo} · {version}",
|
||||
"jumpToCurrentVersion": "跳转当前版本",
|
||||
"autoJumpedToCurrentVersion": "已自动切换到当前版本",
|
||||
"currentVersionUnavailable": "当前版本尚未生成或进度暂时无法刷新,请稍后重试。",
|
||||
"showContext": "对话上下文",
|
||||
"hideContext": "收起对话上下文",
|
||||
@@ -2328,7 +2284,8 @@
|
||||
},
|
||||
"automation": {
|
||||
"waitingPreOt": "等待系统启动自动建单",
|
||||
"waitingPostOt": "等待系统启动"
|
||||
"waitingPostOt": "等待系统启动",
|
||||
"retryStp": "重试自动推进"
|
||||
},
|
||||
"currentProcessing": {
|
||||
"title": "当前处理",
|
||||
@@ -2651,14 +2608,26 @@
|
||||
},
|
||||
"shippingProcessing": {
|
||||
"batchStatusTitle": "批处理状态",
|
||||
"batchSummaryIncomplete": "本批次未完成 · 已识别 {recognized} 个文件 · 其中 {failed} 个异常",
|
||||
"batchSummaryProcessing": "本批次处理中 · 已识别 {recognized} 个文件",
|
||||
"batchSummaryCompleted": "本批次处理完成 · 已识别 {recognized} 个文件",
|
||||
"recognizingAttachments": "正在识别附件…",
|
||||
"recognizedOfTotal": "已识别 {recognized}/{submitted}",
|
||||
"notRecognized": "待识别",
|
||||
"notRecognizedHint": "尚未识别,系统仍在处理中,可稍后查看原因",
|
||||
"ignoredNonOrderAttachment": "已忽略",
|
||||
"ignoredNonOrderAttachmentHint": "非订单 PDF,不参与订单识别",
|
||||
"batchWorkbench": {
|
||||
"inGroupCount": "本组 {inGroup}/共 {total} 个文件",
|
||||
"overview": {
|
||||
"totalFiles": "总文件",
|
||||
"processing": "处理中",
|
||||
"completed": "已完成",
|
||||
"needsAction": "需处理",
|
||||
"ignored": "已忽略",
|
||||
"completion": "{percent}% 完成",
|
||||
"processedOfTotal": "{completed}/{total} 已处理"
|
||||
"processedOfTotal": "{completed}/{total} 已处理",
|
||||
"processedOfTotalWithIgnored": "{completed}/{total} 个订单文件已处理 · {ignored} 个文件已忽略"
|
||||
},
|
||||
"groups": {
|
||||
"failed": "异常 · {count} 个文件",
|
||||
@@ -2721,17 +2690,24 @@
|
||||
"pendingMaterials": "待处理材料",
|
||||
"orderTasks": "订单任务",
|
||||
"groupNeedsAction": "需要你处理 · {count} 个任务",
|
||||
"groupFailed": "异常 / 失败 · {count} 个任务",
|
||||
"groupWaitingHuman": "待人工处理 / 中断 · {count} 个任务",
|
||||
"groupProcessing": "系统处理中 · {count} 个任务",
|
||||
"groupFailed": "异常 / 失败 · {count} 个文件",
|
||||
"groupWaitingHuman": "待人工处理 / 中断 · {count} 个文件",
|
||||
"groupProcessing": "系统处理中 · {count} 个文件",
|
||||
"groupIgnored": "已忽略 · {count} 个文件",
|
||||
"aggregate": {
|
||||
"completed": "已上传完成 {count}",
|
||||
"processing": "处理中 {count}",
|
||||
"needsAction": "待人工 {count}",
|
||||
"failed": "异常 {count}"
|
||||
},
|
||||
"groupCompleted": "已完成 · {count}",
|
||||
"groupProcessingRecords": "处理记录 · {count}",
|
||||
"statusBadge": {
|
||||
"completed": "完成",
|
||||
"processing": "处理中",
|
||||
"needsAction": "待人工",
|
||||
"failed": "异常"
|
||||
},
|
||||
"groupCompleted": "已完成 · {count} 个文件",
|
||||
"groupProcessingRecords": "处理记录 · {count} 个文件",
|
||||
"groupRecordCompleted": "已完成",
|
||||
"groupRecordHistoryVersions": "历史版本",
|
||||
"groupRecordCancelled": "已取消",
|
||||
@@ -2912,13 +2888,15 @@
|
||||
"panelPinnedHint": "仍有处理中或待处理任务,侧栏保持展开;可收起文件详情",
|
||||
"panelPinnedLabel": "待处理",
|
||||
"groupHistory": "处理记录 · {count}",
|
||||
"groupHistoryRecords": "历史版本 · {count}",
|
||||
"groupCancelled": "已取消 · {count}",
|
||||
"groupHistoryRecords": "历史版本 · {count} 个文件",
|
||||
"groupCancelled": "已取消 · {count} 个文件",
|
||||
"expandHistory": "展开",
|
||||
"collapseHistory": "收起",
|
||||
"taskFiles": "{count} 个文件",
|
||||
"taskPdfCount": "{count} 个 PDF",
|
||||
"multiPdfTaskTitle": "订单识别任务",
|
||||
"multiPdfTaskTitle": "本次订单文件处理",
|
||||
"completedAndIgnoredFileSummary": "订单文件 {completed} 个已完成 · {ignored} 个已忽略",
|
||||
"ignoredFileSummary": "{count} 个已忽略",
|
||||
"multiPdfNameSeparator": "、",
|
||||
"multiPdfNamesMore": "{names} 等 {count} 个 PDF",
|
||||
"cancelEntireTask": "取消整个任务",
|
||||
@@ -3597,4 +3575,4 @@
|
||||
"selectedRetryableCount": "其中 {count} 个可重试",
|
||||
"noRetryable": "所选来源均无需重试(已就绪或抓取中)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"generic": "请求失败。",
|
||||
"codes": {
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "货代履约策略或字段能力绑定无效。",
|
||||
@@ -329,24 +329,18 @@
|
||||
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "该字段在正式任务中不可编辑。",
|
||||
"SHIPPING_ORDER_EXCEL_FROZEN": "发货 Excel 已生成,正式任务字段已冻结。",
|
||||
"SHIPPING.ORDER_EXCEL_FROZEN": "发货 Excel 已生成,正式任务字段已冻结。",
|
||||
"SHIPPING_EDIT_WINDOW_FIELD_LOCKED": "该字段已超出编辑窗口(Excel 已生成或系统处理中)。",
|
||||
"SHIPPING.EDIT_WINDOW_FIELD_LOCKED": "该字段已超出编辑窗口(Excel 已生成或系统处理中)。",
|
||||
"SHIPPING_EDIT_WINDOW_SYSTEM_BUSY": "系统处理中,请稍后再修改。",
|
||||
"SHIPPING.EDIT_WINDOW_SYSTEM_BUSY": "系统处理中,请稍后再修改。",
|
||||
"SHIPPING_INVALID_CONFLICT_RESOLUTION": "冲突解决方式无效。",
|
||||
"SHIPPING_CASE_NOT_FOUND": "业务单不存在。",
|
||||
"SHIPPING_BUSINESS_NUMBER_DAILY_LIMIT_REACHED": "该客户当天两位业务流水已用完(01-99)。",
|
||||
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_REQUIRED": "请先确认标准客户再生成业务编号。",
|
||||
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_INVALID": "客户已停用或不存在,无法生成业务编号。",
|
||||
"SHIPPING_BUSINESS_NUMBER_SHORT_CODE_INVALID": "客户简码不符合 2-6 位大写英文字母规则。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_TASK_REQUIRED": "请输入待纠错的技术号或业务号。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_REASON_REQUIRED": "客户纠错必须填写原因。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_NUMBER_REQUIRED": "只有已编号业务单可执行客户纠错。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_ALREADY_REPLACED": "该业务单已被替代,请使用当前业务号。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_UNCHANGED": "更正客户与当前客户相同。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_TASK_MISSING": "待纠错任务或业务单不存在。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_UPLOADED_BLOCKED": "任务已上传货代,请先完成外部作废流程再纠错。",
|
||||
"SHIPPING_ORDER_EXTRACTION_NOT_FOUND": "订单解析记录不存在或无权访问。",
|
||||
"SHIPPING_ORDER_CUSTOMER_REQUIRED": "请选择标准客户。",
|
||||
"SHIPPING_ORDER_CUSTOMER_ROLE_INVALID": "客户角色无效。",
|
||||
"SHIPPING_ORDER_CUSTOMER_MATCH_NOT_FOUND": "订单客户匹配记录不存在。",
|
||||
"SHIPPING_ORDER_CUSTOMER_SITE_INVALID": "请选择属于该客户的有效送货站点。",
|
||||
"SHIPPING_CUSTOMER_NOT_FOUND": "客户不存在。",
|
||||
"SHIPPING_CUSTOMER_CHANGE_REASON_REQUIRED": "修改客户状态、简码或自动匹配授权时必须填写原因。",
|
||||
"SHIPPING_CUSTOMER_NAME_REQUIRED": "标准客户名称必填。",
|
||||
@@ -484,6 +478,7 @@
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_PDF_AUTOMARK_LAYOUT_STALE": "自动标注期间样本版面已变化,请刷新或重新绑定当前样本后重试。",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "版面解析结果已变化,请刷新样本并重新预览复核。",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "版面解析仍在准备中,请稍后刷新状态。",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_SUITE_CHECKSUM_CONFLICT": "发布凭证已被其他盲测集占用,请勿手工改动模板状态,请联系管理员核查数据。",
|
||||
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "该复核单已确认建单,请改用确认后自动推进重试。",
|
||||
"SHIPPING.STP_ENQUEUE_FAILED": "自动建单入队失败,请稍后重试或联系管理员。",
|
||||
"SHIPPING.STP_NOT_ELIGIBLE": "当前订单尚未满足自动建单条件,请先完成校验与门禁后再重试。",
|
||||
@@ -544,4 +539,4 @@
|
||||
"TRANSFER.SELECTION_INVALID": "选择范围包含不可执行 Invoice。",
|
||||
"TRANSFER.INVALID_STATE_TRANSITION": "非法状态转换。"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -312,6 +312,7 @@
|
||||
"retry_inventory_from_field_mapping": "从字段映射重新恢复",
|
||||
"retry_inventory_from_matching": "使用当前库存重新匹配",
|
||||
"retry_inventory_matching": "重试库存匹配",
|
||||
"override_line_inventory_source": "覆写该行库存源",
|
||||
"open_inventory_match_review": "打开库存匹配复核",
|
||||
"recheck_inventory_sufficiency": "重新检查库存满足性",
|
||||
"open_shortage_review": "打开缺货复核",
|
||||
@@ -463,7 +464,7 @@
|
||||
"matched_rule_codes": "命中规则",
|
||||
"raw_rule_source_codes": "规则原始候选",
|
||||
"candidate_inventory_source_codes": "有效候选",
|
||||
"line_key": "明细行",
|
||||
"line_no": "项次",
|
||||
"line_index": "行号",
|
||||
"field_code": "字段",
|
||||
"request_id": "请求编号",
|
||||
|
||||
@@ -101,25 +101,6 @@
|
||||
"shippingNoticeDuplicateResolved": "重複處理方式已儲存。",
|
||||
"shippingNoticeDuplicateResolveFailed": "儲存重複處理方式失敗。",
|
||||
"shippingCandidateTitle": "訂單候選審核",
|
||||
"shippingCustomerMatch": {
|
||||
"title": "客戶匹配",
|
||||
"role": "客戶角色",
|
||||
"rawName": "訂單原文",
|
||||
"standardName": "標準客戶",
|
||||
"shortCode": "客戶簡稱",
|
||||
"site": "送貨站點",
|
||||
"statusLabel": "匹配狀態",
|
||||
"roles": {
|
||||
"bill_to": "帳款客戶",
|
||||
"ship_to": "送貨客戶"
|
||||
},
|
||||
"status": {
|
||||
"unmatched": "未匹配",
|
||||
"unique_candidate": "唯一候選",
|
||||
"ambiguous": "多個候選",
|
||||
"confirmed": "已確認"
|
||||
}
|
||||
},
|
||||
"shippingCandidateCount": "共 {count} 個訂單",
|
||||
"shippingCandidateReady": "可建單",
|
||||
"shippingCandidateNeedsReview": "需要審核",
|
||||
@@ -1486,10 +1467,11 @@
|
||||
"completed": "已完成,可查看",
|
||||
"blocked": "前置未完成",
|
||||
"prerequisite": "請先完成目前階段",
|
||||
"autoAdvanced": "已自動推進到{stage}",
|
||||
"identity": {"po": "PO:{value}", "case": "Case:{value}", "version": "訂單版本:V{value}"},
|
||||
"descriptions": {"intake_parse": "核對郵件正文和目前附件,處理接收解析異常。", "order_review": "核實欄位與證據、處理衝突並凍結訂單。", "fulfillment_prep": "完成庫存匹配並產生通知 Excel。", "freight_upload": "下載通知檔案、執行 RPA 或登記人工上傳,並核對未知結果。", "upload_complete": "僅在上傳成功證據完整時顯示通知完成。"},
|
||||
"intakeParse": {"title": "接收解析", "email": "郵件正文", "emailPreviewTitle": "郵件正文安全預覽", "noEmail": "無郵件上下文", "attachment": "目前附件", "fileName": "檔案名稱", "fileType": "檔案類型", "preview": "附件預覽", "previewLoading": "正在載入附件預覽…", "loadPreview": "載入附件預覽", "previewUnsupported": "目前附件不是 PDF,無法在此預覽。", "loading": "正在載入接收解析上下文…", "loadFailed": "接收解析上下文載入失敗。", "retry": "重試"},
|
||||
"prepare": {"title": "通知準備", "subtitle": "在此處處理庫存候選、匹配異常與通知檔產生。", "frozenOrder": "凍結訂單", "inventorySource": "庫存來源", "excel": "發貨 Excel", "downloadInventory": "下載庫存檔案", "retryInventory": "重新取得庫存", "releaseShortage": "放行庫存缺口", "releaseShortageHint": "放行後可產生發貨 Excel;請填寫本次缺口放行原因。", "releaseReasonPlaceholder": "請輸入放行原因(必填)", "releaseConfirm": "確認放行", "requiredQty": "需求數量", "matchWorkspace": "庫存匹配", "lineCount": "{count} 行庫存結果", "lineStatus": "匹配狀態", "matched": "已匹配", "shortage": "庫存不足", "matchStatus": {"not_found": "未匹配到庫存", "preparing": "庫存準備中", "mapping_failed": "庫存對應失敗", "unavailable": "庫存不可用", "source_conflict": "庫存來源衝突", "invalid_key": "匹配鍵無效", "result_missing": "等待匹配結果", "unknown": "狀態未知"}, "pending": "庫存匹配或通知檔案尚未產生。請查看右側目前處理,依目前門禁繼續。", "loadFailed": "通知準備任務詳情載入失敗,目前資料無法確認。", "detailUnavailable": "通知準備任務詳情尚未返回,暫時無法展示凍結訂單和庫存匹配資料。", "retry": "重新載入"},
|
||||
"prepare": {"customerPoLine": "客戶PO行號", "title": "通知準備", "subtitle": "在此處處理庫存候選、匹配異常與通知檔產生。", "frozenOrder": "凍結訂單", "inventorySource": "庫存來源", "excel": "發貨 Excel", "downloadInventory": "下載庫存檔案", "retryInventory": "重新取得庫存", "sourceAmbiguous": "該行在多個庫存源命中,請選擇實際發貨倉庫", "sourceLocked": "通知 Excel 已生成,庫存源已鎖定", "selectSource": "選擇庫存源", "releaseShortage": "放行庫存缺口", "releaseShortageHint": "放行後可產生發貨 Excel;請填寫本次缺口放行原因。", "releaseReasonPlaceholder": "請輸入放行原因(必填)", "releaseConfirm": "確認放行", "requiredQty": "需求數量", "matchWorkspace": "庫存匹配", "lineCount": "{count} 行庫存結果", "lineStatus": "匹配狀態", "matched": "已匹配", "shortage": "庫存不足", "matchStatus": {"not_found": "未匹配到庫存", "preparing": "庫存準備中", "mapping_failed": "庫存對應失敗", "unavailable": "庫存不可用", "source_conflict": "庫存來源衝突", "invalid_key": "匹配鍵無效", "result_missing": "等待匹配結果", "unknown": "狀態未知"}, "pending": "庫存匹配或通知檔案尚未產生。請查看右側目前處理,依目前門禁繼續。", "loadFailed": "通知準備任務詳情載入失敗,目前資料無法確認。", "detailUnavailable": "通知準備任務詳情尚未返回,暫時無法展示凍結訂單和庫存匹配資料。", "retry": "重新載入", "capability": {"retry_inventory_preparation": "重新取得庫存", "reload_inventory_result": "重讀庫存結果", "override_line_inventory_source": "修改庫存來源"}, "capabilityDisabled": {"excel_locked": "通知 Excel 已生成,庫存源已鎖定", "no_candidates": "暫無可用庫存來源候選", "no_prior_result": "暫無歷史庫存結果"}},
|
||||
"freightUpload": {"title": "貨代上傳", "subtitle": "按發貨通知單聚合展示;每張發貨通知單對應一張 Excel。", "loading": "正在載入發貨通知…", "loadFailed": "發貨通知載入失敗,請重新整理後重試。", "poMissing": "目前任務尚未識別到 PO,暫時無法聚合發貨通知。", "empty": "目前 PO 沒有可上傳的發貨通知。", "download": "下載 Excel", "lineNo": "項次", "lineNoSourceCustomerPo": "客戶 PO 行號", "lineNoSourceSequence": "系統行序(未識別到內部項次)", "selected": "已選 {count} 個發貨通知", "batchDownload": "批量下載", "batchRpa": "批量 RPA 上傳", "batchConfirm": "批量確認已上傳", "noticeCount": "共 {count} 張發貨通知", "uploadError": "上傳失敗原因:{reason}", "uploadStatus": {"pending": "待上傳", "uploading": "上傳中", "failed": "上傳失敗", "uploaded": "已上傳", "needsHuman": "需人工上傳"}},
|
||||
"uploadComplete": {"title": "通知完成", "subtitle": "上傳成功證據已核驗,以下內容僅供查看。", "batchCount": "本批已上傳 {count} 張發貨通知", "batchDownload": "下載本批 ZIP", "batchDownloading": "正在打包…", "uploaded": "已上傳", "uploadedAt": "{time}", "exportFile": "檔案:{file}", "expand": "展開明細", "collapse": "收合明細", "uploadMode": "上傳方式:{mode}", "uploadModeManual": "人工確認", "uploadModeRpa": "RPA 上傳", "empty": "本批暫無已上傳的發貨通知。"},
|
||||
"upload": {"title": "貨代上傳", "subtitle": "下載通知 Excel、上傳至貨代平台後確認人工上傳,或執行 RPA。", "manualUpload": "確認人工上傳", "attempt": "最近上傳嘗試:{mode} · {status}"},
|
||||
@@ -1703,15 +1685,11 @@
|
||||
},
|
||||
"machineSource": "來源:系統識別",
|
||||
"manualSource": "來源:人工修改",
|
||||
"derivedSource": "來源:規則派生",
|
||||
"overrideSource": "來源:人工覆蓋(已鎖定)",
|
||||
"skippedSource": "來源:派生跳過",
|
||||
"valueSources": {
|
||||
"machine": "系統識別",
|
||||
"manual": "人工修改",
|
||||
"manual_override": "人工覆蓋",
|
||||
"derived": "規則派生",
|
||||
"skipped": "派生跳過",
|
||||
"llm_suggested": "AI 建議(待確認)"
|
||||
},
|
||||
"llmSuggestion": {
|
||||
@@ -1765,38 +1743,15 @@
|
||||
"cancel": "取消",
|
||||
"submit": "提交裁決"
|
||||
},
|
||||
"lineNoOverrideDialog": {
|
||||
"title": "覆蓋內部項次",
|
||||
"impact": "內部項次覆蓋將永久記入審計,並鎖定該欄位直至恢復機器值。請選擇原因。",
|
||||
"newValue": "新項次值:{value}",
|
||||
"reasonCodeLabel": "覆蓋原因",
|
||||
"reasonCodeRequired": "請選擇覆蓋原因",
|
||||
"reasonTextLabel": "補充說明",
|
||||
"reasonTextPlaceholder": "選擇「其他」時必須填寫說明",
|
||||
"reasonTextRequired": "選擇「其他」時必須填寫補充說明",
|
||||
"confirm": "確認覆蓋",
|
||||
"reasons": {
|
||||
"recognition_error": "識別錯誤",
|
||||
"customer_line_exception": "客戶行號例外",
|
||||
"business_correction": "業務修正",
|
||||
"other": "其他"
|
||||
}
|
||||
},
|
||||
"restoreMachine": "恢復系統識別值",
|
||||
"restorePriorProjection": "恢復識別/派生值",
|
||||
"lineNoUnsavedHint": "未儲存 · 失焦後填寫覆蓋原因",
|
||||
"lineNoUnsavedHint": "未儲存",
|
||||
"lockedHint": "已鎖定",
|
||||
"derivedFrom": "來源欄位 {field}",
|
||||
"derivationRuleId": "規則 {ruleId}",
|
||||
"derivationSkipReason": "跳過原因 {reason}",
|
||||
"lineage": {
|
||||
"source": "值來源",
|
||||
"locked": "鎖定狀態",
|
||||
"overrideReason": "覆蓋原因",
|
||||
"overrideNote": "補充說明",
|
||||
"derivedFrom": "派生自",
|
||||
"ruleId": "規則 ID",
|
||||
"skipReason": "跳過原因"
|
||||
"derivedFrom": "派生自"
|
||||
},
|
||||
"saved": "已儲存",
|
||||
"saving": "儲存中",
|
||||
@@ -1932,6 +1887,7 @@
|
||||
"backToSession": "返回本次處理",
|
||||
"workItemHeader": "工作項 {itemNo} · {version}",
|
||||
"jumpToCurrentVersion": "跳轉目前版本",
|
||||
"autoJumpedToCurrentVersion": "已自動切換至目前版本",
|
||||
"currentVersionUnavailable": "目前版本尚未產生或進度暫時無法重新整理,請稍後重試。",
|
||||
"showContext": "對話上下文",
|
||||
"hideContext": "收起對話上下文",
|
||||
@@ -2209,7 +2165,8 @@
|
||||
},
|
||||
"automation": {
|
||||
"waitingPreOt": "等待系統啟動自動建單",
|
||||
"waitingPostOt": "等待系統啟動"
|
||||
"waitingPostOt": "等待系統啟動",
|
||||
"retryStp": "重試自動推進"
|
||||
},
|
||||
"currentProcessing": {
|
||||
"title": "目前處理",
|
||||
@@ -2577,14 +2534,26 @@
|
||||
},
|
||||
"shippingProcessing": {
|
||||
"batchStatusTitle": "批次處理狀態",
|
||||
"batchSummaryIncomplete": "本批次未完成 · 已辨識 {recognized} 個檔案 · 其中 {failed} 個異常",
|
||||
"batchSummaryProcessing": "本批次處理中 · 已辨識 {recognized} 個檔案",
|
||||
"batchSummaryCompleted": "本批次處理完成 · 已辨識 {recognized} 個檔案",
|
||||
"recognizingAttachments": "正在辨識附件…",
|
||||
"recognizedOfTotal": "已辨識 {recognized}/{submitted}",
|
||||
"notRecognized": "待辨識",
|
||||
"notRecognizedHint": "尚未辨識,系統仍在處理中,可稍後查看原因",
|
||||
"ignoredNonOrderAttachment": "已忽略",
|
||||
"ignoredNonOrderAttachmentHint": "非訂單 PDF,不參與訂單辨識",
|
||||
"batchWorkbench": {
|
||||
"inGroupCount": "本組 {inGroup}/共 {total} 個檔案",
|
||||
"overview": {
|
||||
"totalFiles": "總檔案",
|
||||
"processing": "處理中",
|
||||
"completed": "已完成",
|
||||
"needsAction": "需處理",
|
||||
"ignored": "已忽略",
|
||||
"completion": "完成 {percent}%",
|
||||
"processedOfTotal": "已處理 {completed}/{total}"
|
||||
"processedOfTotal": "已處理 {completed}/{total}",
|
||||
"processedOfTotalWithIgnored": "{completed}/{total} 個訂單檔案已處理 · {ignored} 個檔案已忽略"
|
||||
},
|
||||
"groups": {
|
||||
"failed": "異常 · {count} 個檔案",
|
||||
@@ -2647,17 +2616,24 @@
|
||||
"pendingMaterials": "待處理材料",
|
||||
"orderTasks": "訂單任務",
|
||||
"groupNeedsAction": "需要你處理 · {count} 個任務",
|
||||
"groupFailed": "異常 / 失敗 · {count} 個任務",
|
||||
"groupWaitingHuman": "待人工處理 / 中斷 · {count} 個任務",
|
||||
"groupProcessing": "系統處理中 · {count} 個任務",
|
||||
"groupFailed": "異常 / 失敗 · {count} 個檔案",
|
||||
"groupWaitingHuman": "待人工處理 / 中斷 · {count} 個檔案",
|
||||
"groupProcessing": "系統處理中 · {count} 個檔案",
|
||||
"groupIgnored": "已忽略 · {count} 個檔案",
|
||||
"aggregate": {
|
||||
"completed": "已上傳完成 {count}",
|
||||
"processing": "處理中 {count}",
|
||||
"needsAction": "待人工 {count}",
|
||||
"failed": "異常 {count}"
|
||||
},
|
||||
"groupCompleted": "已完成 · {count}",
|
||||
"groupProcessingRecords": "處理記錄 · {count}",
|
||||
"statusBadge": {
|
||||
"completed": "完成",
|
||||
"processing": "處理中",
|
||||
"needsAction": "待人工",
|
||||
"failed": "異常"
|
||||
},
|
||||
"groupCompleted": "已完成 · {count} 個檔案",
|
||||
"groupProcessingRecords": "處理記錄 · {count} 個檔案",
|
||||
"groupRecordCompleted": "已完成",
|
||||
"groupRecordHistoryVersions": "歷史版本",
|
||||
"groupRecordCancelled": "已取消",
|
||||
@@ -2964,13 +2940,15 @@
|
||||
"panelPinnedHint": "仍有處理中或待處理任務,側欄保持展開;可收起檔案詳情",
|
||||
"panelPinnedLabel": "待處理",
|
||||
"groupHistory": "處理記錄 · {count}",
|
||||
"groupHistoryRecords": "歷史版本 · {count}",
|
||||
"groupCancelled": "已取消 · {count}",
|
||||
"groupHistoryRecords": "歷史版本 · {count} 個檔案",
|
||||
"groupCancelled": "已取消 · {count} 個檔案",
|
||||
"expandHistory": "展開",
|
||||
"collapseHistory": "收起",
|
||||
"taskFiles": "{count} 個檔案",
|
||||
"taskPdfCount": "{count} 個 PDF",
|
||||
"multiPdfTaskTitle": "訂單識別任務",
|
||||
"multiPdfTaskTitle": "本次訂單檔案處理",
|
||||
"completedAndIgnoredFileSummary": "訂單檔案 {completed} 個已完成 · {ignored} 個已忽略",
|
||||
"ignoredFileSummary": "{count} 個已忽略",
|
||||
"multiPdfNameSeparator": "、",
|
||||
"multiPdfNamesMore": "{names} 等 {count} 個 PDF",
|
||||
"cancelEntireTask": "取消整個任務",
|
||||
@@ -3523,4 +3501,4 @@
|
||||
"selectedRetryableCount": "其中 {count} 個可重試",
|
||||
"noRetryable": "所選來源均無需重試(已就緒或抓取中)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"generic": "請求失敗。",
|
||||
"codes": {
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "貨代履約策略或欄位能力綁定無效。",
|
||||
@@ -329,24 +329,18 @@
|
||||
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "此欄位在正式任務中不可編輯。",
|
||||
"SHIPPING_ORDER_EXCEL_FROZEN": "出貨 Excel 已產生,正式任務欄位已凍結。",
|
||||
"SHIPPING.ORDER_EXCEL_FROZEN": "出貨 Excel 已產生,正式任務欄位已凍結。",
|
||||
"SHIPPING_EDIT_WINDOW_FIELD_LOCKED": "該欄位已超出編輯視窗(Excel 已產生或系統處理中)。",
|
||||
"SHIPPING.EDIT_WINDOW_FIELD_LOCKED": "該欄位已超出編輯視窗(Excel 已產生或系統處理中)。",
|
||||
"SHIPPING_EDIT_WINDOW_SYSTEM_BUSY": "系統處理中,請稍後再修改。",
|
||||
"SHIPPING.EDIT_WINDOW_SYSTEM_BUSY": "系統處理中,請稍後再修改。",
|
||||
"SHIPPING_INVALID_CONFLICT_RESOLUTION": "衝突解決方式無效。",
|
||||
"SHIPPING_CASE_NOT_FOUND": "業務單不存在。",
|
||||
"SHIPPING_BUSINESS_NUMBER_DAILY_LIMIT_REACHED": "該客戶當天兩位業務流水已用完(01-99)。",
|
||||
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_REQUIRED": "請先確認標準客戶再產生業務編號。",
|
||||
"SHIPPING_BUSINESS_NUMBER_CUSTOMER_INVALID": "客戶已停用或不存在,無法產生業務編號。",
|
||||
"SHIPPING_BUSINESS_NUMBER_SHORT_CODE_INVALID": "客戶簡碼不符合 2-6 位大寫英文字母規則。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_TASK_REQUIRED": "請輸入待糾錯的技術號或業務號。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_REASON_REQUIRED": "客戶糾錯必須填寫原因。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_NUMBER_REQUIRED": "只有已編號業務單可執行客戶糾錯。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_ALREADY_REPLACED": "該業務單已被替代,請使用目前業務號。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_UNCHANGED": "更正客戶與目前客戶相同。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_TASK_MISSING": "待糾錯任務或業務單不存在。",
|
||||
"SHIPPING_CUSTOMER_CORRECTION_UPLOADED_BLOCKED": "任務已上傳貨代,請先完成外部作廢流程再糾錯。",
|
||||
"SHIPPING_ORDER_EXTRACTION_NOT_FOUND": "訂單解析記錄不存在或無權存取。",
|
||||
"SHIPPING_ORDER_CUSTOMER_REQUIRED": "請選擇標準客戶。",
|
||||
"SHIPPING_ORDER_CUSTOMER_ROLE_INVALID": "客戶角色無效。",
|
||||
"SHIPPING_ORDER_CUSTOMER_MATCH_NOT_FOUND": "訂單客戶匹配記錄不存在。",
|
||||
"SHIPPING_ORDER_CUSTOMER_SITE_INVALID": "請選擇屬於該客戶的有效送貨站點。",
|
||||
"SHIPPING_CUSTOMER_NOT_FOUND": "客戶不存在。",
|
||||
"SHIPPING_CUSTOMER_CHANGE_REASON_REQUIRED": "修改客戶狀態、簡碼或自動匹配授權時必須填寫原因。",
|
||||
"SHIPPING_CUSTOMER_NAME_REQUIRED": "標準客戶名稱必填。",
|
||||
@@ -484,6 +478,7 @@
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_PDF_AUTOMARK_LAYOUT_STALE": "自動標記期間樣本版面已變更,請重新整理或重新綁定目前樣本後重試。",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "版面解析結果已變更,請重新整理樣本並再次預覽複核。",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "版面解析仍在準備中,請稍後重新整理狀態。",
|
||||
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_SUITE_CHECKSUM_CONFLICT": "發布憑證已被其他盲測集佔用,請勿手工變更模板狀態,請聯絡管理員核查數據。",
|
||||
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "該複核單已確認建單,請改用確認後自動推進重試。",
|
||||
"SHIPPING.STP_ENQUEUE_FAILED": "自動建單入隊失敗,請稍後重試或聯絡管理員。",
|
||||
"SHIPPING.STP_NOT_ELIGIBLE": "目前訂單尚未滿足自動建單條件,請先完成校驗與門禁後再重試。",
|
||||
@@ -544,4 +539,4 @@
|
||||
"TRANSFER.SELECTION_INVALID": "選擇範圍包含不可執行 Invoice。",
|
||||
"TRANSFER.INVALID_STATE_TRANSITION": "非法狀態轉換。"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -312,6 +312,7 @@
|
||||
"retry_inventory_from_field_mapping": "從欄位對應重新恢復",
|
||||
"retry_inventory_from_matching": "使用目前庫存重新匹配",
|
||||
"retry_inventory_matching": "重試庫存匹配",
|
||||
"override_line_inventory_source": "覆寫該行庫存源",
|
||||
"open_inventory_match_review": "開啟庫存匹配覆核",
|
||||
"recheck_inventory_sufficiency": "重新檢查庫存滿足性",
|
||||
"open_shortage_review": "開啟缺貨覆核",
|
||||
@@ -463,7 +464,7 @@
|
||||
"matched_rule_codes": "命中規則",
|
||||
"raw_rule_source_codes": "規則原始候選",
|
||||
"candidate_inventory_source_codes": "有效候選",
|
||||
"line_key": "明細行",
|
||||
"line_no": "項次",
|
||||
"line_index": "行號",
|
||||
"field_code": "欄位",
|
||||
"request_id": "請求編號",
|
||||
|
||||
Reference in new issue
Block a user