Merge branch 'dev' into hugo-shipping-notice

This commit is contained in:
hugo committed 2026-08-11 14:33:56 +08:00
commit 472b530be3
397 files changed
+46450 -34171

No files matched your search

+19 -4
View File
@@ -2,6 +2,8 @@
/**
* App.vue
* 根组件:主题初始化、全局消息弹窗、401 登出监听、html lang 与 i18n locale 同步。
* 依赖:useTheme、useGlobalMessageDialog、auth、linked-nav.store。
* 逻辑:已登录时预取关联服务侧栏入口,避免页面切换后入口后闪现。
*/
import { useI18n } from 'vue-i18n';
import { watch, onMounted, onBeforeUnmount } from 'vue';
@@ -11,9 +13,10 @@ import { useGlobalMessageDialog } from '@/shared/composables/useGlobalMessageDia
import { useRouter } from 'vue-router';
import { getAuthHeaders, logoutAuth } from '@/shared/utils/auth';
import { isPublicPath } from '@/shared/constants/routes';
import { useLinkedNavStore } from '@/features/sso/stores/linked-nav.store';
const router = useRouter();
const { locale } = useI18n();
const { locale, t } = useI18n();
const { themePreference, initTheme, setThemePreference } = useTheme();
const {
messageDialogVisible,
@@ -62,15 +65,25 @@ watch(themePreference, (newTheme) => {
updateThemePreference(newTheme);
});
const onUnauthorized = () => {
showMessageDialog('error', '认证已过期或无效,请重新登录');
/**
* 处理接口返回未登录状态,提示用户重新登录并清理失效的本地登录信息。
* 核心逻辑:忽略可选的关联服务/SSO 目录请求;其余未授权请求统一展示易懂提示,再执行登出。
* @param event - 包含请求地址和状态码的全局未授权事件。
*/
const onUnauthorized = (event: Event) => {
const url = String((event as CustomEvent<{ url?: string }>).detail?.url || '');
// 侧栏入口目录是可选导航能力,加载失败只能隐藏入口,不能清除有效 HXOPS 登录态。
if (/\/api\/sso\/apps(?:\?|$)/.test(url)) return;
if (/\/api\/linked-services(?:\?|$)/.test(url)) return;
showMessageDialog('error', t('login.sessionExpiredHint'), t('login.sessionExpired'));
logoutAuth();
};
const onLogout = (event: Event) => {
useLinkedNavStore().reset();
const detail = (event as CustomEvent<{ remote?: boolean }>).detail;
if (detail?.remote) {
showMessageDialog('info', '您已在其他标签页退出登录');
showMessageDialog('info', t('common.app.remoteLogout'));
}
const path = router.currentRoute.value.path;
if (!isPublicPath(path)) {
@@ -86,6 +99,8 @@ onMounted(async () => {
const headers = getAuthHeaders();
if (Object.keys(headers).length > 0) {
// 尽早预取侧栏关联服务,避免进入 Chat/工作台后入口后加载闪现。
void useLinkedNavStore().ensureLoaded();
try {
const res = await fetch('/api/user/home', { headers });
if (res.ok) {
+29 -2
View File
@@ -1,12 +1,38 @@
/**
* app/router/guards.ts
* 全局路由守卫:认证、权限、旧 URL 兼容、document.title。
* 依赖:vue-router、config、auth.store、i18n、adminModulePath、isPublicPath。
* 逻辑:beforeEach 做登录/管理员校验;afterEach 将 meta.title(i18n key 或字面量)解析为浏览器标题。
*/
import type { Router } from 'vue-router';
import { config } from '@/config';
import { adminModulePath } from '@/features/admin/constants/modules';
import { useAuthStore } from '@/features/auth/stores/auth.store';
import { isPublicPath } from '@/shared/constants/routes';
import i18n from '@/i18n';
/**
* 将路由 meta.title 解析为当前语言文案。
* 核心逻辑:含 `.` 的字符串视为 i18n key(如 admin.nav.users);否则按字面量回退。
* @param title - 路由 meta.title
* @returns 可展示的页面标题片段
*/
function resolveRouteTitle(title: unknown): string {
if (title == null || title === '') return '';
const raw = String(title);
if (raw.includes('.')) {
return String(i18n.global.t(raw));
}
return raw;
}
/**
* 解析应用基础标题(不含页面片段)。
* @returns common.app.title 对应文案
*/
function resolveAppBaseTitle(): string {
return String(i18n.global.t(config.appTitleKey));
}
export function setupRouterGuards(router: Router): void {
router.beforeEach((to, _from, next) => {
@@ -39,7 +65,8 @@ export function setupRouterGuards(router: Router): void {
});
router.afterEach((to) => {
const baseTitle = config.appTitle || 'AI工作台';
document.title = to.meta.title ? `${String(to.meta.title)} - ${baseTitle}` : baseTitle;
const baseTitle = resolveAppBaseTitle();
const pageTitle = resolveRouteTitle(to.meta.title);
document.title = pageTitle ? `${pageTitle} - ${baseTitle}` : baseTitle;
});
}
+45 -17
View File
@@ -1,6 +1,8 @@
/**
* app/router/routes/admin.routes.ts
* 管理后台嵌套路由;全部 admin 模块已独立拆分。
* 依赖:vue-router;meta.title 存 i18n key(如 admin.nav.*),由 guards 解析为 document.title。
* 逻辑:AdminLayout 嵌套各管理页;企微为三级子路由。
*/
import type { RouteRecordRaw } from "vue-router";
@@ -45,6 +47,9 @@ const WecomSettingsPage = () => import("@/features/admin/modules/wecom/pages/Wec
const WecomBindingsPage = () => import("@/features/admin/modules/wecom/pages/WecomBindingsPage.vue");
const WecomAuditsPage = () => import("@/features/admin/modules/wecom/pages/WecomAuditsPage.vue");
const LinkedServicesPage = () =>
import("@/features/admin/modules/linked-services/LinkedServicesPage.vue");
const ReportsPage = () =>
import("@/features/admin/modules/reports/ReportsPage.vue");
const ShippingInventoryPage = () =>
@@ -78,6 +83,9 @@ const OrderProfileBlindTestPage = () =>
const OrderProfilePublishCheckPage = () =>
import("@/features/admin/modules/shipping-order-document-profiles/OrderProfilePublishCheckPage.vue");
const ProcurementContractPage = () =>
import("@/features/admin/modules/procurement-contract/ProcurementContractPage.vue");
export const adminRoutes: RouteRecordRaw[] = [
{
path: "/admin",
@@ -89,7 +97,7 @@ export const adminRoutes: RouteRecordRaw[] = [
path: "dashboard",
name: "AdminDashboard",
component: DashboardPage,
meta: { requiresAdmin: true, adminModule: "dashboard", title: "概览" },
meta: { requiresAdmin: true, adminModule: "dashboard", title: "admin.nav.overview" },
},
{
@@ -99,7 +107,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "schedules",
title: "定时任务",
title: "admin.nav.schedules",
},
},
@@ -110,7 +118,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "knowledge_base",
title: "知识库配置",
title: "admin.nav.knowledgeBase",
},
},
{
@@ -118,25 +126,25 @@ export const adminRoutes: RouteRecordRaw[] = [
name: "AdminWecom",
component: WecomLayout,
redirect: { name: "AdminWecomSettings" },
meta: { requiresAdmin: true, adminModule: "wecom", title: "企业微信" },
meta: { requiresAdmin: true, adminModule: "wecom", title: "admin.nav.wecom" },
children: [
{
path: "settings",
name: "AdminWecomSettings",
component: WecomSettingsPage,
meta: { requiresAdmin: true, adminModule: "wecom", title: "企业微信配置" },
meta: { requiresAdmin: true, adminModule: "wecom", title: "admin.wecom.nav.settingsPage" },
},
{
path: "bindings",
name: "AdminWecomBindings",
component: WecomBindingsPage,
meta: { requiresAdmin: true, adminModule: "wecom", title: "企业微信绑定" },
meta: { requiresAdmin: true, adminModule: "wecom", title: "admin.wecom.nav.bindingsPage" },
},
{
path: "audits",
name: "AdminWecomAudits",
component: WecomAuditsPage,
meta: { requiresAdmin: true, adminModule: "wecom", title: "企业微信审计" },
meta: { requiresAdmin: true, adminModule: "wecom", title: "admin.wecom.nav.auditsPage" },
},
],
},
@@ -147,21 +155,21 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "approvals",
title: "用户审批",
title: "admin.nav.approvals",
},
},
{
path: "agents",
name: "AdminAgents",
component: AgentsPage,
meta: { requiresAdmin: true, adminModule: "agents", title: "应用管理" },
meta: { requiresAdmin: true, adminModule: "agents", title: "admin.nav.agents" },
},
{
path: "users",
name: "AdminUsers",
component: UsersPage,
meta: { requiresAdmin: true, adminModule: "users", title: "用户管理" },
meta: { requiresAdmin: true, adminModule: "users", title: "admin.nav.users" },
},
{
@@ -171,7 +179,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "departments",
title: "部门管理",
title: "admin.nav.departments",
},
},
@@ -279,7 +287,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "announcements",
title: "公告管理",
title: "admin.nav.announcements",
},
},
@@ -290,7 +298,17 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "questions",
title: "常用问题",
title: "admin.nav.questions",
},
},
{
path: "linked-services",
name: "AdminLinkedServices",
component: LinkedServicesPage,
meta: {
requiresAdmin: true,
adminModule: "linked_services",
title: "admin.nav.linkedServices",
},
},
{
@@ -300,7 +318,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "requests",
title: "权限申请",
title: "admin.nav.requests",
},
},
{
@@ -310,7 +328,7 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "permissions",
title: "权限管理",
title: "admin.nav.permissions",
},
},
{
@@ -320,14 +338,24 @@ export const adminRoutes: RouteRecordRaw[] = [
meta: {
requiresAdmin: true,
adminModule: "platform_apps",
title: "平台应用说明",
title: "admin.nav.platformApps",
},
},
{
path: "procurement-contract",
name: "AdminProcurementContract",
component: ProcurementContractPage,
meta: {
requiresAdmin: true,
adminModule: "procurement_contract",
title: "admin.nav.procurementContract",
},
},
{
path: "reports/:table?",
name: "AdminReports",
component: ReportsPage,
meta: { requiresAdmin: true, adminModule: "reports", title: "报表" },
meta: { requiresAdmin: true, adminModule: "reports", title: "admin.nav.reports" },
},
],
},
@@ -5,9 +5,13 @@
import type { RouteRecordRaw } from 'vue-router';
import LoginView from '@/features/auth/views/LoginView.vue';
import ResetPasswordView from '@/features/auth/views/ResetPasswordView.vue';
import SsoAuthorizeView from '@/features/sso/views/SsoAuthorizeView.vue';
import SsoLaunchView from '@/features/sso/views/SsoLaunchView.vue';
export const authRoutes: RouteRecordRaw[] = [
{ path: '/login', name: 'Login', component: LoginView },
{ path: '/casdoor-callback', name: 'CasdoorCallback', component: LoginView },
{ path: '/reset-password', name: 'ResetPassword', component: ResetPasswordView },
{ path: '/sso/authorize', name: 'SsoAuthorize', component: SsoAuthorizeView },
{ path: '/sso/launch', name: 'SsoLaunch', component: SsoLaunchView },
];
@@ -1,6 +1,8 @@
/**
* app/router/routes/workspace.routes.ts
* 工作台路由表:/workspace 布局壳 + 各业务子页面懒加载。
* 依赖:vue-router;meta.title 存 i18n key(workspace.*),由 guards 解析为 document.title。
* 逻辑:WorkspaceLayout 嵌套应用首页、知识库、排程、反馈等子页。
*/
import type { RouteRecordRaw } from 'vue-router';
@@ -8,14 +10,14 @@ export const workspaceRoutes: RouteRecordRaw[] = [
{
path: '/workspace',
component: () => import('@/features/workspace/views/WorkspaceLayout.vue'),
meta: { title: 'AI工作台' },
meta: { title: 'workspace.title' },
children: [
{ path: '', redirect: '/workspace/applications' },
{
path: 'profile',
name: 'workspace-profile',
component: () => import('@/features/workspace/pages/ProfilePage.vue'),
meta: { title: '个人中心' },
component: () => import('@/features/user/views/UserProfilePage.vue'),
meta: { title: 'workspace.nav.profile' },
},
{
path: 'applications',
@@ -33,53 +35,43 @@ export const workspaceRoutes: RouteRecordRaw[] = [
path: 'knowledge-base',
name: 'workspace-knowledge-base',
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
meta: { title: '知识库' },
meta: { title: 'workspace.nav.knowledgeBase' },
},
{
path: 'knowledge-base/groups/:groupId',
name: 'workspace-knowledge-base-group',
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
meta: { title: '知识库' },
meta: { title: 'workspace.nav.knowledgeBase' },
},
{
path: 'schedule-runs',
name: 'workspace-schedule-runs',
component: () => import('@/features/workspace/pages/ScheduleRunsPage.vue'),
meta: { title: '排程记录' },
meta: { title: 'workspace.nav.scheduleRuns' },
},
{
path: 'shipping-notice',
redirect: '/workspace/shipping-notice/my-tasks',
},
{
path: 'shipping-notice/customers',
name: 'workspace-shipping-customers',
component: () => import('@/features/shipping-notice/customers/ShippingCustomersPage.vue'),
meta: { title: '货代客户主数据', requiresAdmin: true },
},
{
path: 'shipping-notice/my-tasks',
name: 'workspace-shipping-my-tasks',
component: () => import('@/features/workspace/pages/ShippingMyTasksPage.vue'),
meta: { title: '我的待办' },
},
{
path: 'shipping-notice/tasks/:taskNo?',
name: 'workspace-shipping-tasks',
name: 'workspace-shipping-notice',
component: () => import('@/features/workspace/pages/ShippingNoticePage.vue'),
meta: { title: '货代发货任务' },
meta: { title: 'workspace.nav.shippingNotice' },
},
{
path: 'accounting-voucher-check',
name: 'workspace-accounting-voucher-check',
component: () => import('@/features/workspace/pages/AccountingVoucherCheckPage.vue'),
meta: { title: 'workspace.nav.accountingVoucherCheck' },
},
{
path: 'feedback',
name: 'workspace-feedback',
component: () => import('@/features/workspace/pages/FeedbackPage.vue'),
meta: { title: '意见反馈' },
meta: { title: 'workspace.nav.feedback' },
},
{
path: 'history',
name: 'workspace-history',
component: () => import('@/features/chat/history/HistoryPage.vue'),
meta: { title: '聊天历史' },
meta: { title: 'workspace.routes.history' },
},
],
},
+11 -3
View File
@@ -1,10 +1,17 @@
/**
* config.ts
* 用途:前端应用级开关与默认配置(登录模式、工作台模块、管理模块可见性)。
* 依赖:无运行时依赖;应用标题通过 common.app.title i18n key 解析。
* 逻辑:main.ts / router guards 使用 i18n.t(config.appTitleKey) 设置 document.title。
*/
export const config = {
appTitle: '和信AI智能工作台',
/** Browser title base name — resolve via i18n `t(config.appTitleKey)`. */
appTitleKey: 'common.app.title',
auth: {
// Login mode switch:
// - 'casdoor': submit username/password to backend Casdoor password-login API.
// - 'password': submit to legacy local /api/user/login.
loginMode: 'password',
loginMode: 'casdoor',
casdoor: {
enabled: true,
authorizeApi: '/api/user/casdoor/authorize-url',
@@ -58,12 +65,13 @@ export const config = {
announcements: true, // 公告管理
questions: true, // 常用问题
wecom: true, // 企业微信
linked_services: true, // 关联服务(侧栏跳转入口)
permissions: true, // 应用权限
platform_apps: true, // 平台应用说明
requests: true, // 审批权限
reports: true, // 数据报表
schedules: true, // 定时任务
shipping_inventory: true, // 货代配置
procurement_contract: true, // 采购合同审查(模板库 + 历史)
}
}
};
@@ -21,6 +21,24 @@ import type {
const auth = () => ({ headers: getAuthHeaders() });
const jsonAuth = () => ({ headers: { 'Content-Type': 'application/json', ...getAuthHeaders() } });
export type LinkedServicePayload = {
name: string;
url: string;
description?: string;
icon?: string;
sort_order?: number;
enabled?: boolean;
is_enabled?: boolean;
};
export const listLinkedServices = () => requestJson<any[]>('/api/admin/linked-services', auth());
export const createLinkedService = (payload: LinkedServicePayload) =>
requestJson<any>('/api/admin/linked-services', { method: 'POST', ...jsonAuth(), body: JSON.stringify(payload) });
export const updateLinkedService = (id: number, payload: LinkedServicePayload) =>
requestJson<any>(`/api/admin/linked-services/${id}`, { method: 'PUT', ...jsonAuth(), body: JSON.stringify(payload) });
export const deleteLinkedService = (id: number) =>
requestJson<void>(`/api/admin/linked-services/${id}`, { method: 'DELETE', ...auth() });
export type ShippingInventoryReadinessCheck = {
code: string;
status: 'passed' | 'pending' | 'failed' | 'stale' | 'empty';
@@ -0,0 +1,406 @@
/**
* features/admin/api/procurement-contract.api.ts
* 用途:采购合同审查 Admin / 会话 API 封装(含鉴权下载)。
* 依赖:shared/api/client requestJson、auth headers。
* 逻辑:Templates / Reviews 页面与 Chat 控件调用;下载走 fetch+blob。
*/
import { requestJson } from '@/shared/api/client';
import { getAuthHeaders } from '@/shared/utils/auth';
export type ContractMetadataField = 'title' | 'version' | 'contract_no' | 'buyer' | 'seller';
export interface ContractComparisonRegionConfig {
metadata_fields: ContractMetadataField[];
body_start_anchors: string[];
body_end_anchors: string[];
signature_terms: string[];
attachment_start_anchors: string[];
attachment_policy: 'page_count_only';
}
export interface ContractComparisonRegionPreview {
status: 'recognized' | 'incomplete' | string;
body_start_anchor?: string | null;
body_end_anchor?: string | null;
signature_terms_found?: string[];
attachment_anchor?: string | null;
warning?: string | null;
}
export interface ContractTemplateRow {
id: number;
name: string;
version: string;
file_name: string;
file_asset_id?: number | null;
contract_type?: string;
applicable_scope?: string | null;
change_note?: string | null;
comparison_region_config?: ContractComparisonRegionConfig | null;
status: 'enabled' | 'disabled' | string;
is_default: boolean;
remark?: string | null;
updated_by_name?: string | null;
created_at?: string | null;
updated_at?: string | null;
}
export interface ContractClauseItem {
clause_no?: string;
title?: string;
change_type?: string;
/** 后端语义分类:仅 obligation 会参与法律与履约风险统计。 */
change_class?: 'format' | 'metadata' | 'commercial' | 'obligation' | string;
risk_level?: string;
clause_category?: string;
detail?: string;
risk_hint?: string;
suggestion?: string;
negotiation_text?: string;
old_text?: string;
new_text?: string;
/** 后端标记:old/new 是否为可读抽取片段;false 时前端展示编码不兼容提示 */
comparison_readable?: boolean;
llm_enabled?: boolean;
llm_confidence?: number | null;
llm_reason?: string;
llm_suggestion?: string;
llm_negotiation_text?: string;
llm_model_risk_level?: string;
llm_decision?: 'confirm' | 'reject' | 'uncertain' | string;
llm_evidence?: string;
evidence?: string;
source?: string;
validation_status?: 'confirmed' | 'needs_review' | string;
/** 同一业务主题下聚合的底层 OCR 不确定片段数。 */
affected_fragments?: number;
business_impact?: string;
anchor_status?: 'anchored' | 'unanchored' | string;
evidence_anchor?: {
page_no?: number;
rects?: number[][];
matched_text?: string;
source_text?: string;
confidence?: number;
method?: 'exact' | 'fuzzy' | 'ocr_page' | string;
} | null;
}
export interface ContractRiskRuleRow {
id: number;
code: string;
/** 内置规则携带组合业务判断;自定义规则仅执行关键词命中判断。 */
rule_kind?: 'builtin' | 'custom' | string;
contract_type: string;
clause_category: string;
title: string;
keywords: string[];
trigger_type: 'keyword_missing' | 'keyword_present' | string;
risk_level: 'high' | 'medium' | 'low' | string;
risk_hint: string;
suggestion: string;
negotiation_text?: string | null;
status: 'enabled' | 'disabled' | string;
sort_order: number;
created_at?: string | null;
updated_at?: string | null;
}
export interface ContractReviewRow {
id: number;
review_no: string;
review_mode: 'compare' | 'solo' | string;
status: string;
contract_file_name: string;
supplier_name?: string | null;
/** 从合同正文抽取的业务合同编号(非审查编号) */
contract_no?: string | null;
contract_type?: string;
template_id?: number | null;
template_source: string;
template_name?: string | null;
total_change_count?: number;
high_risk_count: number;
medium_risk_count: number;
low_risk_count: number;
user_id: number;
user_name?: string | null;
error_message?: string | null;
started_at?: string | null;
finished_at?: string | null;
created_at?: string | null;
progress?: number;
processing_stage?: string | null;
processing_message?: string | null;
summary_json?: Record<string, unknown> | null;
clauses_json?: ContractClauseItem[] | null;
report_text?: string | null;
template_asset_id?: number | null;
}
/**
* 鉴权下载:fetch blob → 触发浏览器保存。
* @param url - 需携带 JWT 的下载 URL
* @param fallbackName - Content-Disposition 缺失时的文件名
*/
async function downloadAuthenticatedFile(url: string, fallbackName: string): Promise<void> {
const res = await fetch(url, { headers: getAuthHeaders() });
if (!res.ok) {
const body = await res.json().catch(() => ({}));
const err = body as { error?: { message?: string }; message?: string };
throw new Error(err?.error?.message || err?.message || res.statusText);
}
const disposition = res.headers.get('content-disposition');
const blob = await res.blob();
const objectUrl = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = objectUrl;
const rawName = disposition?.match(/filename\*?=(?:UTF-8'')?["']?([^;"'\n]+)/)?.[1] || fallbackName;
try {
a.download = decodeURIComponent(rawName);
} catch {
a.download = rawName;
}
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(objectUrl);
}
/** Admin:下载模板文件 */
export function downloadAdminContractTemplate(templateId: number): Promise<void> {
return downloadAuthenticatedFile(
`/api/admin/procurement-contract/templates/${templateId}/file`,
`template-${templateId}`,
);
}
/**
* Admin:下载审查报告。
* @param reviewId - 审查主键
* @param reviewNo - 审查编号(文件名用)
* @param format - 默认 docx;传 txt 可下载纯文本
*/
export function downloadAdminContractReviewReport(
reviewId: number,
reviewNo?: string,
format: 'txt' | 'docx' = 'docx',
): Promise<void> {
const q = format === 'docx' ? '?format=docx' : '';
return downloadAuthenticatedFile(
`/api/admin/procurement-contract/reviews/${reviewId}/report${q}`,
`${reviewNo || reviewId}_report.${format === 'docx' ? 'docx' : 'txt'}`,
);
}
/** Admin:下载待审合同 */
export function downloadAdminContractReviewContract(reviewId: number, fileName?: string): Promise<void> {
return downloadAuthenticatedFile(
`/api/admin/procurement-contract/reviews/${reviewId}/contract`,
fileName || `contract-${reviewId}`,
);
}
/** Admin:下载带风险高亮批注的合同 PDF 副本 */
export function downloadAdminAnnotatedContract(reviewId: number, reviewNo?: string): Promise<void> {
return downloadAuthenticatedFile(
`/api/admin/procurement-contract/reviews/${reviewId}/annotated-contract`,
`${reviewNo || reviewId}_annotated.pdf`,
);
}
/** Admin:下载本次审查所用模板文件 */
export function downloadAdminContractReviewTemplateFile(reviewId: number): Promise<void> {
return downloadAuthenticatedFile(
`/api/admin/procurement-contract/reviews/${reviewId}/template-file`,
`template-for-review-${reviewId}`,
);
}
/**
* Chat:下载本人审查报告。
* @param reviewNo - 审查编号
* @param format - 默认 docx;传 txt 可下载纯文本
*/
export function downloadChatContractReviewReport(
reviewNo: string,
format: 'txt' | 'docx' = 'docx',
): Promise<void> {
const q = format === 'docx' ? '?format=docx' : '';
return downloadAuthenticatedFile(
`/api/procurement-contract/reviews/${encodeURIComponent(reviewNo)}/report${q}`,
`${reviewNo}_report.${format === 'docx' ? 'docx' : 'txt'}`,
);
}
/** Chat:下载本人带风险高亮批注的合同 PDF */
export function downloadChatAnnotatedContract(reviewNo: string): Promise<void> {
return downloadAuthenticatedFile(
`/api/procurement-contract/reviews/${encodeURIComponent(reviewNo)}/annotated-contract`,
`${reviewNo}_annotated.pdf`,
);
}
/**
* 管理端模板列表。
*/
export async function listAdminContractTemplates(status?: string): Promise<ContractTemplateRow[]> {
const q = status ? `?status=${encodeURIComponent(status)}` : '';
return requestJson<ContractTemplateRow[]>(`/api/admin/procurement-contract/templates${q}`);
}
/**
* 上传并创建模板(multipart)。
*/
export async function createAdminContractTemplate(form: FormData): Promise<ContractTemplateRow> {
const res = await fetch('/api/admin/procurement-contract/templates', {
method: 'POST',
headers: getAuthHeaders(),
body: form,
});
const body = await res.json();
if (!res.ok || body?.success === false) {
throw new Error(body?.error?.message || body?.message || 'upload failed');
}
return (body?.data ?? body) as ContractTemplateRow;
}
/**
* 更新模板。
*/
export async function updateAdminContractTemplate(
id: number,
data: Partial<Pick<ContractTemplateRow, 'name' | 'version' | 'status' | 'is_default' | 'remark' | 'contract_type' | 'applicable_scope' | 'change_note' | 'comparison_region_config'>>,
): Promise<ContractTemplateRow> {
return requestJson<ContractTemplateRow>(`/api/admin/procurement-contract/templates/${id}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
}
/** Admin: preview unsaved region anchors against the stored template file. */
export async function previewAdminContractTemplateRegions(
id: number,
comparisonRegionConfig: ContractComparisonRegionConfig,
): Promise<ContractComparisonRegionPreview> {
return requestJson<ContractComparisonRegionPreview>(
`/api/admin/procurement-contract/templates/${id}/comparison-region-preview`,
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ comparison_region_config: comparisonRegionConfig }),
},
);
}
/**
* 删除模板。
*/
export async function deleteAdminContractTemplate(id: number): Promise<void> {
await requestJson(`/api/admin/procurement-contract/templates/${id}`, { method: 'DELETE' });
}
/**
* 审查历史列表。
*/
export async function listAdminContractReviews(params?: {
review_mode?: string;
template_source?: string;
status?: string;
keyword?: string;
contract_type?: string;
supplier_name?: string;
risk_level?: string;
date_from?: string;
date_to?: string;
}): Promise<{ total: number; items: ContractReviewRow[] }> {
const sp = new URLSearchParams();
if (params?.review_mode) sp.set('review_mode', params.review_mode);
if (params?.template_source) sp.set('template_source', params.template_source);
if (params?.status) sp.set('status', params.status);
if (params?.keyword) sp.set('keyword', params.keyword);
if (params?.contract_type) sp.set('contract_type', params.contract_type);
if (params?.supplier_name) sp.set('supplier_name', params.supplier_name);
if (params?.risk_level) sp.set('risk_level', params.risk_level);
if (params?.date_from) sp.set('date_from', params.date_from);
if (params?.date_to) sp.set('date_to', params.date_to);
const q = sp.toString() ? `?${sp.toString()}` : '';
return requestJson(`/api/admin/procurement-contract/reviews${q}`);
}
/**
* 审查详情。
*/
export async function getAdminContractReview(id: number): Promise<ContractReviewRow> {
return requestJson(`/api/admin/procurement-contract/reviews/${id}`);
}
/** Admin:风险规则列表 */
export async function listAdminContractRiskRules(params?: {
contract_type?: string;
status?: string;
clause_category?: string;
}): Promise<ContractRiskRuleRow[]> {
const sp = new URLSearchParams();
if (params?.contract_type) sp.set('contract_type', params.contract_type);
if (params?.status) sp.set('status', params.status);
if (params?.clause_category) sp.set('clause_category', params.clause_category);
const q = sp.toString() ? `?${sp.toString()}` : '';
return requestJson(`/api/admin/procurement-contract/rules${q}`);
}
/** Admin:创建风险规则 */
export async function createAdminContractRiskRule(
data: Omit<Partial<ContractRiskRuleRow>, 'id'>,
): Promise<ContractRiskRuleRow> {
return requestJson('/api/admin/procurement-contract/rules', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
}
/** Admin:更新风险规则 */
export async function updateAdminContractRiskRule(
id: number,
data: Partial<ContractRiskRuleRow>,
): Promise<ContractRiskRuleRow> {
return requestJson(`/api/admin/procurement-contract/rules/${id}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
}
/** Admin:删除风险规则 */
export async function deleteAdminContractRiskRule(id: number): Promise<void> {
await requestJson(`/api/admin/procurement-contract/rules/${id}`, { method: 'DELETE' });
}
/** 会话:启用模板列表 */
export async function listChatContractTemplates(): Promise<ContractTemplateRow[]> {
return requestJson('/api/procurement-contract/templates');
}
/** 会话:发起审查 */
export async function startChatContractReview(payload: {
review_mode: 'compare' | 'solo';
contract_asset_no: string;
/** 模板比对时必填:用户上传的我方原合同资产编号。 */
original_contract_asset_no?: string | null;
contract_type?: string | null;
supplier_name?: string | null;
agent_id?: number | null;
}): Promise<ContractReviewRow> {
return requestJson('/api/procurement-contract/reviews', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),
});
}
/** 会话:轮询本人合同审查详情 */
export async function getChatContractReview(reviewNo: string): Promise<ContractReviewRow> {
return requestJson(`/api/procurement-contract/reviews/${encodeURIComponent(reviewNo)}`);
}
@@ -1,9 +1,8 @@
/**
* features/admin/components/AdminNav.vue
* 管理后台左侧导航,在模块原始顺序中渲染货代手风琴、企微和报表二级菜单。
* 管理后台左侧导航,使用子路由跳转。
* 依赖:admin-nav.store、modules 常量、vue-router。
* 逻辑:报表/企微子菜单默认折叠;当前路由落在对应模块时自动展开;
* lg 起固定宽度侧栏,小屏横向滚动导航以免挤占主内容。
* 逻辑:报表/企微子菜单默认折叠;当前路由落在对应模块时自动展开以便看到激活项。
*/
<script setup lang="ts">
import { computed, watch } from 'vue';
@@ -11,14 +10,13 @@ import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';
import {
LayoutDashboard, UserPlus, UserCog, Building, Bot, FileText,
Settings2, Megaphone, MessageCircleQuestion, Link2, Users, ShieldCheck, BarChart2, AppWindow, Warehouse,
ChevronDown, ChevronRight
Settings2, Megaphone, MessageCircleQuestion, Link2, Users, ShieldCheck, BarChart2, AppWindow,
ScrollText, ExternalLink,
} from 'lucide-vue-next';
import type { Component } from 'vue';
import { config } from '@/config';
import { ADMIN_MODULE_METAS, ADMIN_REPORT_TABLES, SHIPPING_CONFIG_SUB_MODULE_METAS } from '../constants/modules';
import { ADMIN_MODULE_METAS, ADMIN_REPORT_TABLES } from '../constants/modules';
import { useAdminNavStore } from '../stores/admin-nav.store';
import type { ShippingManagementGroupKey } from '../stores/admin-nav.store';
import type { AdminModuleId } from '../types/admin.types';
const { t } = useI18n();
@@ -37,9 +35,10 @@ const iconMap: Record<AdminModuleId, Component> = {
announcements: Megaphone,
questions: MessageCircleQuestion,
wecom: Link2,
linked_services: ExternalLink,
permissions: Users,
platform_apps: AppWindow,
shipping_inventory: Warehouse,
procurement_contract: ScrollText,
requests: ShieldCheck,
reports: BarChart2,
};
@@ -48,13 +47,15 @@ const visibleModules = computed(() =>
ADMIN_MODULE_METAS.filter((item) => config.admin.modules[item.configKey] !== false),
);
const standardModules = computed(() =>
visibleModules.value.filter((item) => item.id !== 'wecom'),
);
const isModuleActive = (moduleId: AdminModuleId): boolean =>
route.meta.adminModule === moduleId;
const isReportsActive = computed(() => route.meta.adminModule === 'reports');
const isWecomActive = computed(() => route.meta.adminModule === 'wecom');
const isShippingManagementActive = computed(() => route.meta.adminModule === 'shipping_inventory');
const shippingNavGroups = [...new Set(SHIPPING_CONFIG_SUB_MODULE_METAS.map((item) => item.groupKey))];
const wecomSubRoutes = [
{ name: 'AdminWecomSettings', labelKey: 'admin.wecom.nav.settings' },
@@ -66,26 +67,6 @@ const navigateWecom = (routeName: string): void => {
router.push({ name: routeName });
};
/** 判断货代二级菜单当前项;综合工作台按 section 深链高亮,库存字段目录归入库存解析。 */
const isShippingNavActive = (item: typeof SHIPPING_CONFIG_SUB_MODULE_METAS[number]): boolean => {
if (route.name !== item.routeName) return false;
if (!item.query) return true;
const section = typeof route.query.section === 'string' ? route.query.section : 'parsing';
if (item.query.section === 'parsing') return section === 'parsing' || section === 'inventoryFields';
return section === item.query.section;
};
/** 打开货代独立页面或综合工作台区段,保留可收藏的 section 深链。 */
const navigateShipping = (item: typeof SHIPPING_CONFIG_SUB_MODULE_METAS[number]): void => {
router.push({ name: item.routeName, query: item.query });
};
/** 返回当前货代页面所在分组,用于路由进入时只展开对应手风琴。 */
const currentShippingGroup = (): ShippingManagementGroupKey | null => {
const currentItem = SHIPPING_CONFIG_SUB_MODULE_METAS.find(isShippingNavActive);
return currentItem?.groupKey ?? null;
};
const getReportTableLabel = (table: string): string => {
const i18nKey = `admin.report.tables.${table}`;
const translated = t(i18nKey);
@@ -102,7 +83,7 @@ const navigateReport = (table: string): void => {
};
/**
* 进入报表、企微或货代模块时自动展开子菜单,避免当前页在折叠状态下不可见。
* 进入报表/企微模块时自动展开子菜单,避免当前页在折叠状态下不可见。
*/
watch(
isReportsActive,
@@ -119,132 +100,69 @@ watch(
},
{ immediate: true },
);
watch(
isShippingManagementActive,
(active) => {
if (!active) return;
navStore.shippingManagementExpanded = true;
navStore.shippingManagementGroup = currentShippingGroup();
},
{ immediate: true },
);
watch(
() => [route.name, route.query.section],
() => {
if (isShippingManagementActive.value) navStore.shippingManagementGroup = currentShippingGroup();
},
);
</script>
<template>
<aside
class="surface-panel rounded-2xl shadow-sm h-fit w-full lg:sticky lg:top-24 overflow-hidden shrink-0 z-10 transition-all duration-300"
:class="navStore.sidebarCollapsed ? 'max-h-14 lg:max-h-none lg:w-20' : 'lg:w-64'"
class="surface-panel rounded-2xl shadow-sm h-fit md:sticky md:top-24 overflow-hidden shrink-0 z-10 transition-all duration-300"
:class="navStore.sidebarCollapsed ? 'w-0 md:w-20' : 'w-full md:w-64'"
>
<nav class="flex lg:flex-col p-3 gap-1 overflow-x-auto lg:overflow-visible no-scrollbar">
<template v-for="item in visibleModules" :key="item.id">
<div v-if="item.id === 'shipping_inventory'" class="flex flex-col flex-shrink-0">
<button
type="button"
class="admin-nav-btn group justify-between"
:class="{ 'admin-nav-btn--active': isShippingManagementActive }"
:title="navStore.sidebarCollapsed ? t(item.labelKey) : ''"
@click="navStore.shippingManagementExpanded = !navStore.shippingManagementExpanded"
>
<div class="flex items-center gap-3">
<Warehouse class="w-5 h-5 flex-shrink-0" :class="isShippingManagementActive ? 'text-brand-600' : 'text-muted'" />
<span :class="navStore.sidebarCollapsed ? 'lg:hidden' : ''">{{ t(item.labelKey) }}</span>
</div>
</button>
<div
v-if="navStore.shippingManagementExpanded && !navStore.sidebarCollapsed"
class="mt-1 ml-6 space-y-1 border-l-2 border-subtle pl-3 pb-1"
>
<section v-for="groupKey in shippingNavGroups" :key="groupKey" class="shipping-nav-group">
<button
type="button"
class="flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-xs font-semibold text-secondary transition-colors hover:bg-surface-soft"
:aria-expanded="navStore.shippingManagementGroup === groupKey"
@click="navStore.toggleShippingManagementGroup(groupKey)"
>
<span>{{ t(groupKey) }}</span>
<ChevronDown v-if="navStore.shippingManagementGroup === groupKey" class="h-3.5 w-3.5 text-muted" />
<ChevronRight v-else class="h-3.5 w-3.5 text-muted" />
</button>
<div v-if="navStore.shippingManagementGroup === groupKey" class="ml-2 border-l border-subtle pl-2 py-1 space-y-0.5">
<button
v-for="sub in SHIPPING_CONFIG_SUB_MODULE_METAS.filter((entry) => entry.groupKey === groupKey)"
:key="sub.id"
type="button"
class="admin-nav-subitem w-[8em] whitespace-nowrap py-1.5 pl-3"
:class="{ 'admin-nav-subitem--active': isShippingNavActive(sub) }"
@click="navigateShipping(sub)"
>
{{ t(sub.labelKey) }}
</button>
</div>
</section>
</div>
</div>
<div v-else-if="item.id === 'wecom'" class="flex flex-col flex-shrink-0">
<button
type="button"
class="admin-nav-btn group justify-between"
:class="{ 'admin-nav-btn--active': isWecomActive }"
@click="navStore.wecomExpanded = !navStore.wecomExpanded"
>
<div class="flex items-center gap-3">
<Link2 class="w-5 h-5 flex-shrink-0" :class="isWecomActive ? 'text-brand-600' : 'text-muted'" />
<span :class="navStore.sidebarCollapsed ? 'lg:hidden' : ''">{{ t(item.labelKey) }}</span>
</div>
</button>
<div
v-if="navStore.wecomExpanded && !navStore.sidebarCollapsed"
class="pl-4 space-y-1 mt-1 border-l-2 border-subtle ml-6"
>
<button
v-for="sub in wecomSubRoutes"
:key="sub.name"
type="button"
class="admin-nav-subitem"
:class="{ 'admin-nav-subitem--active': route.name === sub.name }"
@click="navigateWecom(sub.name)"
>
{{ t(sub.labelKey) }}
</button>
</div>
</div>
<button
v-else
type="button"
class="admin-nav-btn group"
:class="{ 'admin-nav-btn--active': isModuleActive(item.id) }"
:title="navStore.sidebarCollapsed ? t(item.labelKey) : ''"
@click="navigateModule(item.routeName)"
<nav class="flex md:flex-col p-3 gap-1 overflow-x-auto md:overflow-visible no-scrollbar">
<button
v-for="item in standardModules"
:key="item.id"
type="button"
class="admin-nav-btn group"
:class="{ 'admin-nav-btn--active': isModuleActive(item.id) }"
:title="navStore.sidebarCollapsed ? t(item.labelKey) : ''"
@click="navigateModule(item.routeName)"
>
<component
:is="iconMap[item.id]"
class="w-5 h-5 transition-transform group-hover:scale-110 flex-shrink-0"
:class="isModuleActive(item.id) ? 'text-brand-600' : 'text-muted group-hover:text-secondary'"
/>
<span :class="navStore.sidebarCollapsed ? 'md:hidden' : ''">{{ t(item.labelKey) }}</span>
<span
v-if="navStore.badgeForModule(item.id) && !navStore.sidebarCollapsed"
class="ml-auto bg-red-500 text-white text-[10px] font-bold px-2 py-0.5 rounded-full shadow-sm"
>
<component
:is="iconMap[item.id]"
class="w-5 h-5 transition-transform group-hover:scale-110 flex-shrink-0"
:class="isModuleActive(item.id) ? 'text-brand-600' : 'text-muted group-hover:text-secondary'"
/>
<span :class="navStore.sidebarCollapsed ? 'lg:hidden' : ''">{{ t(item.labelKey) }}</span>
<span
v-if="navStore.badgeForModule(item.id) && !navStore.sidebarCollapsed"
class="ml-auto bg-red-500 text-white text-[10px] font-bold px-2 py-0.5 rounded-full shadow-sm"
>
{{ navStore.badgeForModule(item.id) }}
</span>
<div
v-if="isModuleActive(item.id)"
class="absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-brand-600 rounded-r-full"
/>
{{ navStore.badgeForModule(item.id) }}
</span>
<div
v-if="isModuleActive(item.id)"
class="absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-brand-600 rounded-r-full"
/>
</button>
<div v-if="config.admin.modules.wecom !== false" class="flex flex-col flex-shrink-0">
<button
type="button"
class="admin-nav-btn group justify-between"
:class="{ 'admin-nav-btn--active': isWecomActive }"
@click="navStore.wecomExpanded = !navStore.wecomExpanded"
>
<div class="flex items-center gap-3">
<Link2 class="w-5 h-5 flex-shrink-0" :class="isWecomActive ? 'text-brand-600' : 'text-muted'" />
<span :class="navStore.sidebarCollapsed ? 'md:hidden' : ''">{{ t('admin.nav.wecom') }}</span>
</div>
</button>
</template>
<div
v-if="navStore.wecomExpanded && !navStore.sidebarCollapsed"
class="pl-4 space-y-1 mt-1 border-l-2 border-subtle ml-6"
>
<button
v-for="sub in wecomSubRoutes"
:key="sub.name"
type="button"
class="admin-nav-subitem"
:class="{ 'admin-nav-subitem--active': route.name === sub.name }"
@click="navigateWecom(sub.name)"
>
{{ t(sub.labelKey) }}
</button>
</div>
</div>
<div v-if="config.admin.modules.reports !== false" class="flex flex-col flex-shrink-0">
<button
@@ -255,7 +173,7 @@ watch(
>
<div class="flex items-center gap-3">
<BarChart2 class="w-5 h-5 flex-shrink-0" :class="isReportsActive ? 'text-brand-600' : 'text-muted'" />
<span :class="navStore.sidebarCollapsed ? 'lg:hidden' : ''">{{ t('admin.nav.reports') }}</span>
<span :class="navStore.sidebarCollapsed ? 'md:hidden' : ''">{{ t('admin.nav.reports') }}</span>
</div>
</button>
<div
@@ -3,7 +3,7 @@
* 管理后台模块元数据,AdminNav 与子路由共用。
*/
import type { AdminModuleId, AdminReportTableId, ShippingConfigSubModuleId } from '../types/admin.types';
import type { AdminModuleId, AdminReportTableId } from '../types/admin.types';
export interface AdminModuleMeta {
id: AdminModuleId;
@@ -13,36 +13,9 @@ export interface AdminModuleMeta {
configKey: keyof typeof import('@/config').config.admin.modules;
}
export interface ShippingConfigSubModuleMeta {
id: ShippingConfigSubModuleId;
routeName:
| 'AdminShippingInventory'
| 'AdminShippingFieldAssets'
| 'AdminShippingOrderSchema'
| 'AdminShippingIdentityRules'
| 'AdminShippingOrderExtractionRuns'
| 'AdminShippingAudit'
| 'AdminShippingProcessGates'
| 'AdminShippingLegacyStpJobs'
| 'AdminShippingOrderDocumentProfiles';
path:
| 'shipping-notice'
| 'shipping-field-assets'
| 'shipping-order-schema'
| 'shipping-identity-rules'
| 'shipping-order-extraction-runs'
| 'shipping-audit'
| 'shipping-process-gates'
| 'shipping-legacy-stp-jobs'
| 'shipping-order-document-profiles';
labelKey: string;
groupKey: 'admin.nav.shippingOrderRecognition' | 'admin.nav.shippingInventoryManagement' | 'admin.nav.shippingRunAudit';
query?: { section: 'parsing' | 'profiles' | 'sources' | 'mappings' | 'rules' | 'templates' | 'snapshots' | 'exports' };
}
/** 已独立拆分的模块(全部 admin 模块均已拆分) */
export const STANDALONE_ADMIN_MODULES = new Set<AdminModuleId>([
'dashboard', 'agents', 'users', 'departments', 'approvals', 'announcements', 'questions', 'requests', 'permissions', 'schedules', 'knowledge_base', 'wecom', 'platform_apps', 'shipping_inventory', 'reports',
'dashboard', 'agents', 'users', 'departments', 'approvals', 'announcements', 'questions', 'requests', 'permissions', 'schedules', 'knowledge_base', 'wecom', 'linked_services', 'platform_apps', 'procurement_contract', 'reports',
]);
export const ADMIN_MODULE_METAS: AdminModuleMeta[] = [
@@ -53,34 +26,16 @@ export const ADMIN_MODULE_METAS: AdminModuleMeta[] = [
{ id: 'agents', routeName: 'AdminAgents', path: 'agents', labelKey: 'admin.nav.agents', configKey: 'agents' },
{ id: 'knowledge_base', routeName: 'AdminKnowledgeBase', path: 'knowledge-base', labelKey: 'admin.nav.knowledgeBase', configKey: 'knowledge_base' },
{ id: 'schedules', routeName: 'AdminSchedules', path: 'schedules', labelKey: 'admin.nav.schedules', configKey: 'schedules' },
{ id: 'shipping_inventory', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.nav.shippingConfig', configKey: 'shipping_inventory' },
{ id: 'announcements', routeName: 'AdminAnnouncements', path: 'announcements', labelKey: 'admin.nav.announcements', configKey: 'announcements' },
{ id: 'questions', routeName: 'AdminQuestions', path: 'questions', labelKey: 'admin.nav.questions', configKey: 'questions' },
{ id: 'wecom', routeName: 'AdminWecom', path: 'wecom', labelKey: 'admin.nav.wecom', configKey: 'wecom' },
{ id: 'linked_services', routeName: 'AdminLinkedServices', path: 'linked-services', labelKey: 'admin.nav.linkedServices', configKey: 'linked_services' },
{ id: 'permissions', routeName: 'AdminPermissions', path: 'permissions', labelKey: 'admin.nav.permissions', configKey: 'permissions' },
{ id: 'platform_apps', routeName: 'AdminPlatformApps', path: 'platform-apps', labelKey: 'admin.nav.platformApps', configKey: 'platform_apps' },
{ id: 'procurement_contract', routeName: 'AdminProcurementContract', path: 'procurement-contract', labelKey: 'admin.nav.procurementContract', configKey: 'procurement_contract' },
{ id: 'requests', routeName: 'AdminRequests', path: 'requests', labelKey: 'admin.nav.requests', configKey: 'requests' },
];
/** 货代管理的业务导航唯一真相源;按基础定义、适配规则、运行任务的依赖顺序排列。 */
export const SHIPPING_CONFIG_SUB_MODULE_METAS: ShippingConfigSubModuleMeta[] = [
{ id: 'field_assets', routeName: 'AdminShippingFieldAssets', path: 'shipping-field-assets', labelKey: 'admin.nav.shippingFieldAssets', groupKey: 'admin.nav.shippingOrderRecognition' },
{ id: 'order_schema', routeName: 'AdminShippingOrderSchema', path: 'shipping-order-schema', labelKey: 'admin.nav.shippingOrderSchema', groupKey: 'admin.nav.shippingOrderRecognition' },
{ id: 'order_document_profiles', routeName: 'AdminShippingOrderDocumentProfiles', path: 'shipping-order-document-profiles', labelKey: 'admin.nav.shippingOrderDocumentProfiles', groupKey: 'admin.nav.shippingOrderRecognition' },
{ id: 'identity_rules', routeName: 'AdminShippingIdentityRules', path: 'shipping-identity-rules', labelKey: 'admin.nav.shippingIdentityRules', groupKey: 'admin.nav.shippingOrderRecognition' },
{ id: 'order_extraction_runs', routeName: 'AdminShippingOrderExtractionRuns', path: 'shipping-order-extraction-runs', labelKey: 'admin.nav.shippingOrderExtractionRuns', groupKey: 'admin.nav.shippingOrderRecognition' },
{ id: 'inventory_fields', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.parsingProfiles', groupKey: 'admin.nav.shippingInventoryManagement', query: { section: 'parsing' } },
{ id: 'connections', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.connections', groupKey: 'admin.nav.shippingInventoryManagement', query: { section: 'profiles' } },
{ id: 'inventory_sites', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.sources', groupKey: 'admin.nav.shippingInventoryManagement', query: { section: 'sources' } },
{ id: 'warehouse_mappings', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.externalMappings', groupKey: 'admin.nav.shippingInventoryManagement', query: { section: 'mappings' } },
{ id: 'routing_rules', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.rules', groupKey: 'admin.nav.shippingInventoryManagement', query: { section: 'rules' } },
{ id: 'shipping_templates', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.excelTemplates', groupKey: 'admin.nav.shippingInventoryManagement', query: { section: 'templates' } },
{ id: 'shipping_audit', routeName: 'AdminShippingAudit', path: 'shipping-audit', labelKey: 'admin.nav.shippingAudit', groupKey: 'admin.nav.shippingRunAudit' },
{ id: 'process_gates', routeName: 'AdminShippingProcessGates', path: 'shipping-process-gates', labelKey: 'admin.nav.shippingProcessGates', groupKey: 'admin.nav.shippingRunAudit' },
{ id: 'inventory_snapshots', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.snapshots', groupKey: 'admin.nav.shippingRunAudit', query: { section: 'snapshots' } },
{ id: 'export_records', routeName: 'AdminShippingInventory', path: 'shipping-notice', labelKey: 'admin.shippingInventory.exports', groupKey: 'admin.nav.shippingRunAudit', query: { section: 'exports' } },
];
export const ADMIN_REPORT_TABLES: AdminReportTableId[] = [
'usage_analysis',
'chat_logs',
@@ -1,9 +1,9 @@
/**
* features/admin/modules/agents/components/AgentFormModal.vue
*
* 用途:应用管理新增/编辑弹窗,集中承载 Agent 基础信息、Dify/Iframe 配置和常见问题表单。
* 用途:应用管理新增/编辑弹窗,集中承载 Agent 基础信息(含启用状态)、Dify/Iframe 配置和常见问题表单。
* 依赖:agent.types AgentFormState、schedule.types ScheduleTask、AgentToolRunProgressConfig、vue-i18n。
* 逻辑:父组件控制 visible/isEditing/isSaving 与保存;本组件直接编辑传入的 form,并通过事件通知关闭、保存、增删常见问题。
* 逻辑:父组件控制 visible/isEditing/isSaving 与保存;本组件直接编辑传入的 form(含 is_active),并通过事件通知关闭、保存、增删常见问题。
*/
<script setup lang="ts">
@@ -15,8 +15,7 @@ import type { ScheduleTask } from '@/shared/types/schedule.types';
import type { AgentTypeCatalogEntry, IntentRouteOption } from '../composables/useAgentsAdminRegistry';
import type { AdminContentProfileOption } from '@/features/admin/api/admin.api';
import {
DEFAULT_TRAINING_EMPLOYEE_CHAT_QUESTIONS,
DEFAULT_TRAINING_HR_CHAT_QUESTIONS,
getDefaultTrainingChatQuestions,
} from '@/features/chat/training/trainingChatQuestions';
import {
applyCatalogDefaultsToForm,
@@ -188,10 +187,10 @@ const handleTrainingWorkspaceToggle = () => {
if (props.form.training_workspace_enabled) {
props.form.content_profile = 'training';
if (!props.form.training_employee_chat_questions_text.trim()) {
props.form.training_employee_chat_questions_text = DEFAULT_TRAINING_EMPLOYEE_CHAT_QUESTIONS.join('\n');
props.form.training_employee_chat_questions_text = getDefaultTrainingChatQuestions('employee').join('\n');
}
if (!props.form.training_hr_chat_questions_text.trim()) {
props.form.training_hr_chat_questions_text = DEFAULT_TRAINING_HR_CHAT_QUESTIONS.join('\n');
props.form.training_hr_chat_questions_text = getDefaultTrainingChatQuestions('hr').join('\n');
}
} else if (props.form.content_profile === 'training') {
props.form.content_profile = '';
@@ -208,7 +207,6 @@ watch(
},
);
watch(
() => props.form.is_aggregate,
(enabled) => {
@@ -303,12 +301,13 @@ const handleTrainingQuestionTypeChange = (form: AgentFormState, index: number) =
</option>
</select>
</div>
<template v-if="showDifyFields">
<div class="space-y-2">
<label class="text-xs font-bold text-muted uppercase tracking-wider">Dify应用类型</label>
<select v-model="form.dify_app_type" class="w-full input-field text-sm">
<option value="chatflow">Chatflow</option>
<option value="workflow">Workflow</option>
<div class="space-y-2">
<label class="text-xs font-bold text-muted uppercase tracking-wider">{{ t('admin.agent.fields.difyAppType') }}</label>
<select v-model="form.dify_app_type" class="w-full input-field text-sm">
<option value="chatflow">{{ t('admin.agent.fields.difyAppTypes.chatflow') }}</option>
<option value="workflow">{{ t('admin.agent.fields.difyAppTypes.workflow') }}</option>
</select>
</div>
<div class="space-y-2">
@@ -341,6 +340,23 @@ const handleTrainingQuestionTypeChange = (form: AgentFormState, index: number) =
</div>
</template>
<div class="col-span-1 md:col-span-2 space-y-2">
<label class="text-xs font-bold text-muted uppercase tracking-wider">{{ t('admin.agent.fields.isActive') }}</label>
<div class="flex flex-col gap-2 rounded-xl border border-default bg-surface-soft/40 px-4 py-3 sm:flex-row sm:items-center sm:justify-between">
<p class="text-sm leading-6 text-secondary">
{{ form.is_active ? t('admin.agent.fields.isActiveHintOn') : t('admin.agent.fields.isActiveHintOff') }}
</p>
<label class="inline-flex shrink-0 items-center gap-2 rounded-xl border border-default bg-white px-3 py-2 text-sm text-secondary">
<input
v-model="form.is_active"
type="checkbox"
class="accent-brand-600"
/>
<span>{{ t('admin.agent.fields.isActiveEnable') }}</span>
</label>
</div>
</div>
<div class="col-span-1 md:col-span-2 space-y-2">
<label class="text-xs font-bold text-muted uppercase tracking-wider">{{ t('admin.agent.fields.description') }}</label>
<input
@@ -565,30 +581,30 @@ const handleTrainingQuestionTypeChange = (form: AgentFormState, index: number) =
<div class="col-span-1 md:col-span-2 space-y-3">
<div class="flex flex-wrap items-center justify-between gap-3">
<label class="text-xs font-bold text-muted uppercase tracking-wider">常见问题</label>
<label class="text-xs font-bold text-muted uppercase tracking-wider">{{ t('admin.agent.suggestedQuestions.title') }}</label>
<button
type="button"
class="inline-flex items-center gap-1 rounded-lg border border-default px-3 py-1.5 text-xs font-medium text-secondary transition-colors hover:bg-surface-soft"
@click="emit('addSuggestedQuestion')"
>
<Plus class="h-4 w-4" />
添加问题
{{ t('admin.agent.suggestedQuestions.add') }}
</button>
</div>
<div class="flex flex-wrap items-center gap-3 text-sm">
<label class="inline-flex items-center gap-2 text-secondary">
<input v-model="form.suggested_questions_style" type="radio" value="plain" class="accent-brand-600" />
<span>无样式</span>
<span>{{ t('admin.agent.suggestedQuestions.stylePlain') }}</span>
</label>
<label class="inline-flex items-center gap-2 text-secondary">
<input v-model="form.suggested_questions_style" type="radio" value="styled" class="accent-brand-600" />
<span>有样式</span>
<span>{{ t('admin.agent.suggestedQuestions.styleStyled') }}</span>
</label>
</div>
<div v-if="form.suggested_questions.length === 0" class="rounded-xl border border-dashed border-default px-4 py-5 text-sm text-muted">
暂未配置常见问题,点击“添加问题”后会同步到对应 Agent 的 Chat 欢迎页。
{{ t('admin.agent.suggestedQuestions.empty') }}
</div>
<div v-else class="space-y-3">
@@ -602,14 +618,16 @@ const handleTrainingQuestionTypeChange = (form: AgentFormState, index: number) =
v-model="item.question"
type="text"
class="w-full input-field text-sm"
placeholder="请输入常见问题,例如:查询我有多少假期?"
:placeholder="t('admin.agent.suggestedQuestions.questionPlaceholder')"
/>
<input
v-model="item.group"
type="text"
class="w-full input-field text-sm"
:disabled="form.suggested_questions_style !== 'styled'"
:placeholder="form.suggested_questions_style === 'styled' ? '可选:分组标题,例如:考勤与休假' : '无样式下无需分组'"
:placeholder="form.suggested_questions_style === 'styled'
? t('admin.agent.suggestedQuestions.groupPlaceholderStyled')
: t('admin.agent.suggestedQuestions.groupPlaceholderPlain')"
/>
<button
type="button"
@@ -500,13 +500,13 @@ export function useAgentsAdmin() {
payload.dify_api_key = form.value.dify_api_key;
}
await updateAdminAgent(form.value.id, payload);
msg.success('应用更新成功');
msg.success(t('admin.agent.updateSuccess'));
} else {
await createAdminAgent({
...registryPayload,
dify_api_key: form.value.dify_api_key,
});
msg.success('应用创建成功');
msg.success(t('admin.agent.createSuccess'));
}
await loadAgents();
@@ -0,0 +1,135 @@
/**
* features/admin/modules/linked-services/LinkedServicesPage.vue
* 关联服务管理独立页面:表格列表 + 新增/编辑弹窗。
* 依赖:useLinkedServicesAdmin、LinkedServiceFormModal、DeleteConfirmDialog。
* 逻辑:路由 /admin/linked-services;启用项自动出现在 Chat/工作台侧栏底部。
*/
<script setup lang="ts">
import { onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { Edit, Plus, Trash2 } from 'lucide-vue-next';
import DeleteConfirmDialog from '@/shared/components/DeleteConfirmDialog.vue';
import LinkedServiceFormModal from './components/LinkedServiceFormModal.vue';
import { useLinkedServicesAdmin } from './composables/useLinkedServicesAdmin';
const { t } = useI18n();
const {
services,
form,
isLoading,
isSaving,
showFormModal,
showDeleteConfirmDialog,
deleteConfirmMessage,
loadAll,
openCreateModal,
openEditModal,
closeFormModal,
saveService,
toggleEnabled,
deleteServiceItem,
closeDeleteConfirm,
confirmDelete,
} = useLinkedServicesAdmin();
onMounted(() => {
void loadAll();
});
</script>
<template>
<section class="admin-table-section animate-fade-in-up">
<div v-if="isLoading" class="flex items-center justify-center py-20">
<div class="animate-spin rounded-full h-10 w-10 border-b-2 border-brand-600" />
</div>
<template v-else>
<div class="admin-table-header admin-table-header--stacked">
<div>
<h2 class="section-title">{{ t('admin.linkedServices.title') }}</h2>
<p class="section-desc mt-1">{{ t('admin.linkedServices.subtitle') }}</p>
</div>
<button
type="button"
class="flex items-center gap-2 px-4 py-2 bg-brand-600 text-white rounded-xl hover:bg-brand-700 transition-all shadow-lg shadow-brand-200 active:scale-95 text-sm font-medium"
@click="openCreateModal"
>
<Plus class="w-4 h-4" />
<span>{{ t('admin.linkedServices.add') }}</span>
</button>
</div>
<div class="admin-table-wrap">
<table class="admin-table">
<thead>
<tr>
<th class="px-6 py-4 text-left text-xs">{{ t('admin.linkedServices.headers.name') }}</th>
<th class="px-6 py-4 text-left text-xs">{{ t('admin.linkedServices.headers.url') }}</th>
<th class="px-6 py-4 text-left text-xs w-28">{{ t('admin.linkedServices.headers.status') }}</th>
<th class="px-6 py-4 text-left text-xs w-24">{{ t('admin.linkedServices.headers.sortOrder') }}</th>
<th class="px-6 py-4 text-right text-xs w-40">{{ t('admin.linkedServices.headers.actions') }}</th>
</tr>
</thead>
<tbody>
<tr v-if="services.length === 0">
<td colspan="5" class="px-6 admin-table-empty">{{ t('admin.linkedServices.empty') }}</td>
</tr>
<tr v-for="row in services" :key="row.id">
<td class="px-6 py-4 text-sm font-medium text-primary">{{ row.name }}</td>
<td class="px-6 py-4 text-sm text-secondary font-mono break-all">{{ row.url }}</td>
<td class="px-6 py-4">
<button
type="button"
class="inline-flex items-center rounded-full px-2.5 py-1 text-xs font-medium transition-colors"
:class="row.is_enabled
? 'bg-emerald-50 text-emerald-700 hover:bg-emerald-100'
: 'bg-surface-soft text-muted hover:bg-surface'"
@click="toggleEnabled(row)"
>
{{ row.is_enabled ? t('admin.linkedServices.status.enabled') : t('admin.linkedServices.status.disabled') }}
</button>
</td>
<td class="px-6 py-4 text-sm text-secondary">{{ row.sort_order }}</td>
<td class="px-6 py-4 text-right">
<div class="inline-flex items-center gap-1">
<button
type="button"
class="p-2 rounded-lg text-muted hover:bg-surface-soft hover:text-secondary"
:title="t('admin.edit')"
@click="openEditModal(row)"
>
<Edit class="w-4 h-4" />
</button>
<button
type="button"
class="p-2 rounded-lg text-muted hover:bg-red-50 hover:text-red-600"
:title="t('admin.delete')"
@click="deleteServiceItem(row.id)"
>
<Trash2 class="w-4 h-4" />
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</template>
<LinkedServiceFormModal
:visible="showFormModal"
:form="form"
:is-saving="isSaving"
@close="closeFormModal"
@save="saveService"
/>
<DeleteConfirmDialog
v-model="showDeleteConfirmDialog"
:message="deleteConfirmMessage"
@cancel="closeDeleteConfirm"
@confirm="confirmDelete"
/>
</section>
</template>
@@ -0,0 +1,70 @@
/**
* features/admin/modules/linked-services/components/LinkedServiceFormModal.vue
* 关联服务创建/编辑居中弹窗。
* 依赖:LinkedServiceFormState、admin 通用 modal 样式。
* 逻辑:LinkedServicesPage 打开本组件;提交时 emit save。
*/
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import type { LinkedServiceFormState } from '@/features/admin/types/linked-service.types';
defineProps<{
visible: boolean;
form: LinkedServiceFormState;
isSaving: boolean;
}>();
const emit = defineEmits<{
close: [];
save: [];
}>();
const { t } = useI18n();
</script>
<template>
<div v-if="visible" class="admin-modal-overlay animate-fade-in items-center">
<div class="admin-modal-panel max-w-lg max-h-[92vh] scale-100">
<div class="px-5 sm:px-8 pt-5 sm:pt-7 pb-4 border-b border-subtle">
<h3 class="section-title">
{{ form.id ? t('admin.linkedServices.edit') : t('admin.linkedServices.add') }}
</h3>
<p class="section-desc mt-1">{{ t('admin.linkedServices.formHint') }}</p>
</div>
<div class="px-5 sm:px-8 py-5 space-y-5 overflow-y-auto">
<div class="space-y-1.5">
<label class="label-field">{{ t('admin.linkedServices.fields.name') }}</label>
<input
v-model="form.name"
type="text"
class="input-field text-sm"
:placeholder="t('admin.linkedServices.placeholders.name')"
/>
</div>
<div class="space-y-1.5">
<label class="label-field">{{ t('admin.linkedServices.fields.url') }}</label>
<input
v-model="form.url"
type="url"
class="input-field text-sm font-mono"
:placeholder="t('admin.linkedServices.placeholders.url')"
/>
</div>
<div class="space-y-1.5">
<label class="label-field">{{ t('admin.linkedServices.fields.sortOrder') }}</label>
<input v-model.number="form.sort_order" type="number" class="input-field text-sm" min="0" />
</div>
<label class="inline-flex items-center gap-2 text-sm text-secondary cursor-pointer">
<input v-model="form.is_enabled" type="checkbox" class="w-4 h-4 rounded text-brand-600 border-default" />
{{ t('admin.linkedServices.fields.enabled') }}
</label>
</div>
<div class="admin-modal-footer">
<button type="button" class="btn-ghost" @click="emit('close')">{{ t('admin.cancel') }}</button>
<button type="button" class="btn-primary disabled:opacity-70" :disabled="isSaving" @click="emit('save')">
{{ isSaving ? t('admin.save') + '...' : form.id ? t('admin.update') : t('admin.add') }}
</button>
</div>
</div>
</div>
</template>
@@ -0,0 +1,198 @@
/**
* features/admin/modules/linked-services/composables/useLinkedServicesAdmin.ts
* 关联服务管理:列表、新增/编辑弹窗、启用开关、删除。
* 依赖:admin.api、linked-service.types、linked-nav.store、useMessage。
* 逻辑:LinkedServicesPage 调用本 composable;保存/删除后刷新侧栏入口缓存。
*/
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import {
createLinkedService,
deleteLinkedService,
listLinkedServices,
updateLinkedService,
} from '@/features/admin/api/admin.api';
import { useLinkedNavStore } from '@/features/sso/stores/linked-nav.store';
import { useMessage } from '@/shared/composables/useMessage';
import {
createEmptyLinkedServiceForm,
linkedServiceRowToForm,
type AdminLinkedServiceRow,
type LinkedServiceFormState,
} from '@/features/admin/types/linked-service.types';
export function useLinkedServicesAdmin() {
const { t } = useI18n();
const msg = useMessage();
const linkedNav = useLinkedNavStore();
const services = ref<AdminLinkedServiceRow[]>([]);
const form = ref<LinkedServiceFormState>(createEmptyLinkedServiceForm());
const isLoading = ref(true);
const isSaving = ref(false);
const showFormModal = ref(false);
const showDeleteConfirmDialog = ref(false);
const deleteConfirmMessage = ref('');
let deleteConfirmAction: (() => Promise<void> | void) | null = null;
/**
* 拉取关联服务列表。
* @returns Promise<void>
*/
const loadServices = async (): Promise<void> => {
try {
services.value = await listLinkedServices();
} catch (e) {
console.error('Failed to load linked services', e);
services.value = [];
msg.error((e as Error).message || t('admin.msg.requestFailed'));
}
};
/**
* 页面初始化:加载列表并结束 loading。
* @returns Promise<void>
*/
const loadAll = async (): Promise<void> => {
isLoading.value = true;
await loadServices();
isLoading.value = false;
};
/** 打开删除确认对话框。 */
const openDeleteConfirm = (message: string, action: () => Promise<void> | void): void => {
deleteConfirmMessage.value = message;
deleteConfirmAction = action;
showDeleteConfirmDialog.value = true;
};
/** 关闭删除确认对话框。 */
const closeDeleteConfirm = (): void => {
showDeleteConfirmDialog.value = false;
deleteConfirmAction = null;
};
/** 执行删除确认动作。 */
const confirmDelete = async (): Promise<void> => {
if (!deleteConfirmAction) return;
try {
await deleteConfirmAction();
} finally {
closeDeleteConfirm();
}
};
/** 打开「新增关联服务」弹窗。 */
const openCreateModal = (): void => {
form.value = createEmptyLinkedServiceForm();
form.value.sort_order = services.value.length;
showFormModal.value = true;
};
/**
* 打开「编辑关联服务」弹窗。
* @param row - 待编辑行
*/
const openEditModal = (row: AdminLinkedServiceRow): void => {
form.value = linkedServiceRowToForm(row);
showFormModal.value = true;
};
/** 关闭表单弹窗。 */
const closeFormModal = (): void => {
showFormModal.value = false;
form.value = createEmptyLinkedServiceForm();
};
/**
* 保存关联服务:有 id 则更新,否则新建。
* 核心逻辑:校验名称与 URL → 调 API → 刷新列表。
*/
const saveService = async (): Promise<void> => {
if (!form.value.name.trim() || !form.value.url.trim()) {
msg.warning(t('admin.linkedServices.msg.fillAll'));
return;
}
isSaving.value = true;
try {
const payload = {
name: form.value.name.trim(),
url: form.value.url.trim(),
is_enabled: form.value.is_enabled,
sort_order: Number(form.value.sort_order || 0),
};
if (form.value.id) {
await updateLinkedService(form.value.id, payload);
} else {
await createLinkedService(payload);
}
closeFormModal();
await loadServices();
void linkedNav.refresh();
msg.success(t('admin.linkedServices.msg.saved'));
} catch (e) {
console.error(e);
msg.error((e as Error).message || t('admin.msg.requestFailed'));
} finally {
isSaving.value = false;
}
};
/**
* 切换启用状态并立即保存。
* @param row - 目标行
*/
const toggleEnabled = async (row: AdminLinkedServiceRow): Promise<void> => {
try {
await updateLinkedService(row.id, {
name: row.name,
url: row.url,
is_enabled: !row.is_enabled,
sort_order: row.sort_order,
});
await loadServices();
void linkedNav.refresh();
} catch (e) {
console.error(e);
msg.error((e as Error).message || t('admin.msg.requestFailed'));
}
};
/**
* 删除指定关联服务。
* @param id - 主键
*/
const deleteServiceItem = (id: number): void => {
openDeleteConfirm(t('admin.linkedServices.confirmDelete'), async () => {
try {
await deleteLinkedService(id);
await loadServices();
void linkedNav.refresh();
msg.success(t('admin.linkedServices.msg.deleted'));
} catch (e) {
console.error(e);
msg.error((e as Error).message || t('admin.msg.requestFailed'));
}
});
};
return {
services,
form,
isLoading,
isSaving,
showFormModal,
showDeleteConfirmDialog,
deleteConfirmMessage,
loadAll,
openCreateModal,
openEditModal,
closeFormModal,
saveService,
toggleEnabled,
deleteServiceItem,
closeDeleteConfirm,
confirmDelete,
};
}
@@ -1,9 +1,14 @@
/**
* features/admin/modules/platform-apps/PlatformAppsPage.vue
* 用途:平台应用说明(新手指南)管理——按 Agent 维护指南资料上传、启停与排序。
* 依赖:admin.api 指南 CRUD/上传、vue-i18n、lucide 图标。
* 逻辑:Admin 路由挂载;选择应用后拉取指南列表,弹窗内上传并保存元数据。
*/
<script setup lang="ts">
import { ref, onMounted, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { Plus, Trash2, Edit2, Play, FileText, Image as ImageIcon } from 'lucide-vue-next';
import { listAdminAgents, listAdminAgentGuides, createAdminAgentGuide, updateAdminAgentGuide, deleteAdminAgentGuide, uploadAdminAgentGuideFile } from '@/features/admin/api/admin.api';
import DeleteConfirmDialog from '@/shared/components/DeleteConfirmDialog.vue';
const { t } = useI18n();
@@ -29,9 +34,10 @@ const form = ref({
const isUploading = ref(false);
const uploadError = ref('');
const deleteDialogOpen = ref(false);
const pendingDeleteGuideId = ref<number | null>(null);
/**
* 拉取 Agent 列表并默认选中第一项,再加载其指南。
*/
const fetchAgents = async () => {
try {
agents.value = await listAdminAgents();
@@ -44,6 +50,9 @@ const fetchAgents = async () => {
}
};
/**
* 按当前选中 Agent 拉取指南列表。
*/
const fetchGuides = async () => {
if (!selectedAgentId.value) return;
isLoading.value = true;
@@ -65,6 +74,9 @@ onMounted(() => {
fetchAgents();
});
/**
* 打开新建指南弹窗并重置表单。
*/
const openCreateModal = () => {
isEditing.value = false;
editingId.value = null;
@@ -82,6 +94,10 @@ const openCreateModal = () => {
isModalOpen.value = true;
};
/**
* 打开编辑指南弹窗并回填行数据。
* @param guide - 列表行指南对象
*/
const openEditModal = (guide: any) => {
isEditing.value = true;
editingId.value = guide.id;
@@ -99,6 +115,10 @@ const openEditModal = (guide: any) => {
isModalOpen.value = true;
};
/**
* 上传指南文件并回填 path/type/size;必要时校正 guide_usage 与文件类型一致性。
* @param event - input file change 事件
*/
const handleFileUpload = async (event: Event) => {
const file = (event.target as HTMLInputElement).files?.[0];
if (!file) return;
@@ -121,12 +141,15 @@ const handleFileUpload = async (event: Event) => {
form.value.file_name = res.file_name;
}
} catch (err: any) {
uploadError.value = err.message || '上传失败';
uploadError.value = err.message || t('admin.platformApps.uploadFailed');
} finally {
isUploading.value = false;
}
};
/**
* 提交新建或更新指南元数据。
*/
const submitForm = async () => {
if (!selectedAgentId.value || !form.value.file_path || !form.value.file_name) return;
@@ -146,23 +169,24 @@ const submitForm = async () => {
}
};
const deleteGuide = (id: number) => {
pendingDeleteGuideId.value = id;
deleteDialogOpen.value = true;
};
const confirmDeleteGuide = async () => {
const id = pendingDeleteGuideId.value;
if (!id) return;
/**
* 确认后删除指南。
* @param id - 指南主键
*/
const deleteGuide = async (id: number) => {
if (!confirm(t('admin.platformApps.confirmDelete'))) return;
try {
await deleteAdminAgentGuide(id);
await fetchGuides();
} catch (error) {
console.error('Failed to delete guide:', error);
} finally {
pendingDeleteGuideId.value = null;
}
};
/**
* 切换指南启停状态。
* @param guide - 列表行指南对象
*/
const toggleStatus = async (guide: any) => {
try {
await updateAdminAgentGuide(guide.id, { status: guide.status === 1 ? 0 : 1 });
@@ -172,6 +196,11 @@ const toggleStatus = async (guide: any) => {
}
};
/**
* 将字节数格式化为可读文件大小。
* @param bytes - 文件字节数
* @returns 如 `1.2 MB`
*/
const formatSize = (bytes: number) => {
if (!bytes) return '0 B';
const k = 1024;
@@ -180,6 +209,10 @@ const formatSize = (bytes: number) => {
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
};
/**
* 按文件类型返回列表图标组件。
* @param type - 文件类型(video/pdf/其它)
*/
const getIcon = (type: string) => {
if (type === 'video') return Play;
if (type === 'pdf') return FileText;
@@ -195,7 +228,7 @@ const getIcon = (type: string) => {
{{ t('admin.nav.platformApps') }}
</h2>
<p class="text-sm text-muted mt-1">
管理应用的新手指南资料(支持视频、PDF等)
{{ t('admin.platformApps.subtitle') }}
</p>
</div>
</div>
@@ -203,7 +236,7 @@ const getIcon = (type: string) => {
<div class="surface-panel rounded-2xl p-6 shadow-sm border border-subtle flex-1 flex flex-col gap-6">
<div class="flex items-center justify-between">
<div class="flex items-center gap-4">
<label class="font-medium text-sm text-default">选择应用:</label>
<label class="font-medium text-sm text-default">{{ t('admin.platformApps.selectAgent') }}</label>
<select v-model="selectedAgentId" class="input-field w-64" @change="fetchGuides">
<option v-for="agent in agents" :key="agent.id" :value="agent.id">
{{ agent.name }}
@@ -212,7 +245,7 @@ const getIcon = (type: string) => {
</div>
<button v-if="selectedAgentId" type="button" class="btn-primary" @click="openCreateModal">
<Plus class="w-5 h-5 mr-1" />
<span>添加指南</span>
<span>{{ t('admin.platformApps.addGuide') }}</span>
</button>
</div>
@@ -221,25 +254,25 @@ const getIcon = (type: string) => {
</div>
<div v-else-if="!selectedAgentId" class="flex flex-col items-center justify-center py-20 text-muted">
请先选择一个应用
{{ t('admin.platformApps.selectAgentFirst') }}
</div>
<div v-else-if="guides.length === 0" class="flex flex-col items-center justify-center py-20 text-muted">
该应用暂无新手指南资料
{{ t('admin.platformApps.emptyGuides') }}
</div>
<div v-else class="overflow-x-auto rounded-xl border border-subtle">
<table class="w-full text-left text-sm whitespace-nowrap">
<thead class="bg-muted text-muted uppercase text-xs font-semibold tracking-wider border-b border-subtle">
<tr>
<th class="px-6 py-4">类型</th>
<th class="px-6 py-4">资料名称</th>
<th class="px-6 py-4">{{ t('admin.platformApps.colType') }}</th>
<th class="px-6 py-4">{{ t('admin.platformApps.colFileName') }}</th>
<th class="px-6 py-4">{{ t('admin.platformApps.guideUsage') }}</th>
<th class="px-6 py-4">Agent应用</th>
<th class="px-6 py-4">文件大小</th>
<th class="px-6 py-4">排序</th>
<th class="px-6 py-4">状态</th>
<th class="px-6 py-4 text-right">操作</th>
<th class="px-6 py-4">{{ t('admin.platformApps.colAgent') }}</th>
<th class="px-6 py-4">{{ t('admin.platformApps.colFileSize') }}</th>
<th class="px-6 py-4">{{ t('admin.platformApps.colSort') }}</th>
<th class="px-6 py-4">{{ t('admin.platformApps.colStatus') }}</th>
<th class="px-6 py-4 text-right">{{ t('admin.platformApps.colActions') }}</th>
</tr>
</thead>
<tbody class="divide-y divide-subtle">
@@ -269,14 +302,14 @@ const getIcon = (type: string) => {
:class="guide.status === 1 ? 'bg-green-100 text-green-700 hover:bg-green-200' : 'bg-gray-100 text-gray-700 hover:bg-gray-200'"
@click="toggleStatus(guide)"
>
{{ guide.status === 1 ? '已启用' : '已禁用' }}
{{ guide.status === 1 ? t('admin.platformApps.statusEnabled') : t('admin.platformApps.statusDisabled') }}
</button>
</td>
<td class="px-6 py-4 text-right space-x-2">
<button type="button" class="btn-icon-ds" @click="openEditModal(guide)" title="编辑">
<button type="button" class="btn-icon-ds" @click="openEditModal(guide)" :title="t('common.edit')">
<Edit2 class="w-4 h-4" />
</button>
<button type="button" class="btn-icon-ds text-red-500 hover:bg-red-50" @click="deleteGuide(guide.id)" title="删除">
<button type="button" class="btn-icon-ds text-red-500 hover:bg-red-50" @click="deleteGuide(guide.id)" :title="t('common.delete')">
<Trash2 class="w-4 h-4" />
</button>
</td>
@@ -290,13 +323,13 @@ const getIcon = (type: string) => {
<div v-if="isModalOpen" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm">
<div class="bg-white dark:bg-gray-800 rounded-2xl shadow-xl w-full max-w-lg overflow-hidden flex flex-col max-h-[90vh]">
<div class="px-6 py-4 border-b border-subtle flex justify-between items-center">
<h3 class="text-lg font-bold text-default">{{ isEditing ? '编辑指南' : '添加指南' }}</h3>
<h3 class="text-lg font-bold text-default">{{ isEditing ? t('admin.platformApps.editGuide') : t('admin.platformApps.addGuide') }}</h3>
<button @click="isModalOpen = false" class="text-muted hover:text-default text-xl leading-none">&times;</button>
</div>
<div class="p-6 overflow-y-auto space-y-4">
<div v-if="!isEditing" class="space-y-2">
<label class="text-sm font-medium text-default">上传文件</label>
<label class="text-sm font-medium text-default">{{ t('admin.platformApps.uploadFile') }}</label>
<input
type="file"
accept="video/mp4,video/webm,application/pdf,image/png,image/jpeg"
@@ -304,20 +337,20 @@ const getIcon = (type: string) => {
@change="handleFileUpload"
/>
<div v-if="isUploading" class="text-sm text-blue-600 mt-2 flex items-center gap-2">
<div class="animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"></div> 上传中...
<div class="animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"></div> {{ t('admin.platformApps.uploading') }}
</div>
<div v-if="uploadError" class="text-sm text-red-500 mt-2">{{ uploadError }}</div>
<div v-if="form.file_path && !isUploading" class="text-sm text-green-600 mt-2">已上传文件就绪</div>
<div v-if="form.file_path && !isUploading" class="text-sm text-green-600 mt-2">{{ t('admin.platformApps.uploadReady') }}</div>
</div>
<div class="space-y-2">
<label class="text-sm font-medium text-default">资料名称</label>
<input v-model="form.file_name" type="text" class="input-field w-full" placeholder="如:人事助手使用手册" />
<label class="text-sm font-medium text-default">{{ t('admin.platformApps.fileName') }}</label>
<input v-model="form.file_name" type="text" class="input-field w-full" :placeholder="t('admin.platformApps.fileNamePlaceholder')" />
</div>
<div class="space-y-2">
<label class="text-sm font-medium text-default">备注说明</label>
<textarea v-model="form.remark" class="input-field w-full h-20" placeholder="简要说明..."></textarea>
<label class="text-sm font-medium text-default">{{ t('admin.platformApps.remark') }}</label>
<textarea v-model="form.remark" class="input-field w-full h-20" :placeholder="t('admin.platformApps.remarkPlaceholder')"></textarea>
</div>
<div class="grid grid-cols-2 gap-4">
@@ -331,33 +364,32 @@ const getIcon = (type: string) => {
<p class="text-xs text-muted">{{ t('admin.platformApps.guideUsageHint') }}</p>
</div>
<div class="space-y-2">
<label class="text-sm font-medium text-default">排序权重</label>
<label class="text-sm font-medium text-default">{{ t('admin.platformApps.sortOrder') }}</label>
<input v-model.number="form.sort_order" type="number" class="input-field w-full" />
<p class="text-xs text-muted">数值越小越靠前</p>
<p class="text-xs text-muted">{{ t('admin.platformApps.sortOrderHint') }}</p>
</div>
<div class="space-y-2">
<label class="text-sm font-medium text-default">状态</label>
<label class="text-sm font-medium text-default">{{ t('admin.platformApps.status') }}</label>
<select v-model="form.status" class="input-field w-full">
<option :value="1">启用</option>
<option :value="0">禁用</option>
<option :value="1">{{ t('admin.platformApps.enable') }}</option>
<option :value="0">{{ t('admin.platformApps.disable') }}</option>
</select>
</div>
</div>
</div>
<div class="px-6 py-4 border-t border-subtle bg-muted flex justify-end gap-3">
<button type="button" class="btn-secondary" @click="isModalOpen = false">取消</button>
<button type="button" class="btn-secondary" @click="isModalOpen = false">{{ t('admin.cancel') }}</button>
<button
type="button"
class="btn-primary"
@click="submitForm"
:disabled="isUploading || !form.file_path || !form.file_name"
>
保存
{{ t('admin.platformApps.save') }}
</button>
</div>
</div>
</div>
<DeleteConfirmDialog v-model="deleteDialogOpen" title="删除指南" message="确定要删除该指南吗?删除后不可恢复。" confirm-tone="danger" @confirm="confirmDeleteGuide" />
</div>
</template>
@@ -0,0 +1,590 @@
/**
* features/admin/modules/procurement-contract/components/ContractRiskRulesPanel.vue
* 用途:采购合同风险红线规则列表与新增/编辑(含迁移种子默认规则)。
* 依赖:procurement-contract.api、DeleteConfirmDialog、useMessage、vue-i18n。
* 逻辑:由 ProcurementContractPage「风险规则」Tab 挂载;CRUD 走 Admin rules API。
*/
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { CircleHelp, Plus, ShieldAlert, ShieldCheck, SlidersHorizontal } from 'lucide-vue-next';
import {
createAdminContractRiskRule,
deleteAdminContractRiskRule,
listAdminContractRiskRules,
updateAdminContractRiskRule,
type ContractRiskRuleRow,
} from '@/features/admin/api/procurement-contract.api';
import DeleteConfirmDialog from '@/shared/components/DeleteConfirmDialog.vue';
import { useMessage } from '@/shared/composables/useMessage';
const { t } = useI18n();
const msg = useMessage();
const loading = ref(false);
const saving = ref(false);
const rules = ref<ContractRiskRuleRow[]>([]);
const filterStatus = ref('');
const showForm = ref(false);
const editing = ref<ContractRiskRuleRow | null>(null);
const formTitle = ref('');
const formCategory = ref('');
const formKeywords = ref('');
const formTriggerType = ref<'keyword_missing' | 'keyword_present'>('keyword_missing');
const formRiskLevel = ref<'high' | 'medium' | 'low'>('medium');
const formRiskHint = ref('');
const formSuggestion = ref('');
const formNegotiation = ref('');
const formStatus = ref<'enabled' | 'disabled'>('enabled');
const formSortOrder = ref(100);
const clauseCategories = [
'payment',
'delivery',
'acceptance',
'warranty',
'liability',
'jurisdiction',
'dispute',
'ip',
'other',
] as const;
const showDeleteConfirm = ref(false);
const pendingDelete = ref<ContractRiskRuleRow | null>(null);
const deleting = ref(false);
const isEditMode = computed(() => Boolean(editing.value));
const formTitleText = computed(() =>
isEditMode.value
? t('admin.procurementContract.ruleEditTitle')
: t('admin.procurementContract.ruleCreateTitle'),
);
const isBuiltinRule = computed(() => editing.value?.rule_kind === 'builtin');
const keywordLogicHint = computed(() =>
formTriggerType.value === 'keyword_present'
? t('admin.procurementContract.keywordPresentLogicHint')
: t('admin.procurementContract.keywordMissingLogicHint'),
);
const ruleStats = computed(() => ({
total: rules.value.length,
enabled: rules.value.filter((rule) => rule.status === 'enabled').length,
highRisk: rules.value.filter((rule) => rule.risk_level === 'high').length,
}));
/**
* 生成风险规则统计卡片,帮助管理员先扫状态再进入列表维护。
*/
const ruleSummaryCards = computed(() => [
{
key: 'total',
label: t('admin.procurementContract.ruleStatTotal'),
value: ruleStats.value.total,
icon: SlidersHorizontal,
className: 'border-slate-200 bg-white text-slate-600',
},
{
key: 'enabled',
label: t('admin.procurementContract.ruleStatEnabled'),
value: ruleStats.value.enabled,
icon: ShieldCheck,
className: 'border-emerald-100 bg-emerald-50/80 text-emerald-700',
},
{
key: 'highRisk',
label: t('admin.procurementContract.ruleStatHighRisk'),
value: ruleStats.value.highRisk,
icon: ShieldAlert,
className: 'border-rose-100 bg-rose-50/80 text-rose-700',
},
]);
/**
* 加载风险规则列表。
* @param options.silent - 为 true 时不切换 loading,避免启停时整表闪烁
*/
async function loadRules(options?: { silent?: boolean }): Promise<void> {
const silent = Boolean(options?.silent);
if (!silent) loading.value = true;
try {
rules.value = await listAdminContractRiskRules({
status: filterStatus.value || undefined,
});
} catch (e: unknown) {
console.error(e);
msg.error(e instanceof Error ? e.message : t('admin.procurementContract.loadFailed'));
} finally {
if (!silent) loading.value = false;
}
}
/**
* 响应筛选条件变更并刷新规则列表。
*/
async function onFilterStatusChange(): Promise<void> {
await loadRules();
}
onMounted(() => {
void loadRules();
});
/**
* 重置规则表单为新建默认值。
*/
function resetForm(): void {
editing.value = null;
formTitle.value = '';
formCategory.value = 'payment';
formKeywords.value = '';
formTriggerType.value = 'keyword_missing';
formRiskLevel.value = 'medium';
formRiskHint.value = '';
formSuggestion.value = '';
formNegotiation.value = '';
formStatus.value = 'enabled';
formSortOrder.value = 100;
}
/**
* 打开新建规则弹窗。
*/
function openCreate(): void {
resetForm();
showForm.value = true;
}
/**
* 打开编辑规则弹窗(种子规则也可改,code 只读)。
*/
function openEdit(row: ContractRiskRuleRow): void {
editing.value = row;
formTitle.value = row.title;
formCategory.value = row.clause_category;
formKeywords.value = (row.keywords || []).join(',');
formTriggerType.value = row.trigger_type === 'keyword_present' ? 'keyword_present' : 'keyword_missing';
formRiskLevel.value =
row.risk_level === 'high' || row.risk_level === 'low' ? row.risk_level : 'medium';
formRiskHint.value = row.risk_hint || '';
formSuggestion.value = row.suggestion || '';
formNegotiation.value = row.negotiation_text || '';
formStatus.value = row.status === 'disabled' ? 'disabled' : 'enabled';
formSortOrder.value = Number(row.sort_order) || 100;
showForm.value = true;
}
/**
* 关闭规则表单。
*/
function closeForm(): void {
showForm.value = false;
editing.value = null;
}
/**
* 提交新建或更新规则。
*/
async function submitForm(): Promise<void> {
if (!formTitle.value.trim() || !formCategory.value.trim()) {
msg.error(t('admin.procurementContract.ruleRequiredFields'));
return;
}
if (!formKeywords.value.trim()) {
msg.error(t('admin.procurementContract.ruleKeywordsRequired'));
return;
}
if (!formRiskHint.value.trim() || !formSuggestion.value.trim()) {
msg.error(t('admin.procurementContract.ruleRequiredFields'));
return;
}
saving.value = true;
try {
// 与后端 _normalize_keywords 一致:逗号/中文逗号分隔
const keywords = formKeywords.value
.replace(/,/g, ',')
.split(',')
.map((s) => s.trim())
.filter(Boolean);
const payload = {
title: formTitle.value.trim(),
clause_category: formCategory.value.trim(),
// 当前采购合同审核只支持通用采购类型,保留固定值以兼容后端规则加载。
contract_type: 'general_procurement',
keywords,
trigger_type: formTriggerType.value,
risk_level: formRiskLevel.value,
risk_hint: formRiskHint.value.trim(),
suggestion: formSuggestion.value.trim(),
negotiation_text: formNegotiation.value.trim() || null,
status: formStatus.value,
sort_order: Number(formSortOrder.value) || 100,
};
if (isEditMode.value && editing.value) {
await updateAdminContractRiskRule(editing.value.id, payload);
msg.success(t('admin.procurementContract.ruleEditOk'));
} else {
await createAdminContractRiskRule(payload);
msg.success(t('admin.procurementContract.ruleCreateOk'));
}
closeForm();
await loadRules({ silent: true });
} catch (e: unknown) {
msg.error(e instanceof Error ? e.message : t('admin.procurementContract.actionFailed'));
} finally {
saving.value = false;
}
}
/**
* 切换规则启停(种子与自定义规则均可)。
* 核心逻辑:先乐观更新本地行,成功后再静默对齐服务端;失败则回滚。
*/
async function toggleStatus(row: ContractRiskRuleRow): Promise<void> {
const prev = row.status;
const next = prev === 'enabled' ? 'disabled' : 'enabled';
row.status = next;
try {
const updated = await updateAdminContractRiskRule(row.id, { status: next });
Object.assign(row, updated);
// 当前筛选为「启用/停用」时,状态变更后该项应离开列表
if (filterStatus.value && filterStatus.value !== next) {
rules.value = rules.value.filter((r) => r.id !== row.id);
}
} catch (e: unknown) {
row.status = prev;
msg.error(e instanceof Error ? e.message : t('admin.procurementContract.actionFailed'));
}
}
/**
* 打开删除确认。
*/
function openDelete(row: ContractRiskRuleRow): void {
pendingDelete.value = row;
showDeleteConfirm.value = true;
}
/**
* 关闭删除确认。
*/
function closeDelete(): void {
showDeleteConfirm.value = false;
pendingDelete.value = null;
}
/**
* 确认删除规则。
*/
async function confirmDelete(): Promise<void> {
const row = pendingDelete.value;
if (!row) return;
deleting.value = true;
try {
await deleteAdminContractRiskRule(row.id);
closeDelete();
rules.value = rules.value.filter((r) => r.id !== row.id);
} catch (e: unknown) {
msg.error(e instanceof Error ? e.message : t('admin.procurementContract.actionFailed'));
} finally {
deleting.value = false;
}
}
/**
* 风险等级文案。
*/
function riskLabel(level: string): string {
if (level === 'high') return t('admin.procurementContract.riskHigh');
if (level === 'medium') return t('admin.procurementContract.riskMedium');
if (level === 'low') return t('admin.procurementContract.riskLow');
return level;
}
/**
* 触发类型文案。
*/
function triggerLabel(type: string): string {
if (type === 'keyword_present') return t('admin.procurementContract.triggerPresent');
return t('admin.procurementContract.triggerMissing');
}
/**
* 状态文案。
*/
function statusLabel(status: string): string {
if (status === 'enabled') return t('admin.procurementContract.enable');
if (status === 'disabled') return t('admin.procurementContract.disable');
return status;
}
/**
* 规则关键词展示文本。
* @param row - 风险规则行;关键词为空时返回短横线占位,避免表格空洞。
*/
function keywordText(row: ContractRiskRuleRow): string {
const keywords = row.keywords || [];
return keywords.length ? keywords.join(',') : '-';
}
/**
* 将内部条款分类编码转换为与规则弹窗一致的可读名称。
* 核心逻辑:规则仍保存稳定编码,列表仅负责展示本地化文案。
* @param category - 后端返回的条款分类编码。
* @returns 用户可读的分类名称;历史未知编码保持原样,避免丢失信息。
*/
function categoryLabel(category: string): string {
const key = `admin.procurementContract.category_${category}`;
const translated = t(key);
return translated === key ? category : translated;
}
defineExpose({ loadRules, openCreate });
</script>
<template>
<div class="space-y-5">
<div class="grid gap-3 md:grid-cols-3">
<div
v-for="card in ruleSummaryCards"
:key="card.key"
class="rounded-xl border px-4 py-3 shadow-sm"
:class="card.className"
>
<div class="flex items-center justify-between gap-3">
<div>
<div class="text-xs font-medium text-muted">{{ card.label }}</div>
<div class="mt-1 text-2xl font-semibold text-primary">{{ card.value }}</div>
</div>
<span class="inline-flex h-9 w-9 items-center justify-center rounded-lg bg-white/80 shadow-sm">
<component :is="card.icon" class="h-4 w-4" />
</span>
</div>
</div>
</div>
<div class="flex flex-col gap-3 rounded-xl border border-subtle bg-white px-4 py-3 shadow-sm sm:flex-row sm:items-center sm:justify-between">
<div class="flex items-center gap-3">
<label class="flex shrink-0 items-center gap-2 text-sm font-medium text-secondary">
<span>{{ t('admin.procurementContract.colStatus') }}</span>
<select
v-model="filterStatus"
class="input-field h-10 w-48 min-w-48 py-0 text-sm"
@change="onFilterStatusChange"
>
<option value="">{{ t('admin.procurementContract.all') }}</option>
<option value="enabled">{{ t('admin.procurementContract.enable') }}</option>
<option value="disabled">{{ t('admin.procurementContract.disable') }}</option>
</select>
</label>
</div>
<button type="button" class="btn-primary inline-flex h-10 items-center gap-2 px-4 shadow-sm" @click="openCreate">
<Plus class="h-4 w-4" />
{{ t('admin.procurementContract.addRule') }}
</button>
</div>
<div class="overflow-hidden rounded-xl border border-subtle bg-white shadow-sm">
<div class="overflow-auto">
<table class="w-full min-w-[1030px] whitespace-nowrap text-sm">
<thead class="bg-slate-50/80 text-xs font-semibold text-muted">
<tr>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colRuleTitle') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colCategory') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colKeywords') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colTrigger') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colRisk') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colStatus') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colSort') }}</th>
<th class="px-5 py-3 text-left">{{ t('admin.procurementContract.colActions') }}</th>
</tr>
</thead>
<tbody>
<tr v-if="loading">
<td colspan="8" class="px-4 py-8 text-center text-muted">
{{ t('admin.procurementContract.loading') }}
</td>
</tr>
<tr v-else-if="!rules.length">
<td colspan="8" class="px-4 py-8 text-center text-muted">
{{ t('admin.procurementContract.emptyRules') }}
</td>
</tr>
<tr v-for="row in rules" :key="row.id" class="border-t border-subtle transition-colors hover:bg-slate-50/70">
<td class="px-5 py-4 align-top">
<div class="font-semibold text-primary">{{ row.title }}</div>
</td>
<td class="px-5 py-4 align-top">
<span class="inline-flex rounded-md border border-slate-200 bg-slate-50 px-2 py-1 text-xs font-medium text-slate-700">
{{ categoryLabel(row.clause_category) }}
</span>
</td>
<td class="max-w-[260px] px-5 py-4 align-top text-xs text-muted" :title="keywordText(row)">
<div class="line-clamp-2 whitespace-normal leading-5">{{ keywordText(row) }}</div>
</td>
<td class="px-5 py-4 align-top text-secondary">{{ triggerLabel(row.trigger_type) }}</td>
<td class="px-5 py-4 align-top">
<span
class="inline-flex rounded-full px-2.5 py-1 text-xs font-semibold"
:class="{
'bg-rose-50 text-rose-700': row.risk_level === 'high',
'bg-amber-50 text-amber-800': row.risk_level === 'medium',
'bg-sky-50 text-sky-700': row.risk_level === 'low',
}"
>
{{ riskLabel(row.risk_level) }}
</span>
</td>
<td class="px-5 py-4 align-top">
<span
class="inline-flex rounded-full px-2.5 py-1 text-xs font-semibold"
:class="row.status === 'enabled' ? 'bg-emerald-50 text-emerald-700' : 'bg-slate-100 text-slate-600'"
>
{{ statusLabel(row.status) }}
</span>
</td>
<td class="px-5 py-4 align-top font-mono text-xs text-muted">{{ row.sort_order }}</td>
<td class="px-5 py-4 align-top">
<div class="flex items-center gap-2">
<button
type="button"
class="inline-flex h-8 items-center rounded-lg border border-[#d8e0ec] bg-white px-3 text-xs font-semibold text-[#2f80d1] transition-colors hover:border-[#2f80d1] hover:bg-[#eaf4ff]"
@click="openEdit(row)"
>
{{ t('admin.edit') }}
</button>
<button
type="button"
class="inline-flex h-8 items-center rounded-lg border border-[#d8e0ec] bg-white px-3 text-xs font-semibold text-[#172033] transition-colors hover:border-[#667792] hover:bg-slate-50"
@click="toggleStatus(row)"
>
{{ row.status === 'enabled' ? t('admin.procurementContract.disable') : t('admin.procurementContract.enable') }}
</button>
<button
type="button"
class="inline-flex h-8 items-center rounded-lg border border-rose-200 bg-white px-3 text-xs font-semibold text-rose-600 transition-colors hover:border-rose-300 hover:bg-rose-50"
@click="openDelete(row)"
>
{{ t('admin.delete') }}
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
v-if="showForm"
class="admin-modal-overlay animate-fade-in"
@click.self="closeForm"
>
<div class="admin-modal-panel max-w-2xl max-h-[92vh] my-auto scale-100" role="dialog" aria-modal="true">
<div class="admin-modal-header flex items-center justify-between gap-3">
<h3 class="section-title">{{ formTitleText }}</h3>
<button type="button" class="btn-ghost h-9 px-3 text-sm" @click="closeForm">
{{ t('admin.close') }}
</button>
</div>
<div class="admin-modal-body min-h-0 !space-y-0 grid grid-cols-1 gap-4 sm:grid-cols-2 items-start">
<label class="flex flex-col gap-1.5 text-sm">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colRuleTitle') }}</span>
<input v-model="formTitle" type="text" class="input-field w-full" />
</label>
<label class="flex flex-col gap-1.5 text-sm">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colCategory') }}</span>
<select v-model="formCategory" class="input-field w-full" :disabled="isBuiltinRule">
<option v-for="category in clauseCategories" :key="category" :value="category">
{{ t(`admin.procurementContract.category_${category}`) }}
</option>
</select>
</label>
<label class="flex flex-col gap-1.5 text-sm sm:col-span-2">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colKeywords') }}</span>
<input
v-model="formKeywords"
type="text"
class="input-field w-full"
:disabled="isBuiltinRule"
:placeholder="t('admin.procurementContract.ruleKeywordsPlaceholder')"
/>
<span class="text-xs leading-5 text-muted">{{ keywordLogicHint }}</span>
</label>
<label class="flex flex-col gap-1.5 text-sm">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colTrigger') }}</span>
<select v-model="formTriggerType" class="input-field w-full" :disabled="isBuiltinRule">
<option value="keyword_missing">{{ t('admin.procurementContract.triggerMissing') }}</option>
<option value="keyword_present">{{ t('admin.procurementContract.triggerPresent') }}</option>
</select>
<span v-if="isBuiltinRule" class="text-xs leading-5 text-amber-700">{{ t('admin.procurementContract.builtinRuleLogicHint') }}</span>
</label>
<label class="flex flex-col gap-1.5 text-sm">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colRisk') }}</span>
<select v-model="formRiskLevel" class="input-field w-full">
<option value="high">{{ t('admin.procurementContract.riskHigh') }}</option>
<option value="medium">{{ t('admin.procurementContract.riskMedium') }}</option>
<option value="low">{{ t('admin.procurementContract.riskLow') }}</option>
</select>
</label>
<label class="flex flex-col gap-1.5 text-sm">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colStatus') }}</span>
<select v-model="formStatus" class="input-field w-full">
<option value="enabled">{{ t('admin.procurementContract.enable') }}</option>
<option value="disabled">{{ t('admin.procurementContract.disable') }}</option>
</select>
</label>
<div class="flex flex-col gap-1.5 text-sm">
<div class="flex items-center gap-1.5">
<label for="risk-rule-sort-order" class="font-medium text-secondary">{{ t('admin.procurementContract.colSort') }}</label>
<span class="group relative inline-flex">
<button
type="button"
class="inline-flex text-muted transition-colors hover:text-brand-600 focus:outline-none focus-visible:text-brand-600"
:aria-label="t('admin.procurementContract.ruleSortHint')"
>
<CircleHelp class="h-4 w-4" />
</button>
<span class="pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 hidden w-60 -translate-x-1/2 rounded-lg border border-subtle bg-white px-3 py-2 text-xs font-normal leading-5 text-secondary shadow-lg group-hover:block group-focus-within:block">
{{ t('admin.procurementContract.ruleSortHint') }}
</span>
</span>
</div>
<input id="risk-rule-sort-order" v-model.number="formSortOrder" type="number" class="input-field w-full" min="0" />
</div>
<label class="flex flex-col gap-1.5 text-sm sm:col-span-2">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colRiskHint') }}</span>
<textarea v-model="formRiskHint" rows="2" class="input-field w-full resize-y" />
</label>
<label class="flex flex-col gap-1.5 text-sm sm:col-span-2">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colSuggestion') }}</span>
<textarea v-model="formSuggestion" rows="2" class="input-field w-full resize-y" />
</label>
<label class="flex flex-col gap-1.5 text-sm sm:col-span-2">
<span class="font-medium text-secondary">{{ t('admin.procurementContract.colNegotiation') }}</span>
<textarea v-model="formNegotiation" rows="2" class="input-field w-full resize-y" />
</label>
</div>
<div class="admin-modal-footer flex justify-end gap-2">
<button type="button" class="btn-ghost h-10 px-4" @click="closeForm">
{{ t('admin.cancel') }}
</button>
<button type="button" class="btn-primary h-10 px-4 disabled:opacity-70" :disabled="saving" @click="submitForm">
{{ saving ? t('admin.procurementContract.saving') : t('admin.procurementContract.saveChanges') }}
</button>
</div>
</div>
</div>
<DeleteConfirmDialog
v-model="showDeleteConfirm"
:message="t('admin.procurementContract.confirmDeleteRule', { title: pendingDelete?.title || '' })"
:confirm-loading="deleting"
@confirm="confirmDelete"
@cancel="closeDelete"
/>
</div>
</template>
@@ -0,0 +1,20 @@
/**
* features/admin/modules/procurement-contract/contract-ocr-match-tokens.ts
* 用途:采购合同比对区域的 V4 默认 OCR/正文匹配锚点与签章关键词(检测用 token,非 UI 文案)。
* 依赖:procurement-contract.api 的 ContractComparisonRegionConfig 类型。
* 逻辑:ProcurementContractPage「恢复 V4 默认配置」与新建区域配置时引用;勿当作 i18n 展示文案。
*
* NOTE: Strings below are OCR match tokens for Chinese contract PDFs. Keep them in Chinese
* regardless of UI locale so region recognition against Chinese source documents still works.
*/
import type { ContractComparisonRegionConfig } from '@/features/admin/api/procurement-contract.api';
/** V4 默认比对区域配置(锚点/关键词为中文 OCR 匹配 token)。 */
export const V4_REGION_CONFIG: ContractComparisonRegionConfig = {
metadata_fields: ['contract_no', 'buyer', 'seller', 'version'],
body_start_anchors: ['兹因甲方向乙方购买设备'],
body_end_anchors: ['本合同一式两份', '以下无正文', '本页以下无正文'],
signature_terms: ['甲方', '乙方', '盖章', '签署日期', '合同专用章'],
attachment_start_anchors: ['附件', '性能需求表', '技术协议', '设备配置清单'],
attachment_policy: 'page_count_only',
};
@@ -74,7 +74,6 @@ const {
getApplicationSortMark,
handleApplicationSearchChange,
openApplicationChatLogs,
openApplicationPermissionRequests,
isLoading,
currentTable,
tableData,
@@ -139,7 +138,6 @@ const applicationSortableKeys: ApplicationSortKey[] = [
'unique_users',
'last_active_at',
'authorized_users',
'pending_requests',
'avg_score',
];
@@ -531,7 +529,7 @@ onBeforeUnmount(() => {
</div>
</div>
<div v-if="applicationSummary" class="grid grid-cols-2 gap-3 md:grid-cols-4">
<div v-if="applicationSummary" class="grid grid-cols-1 gap-3 sm:grid-cols-3">
<button type="button" class="rounded-xl border border-default bg-surface p-4 text-left" @click="setApplicationUsageFilter('all')">
<div class="text-sm text-muted">{{ t('admin.report.appOps.summaryActive') }}</div>
<div class="mt-2 text-2xl font-bold text-primary">{{ applicationSummary.active_agents }}</div>
@@ -545,25 +543,20 @@ onBeforeUnmount(() => {
<div class="text-sm text-muted">{{ t('admin.report.appOps.summaryUnused') }}</div>
<div class="mt-2 text-2xl font-bold text-primary">{{ applicationSummary.unused_agents }}</div>
</button>
<div class="rounded-xl border border-default bg-surface p-4">
<div class="text-sm text-muted">{{ t('admin.report.appOps.summaryPending') }}</div>
<div class="mt-2 text-2xl font-bold text-primary">{{ applicationSummary.pending_permission_total }}</div>
</div>
</div>
<div class="admin-report-table-wrap">
<table class="admin-report-table admin-report-table--app-ops w-full table-fixed border-collapse">
<colgroup>
<col class="w-[14%]" />
<col class="w-[7%]" />
<col class="w-[7%]" />
<col class="w-[16%]" />
<col class="w-[7%]" />
<col class="w-[7%]" />
<col class="w-[8%]" />
<col class="w-[8%]" />
<col class="w-[8%]" />
<col class="w-[18%]" />
<col class="w-[8%]" />
<col class="w-[10%]" />
<col class="w-[10%]" />
<col class="w-[10%]" />
<col class="w-[12%]" />
</colgroup>
<thead>
<tr>
@@ -588,7 +581,7 @@ onBeforeUnmount(() => {
</thead>
<tbody>
<tr v-if="applicationItems.length === 0">
<td colspan="10" class="text-center text-muted py-12">
<td colspan="9" class="text-center text-muted py-12">
{{ t('admin.report.appOps.empty') }}
</td>
</tr>
@@ -600,7 +593,6 @@ onBeforeUnmount(() => {
{{ row.last_active_at ? formatLocalDateTime(row.last_active_at) : '-' }}
</td>
<td class="px-3 py-3 text-left align-middle font-mono tabular-nums">{{ row.authorized_users }}</td>
<td class="px-3 py-3 text-left align-middle font-mono tabular-nums">{{ row.pending_requests }}</td>
<td class="px-3 py-3 text-left align-middle font-mono tabular-nums whitespace-nowrap">
{{ row.avg_score == null ? '-' : row.avg_score }}
<span v-if="row.feedback_count" class="text-xs text-muted">({{ row.feedback_count }})</span>
@@ -612,14 +604,9 @@ onBeforeUnmount(() => {
</span>
</td>
<td class="px-3 py-3 text-left align-middle">
<div class="flex flex-wrap gap-1">
<button type="button" class="btn-secondary text-xs px-2 py-1" @click="openApplicationChatLogs(row)">
{{ t('admin.report.appOps.actionLogs') }}
</button>
<button type="button" class="btn-secondary text-xs px-2 py-1" @click="openApplicationPermissionRequests(row)">
{{ t('admin.report.appOps.actionRequests') }}
</button>
</div>
<button type="button" class="btn-secondary text-xs px-2 py-1" @click="openApplicationChatLogs(row)">
{{ t('admin.report.appOps.actionLogs') }}
</button>
</td>
</tr>
</tbody>
@@ -207,18 +207,6 @@ export function useReportsAdmin() {
});
};
/**
* 下钻到权限申请列表,按 agent_id 精确过滤。
* @param row - 应用运营行
*/
const openApplicationPermissionRequests = (row: ApplicationReportItem): void => {
void router.push({
name: 'AdminReports',
params: { table: 'permission_requests' },
query: { agent_id: String(row.agent_id) },
});
};
/**
* 导出应用运营报表 Excel(仅运营字段)。
*/
@@ -237,7 +225,6 @@ export function useReportsAdmin() {
? formatLocalDateTime(row.last_active_at)
: '-',
[t('admin.report.appOps.columns.authorized_users')]: row.authorized_users,
[t('admin.report.appOps.columns.pending_requests')]: row.pending_requests,
[t('admin.report.appOps.columns.avg_score')]: row.avg_score ?? '-',
[t('admin.report.appOps.columns.feedback_count')]: row.feedback_count,
[t('admin.report.appOps.columns.tokens_used')]: row.tokens_used,
@@ -405,7 +392,7 @@ const dataSourceTable = computed<Exclude<AdminReportTableId, 'usage_analysis'>>(
});
/**
* 从路由 query 灌入列筛选(用于应用运营下钻到聊天日志 / 权限申请)。
* 从路由 query 灌入列筛选(用于应用运营下钻到聊天日志)。
*/
const applyRouteQueryFilters = (): void => {
const next: Record<string, string> = {};
@@ -1218,7 +1205,6 @@ watch([reportPageSize, sortedTableData], () => {
getApplicationSortMark,
handleApplicationSearchChange,
openApplicationChatLogs,
openApplicationPermissionRequests,
isLoading,
currentTable,
tableData,
@@ -1,6 +1,6 @@
/**
* features/admin/stores/admin-nav.store.ts
* 管理后台导航 UI 状态(侧栏折叠、货代/报表/企微子菜单展开、角标)。
* 管理后台导航 UI 状态(侧栏折叠、报表/企微子菜单展开、角标)。
*
* 角标数据来自 GET /api/admin/dashboard/badges,在 store 内做 TTL 缓存与 in-flight 去重,
* 避免切换 admin 子路由时重复请求(AdminLayout 挂载一次即可)。
@@ -11,11 +11,6 @@ import { ref } from 'vue';
import { getAdminDashboardBadges } from '@/features/admin/api/admin.api';
import type { AdminModuleId } from '../types/admin.types';
export type ShippingManagementGroupKey =
| 'admin.nav.shippingOrderRecognition'
| 'admin.nav.shippingInventoryManagement'
| 'admin.nav.shippingRunAudit';
/** 角标缓存有效期(毫秒):此时间内 ensureBadges 直接复用内存中的计数 */
const BADGE_CACHE_TTL_MS = 60_000;
@@ -25,10 +20,6 @@ export const useAdminNavStore = defineStore('adminNav', () => {
const reportsExpanded = ref(false);
/** 企业微信子菜单:默认折叠 */
const wecomExpanded = ref(false);
/** 货代管理二级菜单:默认折叠,进入货代页面时自动展开。 */
const shippingManagementExpanded = ref(false);
/** 货代手风琴当前展开分组;单值约束保证同一时间最多展开一组。 */
const shippingManagementGroup = ref<ShippingManagementGroupKey | null>(null);
/** 「用户审批」导航角标:pending 注册用户数 */
const pendingApprovalsCount = ref(0);
/** 「权限申请」导航角标:pending 权限申请数 */
@@ -43,11 +34,6 @@ export const useAdminNavStore = defineStore('adminNav', () => {
sidebarCollapsed.value = !sidebarCollapsed.value;
};
/** 展开指定货代分组;再次点击当前分组时收起全部功能项。 */
const toggleShippingManagementGroup = (groupKey: ShippingManagementGroupKey): void => {
shippingManagementGroup.value = shippingManagementGroup.value === groupKey ? null : groupKey;
};
const setBadgeCounts = (approvals: number, requests: number): void => {
pendingApprovalsCount.value = approvals;
pendingRequestsCount.value = requests;
@@ -102,12 +88,9 @@ export const useAdminNavStore = defineStore('adminNav', () => {
sidebarCollapsed,
reportsExpanded,
wecomExpanded,
shippingManagementExpanded,
shippingManagementGroup,
pendingApprovalsCount,
pendingRequestsCount,
toggleSidebar,
toggleShippingManagementGroup,
setBadgeCounts,
badgeForModule,
ensureBadges,
@@ -14,31 +14,13 @@ export type AdminModuleId =
| 'announcements'
| 'questions'
| 'wecom'
| 'linked_services'
| 'permissions'
| 'requests'
| 'platform_apps'
| 'shipping_inventory'
| 'procurement_contract'
| 'reports';
/** 货代管理领域下可由侧栏展示和高亮的稳定业务页面。 */
export type ShippingConfigSubModuleId =
| 'field_assets'
| 'order_schema'
| 'order_document_profiles'
| 'identity_rules'
| 'order_extraction_runs'
| 'shipping_audit'
| 'process_gates'
| 'legacy_stp_jobs'
| 'inventory_fields'
| 'connections'
| 'inventory_sites'
| 'warehouse_mappings'
| 'routing_rules'
| 'shipping_templates'
| 'inventory_snapshots'
| 'export_records';
export type AdminReportTableId =
| 'usage_analysis'
| 'users'
@@ -0,0 +1,44 @@
/**
* features/admin/types/linked-service.types.ts
* 关联服务管理表单与行数据类型。
*/
export interface AdminLinkedServiceRow {
id: number;
name: string;
url: string;
is_enabled: boolean;
sort_order: number;
created_at?: string | null;
updated_at?: string | null;
}
export interface LinkedServiceFormState {
id: number | null;
name: string;
url: string;
is_enabled: boolean;
sort_order: number;
}
/** 创建空的关联服务表单。 */
export function createEmptyLinkedServiceForm(): LinkedServiceFormState {
return {
id: null,
name: '',
url: '',
is_enabled: true,
sort_order: 0,
};
}
/** 将列表行回填为编辑表单。 */
export function linkedServiceRowToForm(row: AdminLinkedServiceRow): LinkedServiceFormState {
return {
id: row.id,
name: row.name,
url: row.url,
is_enabled: Boolean(row.is_enabled),
sort_order: Number(row.sort_order || 0),
};
}
@@ -45,7 +45,6 @@ export type ApplicationSortKey =
| 'unique_users'
| 'last_active_at'
| 'authorized_users'
| 'pending_requests'
| 'avg_score'
| 'tokens_used';
@@ -58,7 +57,8 @@ export interface ApplicationReportItem {
unique_users: number;
last_active_at: string | null;
authorized_users: number;
pending_requests: number;
/** 后端仍返回;应用运营页已不再展示待审列 */
pending_requests?: number;
avg_score: number | null;
feedback_count: number;
tokens_used: number;
@@ -70,7 +70,8 @@ export interface ApplicationReportSummary {
active_agents: number;
used_agents: number;
unused_agents: number;
pending_permission_total: number;
/** 后端仍返回;应用运营页已不再展示待审摘要卡 */
pending_permission_total?: number;
}
export interface ApplicationReport {
@@ -1,9 +1,7 @@
/**
* features/admin/views/AdminLayout.vue
* 管理后台壳层:顶栏 + 左侧导航 + 子路由出口。
* 依赖:AdminNav、vue-router、admin-nav.store。
* 逻辑:AdminNav 统一承担模块和二级目录导航;lg 起侧栏与内容并排,
* 小于 lg(含 768px)上下堆叠,避免运维诊断页主区被侧栏挤窄。
* 管理后台壳层:顶栏 + AdminNav + 子路由出口。
* 角标仅在 Layout 首次挂载时 ensureBadges(store 内 60s TTL 缓存)。
*/
<script setup lang="ts">
import { onMounted } from 'vue';
@@ -28,7 +26,7 @@ onMounted(() => {
<div class="page-shell min-h-screen font-sans flex flex-col">
<header class="app-header px-6">
<div class="flex items-center gap-4">
<button type="button" class="btn-icon-ds lg:block hidden" @click="navStore.toggleSidebar()">
<button type="button" class="btn-icon-ds md:block hidden" @click="navStore.toggleSidebar()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18"/></svg>
</button>
<button type="button" class="btn-icon-ds" @click="router.push('/workspace')">
@@ -44,10 +42,9 @@ onMounted(() => {
<AppHeaderTools />
</header>
<!-- lg 起才并排侧栏;768px 平板保持上下堆叠,避免诊断等运维页主内容被挤窄 -->
<main class="flex-1 w-full mx-auto px-4 md:px-8 py-6 md:py-8 flex flex-col lg:flex-row gap-6 lg:gap-8 items-start">
<main class="flex-1 w-full mx-auto px-4 md:px-8 py-6 md:py-8 flex flex-col md:flex-row gap-8 items-start">
<AdminNav />
<section class="flex-1 min-w-0 w-full space-y-8">
<section class="flex-1 min-w-0 space-y-8 w-full">
<router-view />
</section>
</main>
@@ -0,0 +1,76 @@
/**
* features/auth/api/auth.api.ts
* 用途:封装登录、Casdoor/企微回调、注册和密码重置等认证域 HTTP 请求。
* 依赖:shared/api/client。
* 逻辑:auth views 与 composables 只调用本模块;后端暂保留 /api/user 路径以兼容既有接口。
*/
import { requestJson } from '@/shared/api/client';
export interface PasswordLoginInput {
username: string;
password: string;
}
/** 使用当前认证模式的登录端点完成用户名密码认证。 */
export const loginWithPassword = (api: string, input: PasswordLoginInput) =>
requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input),
});
/** 将 Casdoor 授权码兑换为 HXOPS 登录会话。 */
export const loginWithCasdoorCode = (api: string, code: string, state: string | null) =>
requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code, state }),
});
/** 读取 Casdoor 授权地址及后端签发的 state。 */
export const getCasdoorAuthorizeUrl = (api: string, query: URLSearchParams) =>
requestJson<{ url?: string; state?: string }>(`${api}?${query.toString()}`);
/** 将企微授权码兑换为 HXOPS 登录会话。 */
export const loginWithWecomCode = (api: string, code: string, state: string | null) =>
requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code, state }),
});
/** 读取企微授权地址及后端签发的 state。 */
export const getWecomAuthorizeUrl = (api: string, redirectUri: string) =>
requestJson<{ url?: string; state?: string }>(`${api}?redirect_uri=${encodeURIComponent(redirectUri)}`);
/** 完成企微首次登录所需的本地用户匹配。 */
export const completeWecomBind = (api: string, input: { binding_token: string; field: string; value: string }) =>
requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input),
});
/** 从登录页发起企业微信密码重置通知。 */
export const requestPasswordResetByWecom = (employeeId: string, username: string) =>
requestJson('/api/user/reset-password-by-wecom', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ employee_id: employeeId, username }),
});
/** 使用重置链接中的 token 设置新密码。 */
export const confirmPasswordReset = (token: string, newPassword: string) =>
requestJson('/api/user/reset-password-confirm', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ token, new_password: newPassword }),
});
/** 注册 HXOPS 用户;后端负责后续 Casdoor 用户同步。 */
export const registerUser = (form: Record<string, unknown>) =>
requestJson('/api/user/register', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(form),
});
@@ -1,6 +1,8 @@
/**
* features/auth/composables/useLogin.ts
* 登录页编排层:组合认证、公告展示与 OAuth 回调,provide 给 LoginView 子组件。
* 依赖:auth.store、linked-nav.store、useLoginAuth、useLoginLanding。
* 逻辑:登录成功后预取关联服务侧栏入口,减少进入 Chat/工作台后的入口闪现。
*/
import { onMounted, reactive } from 'vue';
import { useRouter, useRoute } from 'vue-router';
@@ -12,6 +14,8 @@ import { useAuthStore } from '@/features/auth/stores/auth.store';
import loginBg from '@/assets/login-bg.png';
import { DEFAULT_POST_LOGIN_AGENT_ID } from '@/features/workspace/types/workspace.types';
import { useWorkspaceLocale } from '@/features/workspace/composables/useWorkspaceLocale';
import { continuationLocation, readSsoContinuation } from '@/features/sso';
import { useLinkedNavStore } from '@/features/sso/stores/linked-nav.store';
import { useLoginAuth } from './useLoginAuth';
import { useLoginLanding } from './useLoginLanding';
@@ -21,6 +25,7 @@ export function useLogin() {
const router = useRouter();
const route = useRoute();
const authStore = useAuthStore();
const linkedNav = useLinkedNavStore();
const { setThemePreference, appliedTheme } = useTheme();
const deps = { t, locale, msg, router, route, setThemePreference, appliedTheme };
@@ -28,11 +33,23 @@ export function useLogin() {
const completePasswordLogin = async () => {
authStore.syncFromStorage();
void linkedNav.ensureLoaded({ force: true });
const continuation = readSsoContinuation();
if (continuation) {
await router.replace(continuationLocation(continuation));
return;
}
await router.replace(`/chat/${DEFAULT_POST_LOGIN_AGENT_ID}`);
};
const completeOAuthLogin = async () => {
authStore.syncFromStorage();
void linkedNav.ensureLoaded({ force: true });
const continuation = readSsoContinuation();
if (continuation) {
await router.replace(continuationLocation(continuation));
return;
}
await router.replace('/workspace/applications');
};
@@ -58,7 +75,8 @@ export function useLogin() {
authStore.syncFromStorage();
if (authStore.isLoggedIn) {
await router.replace('/workspace/applications');
const continuation = readSsoContinuation();
await router.replace(continuation ? continuationLocation(continuation) : '/workspace/applications');
return;
}
@@ -2,7 +2,7 @@
* features/auth/composables/useLoginAuth.ts
*
* 用途:封装登录表单、记住我偏好、企微/Casdoor OAuth 回调、注册与找回密码逻辑。
* 依赖:shared/utils/auth、requestJson、WeCom/Casdoor 工具函数。
* 依赖:shared/utils/auth、auth.api、WeCom/Casdoor 工具函数。
* 逻辑:密码登录成功后根据“记住我”同步本地登录态与 remembered username/password;
* OAuth 登录仅负责认证,不自动写入 remember 偏好,避免用户未明确选择时持久化登录页账号。
*/
@@ -22,7 +22,17 @@ import {
saveRememberedLoginPreference,
saveRememberedLoginProfile,
} from '@/shared/utils/auth';
import { BusinessError, requestJson } from '@/shared/api/client';
import { BusinessError } from '@/shared/api/client';
import {
completeWecomBind,
getCasdoorAuthorizeUrl,
getWecomAuthorizeUrl,
loginWithCasdoorCode,
loginWithPassword,
loginWithWecomCode,
registerUser,
requestPasswordResetByWecom,
} from '../api/auth.api';
import { DEFAULT_POST_LOGIN_AGENT_ID } from '@/features/workspace/types/workspace.types';
import type { WecomBindPromptState, WecomLoginDialogContent } from '@/features/workspace/types/workspace.types';
import type { LoginDeps } from './login.deps';
@@ -127,11 +137,7 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
return;
}
try {
await requestJson('/api/user/reset-password-by-wecom', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ employee_id: employeeId, username }),
});
await requestPasswordResetByWecom(employeeId, username);
msg.success(t('login.passwordResetWecomSent'));
showForgotPasswordModal.value = false;
forgotPasswordForm.value = { employee_id: '', username: '' };
@@ -173,13 +179,9 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
const loginApi = isCasdoorMode
? (config.auth?.casdoor?.passwordLoginApi || '/api/user/casdoor/password-login')
: '/api/user/login';
const user = await requestJson<Record<string, unknown>>(loginApi, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
username: loginUsername.value.trim(),
password: loginPassword.value,
}),
const user = await loginWithPassword(loginApi, {
username: loginUsername.value.trim(),
password: loginPassword.value,
});
persistLoginUser(user);
@@ -221,11 +223,7 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
}
try {
const api = config.auth.casdoor.loginApi || '/api/user/casdoor/login';
const data = await requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code, state }),
});
const data = await loginWithCasdoorCode(api, code, state);
persistLoginUser(data);
sessionStorage.removeItem('hxops_casdoor_state');
await completeOAuthLogin();
@@ -267,7 +265,7 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
const qs = new URLSearchParams({ redirect_uri: redirectUri, default_provider: 'wecom' });
const hint = (config.auth.casdoor as { wecomProviderHint?: string }).wecomProviderHint?.trim();
if (hint) qs.set('provider_hint', hint);
const data = await requestJson<{ url?: string; state?: string }>(`${api}?${qs.toString()}`);
const data = await getCasdoorAuthorizeUrl(api, qs);
if (!data?.url) {
msg.error(t('login.wecomStartFailed'));
return;
@@ -280,9 +278,7 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
const callbackPath = wecomCfg.callbackPath || '/login';
const redirectUri = `${window.location.origin}${callbackPath}`;
const api = wecomCfg.authorizeApi || '/api/user/wecom/authorize-url';
const data = await requestJson<{ url?: string; state?: string }>(
`${api}?redirect_uri=${encodeURIComponent(redirectUri)}`,
);
const data = await getWecomAuthorizeUrl(api, redirectUri);
if (!data?.url) {
msg.error(t('login.wecomStartFailed'));
return;
@@ -336,14 +332,10 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
wecomBindPrompt.value.error = '';
try {
const api = config.auth.wecom.completeBindApi || '/api/user/wecom/complete-bind';
const data = await requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
binding_token: wecomBindPrompt.value.binding_token,
field: wecomBindPrompt.value.field,
value: wecomBindPrompt.value.value.trim(),
}),
const data = await completeWecomBind(api, {
binding_token: wecomBindPrompt.value.binding_token,
field: wecomBindPrompt.value.field,
value: wecomBindPrompt.value.value.trim(),
});
wecomLoginDialog.value = null;
persistLoginUser(data);
@@ -389,11 +381,7 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
isWecomLoggingIn.value = true;
try {
const api = config.auth.wecom.loginApi || '/api/user/wecom/login';
const data = await requestJson<Record<string, unknown>>(api, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code, state }),
});
const data = await loginWithWecomCode(api, code, state);
wecomLoginDialog.value = null;
persistLoginUser(data);
sessionStorage.removeItem('hxops_wecom_state');
@@ -434,11 +422,7 @@ export function useLoginAuth(deps: LoginDeps, options: LoginAuthOptions) {
return;
}
try {
await requestJson('/api/user/register', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(form),
});
await registerUser(form);
msg.success(t('register.success'));
showRegisterModal.value = false;
registerForm.value = {
+2 -13
View File
@@ -1,18 +1,7 @@
/**
* features/auth/index.ts
* 认证 feature 对外导出:store、登录 composable、用户 API。
* 认证 feature 对外导出:store、登录 composable 与认证 API。
*/
export { useAuthStore, bindAuthStoreSync } from './stores/auth.store';
export { useLogin } from './composables/useLogin';
export {
getUserProfile,
getLeaveBalance,
submitLeaveWorkflow,
resetPasswordByWecom,
resetPasswordConfirm,
getUserAgent,
listUserAgents,
listAgentGuides,
type LeaveBalanceResult,
type LeaveWorkflowSubmitResult,
} from './api/user.api';
export * from './api/auth.api';
@@ -2,7 +2,7 @@
/**
* features/auth/views/ResetPasswordView.vue
* 企微 textcard / 邮件链接重置密码页(/reset-password?token=...)。
* 依赖:user.api resetPasswordConfirm、vue-i18n、MinimalShell。
* 依赖:auth.api confirmPasswordReset、vue-i18n、MinimalShell。
* 逻辑:校验 token 与两次密码一致后调 confirm 接口,成功后跳转 /login。
*/
import { onMounted, ref } from 'vue';
@@ -10,7 +10,7 @@ import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { Lock, AlertCircle, CheckCircle } from 'lucide-vue-next';
import MinimalShell from '@/shared/layouts/MinimalShell.vue';
import { resetPasswordConfirm } from '@/features/auth/api/user.api';
import { confirmPasswordReset } from '@/features/auth/api/auth.api';
import { BusinessError } from '@/shared/api/client';
import { resolveCasdoorErrorMessage } from '@/shared/utils/casdoor';
@@ -65,7 +65,7 @@ onMounted(() => {
/**
* 提交新密码并重置 token。
* 核心逻辑:前端校验 → resetPasswordConfirm → 成功 3 秒后跳转登录页。
* 核心逻辑:前端校验 → confirmPasswordReset → 成功 3 秒后跳转登录页。
*/
const handleReset = async () => {
if (!token.value) {
@@ -91,7 +91,7 @@ const handleReset = async () => {
message.value = '';
try {
await resetPasswordConfirm(token.value, password.value);
await confirmPasswordReset(token.value, password.value);
status.value = 'success';
message.value = t('resetPassword.successRedirect');
setTimeout(() => {
@@ -0,0 +1,751 @@
/**
* features/chat/components/messages/ContractReviewResultCard.vue
* 用途:在聊天会话中渲染采购合同审查结果卡(改动项、独立风险项 + 下载报告)。
* 依赖:vue-i18n、procurement-contract.api、chat.types。
* 逻辑:queued/running 展示审核步骤;成功后按来源拆分合同改动与独立风险;比对模式不展示 OCR 待确认主列表。
*/
<script setup lang="ts">
import { computed, onUnmounted, ref, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { Check, Loader2 } from 'lucide-vue-next';
import {
downloadChatAnnotatedContract,
downloadChatContractReviewReport,
getChatContractReview,
type ContractClauseItem,
type ContractReviewRow,
} from '@/features/admin/api/procurement-contract.api';
import { useMessage } from '@/shared/composables/useMessage';
import type { ChatMessage } from '../../types/chat.types';
const props = defineProps<{ message: ChatMessage }>();
const { t } = useI18n();
const msg = useMessage();
const downloading = ref(false);
const downloadingAnnotated = ref(false);
const latestReview = ref<ContractReviewRow | null>(null);
let refreshTimer: ReturnType<typeof window.setTimeout> | undefined;
let refreshing = false;
let disposed = false;
const review = computed<ContractReviewRow | null>(() => {
if (latestReview.value) return latestReview.value;
const raw = props.message.payload;
return raw && typeof raw === 'object' ? raw as ContractReviewRow : null;
});
const clauses = computed<ContractClauseItem[]>(() =>
Array.isArray(review.value?.clauses_json) ? review.value.clauses_json : [],
);
const isCompareMode = computed(() => review.value?.review_mode === 'compare');
const confirmedChangeTypes = new Set(['insert', 'delete', 'modify']);
const independentRiskTypes = new Set(['missing', 'rule_scan', 'policy_scan', 'llm_scan']);
const changeClauses = computed(() => clauses.value.filter((clause) =>
confirmedChangeTypes.has(clause.change_type || ''),
));
const independentRiskClauses = computed(() => clauses.value.filter((clause) =>
independentRiskTypes.has(clause.change_type || '')
&& clause.risk_level !== 'ok'
&& clause.validation_status !== 'needs_review',
));
/** 比对模式不展示待确认主列表;单份模式仅保留策略 OCR 待确认。 */
const confirmationClauses = computed(() => {
if (isCompareMode.value) return [];
return clauses.value.filter((clause) =>
clause.change_type === 'ocr_uncertain' || clause.validation_status === 'needs_review',
);
});
const clauseSections = computed(() => {
const sections = [
{ key: 'changes', title: t('chat.procurementContract.sectionChanges'), clauses: changeClauses.value },
{ key: 'risks', title: t('chat.procurementContract.sectionIndependentRisks'), clauses: independentRiskClauses.value },
];
if (!isCompareMode.value) {
sections.push({
key: 'confirmations',
title: t('chat.procurementContract.sectionConfirmations'),
clauses: confirmationClauses.value,
});
}
return sections.filter((section) => section.clauses.length > 0);
});
const changeCount = computed(() => review.value?.total_change_count ?? changeClauses.value.length);
const comparisonQuality = computed<Record<string, unknown>>(() => {
const raw = review.value?.summary_json?.comparison_quality;
return raw && typeof raw === 'object' ? raw as Record<string, unknown> : {};
});
const comparisonScope = computed<Record<string, unknown>>(() => {
const raw = review.value?.summary_json?.comparison_scope;
return raw && typeof raw === 'object' ? raw as Record<string, unknown> : {};
});
const attachmentComparison = computed<Record<string, unknown>>(() => {
const raw = review.value?.summary_json?.attachment_comparison;
return raw && typeof raw === 'object' ? raw as Record<string, unknown> : {};
});
const attachmentNotice = computed(() => {
const status = String(attachmentComparison.value.status || '');
const added = Number(attachmentComparison.value.added_pages || 0);
const removed = Number(attachmentComparison.value.removed_pages || 0);
if (status === 'added' && added > 0) return t('chat.procurementContract.attachmentAdded', { count: added });
if (status === 'removed' && removed > 0) return t('chat.procurementContract.attachmentRemoved', { count: removed });
return '';
});
const confirmationTotal = computed(() => {
if (isCompareMode.value) return 0;
const raw = comparisonQuality.value.needs_confirmation;
return typeof raw === 'number' ? raw : confirmationClauses.value.length;
});
const confirmationHiddenCount = computed(() => Math.max(0, confirmationTotal.value - confirmationClauses.value.length));
const isProcessing = computed(() => ['queued', 'running'].includes(review.value?.status || ''));
interface ReviewProgressStep {
stage: string;
label: string;
milestone: number;
state: 'completed' | 'active' | 'pending';
}
const REVIEW_PROGRESS_STAGE_ORDER = [
'queued',
'extracting',
'structuring',
'deterministic_review',
'llm_reviewing',
'validating',
'success',
];
/**
* 构建完整审核步骤轨道,并根据后端 processing_stage 标记已完成、当前和未开始阶段。
* 核心逻辑:阶段顺序由前后端稳定协议确定;比对与单份审核仅替换确定性审核步骤文案。
* @returns 含阶段文案、里程碑进度和展示状态的七步轨道
*/
const reviewProgressSteps = computed<ReviewProgressStep[]>(() => {
const currentStage = review.value?.processing_stage || 'queued';
const currentIndex = Math.max(0, REVIEW_PROGRESS_STAGE_ORDER.indexOf(currentStage));
const labels = [
t('chat.procurementContract.stepQueued'),
t('chat.procurementContract.stepExtracting'),
t('chat.procurementContract.stepStructuring'),
t(review.value?.review_mode === 'solo'
? 'chat.procurementContract.stepRiskScanning'
: 'chat.procurementContract.stepComparing'),
t('chat.procurementContract.stepAiReviewing'),
t('chat.procurementContract.stepValidating'),
t('chat.procurementContract.stepCompleted'),
];
const milestones = [0, 10, 30, 45, 60, 88, 100];
return REVIEW_PROGRESS_STAGE_ORDER.map((stage, index) => ({
stage,
label: labels[index] || stage,
milestone: milestones[index] ?? 0,
state: index < currentIndex ? 'completed' : index === currentIndex ? 'active' : 'pending',
}));
});
const cardStatusTitle = computed(() => {
if (isProcessing.value) return t('chat.procurementContract.reviewRunning');
if (review.value?.status === 'failed') return t('chat.procurementContract.reviewFailed');
return t('chat.procurementContract.completed');
});
const reportDownloadLabel = computed(() => t(
isCompareMode.value
? 'chat.procurementContract.downloadDifferenceReport'
: 'chat.procurementContract.downloadReport',
));
/**
* Refresh a persisted in-progress card after the user reloads or reopens a chat.
* The initial send flow also polls, but this local polling prevents an old card from freezing
* when the page was closed before its worker job reached a terminal state.
*/
function scheduleReviewRefresh(): void {
if (disposed) return;
if (refreshTimer !== undefined) {
window.clearTimeout(refreshTimer);
refreshTimer = undefined;
}
const reviewNo = review.value?.review_no;
if (!reviewNo || !isProcessing.value) return;
refreshTimer = window.setTimeout(async () => {
if (refreshing) return;
refreshing = true;
try {
latestReview.value = await getChatContractReview(reviewNo);
} catch (error) {
// A temporary network error must not turn a still-running review into a failed result.
console.warn('Failed to refresh procurement contract review', error);
} finally {
refreshing = false;
if (!disposed) scheduleReviewRefresh();
}
}, 2000);
}
watch(
() => [review.value?.review_no, isProcessing.value] as const,
() => scheduleReviewRefresh(),
{ immediate: true },
);
onUnmounted(() => {
disposed = true;
if (refreshTimer !== undefined) window.clearTimeout(refreshTimer);
});
/**
* 页头右侧风险徽标文案:有高风险时强调数量,否则提示无高风险。
* @returns 已本地化徽标文案
*/
const headerRiskBadge = computed(() => {
const high = review.value?.high_risk_count ?? 0;
if (high > 0) {
return t('chat.procurementContract.containsHighRisk', { count: high });
}
return t('chat.procurementContract.noHighRisk');
});
/**
* 比对基准来源徽标;历史库内模板显示模板库,新流程显示本次上传。
* @returns 本地化来源文案,无则 null
*/
const templateSourceLabel = computed(() => {
const source = review.value?.template_source;
if (source === 'library') return t('chat.procurementContract.sourceLibrary');
if (source === 'user_upload') return t('chat.procurementContract.sourceUpload');
return null;
});
/**
* 返回表格风险列的短标签(高 / 中 / 低),对齐原型单字徽标。
* @param level - 风险等级
* @param isComparisonChange - 是否为合同对比中的已识别差异;无风险时避免误称“通过”
*/
function riskShortLabel(level?: string | null, isComparisonChange = false): string {
if (level === 'high') return t('chat.procurementContract.riskShortHigh');
if (level === 'medium') return t('chat.procurementContract.riskShortMedium');
if (level === 'low') return t('chat.procurementContract.riskShortLow');
if (level === 'ok' && isComparisonChange) return t('chat.procurementContract.riskNoFinding');
if (level === 'ok') return t('chat.procurementContract.riskOk');
return level || '-';
}
/**
* 风险徽标样式(高/中/低/通过)。
* @param level - 风险等级
*/
function riskBadgeClass(level?: string | null): string {
if (level === 'high') return 'border-[#fecdca] bg-[#fef3f2] text-[#b42318]';
if (level === 'medium') return 'border-[#fedf89] bg-[#fffaeb] text-[#b54708]';
if (level === 'low') return 'border-[#b2ddff] bg-[#eff8ff] text-[#175cd3]';
if (level === 'ok') return 'border-[#abe6c5] bg-[#ecfdf3] text-[#067647]';
return 'border-[#d8e0ec] bg-white text-[#667792]';
}
/**
* 变更类型本地化文案。
* @param type - 变更类型
*/
function changeTypeLabel(type?: string | null): string {
if (type === 'insert') return t('chat.procurementContract.changeInsert');
if (type === 'delete') return t('chat.procurementContract.changeDelete');
if (type === 'modify') return t('chat.procurementContract.changeModify');
if (type === 'pass') return t('chat.procurementContract.changePass');
if (type === 'missing') return t('chat.procurementContract.changeMissing');
if (type === 'rule_scan') return t('chat.procurementContract.changeRuleScan');
if (type === 'policy_scan') return t('chat.procurementContract.changePolicyScan');
if (type === 'llm_scan') return t('chat.procurementContract.changeLlmScan');
if (type === 'ocr_uncertain') return t('chat.procurementContract.changeOcrUncertain');
return type || '-';
}
/**
* 条款列展示:优先可读标题(规则名 /「变更段 #N」),不用 Diff 序号。
* @param clause - 条款项
*/
function clauseLabel(clause: ContractClauseItem): string {
const title = (clause.title || '').trim();
if (title) return title;
return clause.clause_no || '-';
}
/** 展示审核证据在原 PDF 中的页码;未定位时返回空串。 */
function anchorPageLabel(clause: ContractClauseItem): string {
const pageNo = clause.evidence_anchor?.page_no;
return pageNo ? t('chat.procurementContract.anchorPage', { page: pageNo }) : '';
}
/**
* 清洗 PDF 缺字占位与私用区字符,避免豆腐字进入对照列。
* @param value - 抽取文本
*/
function cleanExtractedText(value?: string | null): string {
return (value || '')
.replace(/[\u25a0-\u25ff\ufffd\ue000-\uf8ff]+/g, ' ')
.replace(/\s+/g, ' ')
.trim();
}
/**
* 判断抽取片段是否足够可读(与后端 _is_readable_extracted_text 同口径)。
* @param value - 待展示对照文本
*/
function isReadableComparisonText(value?: string | null): boolean {
const raw = value || '';
if (!raw.trim() || raw.startsWith('[binary:')) return false;
const compactRaw = raw.replace(/\s+/g, '');
if (!compactRaw) return false;
const tofu = (compactRaw.match(/[\u25a0-\u25ff\ufffd\ue000-\uf8ff]/g) || []).length;
if (tofu / compactRaw.length >= 0.1) return false;
const cleaned = cleanExtractedText(raw).replace(/\s+/g, '');
if (cleaned.length < 4) return false;
const useful = (cleaned.match(/[\u4e00-\u9fffA-Za-z0-9]/g) || []).length;
return useful / cleaned.length >= 0.5;
}
/**
* 截取条款摘要,优先匹配标题相关商务关键词句,控制单元格宽度。
* @param value - 原文
* @param title - 条款标题(用于关键词打分)
*/
function clauseExcerpt(value: string | null | undefined, title?: string): string {
if (!isReadableComparisonText(value)) return '';
const cleaned = cleanExtractedText(value);
if (!cleaned) return '';
const sentences = cleaned.split(/(?<=[。!?;;])\s*|\s+(?=第[一二三四五六七八九十百\d]+[条章节、..])/).filter(Boolean);
const businessKeywords = ['付款', '支付', '验收', '发票', '交付', '质保', '保修', '违约', '赔偿', '管辖', '仲裁', '保密', '知识产权'];
const keywords = businessKeywords.filter((keyword) => (title || '').includes(keyword));
const matched = sentences
.map((sentence) => ({ sentence, score: keywords.filter((keyword) => sentence.includes(keyword)).length }))
.sort((a, b) => b.score - a.score)
.find((item) => item.score > 0)?.sentence;
const excerpt = matched || sentences.find((sentence) => sentence.length >= 8) || cleaned;
return excerpt.length > 180 ? `${excerpt.slice(0, 180)}...` : excerpt;
}
/**
* 组装变更对照:可读时展示模板/合同抽取片段;否则提示编码不兼容。
* 说明:对照列是抽取后的删改摘录,不是 PDF 像素级原文。
* @param clause - 条款项
*/
function clauseComparison(clause: ContractClauseItem): {
before: string;
after: string;
unreadable: boolean;
note: string;
missingBefore: boolean;
missingAfter: boolean;
unavailableReturnedSchedule: boolean;
} {
const before = clauseExcerpt(clause.old_text, clause.title);
const after = clauseExcerpt(clause.new_text, clause.title);
if (before || after) {
return { before, after, unreadable: false, note: '', missingBefore: false, missingAfter: false, unavailableReturnedSchedule: false };
}
const hasBinaryPlaceholder = [clause.old_text, clause.new_text]
.some((value) => (value || '').trim().startsWith('[binary:'));
const unreadable = clause.comparison_readable === false && hasBinaryPlaceholder;
const evidence = cleanExtractedText(clause.evidence || clause.evidence_anchor?.matched_text || '');
const fallback = cleanExtractedText(clause.detail || clause.risk_hint || '');
if (unreadable) {
return { before: '', after: '', unreadable: true, note: fallback, missingBefore: false, missingAfter: false, unavailableReturnedSchedule: false };
}
const isSchedule = /清单|设备|型号|规格|数量|单价|总价|配置/.test(`${clause.title || ''}${fallback}`);
return {
before: '', after: evidence, unreadable: false, note: evidence ? '' : fallback,
// 单边清单的正文未提取时仍明确两侧事实,避免泛化说明被误读为具体对照内容。
missingBefore: !evidence && isSchedule && clause.change_type === 'insert',
missingAfter: !evidence && isSchedule && clause.change_type === 'delete',
unavailableReturnedSchedule: !evidence && isSchedule && clause.change_type === 'insert',
};
}
/** 风险项的建议独立展示,避免误标成“对方合同原文”。 */
function clauseSuggestion(clause: ContractClauseItem): string {
return cleanExtractedText(clause.llm_suggestion || clause.suggestion || clause.negotiation_text || '');
}
type DiffPiece = { text: string; changed: boolean };
/**
* Build a compact character-level diff for one template/contract excerpt.
*
* The backend stores only the two excerpts. Computing the visual marks here keeps old review
* records readable too: removed template text is red and added counterparty text is green.
*/
function buildInlineDiff(before: string, after: string): { before: DiffPiece[]; after: DiffPiece[] } {
if (!before || !after) {
return {
before: before ? [{ text: before, changed: true }] : [],
after: after ? [{ text: after, changed: true }] : [],
};
}
let prefixLength = 0;
const maxPrefix = Math.min(before.length, after.length);
while (prefixLength < maxPrefix && before[prefixLength] === after[prefixLength]) prefixLength += 1;
let suffixLength = 0;
const beforeRemaining = before.length - prefixLength;
const afterRemaining = after.length - prefixLength;
while (
suffixLength < beforeRemaining
&& suffixLength < afterRemaining
&& before[before.length - 1 - suffixLength] === after[after.length - 1 - suffixLength]
) suffixLength += 1;
const beforeChangedEnd = before.length - suffixLength;
const afterChangedEnd = after.length - suffixLength;
const prefix = before.slice(0, prefixLength);
const suffix = suffixLength ? before.slice(beforeChangedEnd) : '';
const beforePieces: DiffPiece[] = [];
const afterPieces: DiffPiece[] = [];
if (prefix) {
beforePieces.push({ text: prefix, changed: false });
afterPieces.push({ text: prefix, changed: false });
}
if (before.slice(prefixLength, beforeChangedEnd)) {
beforePieces.push({ text: before.slice(prefixLength, beforeChangedEnd), changed: true });
}
if (after.slice(prefixLength, afterChangedEnd)) {
afterPieces.push({ text: after.slice(prefixLength, afterChangedEnd), changed: true });
}
if (suffix) {
beforePieces.push({ text: suffix, changed: false });
afterPieces.push({ text: suffix, changed: false });
}
return { before: beforePieces, after: afterPieces };
}
/**
* 下载当前会话用户的审查报告(Word .docx)。
*/
async function onDownloadReport(): Promise<void> {
const reviewNo = review.value?.review_no;
if (!reviewNo || downloading.value) return;
downloading.value = true;
try {
await downloadChatContractReviewReport(reviewNo, 'docx');
msg.success(t('chat.procurementContract.downloadOk'));
} catch (error: unknown) {
msg.warning(error instanceof Error ? error.message : t('chat.procurementContract.downloadFailed'));
} finally {
downloading.value = false;
}
}
/** 下载当前合同的 PDF 风险高亮副本。 */
async function onDownloadAnnotated(): Promise<void> {
const reviewNo = review.value?.review_no;
if (!reviewNo || downloadingAnnotated.value) return;
downloadingAnnotated.value = true;
try {
await downloadChatAnnotatedContract(reviewNo);
msg.success(t('chat.procurementContract.downloadAnnotatedOk'));
} catch (error: unknown) {
msg.warning(error instanceof Error ? error.message : t('chat.procurementContract.downloadAnnotatedFailed'));
} finally {
downloadingAnnotated.value = false;
}
}
</script>
<template>
<article
v-if="review"
class="w-full max-w-[860px] overflow-hidden rounded-2xl border border-[#d8e0ec] bg-white shadow-[0_14px_36px_rgba(23,32,51,0.08)]"
>
<!-- 页头:审查编号 + 合同/模板元信息 + 高风险徽标 -->
<div class="flex flex-wrap items-start justify-between gap-3 border-b border-[#d8e0ec] bg-[#fbfcfe] px-4 py-3.5 md:px-4">
<div class="min-w-0">
<h3 class="m-0 text-[15px] font-bold leading-snug text-[#172033]">
{{ cardStatusTitle }} · {{ review.review_no }}
</h3>
<div class="mt-1 space-y-0.5 text-xs leading-5 text-[#667792]">
<p class="m-0">
{{ t('chat.procurementContract.counterpartyContract') }}:{{ review.contract_file_name }}
</p>
<p v-if="review.contract_no" class="m-0">
{{ t('chat.procurementContract.contractNo') }}:{{ review.contract_no }}
</p>
<p v-if="review.supplier_name" class="m-0">
{{ t('chat.procurementContract.supplier') }}:{{ review.supplier_name }}
</p>
<p v-if="review.template_name" class="m-0 flex flex-wrap items-center gap-1.5">
<span>{{ t(review.review_mode === 'compare'
? 'chat.procurementContract.comparisonBaseline'
: 'chat.procurementContract.template') }}:{{ review.template_name }}</span>
<span
v-if="templateSourceLabel"
class="inline-flex items-center rounded-full border border-[#9ec5ea] bg-[#eaf4ff] px-2.5 py-0.5 text-[11px] font-semibold text-[#2f80d1]"
>
{{ templateSourceLabel }}
</span>
</p>
</div>
</div>
<span
v-if="!isProcessing"
class="inline-flex shrink-0 items-center rounded-full border px-2.5 py-1 text-xs font-semibold"
:class="review.high_risk_count > 0
? 'border-[#fecdca] bg-[#fef3f2] text-[#b42318]'
: 'border-[#abe6c5] bg-[#ecfdf3] text-[#067647]'"
>
{{ headerRiskBadge }}
</span>
</div>
<div v-if="review.error_message" class="mx-4 mt-4 rounded-xl border border-[#fecdca] bg-[#fef3f2] px-3 py-2 text-sm text-[#b42318]">
{{ review.error_message }}
</div>
<div v-if="isProcessing" class="px-4 py-5">
<div class="overflow-x-auto pb-1">
<ol class="grid min-w-[700px] grid-cols-7">
<li
v-for="(step, index) in reviewProgressSteps"
:key="step.stage"
class="relative flex min-w-0 flex-col items-center px-1 text-center"
>
<div
v-if="index > 0"
class="absolute right-1/2 top-3 h-0.5 w-full"
:class="step.state === 'pending' ? 'bg-[#d8e0ec]' : 'bg-[#2f80d1]'"
/>
<div
class="relative z-10 flex h-6 w-6 items-center justify-center rounded-full border-2 bg-white text-[10px] font-bold transition-colors duration-300"
:class="step.state === 'completed'
? 'border-[#2f80d1] bg-[#2f80d1] text-white'
: step.state === 'active'
? 'border-[#2f80d1] text-[#2f80d1] shadow-[0_0_0_4px_rgba(47,128,209,0.13)]'
: 'border-[#cfd8e5] text-[#98a5b7]'"
>
<Check v-if="step.state === 'completed'" class="h-3.5 w-3.5" />
<Loader2 v-else-if="step.state === 'active'" class="h-3.5 w-3.5 animate-spin" />
<span v-else>{{ index + 1 }}</span>
</div>
<span
class="mt-2 block text-[11px] leading-4"
:class="step.state === 'active'
? 'font-bold text-[#1f5f99]'
: step.state === 'completed'
? 'font-medium text-[#31445f]'
: 'text-[#98a5b7]'"
>
{{ step.label }}
</span>
<span
class="mt-0.5 text-[10px] tabular-nums"
:class="step.state === 'pending' ? 'text-[#b0bac8]' : 'text-[#667792]'"
>
{{ step.milestone }}%
</span>
</li>
</ol>
</div>
</div>
<div v-else class="px-4 py-3.5">
<!-- 风险统计看板 -->
<div class="mb-3.5 grid grid-cols-2 gap-2.5 md:grid-cols-4">
<div class="rounded-xl border border-[#d8e0ec] bg-[#fafbfd] px-3 py-2.5">
<div class="text-xs text-[#667792]">{{ t('chat.procurementContract.changesCount') }}</div>
<div class="mt-0.5 text-xl font-bold text-[#2f80d1]">{{ changeCount }}</div>
</div>
<div class="rounded-xl border border-[#d8e0ec] bg-[#fafbfd] px-3 py-2.5">
<div class="text-xs text-[#667792]">{{ t('chat.procurementContract.riskHigh') }}</div>
<div class="mt-0.5 text-xl font-bold text-[#b42318]">{{ review.high_risk_count }}</div>
</div>
<div class="rounded-xl border border-[#d8e0ec] bg-[#fafbfd] px-3 py-2.5">
<div class="text-xs text-[#667792]">{{ t('chat.procurementContract.riskMedium') }}</div>
<div class="mt-0.5 text-xl font-bold text-[#b54708]">{{ review.medium_risk_count }}</div>
</div>
<div class="rounded-xl border border-[#d8e0ec] bg-[#fafbfd] px-3 py-2.5">
<div class="text-xs text-[#667792]">{{ t('chat.procurementContract.riskLow') }}</div>
<div class="mt-0.5 text-xl font-bold text-[#175cd3]">{{ review.low_risk_count }}</div>
</div>
</div>
<!-- 按业务语义互斥拆分:模板改动、独立风险;比对模式不展示 OCR 待确认主列表。 -->
<div
v-if="isCompareMode && comparisonScope.status === 'fallback'"
class="mb-3 rounded-xl border border-[#fedf89] bg-[#fffaeb] px-3 py-2 text-sm text-[#b54708]"
>
{{ t('chat.procurementContract.regionFallback') }}
</div>
<div
v-if="attachmentNotice"
class="mb-3 rounded-xl border border-[#9ec5ea] bg-[#eaf4ff] px-3 py-2 text-sm font-medium text-[#1f5f99]"
>
{{ attachmentNotice }} · {{ t('chat.procurementContract.attachmentContentIgnored') }}
</div>
<div v-if="clauses.length" class="space-y-4">
<section v-for="section in clauseSections" :key="section.key" class="overflow-x-auto">
<h4 class="mb-2 text-sm font-semibold text-[#31445f]">{{ section.title }}</h4>
<table class="w-full min-w-[720px] table-fixed border-collapse text-[13px]">
<colgroup>
<col class="w-[24%]" />
<col class="w-[12%]" />
<col class="w-[44%]" />
<col class="w-[20%]" />
</colgroup>
<thead>
<tr class="bg-[#f8fafc] text-left text-xs font-semibold text-[#667792]">
<th class="border-b border-[#d8e0ec] px-2 py-2.5">{{ t('chat.procurementContract.colClause') }}</th>
<th class="border-b border-[#d8e0ec] px-2 py-2.5">{{ t('chat.procurementContract.colChange') }}</th>
<th class="border-b border-[#d8e0ec] px-2 py-2.5">
{{ section.key === 'changes'
? t('chat.procurementContract.colComparison')
: t('chat.procurementContract.colEvidence') }}
</th>
<th class="border-b border-[#d8e0ec] px-2 py-2.5">
{{ section.key === 'changes'
? t('chat.procurementContract.colRisk')
: t('chat.procurementContract.colSuggestion') }}
</th>
</tr>
</thead>
<tbody>
<tr
v-for="(clause, index) in section.clauses"
:key="`${section.key}-${clause.clause_no || clause.title || index}-${index}`"
class="align-top"
>
<td class="break-words border-b border-[#d8e0ec] px-2 py-2.5 font-medium leading-5 text-[#172033]">
{{ clauseLabel(clause) }}
<span
v-if="section.key === 'risks'"
class="ml-1 inline-flex items-center rounded-full border px-2 py-0.5 text-[10px] font-semibold"
:class="riskBadgeClass(clause.risk_level)"
>
{{ riskShortLabel(clause.risk_level) }}
</span>
<span
v-if="anchorPageLabel(clause)"
class="mt-1 block text-[11px] font-normal text-[#2f80d1]"
>
{{ anchorPageLabel(clause) }}
</span>
<span
v-if="clause.validation_status === 'needs_review'"
class="ml-1 inline-flex rounded border border-[#fedf89] bg-[#fffaeb] px-1.5 py-0.5 text-[10px] font-semibold text-[#b54708]"
>{{ t('chat.procurementContract.needsReview') }}</span>
</td>
<td class="border-b border-[#d8e0ec] px-2 py-2.5 text-[#667792]">
{{ changeTypeLabel(clause.change_type) }}
</td>
<td class="border-b border-[#d8e0ec] px-2 py-2.5">
<div
v-for="cmp in [clauseComparison(clause)]"
:key="`${clause.clause_no || clause.title || index}-cmp`"
class="grid gap-1 break-words"
>
<span
v-if="cmp.before || cmp.missingBefore"
class="grid gap-1 rounded border border-[#fecdca] bg-[#fef3f2] px-2 py-1.5 text-xs leading-5 text-[#667792]"
>
<span class="font-semibold text-[#b42318]">{{ t('chat.procurementContract.colTemplateText') }}</span>
<span>
<template v-if="cmp.missingBefore">{{ t('chat.procurementContract.missingOriginalSchedule') }}</template>
<template v-for="(piece, pieceIndex) in buildInlineDiff(cmp.before, cmp.after).before" v-else :key="`before-${pieceIndex}`">
<mark v-if="piece.changed" class="rounded bg-[#fecdca] px-0.5 text-[#b42318] line-through">{{ piece.text }}</mark>
<template v-else>{{ piece.text }}</template>
</template>
</span>
</span>
<span
v-if="cmp.after || cmp.missingAfter || cmp.unavailableReturnedSchedule"
class="grid gap-1 rounded border border-[#abe6c5] bg-[#ecfdf3] px-2 py-1.5 text-xs leading-5 text-[#172033]"
>
<span class="font-semibold text-[#067647]">
{{ section.key === 'changes'
? t('chat.procurementContract.colContractText')
: t('chat.procurementContract.colEvidence') }}
</span>
<span>
<template v-if="cmp.unavailableReturnedSchedule">{{ t('chat.procurementContract.unavailableReturnedSchedule') }}</template>
<template v-else-if="cmp.missingAfter">{{ t('chat.procurementContract.missingReturnedSchedule') }}</template>
<template v-for="(piece, pieceIndex) in buildInlineDiff(cmp.before, cmp.after).after" v-else :key="`after-${pieceIndex}`">
<mark v-if="piece.changed" class="rounded bg-[#abe6c5] px-0.5 text-[#067647]">{{ piece.text }}</mark>
<template v-else>{{ piece.text }}</template>
</template>
</span>
</span>
<span
v-if="!cmp.before && !cmp.after && cmp.unreadable"
class="text-xs leading-5 text-[#b54708]"
>{{ t('chat.procurementContract.unreadableComparison') }}</span>
<span
v-else-if="!cmp.before && !cmp.after && !cmp.note"
class="text-xs text-[#667792]"
>{{ t('chat.procurementContract.noComparisonText') }}</span>
<span
v-if="cmp.note"
class="text-xs leading-5 text-[#31445f]"
>{{ cmp.note }}</span>
</div>
</td>
<td class="border-b border-[#d8e0ec] px-2 py-2.5">
<span
v-if="section.key === 'changes'"
class="inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold"
:class="riskBadgeClass(clause.risk_level)"
>
{{ riskShortLabel(clause.risk_level, true) }}
</span>
<span v-else class="text-xs leading-5 text-[#31445f]">
{{ clauseSuggestion(clause) || clause.detail || '-' }}
</span>
</td>
</tr>
</tbody>
</table>
<p
v-if="section.key === 'confirmations' && confirmationHiddenCount > 0"
class="mt-2 text-xs text-[#667792]"
>
{{ t('chat.procurementContract.confirmationsHidden', { count: confirmationHiddenCount }) }}
</p>
</section>
<p
v-if="confirmationTotal > 0 && confirmationClauses.length === 0"
class="rounded-xl border border-[#fedf89] bg-[#fffaeb] px-3 py-2 text-sm text-[#b54708]"
>
{{ t('chat.procurementContract.confirmationsSummary', { count: confirmationTotal }) }}
</p>
</div>
<p
v-else-if="review.status === 'success' && confirmationTotal > 0"
class="rounded-xl border border-[#fedf89] bg-[#fffaeb] px-3 py-2 text-sm text-[#b54708]"
>
{{ t('chat.procurementContract.confirmationsSummary', { count: confirmationTotal }) }}
</p>
<p v-else-if="review.status === 'success'" class="text-sm text-[#667792]">
{{ t('chat.procurementContract.noClauses') }}
</p>
</div>
<!-- 底部操作:PDF 审核固定提供标注副本下载,扫描件由后端按 OCR 页码添加批注意见。 -->
<div v-if="!isProcessing" class="flex flex-wrap gap-2 px-4 pb-3.5">
<button
type="button"
class="inline-flex h-9 items-center rounded-[10px] bg-[#2f80d1] px-3.5 text-sm font-semibold text-white transition-colors hover:bg-[#276fb8] disabled:cursor-not-allowed disabled:opacity-50"
:disabled="downloading || review.status === 'failed'"
@click="onDownloadReport"
>
{{ downloading ? t('chat.procurementContract.downloading') : reportDownloadLabel }}
</button>
<button
v-if="review.status === 'success' && review.contract_file_name?.toLowerCase().endsWith('.pdf')"
type="button"
class="inline-flex h-9 items-center rounded-[10px] border border-[#9ec5ea] bg-[#eaf4ff] px-3.5 text-sm font-semibold text-[#2f80d1] transition-colors hover:bg-[#dceeff] disabled:cursor-not-allowed disabled:opacity-50"
:disabled="downloadingAnnotated"
@click="onDownloadAnnotated"
>
{{ downloadingAnnotated
? t('chat.procurementContract.downloading')
: t('chat.procurementContract.downloadAnnotated') }}
</button>
</div>
</article>
</template>
@@ -0,0 +1,264 @@
/**
* features/chat/composables/useProcurementContractChat.ts
* 用途:采购合同审查 Agent 的会话态(模式、双文件输入、异步发起与进度轮询)。
* 依赖:procurement-contract.api、file-assets.api、agent-registry.utils。
* 逻辑:模板比对要求我方原合同与卖方回传合同;单份审核仅要求待审合同,结果卡可在刷新后回放。
*/
import { computed, ref, watch, type ComputedRef, type Ref } from 'vue';
import {
getChatContractReview,
startChatContractReview,
type ContractReviewRow,
} from '@/features/admin/api/procurement-contract.api';
import { uploadFileAsset } from '@/shared/api/file-assets.api';
import {
isProcurementContractAgent as resolveProcurementContractAgent,
type AgentRegistryFields,
} from '@/shared/utils/agent-registry.utils';
import type { ChatMessage } from '../types/chat.types';
import type { PendingAttachment } from '../types/shipping.types';
export type ContractReviewMode = 'compare' | 'solo';
const REVIEW_POLL_INTERVAL_MS = 2000;
const REVIEW_POLL_TIMEOUT_MS = 10 * 60 * 1000;
export interface ProcurementContractChatOptions {
currentAgent: Ref<AgentRegistryFields | null>;
currentAgentId: ComputedRef<number>;
attachments: Ref<PendingAttachment[]>;
messages: Ref<ChatMessage[]>;
isThinking: Ref<boolean>;
isUploadingAttachments: Ref<boolean>;
input: Ref<string>;
clearAttachments: () => void;
saveLocalMessageToBackend: (msg: ChatMessage, userQuery?: string) => Promise<void>;
loadHistory: () => Promise<void>;
msg: { warning: (text: string) => void; success: (text: string) => void; info: (text: string) => void };
t: (key: string, params?: Record<string, unknown>) => string;
}
/**
* 从审查 API 结果构建结果卡 payload(去掉过大的冗余后仍保留 Diff/红线数据)。
*/
function buildReviewResultPayload(review: ContractReviewRow): ContractReviewRow {
return {
id: review.id,
review_no: review.review_no,
review_mode: review.review_mode,
status: review.status,
contract_file_name: review.contract_file_name,
supplier_name: review.supplier_name,
contract_no: review.contract_no,
contract_type: review.contract_type,
template_id: review.template_id,
template_source: review.template_source,
template_name: review.template_name,
total_change_count: review.total_change_count,
high_risk_count: review.high_risk_count,
medium_risk_count: review.medium_risk_count,
low_risk_count: review.low_risk_count,
user_id: review.user_id,
user_name: review.user_name,
error_message: review.error_message,
started_at: review.started_at,
finished_at: review.finished_at,
created_at: review.created_at,
progress: review.progress,
processing_stage: review.processing_stage,
processing_message: review.processing_message,
summary_json: review.summary_json,
clauses_json: review.clauses_json,
report_text: review.report_text,
};
}
/**
* 轮询单次合同审核直到成功、失败或达到前端等待上限。
* 核心逻辑:后端任务继续独立运行;前端超时只停止本页等待,不取消后台审核。
* @param reviewNo - 后端返回的合同审查编号
* @param onProgress - 每轮查询后更新当前消息卡
*/
async function pollContractReview(
reviewNo: string,
onProgress: (review: ContractReviewRow) => void,
): Promise<ContractReviewRow> {
const startedAt = Date.now();
while (Date.now() - startedAt < REVIEW_POLL_TIMEOUT_MS) {
const review = await getChatContractReview(reviewNo);
onProgress(review);
if (review.status === 'success' || review.status === 'failed') return review;
await new Promise((resolve) => window.setTimeout(resolve, REVIEW_POLL_INTERVAL_MS));
}
throw new Error('contract review polling timed out');
}
/**
* 采购合同审查 Chat 编排。
*/
export function useProcurementContractChat(options: ProcurementContractChatOptions) {
const isProcurementContractAgent = computed(() =>
resolveProcurementContractAgent(options.currentAgent.value),
);
const reviewMode = ref<ContractReviewMode>('compare');
const originalContractAssetNo = ref<string | null>(null);
const originalContractName = ref<string | null>(null);
const allowsSendWithAttachmentsOnly = computed(
() => isProcurementContractAgent.value && (
options.attachments.value.some((a) => a.kind === 'local')
|| (reviewMode.value === 'compare' && Boolean(originalContractAssetNo.value))
),
);
watch(
isProcurementContractAgent,
(active) => {
if (!active) {
reviewMode.value = 'compare';
originalContractAssetNo.value = null;
originalContractName.value = null;
}
},
{ immediate: true },
);
/**
* 上传合同比对所需的我方原合同,仅作为本次审核基准,不进入模板库。
*/
async function handleOriginalContractSelected(event: Event): Promise<void> {
const input = event.target as HTMLInputElement;
const file = input.files?.[0];
input.value = '';
if (!file) return;
options.isUploadingAttachments.value = true;
try {
const asset = await uploadFileAsset(file);
originalContractAssetNo.value = asset.asset_no;
originalContractName.value = asset.original_filename || file.name;
} catch (e: unknown) {
options.msg.warning(e instanceof Error ? e.message : options.t('chat.procurementContract.uploadFailed'));
} finally {
options.isUploadingAttachments.value = false;
}
}
/**
* 清除已上传的我方原合同基准。
*/
function clearOriginalContract(): void {
originalContractAssetNo.value = null;
originalContractName.value = null;
}
/**
* 拦截带本地附件的发送:上传 FileAsset → 创建异步审查 → 轮询进度 → 写入最终结果卡。
* @returns true 表示已消费本次发送
*/
async function tryHandleProcurementContractSend(
textOrEvent: string | Event | undefined,
_content: string,
trimmed: string,
): Promise<boolean> {
if (!isProcurementContractAgent.value) return false;
const locals = options.attachments.value.filter(
(a): a is Extract<PendingAttachment, { kind: 'local' }> => a.kind === 'local',
);
if (!locals.length) {
if (reviewMode.value === 'compare' && originalContractAssetNo.value) {
options.msg.warning(options.t('chat.procurementContract.compareFilesRequired'));
return true;
}
return false;
}
if (options.isThinking.value || options.isUploadingAttachments.value) return true;
if (locals.length > 1) {
options.msg.warning(options.t('chat.procurementContract.oneContractOnly'));
return true;
}
if (reviewMode.value === 'compare' && !originalContractAssetNo.value) {
options.msg.warning(options.t('chat.procurementContract.compareFilesRequired'));
return true;
}
const contractFile = locals[0]!.file;
options.isUploadingAttachments.value = true;
options.isThinking.value = true;
try {
// [STEP 1] 上传待审合同
const contractAsset = await uploadFileAsset(contractFile);
// [STEP 2] 比对模式固定以用户上传的我方原合同作为基准,不再读取默认模板。
const queuedReview = await startChatContractReview({
review_mode: reviewMode.value,
contract_asset_no: contractAsset.asset_no,
original_contract_asset_no:
reviewMode.value === 'compare' ? originalContractAssetNo.value : null,
contract_type: 'general_procurement',
agent_id: options.currentAgentId.value || null,
});
// [STEP 3] 立即显示用户消息和排队进度卡
const userText =
trimmed
|| options.t('chat.procurementContract.defaultUserQuery', {
file: contractFile.name,
mode:
reviewMode.value === 'solo'
? options.t('chat.procurementContract.modeSolo')
: options.t('chat.procurementContract.modeCompare'),
});
const userMsg: ChatMessage = { role: 'user', content: userText, type: 'text' };
options.messages.value.push(userMsg);
const assistantMsg: ChatMessage = {
role: 'assistant',
type: 'procurement-contract-review',
content: options.t('chat.procurementContract.reviewQueued'),
payload: buildReviewResultPayload(queuedReview),
};
options.messages.value.push(assistantMsg);
if (typeof textOrEvent !== 'string') options.input.value = '';
options.clearAttachments();
clearOriginalContract();
options.isUploadingAttachments.value = false;
options.isThinking.value = false;
// [STEP 4] 后台完成后原地替换进度卡,再持久化正式结果。
const review = await pollContractReview(queuedReview.review_no, (latest) => {
assistantMsg.payload = buildReviewResultPayload(latest);
assistantMsg.content = latest.processing_message || options.t('chat.procurementContract.reviewRunning');
});
if (review.status === 'failed') {
throw new Error(review.error_message || options.t('chat.procurementContract.reviewFailed'));
}
assistantMsg.payload = buildReviewResultPayload(review);
assistantMsg.content =
review.summary_json && typeof review.summary_json.headline === 'string'
? String(review.summary_json.headline)
: options.t('chat.procurementContract.resultTitle');
await options.saveLocalMessageToBackend(assistantMsg, userText);
await options.loadHistory();
} catch (e: unknown) {
options.msg.warning(
e instanceof Error ? e.message : options.t('chat.procurementContract.reviewFailed'),
);
} finally {
options.isUploadingAttachments.value = false;
options.isThinking.value = false;
}
return true;
}
return {
isProcurementContractAgent,
reviewMode,
originalContractAssetNo,
originalContractName,
allowsSendWithAttachmentsOnly,
handleOriginalContractSelected,
clearOriginalContract,
tryHandleProcurementContractSend,
};
}
@@ -0,0 +1,39 @@
/**
* features/chat/leave/leave.api.ts
* 用途:封装聊天请假流程的余额查询与 OA 工作流提交请求。
* 依赖:shared/utils/auth、shared/api/client。
* 逻辑:聊天请假表单调用本模块;后端暂保留 /api/user/leave-* 路径以兼容既有接口。
*/
import { requestJson } from '@/shared/api/client';
import { getAuthHeaders } from '@/shared/utils/auth';
import type { LeaveRequestFormData } from '../types/leave.types';
const auth = () => ({ headers: getAuthHeaders() });
const jsonAuth = () => ({ headers: { 'Content-Type': 'application/json', ...getAuthHeaders() } });
export interface LeaveBalanceResult {
has_balance: boolean;
leave_type_label: string;
year: number;
total_hours: number | null;
used_hours: number | null;
remaining_hours: number | null;
}
/** 查询当前用户指定假别的可用余额。 */
export const getLeaveBalance = (leaveType: string) =>
requestJson<LeaveBalanceResult>(`/api/user/leave-balance?leave_type=${encodeURIComponent(leaveType)}`, auth());
export interface LeaveWorkflowSubmitResult {
request_id?: string;
submitted_at?: string;
request_name?: string;
}
/** 将聊天内确认后的请假表单提交至 OA 工作流。 */
export const submitLeaveWorkflow = (form: LeaveRequestFormData) =>
requestJson<LeaveWorkflowSubmitResult>('/api/user/leave-workflow/submit', {
method: 'POST',
...jsonAuth(),
body: JSON.stringify(form),
});
@@ -26,6 +26,13 @@ export const DEFAULT_TRAINING_HR_CHAT_QUESTIONS = [
'我想查看本月培训成绩统计',
];
/** 返回指定培训角色的默认问题,供管理表单初始化使用。 */
export const getDefaultTrainingChatQuestions = (role: TrainingChatQuestionRole): string[] => (
role === 'hr'
? cloneQuestions(DEFAULT_TRAINING_HR_CHAT_QUESTIONS)
: cloneQuestions(DEFAULT_TRAINING_EMPLOYEE_CHAT_QUESTIONS)
);
const asRecord = (value: unknown): Record<string, unknown> => (
value && typeof value === 'object' && !Array.isArray(value)
? value as Record<string, unknown>
@@ -49,11 +56,7 @@ const normalizeTrainingChatQuestionList = (value: unknown): string[] => {
.filter(Boolean);
};
const getDefaultQuestions = (role: TrainingChatQuestionRole) => (
role === 'hr'
? cloneQuestions(DEFAULT_TRAINING_HR_CHAT_QUESTIONS)
: cloneQuestions(DEFAULT_TRAINING_EMPLOYEE_CHAT_QUESTIONS)
);
const getDefaultQuestions = getDefaultTrainingChatQuestions;
/**
* 读取培训配置中的角色化聊天常见问题。
@@ -216,7 +216,7 @@ export interface ChatMessage {
content: string;
/** 用户提交时固化的附件展示快照;助手消息不使用此字段。 */
attachments?: ChatMessageAttachment[];
type?: 'text' | 'leave-form' | 'leave-confirmation' | 'leave-result' | 'shipping-inventory-mapping' | 'shipping-parse-review' | 'shipping-match-result' | 'maintenance-device-result';
type?: 'text' | 'leave-form' | 'leave-confirmation' | 'leave-result' | 'shipping-inventory-mapping' | 'shipping-parse-review' | 'shipping-match-result' | 'maintenance-device-result' | 'procurement-contract-review';
retriever_resources?: RetrieverResource[];
attribution_parts?: string[];
chat_log_id?: number;
@@ -0,0 +1,28 @@
/**
* 用途:验证 Mermaid 兼容规范化,防止中文分组标题再次导致流程图解析失败。
* 依赖:vitest、mermaidChart。
* 逻辑:覆盖无 ID 中文 subgraph 的标准化以及原本标准语法的不变性。
*/
import { describe, expect, it } from 'vitest';
import { buildMermaidFlowFallbackHtml, normalizeMermaidChart } from './mermaidChart';
describe('normalizeMermaidChart', () => {
it('为中文 subgraph 标题补齐可解析的 ASCII ID', () => {
// 断言:Dify 常见的中文分组写法被转为 Mermaid 标准分组声明。
expect(normalizeMermaidChart('graph TD\nsubgraph 项目启动阶段\nA[接单]\nend'))
.toContain('subgraph group_1["项目启动阶段"]');
});
it('保留已有 ID 的标准 subgraph', () => {
// 断言:已规范的 Mermaid 不被重复改写。
expect(normalizeMermaidChart('subgraph phase_start["项目启动阶段"]'))
.toBe('subgraph phase_start["项目启动阶段"]');
});
it('将无法解析的主流程降级为可视化卡片', () => {
// 断言:即使 Mermaid 语法异常,用户仍能看到节点和顺序,而不是红色源码。
const html = buildMermaidFlowFallbackHtml('A[接单] --> B[项目立项]\nB --> C[项目启动阶段]');
expect(html).toContain('接单');
expect(html).toContain('项目启动阶段');
});
});
@@ -0,0 +1,71 @@
/**
* 用途:规范化智能体输出的 Mermaid 图表文本,兼容中文分组标题等常见非标准写法。
* 依赖:由 ChatMessageBubble 在调用 mermaid.render 前使用。
* 逻辑:保留合法语句不变;仅为没有 ID 的 subgraph 补充稳定 ASCII ID 与带引号标题,
* 避免 Mermaid 把中文标题解析为图语法 token 而导致整张流程图无法显示。
*/
/**
* 用途:将常见的中文 Mermaid 分组语法转换为 Mermaid 可稳定解析的标准形式。
* AI 触发时机:智能体返回 `subgraph 项目启动阶段` 等没有 ASCII 节点 ID 的分组标题时调用。
* 核心逻辑:逐行识别 subgraph;已经包含 ID、方括号或引号的标准写法不变;其余标题生成唯一 ID。
* 参数与输出约束:输入必须为 Mermaid 文本;输出只调整 subgraph 声明,不修改节点、连线及 end 语句。
*/
export function normalizeMermaidChart(source: string): string {
let subgraphIndex = 0;
return String(source || '')
.replace(/^\s*graph\s+/im, (matched) => matched.replace(/graph/i, 'flowchart'))
.split('\n')
.map((line) => {
const match = line.match(/^(\s*)subgraph\s+(.+?)\s*$/i);
if (!match) return line;
const indent = match[1] || '';
const rawTitle = (match[2] || '').trim();
if (!rawTitle || /[\[\]"']/.test(rawTitle) || /^[A-Za-z_][A-Za-z0-9_-]*\s/.test(rawTitle)) return line;
subgraphIndex += 1;
return `${indent}subgraph group_${subgraphIndex}["${rawTitle.replace(/"/g, '\\"')}"]`;
})
.join('\n')
// Mermaid 对含括号、标点或中文的节点标签需要显式引号;Dify 常会遗漏它。
.replace(/([A-Za-z][A-Za-z0-9_-]*)\[([^\]"\n]+)\]/g, (_matched, nodeId: string, label: string) => (
`${nodeId}["${label.trim().replace(/"/g, '\\"')}"]`
));
}
/**
* 用途:在 Mermaid 仍无法解析时,将简单流程图转换为可读的流程卡片。
* AI 触发时机:图表库抛出语法异常且原文中存在 `A[节点] --> B[节点]` 这类链路时调用。
* 核心逻辑:提取节点顺序和标签,输出已转义的 HTML 卡片;忽略不影响主流程的 subgraph 细节。
* 参数与输出约束:只用于展示兜底,不执行任何模型输出中的 HTML 或脚本。
*/
export function buildMermaidFlowFallbackHtml(source: string): string | null {
const labels = new Map<string, string>();
const order: string[] = [];
const text = String(source || '');
const nodePattern = /([A-Za-z][A-Za-z0-9_-]*)\s*\[\s*"?([^\]\n"]+)"?\s*\]/g;
const edgePattern = /([A-Za-z][A-Za-z0-9_-]*)(?:\s*\[[^\]\n]*\])?\s*--+>\s*([A-Za-z][A-Za-z0-9_-]*)(?:\s*\[[^\]\n]*\])?/g;
const escapeHtml = (value: string) => String(value)
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
for (const match of text.matchAll(nodePattern)) {
const nodeId = match[1];
const label = match[2];
if (nodeId && label) labels.set(nodeId, label.trim());
}
for (const match of text.matchAll(edgePattern)) {
const fromId = match[1];
const toId = match[2];
if (!fromId || !toId) continue;
if (!order.includes(fromId)) order.push(fromId);
if (!order.includes(toId)) order.push(toId);
}
if (order.length < 2) return null;
const cards = order.map((id, index) => {
const card = `<div class="chat-flow-fallback-card">${escapeHtml(labels.get(id) || id)}</div>`;
return index < order.length - 1 ? `${card}<div class="chat-flow-fallback-arrow" aria-hidden="true">↓</div>` : card;
});
return `<div class="chat-flow-fallback" role="img" aria-label="流程图">${cards.join('')}</div>`;
}
+32 -27
View File
@@ -1,10 +1,17 @@
/**
* features/kb/api/kb.api.ts
* 知识库 HTTP API。
* 用途:知识库 HTTP API 封装。
* 依赖:auth、requestJson/BusinessError、vue-i18n(错误 fallback 文案)。
* 逻辑:KbWorkspace / composables 调用;失败时优先保留 BusinessError.message,否则回退本地化 fallback。
*/
import i18n from '@/i18n';
import { getAuthHeaders } from '@/shared/utils/auth';
import { BusinessError, requestJson } from '@/shared/api/client';
const kbT = (key: string) => String(i18n.global.t(key));
const kbErrorMessage = (e: unknown, fallbackKey: string) =>
(e as Error).message || kbT(fallbackKey);
export interface KbGroup {
id: number;
name: string;
@@ -137,8 +144,6 @@ export interface KbListResponse<T> {
const auth = () => ({ headers: getAuthHeaders() });
const jsonAuth = () => ({ headers: { 'Content-Type': 'application/json', ...getAuthHeaders() } });
const kbErrorMessage = (e: unknown, fallback: string) => (e as Error).message || fallback;
const getJson = async <T>(path: string, fallback: T): Promise<T> => {
try {
return await requestJson<T>(path, auth());
@@ -156,7 +161,7 @@ const getJsonWithStatus = async <T>(path: string, fallback: T): Promise<KbListRe
return {
ok: false,
data: fallback,
error: kbErrorMessage(e, '知识库接口请求失败'),
error: kbErrorMessage(e, 'kbWorkspace.errors.apiRequestFailed'),
status: err.status,
};
}
@@ -190,7 +195,7 @@ export const createKbGroup = async (payload: {
});
return { ok: true, group };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '创建知识库分组失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.createGroupFailed') };
}
};
@@ -217,7 +222,7 @@ export const updateKbDifySettings = async (
});
return { ok: true, settings };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '保存 Dify 设置失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.saveDifySettingsFailed') };
}
};
@@ -235,7 +240,7 @@ export const runKbJob = async (
});
return { ok: true, job, run_result: job.run_result };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '执行任务失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.executeJobFailed') };
}
};
@@ -251,7 +256,7 @@ export const createKbDocument = async (
});
return { ok: true, document };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '创建文档失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.createDocumentFailed') };
}
};
@@ -267,7 +272,7 @@ export const updateKbDocument = async (
});
return { ok: true, document };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '更新文档失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.updateDocumentFailed') };
}
};
@@ -278,7 +283,7 @@ export const deleteKbDocument = async (
await requestJson(`/api/kb/documents/${documentId}`, { method: 'DELETE', ...auth() });
return { ok: true };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '删除文档失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.deleteDocumentFailed') };
}
};
@@ -296,7 +301,7 @@ export const getKbDocumentVersionSourceFile = async (
headers: getAuthHeaders(),
});
if (!res.ok) {
let message = '读取原始文件失败';
let message = kbT('kbWorkspace.msg.readSourceFailed');
try {
const data = await res.json();
if (typeof data?.error === 'string' && data.error.trim()) message = data.error;
@@ -316,7 +321,7 @@ export const getKbDocumentVersionSourceFile = async (
contentType: res.headers.get('content-type') || undefined,
};
} catch {
return { ok: false, error: '知识库接口暂未就绪,请稍后再试' };
return { ok: false, error: kbT('kbWorkspace.msg.apiNotReady') };
}
};
@@ -333,7 +338,7 @@ export const getKbDocumentMarkdown = async (
const data = await requestJson<KbDocumentMarkdown>(`/api/kb/documents/${documentId}/markdown`, auth());
return { ok: true, data };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '读取清洗后的 Markdown 失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.readMarkdownFailed') };
}
};
@@ -349,7 +354,7 @@ export const updateKbDocumentMarkdown = async (
});
return { ok: true, data };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '保存 Markdown 失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.saveMarkdownFailed') };
}
};
@@ -371,11 +376,11 @@ export const uploadKbDocumentVersion = async (
if (err.status === 413) {
return {
ok: false,
error: '文件过大,超过当前上传限制,请联系管理员放宽限制后重试',
error: kbT('kbWorkspace.msg.fileTooLarge'),
status: 413,
};
}
return { ok: false, error: kbErrorMessage(e, '上传文档版本失败'), status: err.status };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.uploadVersionFailed'), status: err.status };
}
};
@@ -390,7 +395,7 @@ export const submitKbDocumentClean = async (
return { ok: true, job, message: job.message || undefined };
} catch (e) {
const err = e as BusinessError;
return { ok: false, error: kbErrorMessage(e, '提交清洗任务失败'), status: err.status };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.submitCleanFailed'), status: err.status };
}
};
@@ -411,7 +416,7 @@ export const createKbPathUploadJob = async (
return { ok: true, job };
} catch (e) {
const err = e as BusinessError;
return { ok: false, error: kbErrorMessage(e, '创建路径上传任务失败'), status: err.status };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.createPathJobFailed'), status: err.status };
}
};
@@ -435,11 +440,11 @@ export const uploadKbPathJobFile = async (
if (err.status === 413) {
return {
ok: false,
error: '文件过大,超过当前上传限制,请联系管理员放宽限制后重试',
error: kbT('kbWorkspace.msg.fileTooLarge'),
status: 413,
};
}
return { ok: false, error: kbErrorMessage(e, '上传路径文件失败'), status: err.status };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.uploadPathFileFailed'), status: err.status };
}
};
@@ -455,7 +460,7 @@ export const markKbPathJobFileFailed = async (
});
return { ok: true, job };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '记录路径文件失败状态失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.markPathFileFailedStatusFailed') };
}
};
@@ -469,7 +474,7 @@ export const finalizeKbPathUploadJob = async (
});
return { ok: true, job };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '提交路径上传任务失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.submitPathUploadFailed') };
}
};
@@ -486,7 +491,7 @@ export const retryFailedKbPathUploadJob = async (
return { ok: true, job };
} catch (e) {
const err = e as BusinessError;
return { ok: false, error: kbErrorMessage(e, '重试失败文件失败'), status: err.status };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.retryPathFailed'), status: err.status };
}
};
@@ -502,7 +507,7 @@ export const deleteKbPathJobFile = async (
);
return { ok: true, job: result.job, document_deleted: result.document_deleted };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '删除路径上传文件失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.deletePathFileFailed') };
}
};
@@ -516,7 +521,7 @@ export const syncKbDocumentToDify = async (
});
return { ok: true, job };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '同步到 Dify 失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.syncDifyFailedGeneric') };
}
};
@@ -532,7 +537,7 @@ export const updateKbGroup = async (
});
return { ok: true, group };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '更新知识库分组失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.updateGroupFailed') };
}
};
@@ -543,6 +548,6 @@ export const deleteKbGroup = async (
await requestJson(`/api/kb/groups/${groupId}`, { method: 'DELETE', ...auth() });
return { ok: true };
} catch (e) {
return { ok: false, error: kbErrorMessage(e, '删除知识库分组失败') };
return { ok: false, error: kbErrorMessage(e, 'kbWorkspace.msg.deleteGroupFailed') };
}
};
@@ -58,7 +58,9 @@ export const getDocumentDisplayDescription = (doc: KbDocumentItem, t: KbTranslat
return text || getDocumentDisplayTitle(doc, t);
};
/** 将后端重复文档错误归一为前端可展示的简短文案 */
/** 将后端重复文档错误归一为前端可展示的简短文案。
* [NLU] includes() 匹配后端中文错误原文,刻意保留;返回值走 i18n。
*/
export const normalizeDuplicateDocumentError = (message: string | null | undefined, t: KbTranslateFn) => {
const text = String(message || '').trim();
if (!text) return t('kbWorkspace.errors.apiRequestFailed');
@@ -122,12 +122,16 @@ export const getDocumentWorkflowState = (
let syncStage: WorkflowStageState;
if (!doc.latest_version || cleanStage.code === 'failed') {
syncStage = { code: 'idle', label: t('kbWorkspace.status.idle'), className: IDLE_BADGE_CLASS };
} else if (syncJob?.status === 'failed') {
} else if (syncJob?.status === 'failed' || (latestStatus === 'ready' && Boolean(doc.latest_version?.error_message))) {
syncStage = {
code: 'failed',
label: t('kbWorkspace.status.failed'),
className: getStatusBadgeClass('failed'),
errorMessage: normalizeWorkflowErrorMessage(syncJob.error_message || syncJob.message, 'sync', t),
errorMessage: normalizeWorkflowErrorMessage(
syncJob?.error_message || syncJob?.message || doc.latest_version?.error_message,
'sync',
t,
),
};
} else if (latestStatus === 'synced' || syncJob?.status === 'success') {
syncStage = { code: 'success', label: t('kbWorkspace.status.done'), className: getStatusBadgeClass('success') };
@@ -2,10 +2,11 @@
/**
* features/maintenance/components/MaintenanceRecordPanel.vue
* 用途:设备维保助手右侧固定面板中的“新增维修记录”页面。
* 依赖:maintenanceRecord.api、maintenanceLedger.api、MaintenanceDeviceSnapshotCard、useMessage。
* 依赖:maintenanceRecord.api、maintenanceLedger.api、MaintenanceDeviceSnapshotCard、useMessage、vue-i18n。
* 逻辑:管理员通过按钮进入固定面板后填写维修记录;设备编号失焦时查询台账快照,保存后刷新最近记录用于确认。
*/
import { computed, onMounted, reactive, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useMessage } from '@/shared/composables/useMessage';
import MaintenanceDeviceSnapshotCard from '@/features/maintenance/components/MaintenanceDeviceSnapshotCard.vue';
import { listMaintenanceDevices } from '@/features/maintenance/api/maintenanceLedger.api';
@@ -19,8 +20,10 @@ import type {
MaintenanceRecordPayload,
MaintenanceRepairStatus,
} from '@/features/maintenance/types/record.types';
import { repairStatusLabelKey } from '@/features/maintenance/utils/repair-status-display.utils';
const msg = useMessage();
const { t } = useI18n();
const saving = ref(false);
const deviceLoading = ref(false);
const recentLoading = ref(false);
@@ -49,24 +52,28 @@ const form = reactive<MaintenanceRecordPayload>({
});
const statusOptions: Array<{ value: MaintenanceRepairStatus | ''; label: string }> = [
{ value: '', label: '全部状态' },
{ value: 'pending', label: '待维修' },
{ value: 'processing', label: '维修中' },
{ value: 'done', label: '已完成' },
{ value: 'cancelled', label: '已取消' },
{ value: '', label: 'maintenance.record.status.all' },
{ value: 'pending', label: 'maintenance.record.status.pending' },
{ value: 'processing', label: 'maintenance.record.status.processing' },
{ value: 'done', label: 'maintenance.record.status.done' },
{ value: 'cancelled', label: 'maintenance.record.status.cancelled' },
];
const selectedStatusLabel = computed(() => {
return statusOptions.find((item) => item.value === form.repairStatus)?.label || form.repairStatus;
const key = repairStatusLabelKey(form.repairStatus);
return key ? t(key) : form.repairStatus;
});
/**
* 将状态值转换为中文展示。
* 将状态值转换为当前语言展示文案。
* @param value - 后端状态枚举。
* @returns 页面展示文案。
*/
const formatStatus = (value: string): string => {
return statusOptions.find((item) => item.value === value)?.label || value || '-';
const key = repairStatusLabelKey(value);
if (key) return t(key);
const option = statusOptions.find((item) => item.value === value);
return option ? t(option.label) : value || '-';
};
/**
@@ -103,7 +110,7 @@ const loadDeviceSnapshot = async (): Promise<void> => {
const result = await listMaintenanceDevices({ keyword: code, page: 1, pageSize: 5 });
matchedDevice.value = result.items.find((item) => item.deviceCode === code) || null;
} catch (error: any) {
msg.error(error?.message || '查询设备台账失败');
msg.error(error?.message || t('maintenance.record.messages.deviceLoadFailed'));
} finally {
deviceLoading.value = false;
}
@@ -121,12 +128,12 @@ const ensureDeviceExists = async (): Promise<boolean> => {
const result = await listMaintenanceDevices({ keyword: code, page: 1, pageSize: 5 });
matchedDevice.value = result.items.find((item) => item.deviceCode === code) || null;
if (!matchedDevice.value) {
msg.warning('设备不存在,不能新增维修记录');
msg.warning(t('maintenance.record.messages.deviceNotFound'));
return false;
}
return true;
} catch (error: any) {
msg.error(error?.message || '鏌ヨ璁惧鍙拌处澶辫触');
msg.error(error?.message || t('maintenance.record.messages.deviceLoadFailed'));
return false;
} finally {
deviceLoading.value = false;
@@ -147,7 +154,7 @@ const loadRecentRecords = async (): Promise<void> => {
});
recentRecords.value = result.items;
} catch (error: any) {
msg.error(error?.message || '查询维修记录失败');
msg.error(error?.message || t('maintenance.record.messages.loadFailed'));
} finally {
recentLoading.value = false;
}
@@ -182,7 +189,7 @@ const resetForm = (): void => {
const saveRecord = async (): Promise<void> => {
const payload = buildPayload();
if (!payload.deviceCode || !payload.reportDate || !payload.faultDescription) {
msg.warning('设备编号、报修日期和故障描述不能为空');
msg.warning(t('maintenance.record.messages.required'));
return;
}
if (!await ensureDeviceExists()) {
@@ -191,12 +198,12 @@ const saveRecord = async (): Promise<void> => {
saving.value = true;
try {
await createMaintenanceRecord(payload);
msg.success('维修记录已保存');
msg.success(t('maintenance.record.messages.saved'));
recordKeyword.value = payload.deviceCode;
resetForm();
await loadRecentRecords();
} catch (error: any) {
msg.error(error?.message || '保存维修记录失败');
msg.error(error?.message || t('maintenance.record.messages.saveFailed'));
} finally {
saving.value = false;
}
@@ -209,22 +216,22 @@ onMounted(loadRecentRecords);
<section class="flex h-full min-h-0 flex-col gap-4">
<form class="min-h-0 flex-1 overflow-auto" @submit.prevent="saveRecord">
<div class="mb-4 rounded-xl border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900">
维修记录为管理员配置入口,查询类问题仍建议通过会话直接提问。
{{ t('maintenance.record.notice') }}
</div>
<div class="grid gap-4 md:grid-cols-2">
<label class="grid gap-1 text-sm text-secondary">
设备编号 *
{{ t('maintenance.record.fields.deviceCode') }} *
<input
v-model="form.deviceCode"
class="admin-table-filter-input"
placeholder="如 EQ-2026-001"
:placeholder="t('maintenance.record.placeholder.deviceCode')"
@blur="loadDeviceSnapshot"
@keyup.enter.prevent="loadDeviceSnapshot"
/>
</label>
<label class="grid gap-1 text-sm text-secondary">
报修日期 *
{{ t('maintenance.record.fields.reportDate') }} *
<input v-model="form.reportDate" type="date" class="admin-table-filter-input" />
</label>
</div>
@@ -239,94 +246,122 @@ onMounted(loadRecentRecords);
<div class="mt-4 grid gap-4 md:grid-cols-2">
<label class="grid gap-1 text-sm text-secondary">
维修类别
<input v-model="form.repairCategory" class="admin-table-filter-input" placeholder="日常维修 / 保养 / 点检" />
{{ t('maintenance.record.fields.repairCategory') }}
<input
v-model="form.repairCategory"
class="admin-table-filter-input"
:placeholder="t('maintenance.record.placeholder.repairCategory')"
/>
</label>
<label class="grid gap-1 text-sm text-secondary">
维修状态
{{ t('maintenance.record.fields.repairStatus') }}
<select v-model="form.repairStatus" class="admin-table-filter-input">
<option value="pending">待维修</option>
<option value="processing">维修中</option>
<option value="done">已完成</option>
<option value="cancelled">已取消</option>
<option value="pending">{{ t('maintenance.record.status.pending') }}</option>
<option value="processing">{{ t('maintenance.record.status.processing') }}</option>
<option value="done">{{ t('maintenance.record.status.done') }}</option>
<option value="cancelled">{{ t('maintenance.record.status.cancelled') }}</option>
</select>
</label>
</div>
<div class="mt-4 grid gap-4 md:grid-cols-2">
<label class="grid gap-1 text-sm text-secondary md:col-span-2">
故障描述 *
{{ t('maintenance.record.fields.faultDescription') }} *
<textarea v-model="form.faultDescription" class="admin-table-filter-input min-h-24" />
</label>
<label class="grid gap-1 text-sm text-secondary">
报修人
{{ t('maintenance.record.fields.reporter') }}
<input v-model="form.reporter" class="admin-table-filter-input" />
</label>
<label class="grid gap-1 text-sm text-secondary">
审批人
{{ t('maintenance.record.fields.approver') }}
<input v-model="form.approver" class="admin-table-filter-input" />
</label>
<label class="grid gap-1 text-sm text-secondary">
维修日期
{{ t('maintenance.record.fields.repairDate') }}
<input v-model="form.repairDate" type="date" class="admin-table-filter-input" />
</label>
<label class="grid gap-1 text-sm text-secondary">
维修单位
{{ t('maintenance.record.fields.repairUnit') }}
<input v-model="form.repairUnit" class="admin-table-filter-input" />
</label>
<label class="grid gap-1 text-sm text-secondary">
维修人
{{ t('maintenance.record.fields.repairer') }}
<input v-model="form.repairer" class="admin-table-filter-input" />
</label>
<label class="grid gap-1 text-sm text-secondary">
来源工单号
{{ t('maintenance.record.fields.sourceOrderNo') }}
<input v-model="form.sourceOrderNo" class="admin-table-filter-input" />
</label>
<label class="grid gap-1 text-sm text-secondary">
维修费用
<input v-model="form.repairCost" class="admin-table-filter-input" placeholder="如 1200.00" />
{{ t('maintenance.record.fields.repairCost') }}
<input
v-model="form.repairCost"
class="admin-table-filter-input"
:placeholder="t('maintenance.record.placeholder.repairCost')"
/>
</label>
<label class="grid gap-1 text-sm text-secondary">
维修工时
<input v-model="form.repairHours" class="admin-table-filter-input" placeholder="如 3.5h" />
{{ t('maintenance.record.fields.repairHours') }}
<input
v-model="form.repairHours"
class="admin-table-filter-input"
:placeholder="t('maintenance.record.placeholder.repairHours')"
/>
</label>
<label class="grid gap-1 text-sm text-secondary md:col-span-2">
维修说明
{{ t('maintenance.record.fields.repairDescription') }}
<textarea v-model="form.repairDescription" class="admin-table-filter-input min-h-24" />
</label>
</div>
<div class="sticky bottom-0 mt-5 flex justify-end gap-2 border-t border-default bg-surface py-3">
<button type="button" class="admin-report-page-btn" @click="resetForm">清空</button>
<button type="button" class="admin-report-page-btn" @click="resetForm">
{{ t('maintenance.record.actions.clear') }}
</button>
<button
type="submit"
class="admin-report-page-btn admin-report-page-btn--active"
:disabled="saving"
>
{{ saving ? '保存中...' : `保存为${selectedStatusLabel}` }}
{{
saving
? t('maintenance.record.actions.saving')
: t('maintenance.record.actions.saveAs', { status: selectedStatusLabel })
}}
</button>
</div>
</form>
<div class="border-t border-default pt-4">
<div class="mb-3 flex items-center justify-between gap-2">
<h3 class="text-sm font-semibold text-primary">最近维修记录</h3>
<button type="button" class="admin-report-page-btn" @click="loadRecentRecords">刷新</button>
<h3 class="text-sm font-semibold text-primary">{{ t('maintenance.record.recentTitle') }}</h3>
<button type="button" class="admin-report-page-btn" @click="loadRecentRecords">
{{ t('common.refresh') }}
</button>
</div>
<div class="mb-3 grid gap-2 md:grid-cols-[1fr_120px_72px]">
<input v-model="recordKeyword" class="admin-table-filter-input" placeholder="筛选设备编号、故障、维修人" />
<input
v-model="recordKeyword"
class="admin-table-filter-input"
:placeholder="t('maintenance.record.filters.recentKeywordPlaceholder')"
/>
<select v-model="recordStatus" class="admin-table-filter-input">
<option v-for="item in statusOptions" :key="item.value || 'all'" :value="item.value">
{{ item.label }}
{{ t(item.label) }}
</option>
</select>
<button type="button" class="admin-report-page-btn admin-report-page-btn--active" @click="loadRecentRecords">
查询
{{ t('maintenance.record.actions.search') }}
</button>
</div>
<div class="max-h-56 overflow-auto rounded-xl border border-default bg-surface">
<div v-if="recentLoading" class="px-3 py-6 text-center text-sm text-secondary">加载中...</div>
<div v-else-if="!recentRecords.length" class="px-3 py-6 text-center text-sm text-secondary">暂无维修记录</div>
<div v-if="recentLoading" class="px-3 py-6 text-center text-sm text-secondary">
{{ t('maintenance.record.table.loading') }}
</div>
<div v-else-if="!recentRecords.length" class="px-3 py-6 text-center text-sm text-secondary">
{{ t('maintenance.record.table.empty') }}
</div>
<div
v-for="record in recentRecords"
v-else
@@ -1,8 +1,8 @@
/**
* features/maintenance/utils/repair-status-display.utils.ts
* 用途:维修记录状态在列表、卡片中的标签配色映射。
* 用途:维修记录状态在列表、卡片中的标签配色与 i18n key 映射。
* 依赖:MaintenanceRepairStatus 类型。
* 逻辑:MaintenanceRecordManagerPanel、MaintenanceDeviceResultCard 等组件统一引用,保证状态色一致。
* 逻辑:MaintenanceRecordManagerPanel、MaintenanceRecordPanel、MaintenanceDeviceResultCard 等组件统一引用,保证状态色与文案一致。
*/
import type { MaintenanceRepairStatus } from '@/features/maintenance/types/record.types';
@@ -18,3 +18,16 @@ export function repairStatusBadgeClass(value: MaintenanceRepairStatus | string):
if (value === 'cancelled') return 'border-slate-200 bg-slate-100 text-slate-600';
return 'border-slate-200 bg-slate-50 text-slate-600';
}
/**
* 返回维修状态对应的 i18n 文案 key,供组件内 t() 翻译。
* @param value - 维修状态枚举值。
* @returns maintenance.record.status.* 的 key 路径;未知状态返回空字符串。
*/
export function repairStatusLabelKey(value: MaintenanceRepairStatus | string): string {
if (value === 'pending') return 'maintenance.record.status.pending';
if (value === 'processing') return 'maintenance.record.status.processing';
if (value === 'done') return 'maintenance.record.status.done';
if (value === 'cancelled') return 'maintenance.record.status.cancelled';
return '';
}
@@ -0,0 +1,20 @@
/**
* features/sso/api/linked-services.api.ts
* 用途:读取管理台配置的关联服务(已启用),供侧栏入口展示。
* 依赖:shared/api/client。
* 逻辑:ExternalSystemLinks 合并本目录与 SSO 应用目录后渲染。
*/
import { requestJson } from '@/shared/api/client';
export interface LinkedServiceItem {
id: number;
name: string;
url: string;
}
/** 获取当前用户可见的已启用关联服务。 */
export async function listLinkedServices(): Promise<LinkedServiceItem[]> {
const data = await requestJson<{ items?: LinkedServiceItem[] } | LinkedServiceItem[]>('/api/linked-services');
if (Array.isArray(data)) return data;
return Array.isArray(data?.items) ? data.items : [];
}
+39
View File
@@ -0,0 +1,39 @@
/**
* features/sso/api/sso.api.ts
* 用途:访问 HXOPS 平级服务目录与短时登录 assertion 签发接口。
* 依赖:shared/api/client。
* 逻辑:导航组件读取安全服务元数据;授权页按 app key 请求受众绑定 JWT 和服务端登记的回调地址。
*/
import { requestJson } from '@/shared/api/client';
export interface SsoApplication {
key: string;
display_name: string;
login_url: string;
}
export interface SsoAssertionResponse {
post_url: string;
assertion: string;
state: string;
expires_in: number;
}
/** 获取当前用户可见的已启用产品内平级服务。 */
export async function listSsoApplications(): Promise<SsoApplication[]> {
const data = await requestJson<{ items?: SsoApplication[] }>('/api/sso/apps');
return Array.isArray(data?.items) ? data.items : [];
}
/**
* 为目标平级服务签发受众绑定的短时登录 assertion。
* @param appKey - 服务端配置的应用 key,不能传 callback URL。
* @param state - 平级服务签名的短时 state,HXOPS 仅原样返回。
*/
export function createSsoAssertion(appKey: string, state: string): Promise<SsoAssertionResponse> {
return requestJson<SsoAssertionResponse>(`/api/sso/apps/${encodeURIComponent(appKey)}/assertions`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ state }),
});
}
@@ -0,0 +1,63 @@
<!--
features/sso/components/ExternalSystemLinks.vue
用途:在 HXOPS 已登录页面展示关联服务与产品内 SSO 平级服务入口。
依赖:linked-nav.store、lucide-vue-next。
逻辑:读 Pinia 缓存即时渲染;未缓存时触发一次预取。工作台可通过 buttonClass/iconClass 对齐 ws-nav-btn。
-->
<script setup lang="ts">
import { computed, onMounted } from 'vue';
import { storeToRefs } from 'pinia';
import { ExternalLink } from 'lucide-vue-next';
import { useLinkedNavStore } from '../stores/linked-nav.store';
const props = withDefaults(defineProps<{
compact?: boolean;
showLabel?: boolean;
/** 覆盖按钮样式(如工作台 ws-nav-btn),未传时用紧凑/默认样式 */
buttonClass?: string;
/** 覆盖图标尺寸类,未传时随 compact 变化 */
iconClass?: string;
}>(), {
compact: false,
showLabel: true,
buttonClass: '',
iconClass: '',
});
const linkedNav = useLinkedNavStore();
const { items } = storeToRefs(linkedNav);
/**
* 解析按钮 class。
* 核心逻辑:外部传入优先;compact 默认与 Chat 底栏图标按钮一致(无额外 36px 盒子,避免错位)。
*/
const resolvedButtonClass = computed(() => {
if (props.buttonClass) return props.buttonClass;
if (props.compact) {
return 'inline-flex items-center justify-center transition-colors hover:text-secondary';
}
return 'inline-flex items-center justify-center gap-2 rounded-xl px-3 py-2 text-sm text-muted transition-colors hover:bg-surface-soft hover:text-secondary min-h-9';
});
/** 解析图标 class:默认 16px,与 Chat 底栏 Moon/Briefcase 一致。 */
const resolvedIconClass = computed(() => props.iconClass || 'h-4 w-4 shrink-0');
onMounted(() => {
// 已缓存则立即展示;未缓存时补一次预取(登录后 App 通常已预取)。
void linkedNav.ensureLoaded();
});
</script>
<template>
<template v-for="entry in items" :key="entry.key">
<button
type="button"
:class="resolvedButtonClass"
:title="entry.display_name"
@click="linkedNav.openItem(entry)"
>
<ExternalLink :class="resolvedIconClass" />
<span v-if="showLabel && !compact" class="truncate">{{ entry.display_name }}</span>
</button>
</template>
</template>
+12
View File
@@ -0,0 +1,12 @@
/**
* features/sso/index.ts
* 用途:统一导出 SSO 复用组件与续跳能力。
* 依赖:features/sso 子模块。
* 逻辑:页面通过本入口复用平级服务导航,登录模块复用 continuation。
*/
export { default as ExternalSystemLinks } from './components/ExternalSystemLinks.vue';
export { useLinkedNavStore } from './stores/linked-nav.store';
export {
continuationLocation,
readSsoContinuation,
} from './utils/continuation';
@@ -0,0 +1,154 @@
/**
* features/sso/stores/linked-nav.store.ts
* 用途:缓存关联服务 / SSO 侧栏入口,避免页面切换时重复请求导致入口闪现。
* 依赖:linked-services.api、sso.api、pinia。
* 逻辑:登录后预取一次;ExternalSystemLinks 直接读 store;登出或管理台变更时刷新/清空。
*/
import { defineStore } from 'pinia';
import { computed, ref } from 'vue';
import { listLinkedServices, type LinkedServiceItem } from '../api/linked-services.api';
import { listSsoApplications, type SsoApplication } from '../api/sso.api';
/** 侧栏可渲染的入口元数据(可序列化,不含函数)。 */
export interface LinkedNavItem {
key: string;
display_name: string;
/** sso:走 /sso/launch;url:直接打开 target */
mode: 'sso' | 'url';
target: string;
}
/** 规范化 URL 便于与 SSO login_url 比对。 */
function normalizeUrl(value: string): string {
return String(value || '').trim().replace(/\/+$/, '').toLowerCase();
}
/**
* 合并关联服务与 SSO 目录为侧栏入口列表。
* 核心逻辑:关联服务优先;命中 SSO 注册表则 mode=sso。
*/
function buildNavItems(linked: LinkedServiceItem[], ssoApps: SsoApplication[]): LinkedNavItem[] {
const usedSsoKeys = new Set<string>();
const next: LinkedNavItem[] = [];
for (const item of linked) {
const matched = ssoApps.find(
(app) =>
normalizeUrl(app.login_url) === normalizeUrl(item.url)
|| String(app.display_name || '').trim() === String(item.name || '').trim(),
);
if (matched) {
usedSsoKeys.add(matched.key);
next.push({
key: `linked-${item.id}`,
display_name: item.name,
mode: 'sso',
target: matched.key,
});
} else {
next.push({
key: `linked-${item.id}`,
display_name: item.name,
mode: 'url',
target: item.url,
});
}
}
for (const app of ssoApps) {
if (usedSsoKeys.has(app.key)) continue;
next.push({
key: `sso-${app.key}`,
display_name: app.display_name,
mode: 'sso',
target: app.key,
});
}
return next;
}
export const useLinkedNavStore = defineStore('linkedNav', () => {
const items = ref<LinkedNavItem[]>([]);
const loaded = ref(false);
const loading = ref(false);
let inflight: Promise<void> | null = null;
const hasItems = computed(() => items.value.length > 0);
/**
* 预取侧栏入口;已加载且非 force 时直接复用缓存。
* @param options.force - 为 true 时忽略缓存强制刷新(管理台保存后)
*/
async function ensureLoaded(options?: { force?: boolean }): Promise<void> {
if (options?.force) {
loaded.value = false;
}
if (loaded.value) return;
if (inflight) {
await inflight;
return;
}
loading.value = true;
inflight = (async () => {
let linked: LinkedServiceItem[] = [];
let ssoApps: SsoApplication[] = [];
try {
linked = await listLinkedServices();
} catch (error) {
console.warn('[linked-nav] failed to load linked services', error);
}
try {
ssoApps = await listSsoApplications();
} catch (error) {
console.warn('[linked-nav] failed to load sso apps', error);
}
items.value = buildNavItems(linked, ssoApps);
loaded.value = true;
})();
try {
await inflight;
} finally {
loading.value = false;
inflight = null;
}
}
/** 强制刷新入口缓存(管理台增删改后调用)。 */
async function refresh(): Promise<void> {
await ensureLoaded({ force: true });
}
/** 登出时清空,避免下一账号看到旧入口。 */
function reset(): void {
items.value = [];
loaded.value = false;
loading.value = false;
inflight = null;
}
/**
* 打开入口:SSO 走同源 launch,其它直接新开 URL。
* @param item - 侧栏入口元数据
*/
function openItem(item: LinkedNavItem): void {
if (item.mode === 'sso') {
window.open(`/sso/launch?app=${encodeURIComponent(item.target)}`, '_blank');
return;
}
window.open(item.target, '_blank');
}
return {
items,
loaded,
loading,
hasItems,
ensureLoaded,
refresh,
reset,
openItem,
};
});
@@ -0,0 +1,72 @@
/**
* features/sso/utils/continuation.ts
* 用途:在平级服务跳转到 HXOPS 登录页期间保存并恢复 SSO 请求。
* 依赖:浏览器 sessionStorage、Vue Router 查询参数类型。
* 逻辑:只保存 app key 和签名 state,不接收或持久化 callback URL、JWT 或用户资料。
*/
import type { LocationQuery } from 'vue-router';
export interface SsoContinuation {
app: string;
state: string;
createdAt: number;
}
const STORAGE_KEY = 'hxops_sso_continuation';
const MAX_AGE_MS = 10 * 60 * 1000;
const APP_KEY_PATTERN = /^[a-z0-9][a-z0-9_-]{1,63}$/;
/** 从授权路由查询参数构造安全的续跳请求。 */
export function parseSsoContinuation(query: LocationQuery): SsoContinuation | null {
const app = typeof query.app === 'string' ? query.app.trim().toLowerCase() : '';
const state = typeof query.state === 'string' ? query.state.trim() : '';
if (!APP_KEY_PATTERN.test(app) || !state || state.length > 4096) return null;
return { app, state, createdAt: Date.now() };
}
/** 保存未登录用户的 SSO 请求,登录成功后在同一标签页恢复。 */
export function saveSsoContinuation(continuation: SsoContinuation): void {
sessionStorage.setItem(STORAGE_KEY, JSON.stringify(continuation));
}
/** 读取仍在有效期内的 SSO 请求;坏数据或超时数据会立即清理。 */
export function readSsoContinuation(): SsoContinuation | null {
try {
const raw = sessionStorage.getItem(STORAGE_KEY);
if (!raw) return null;
const data = JSON.parse(raw) as Partial<SsoContinuation>;
if (
!APP_KEY_PATTERN.test(String(data.app || ''))
|| !String(data.state || '')
|| String(data.state || '').length > 4096
|| Date.now() - Number(data.createdAt || 0) > MAX_AGE_MS
) {
clearSsoContinuation();
return null;
}
return {
app: String(data.app),
state: String(data.state),
createdAt: Number(data.createdAt),
};
} catch {
clearSsoContinuation();
return null;
}
}
/** 清理已完成或无效的登录续跳请求。 */
export function clearSsoContinuation(): void {
sessionStorage.removeItem(STORAGE_KEY);
}
/** 生成只包含服务端应用 key 的 HXOPS 授权路由。 */
export function continuationLocation(continuation: SsoContinuation) {
return {
path: '/sso/authorize',
query: {
app: continuation.app,
state: continuation.state,
},
};
}
@@ -0,0 +1,27 @@
/**
* features/sso/utils/postForm.ts
* 用途:用浏览器表单 POST 将短时 SSO assertion 交给已登记的平级服务回调。
* 依赖:DOM API。
* 逻辑:assertion 只进入请求体,不拼接 URL;提交后浏览器离开 HXOPS 授权页。
*/
/**
* POST assertion 和 state 到后端返回的已登记回调地址。
* @param action - HXOPS 服务端从应用注册表返回的绝对 HTTPS callback URL。
* @param fields - 仅包含 assertion 与平级服务原始 state。
*/
export function submitSsoForm(action: string, fields: Record<string, string>): void {
const form = document.createElement('form');
form.method = 'POST';
form.action = action;
form.style.display = 'none';
for (const [name, value] of Object.entries(fields)) {
const input = document.createElement('input');
input.type = 'hidden';
input.name = name;
input.value = value;
form.appendChild(input);
}
document.body.appendChild(form);
form.submit();
}
@@ -0,0 +1,73 @@
<!--
features/sso/views/SsoAuthorizeView.vue
用途:承接平级服务登录请求;未登录时转 HXOPS 登录页,已登录时签发 assertion 并 POST 回平级服务。
依赖:auth store、SSO API、continuation 与 postForm 工具。
逻辑:平级服务只提供 app/state;callback 与 JWT audience 始终由 HXOPS 服务端注册表决定。
-->
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { ArrowLeft, Loader2 } from 'lucide-vue-next';
import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';
import { useAuthStore } from '@/features/auth/stores/auth.store';
import { createSsoAssertion } from '../api/sso.api';
import {
clearSsoContinuation,
parseSsoContinuation,
saveSsoContinuation,
} from '../utils/continuation';
import { submitSsoForm } from '../utils/postForm';
const { t } = useI18n();
const route = useRoute();
const router = useRouter();
const authStore = useAuthStore();
const errorMessage = ref('');
/** 校验授权请求,并按当前登录状态执行保存续跳或签发短时 assertion。 */
async function authorize(): Promise<void> {
const continuation = parseSsoContinuation(route.query);
if (!continuation) {
errorMessage.value = t('common.sso.invalidRequest');
return;
}
authStore.syncFromStorage();
if (!authStore.isLoggedIn) {
saveSsoContinuation(continuation);
await router.replace('/login');
return;
}
try {
const result = await createSsoAssertion(continuation.app, continuation.state);
clearSsoContinuation();
submitSsoForm(result.post_url, { assertion: result.assertion, state: result.state });
} catch (error) {
errorMessage.value = (error as Error)?.message || t('common.sso.failed');
}
}
onMounted(() => {
void authorize();
});
</script>
<template>
<main class="page-shell flex min-h-screen items-center justify-center px-6">
<section class="w-full max-w-md rounded-2xl border border-default bg-surface p-8 text-center shadow-xl">
<template v-if="!errorMessage">
<Loader2 class="mx-auto h-10 w-10 animate-spin text-brand-600" />
<h1 class="mt-5 text-xl font-semibold text-primary">{{ t('common.sso.authorizing') }}</h1>
<p class="mt-2 text-sm text-muted">{{ t('common.sso.authorizingHint') }}</p>
</template>
<template v-else>
<h1 class="text-xl font-semibold text-primary">{{ t('common.sso.failed') }}</h1>
<p class="mt-3 text-sm text-red-600">{{ errorMessage }}</p>
<button type="button" class="btn-secondary mt-6 inline-flex items-center gap-2" @click="router.replace('/workspace/applications')">
<ArrowLeft class="h-4 w-4" /> {{ t('common.sso.backToHxops') }}
</button>
</template>
</section>
</main>
</template>
@@ -0,0 +1,63 @@
<!--
features/sso/views/SsoLaunchView.vue
用途:在新标签先继承 HXOPS sessionStorage,再安全跳转到平级服务登录起点。
依赖:SSO 应用目录 API、Vue Router。
逻辑:页面只接收 app key,加载后立即切断 opener,目标 URL 由 HXOPS 服务端注册表提供。
-->
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { ArrowLeft, Loader2 } from 'lucide-vue-next';
import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';
import { listSsoApplications } from '../api/sso.api';
const { t } = useI18n();
const route = useRoute();
const router = useRouter();
const errorMessage = ref('');
// 新标签已完成同源 sessionStorage 克隆,跳跨域前切断 opener 防止反向标签劫持。
window.opener = null;
/** 按服务端应用目录解析 app key,并跳转到平级服务登录起点。 */
async function launch(): Promise<void> {
const appKey = typeof route.query.app === 'string' ? route.query.app.trim().toLowerCase() : '';
if (!appKey) {
errorMessage.value = t('common.sso.invalidRequest');
return;
}
try {
const applications = await listSsoApplications();
const application = applications.find((item) => item.key === appKey);
if (!application) {
errorMessage.value = t('errors.codes.AUTH_SSO_APP_NOT_FOUND');
return;
}
window.location.replace(application.login_url);
} catch (error) {
errorMessage.value = (error as Error)?.message || t('common.sso.failed');
}
}
onMounted(() => {
void launch();
});
</script>
<template>
<main class="page-shell flex min-h-screen items-center justify-center px-6">
<section class="w-full max-w-md rounded-2xl border border-default bg-surface p-8 text-center shadow-xl">
<template v-if="!errorMessage">
<Loader2 class="mx-auto h-10 w-10 animate-spin text-brand-600" />
<h1 class="mt-5 text-xl font-semibold text-primary">{{ t('common.sso.authorizing') }}</h1>
</template>
<template v-else>
<h1 class="text-xl font-semibold text-primary">{{ t('common.sso.failed') }}</h1>
<p class="mt-3 text-sm text-red-600">{{ errorMessage }}</p>
<button type="button" class="btn-secondary mt-6 inline-flex items-center gap-2" @click="router.replace('/workspace/applications')">
<ArrowLeft class="h-4 w-4" /> {{ t('common.sso.backToHxops') }}
</button>
</template>
</section>
</main>
</template>
@@ -0,0 +1,45 @@
/**
* features/user/api/user.api.ts
* 用途:封装当前登录用户的资料与其可访问 Agent 查询请求。
* 依赖:shared/utils/auth、shared/api/client。
* 逻辑:Chat 和用户页面通过本模块读取当前用户资源,不与认证登录流程耦合。
*/
import { requestJson } from '@/shared/api/client';
import { getAuthHeaders } from '@/shared/utils/auth';
import type { UserProfileForm } from '../types/user-profile.types';
const auth = () => ({ headers: getAuthHeaders() });
/** 获取当前登录用户的资料及个人设置。 */
export const getUserProfile = () => requestJson<Record<string, unknown>>('/api/user/profile', auth());
/** 读取个人中心编辑表单所需的完整资料。 */
export const getEditableUserProfile = () =>
requestJson<Partial<UserProfileForm>>('/api/user/profile', auth());
/** 保存当前用户允许自助编辑的资料与偏好。 */
export const updateUserProfile = (profile: Partial<UserProfileForm>) =>
requestJson('/api/user/profile', {
method: 'PUT',
headers: { 'Content-Type': 'application/json', ...getAuthHeaders() },
body: JSON.stringify(profile),
});
/** 校验当前密码后修改 Casdoor 与 HXOPS 的统一密码。 */
export const changeUserPassword = (currentPassword: string, newPassword: string) =>
requestJson('/api/user/change-password', {
method: 'POST',
headers: { 'Content-Type': 'application/json', ...getAuthHeaders() },
body: JSON.stringify({ current_password: currentPassword, new_password: newPassword }),
});
/** 获取当前用户有权访问的单个 Agent。 */
export const getUserAgent = <T = Record<string, unknown>>(agentId: number) =>
requestJson<T>(`/api/user/agents/${agentId}`, auth());
/** 获取当前用户有权访问的 Agent 列表。 */
export const listUserAgents = <T = unknown>() => requestJson<T[]>('/api/agents', auth());
/** 获取当前用户有权查看的 Agent 使用指南。 */
export const listAgentGuides = (agentId: number) =>
requestJson<unknown[]>(`/api/agents/${agentId}/guides`, auth());
@@ -0,0 +1,59 @@
<script setup lang="ts">
/**
* features/user/components/UserPasswordDialog.vue
* 用途:呈现并提交当前用户的密码修改表单。
* 依赖:user-profile.context 提供的资料状态和操作方法。
* 逻辑:由工作台布局常驻渲染,用户资料页打开弹窗后在此完成密码修改。
*/
import { inject } from 'vue';
import { X } from 'lucide-vue-next';
import { USER_PROFILE_KEY } from '../composables/user-profile.context';
const userProfile = inject(USER_PROFILE_KEY)!;
</script>
<template>
<div
v-if="userProfile.CHANGE_PASSWORD_ENABLED && userProfile.showPasswordModal"
class="dialog-overlay z-50 items-center"
>
<div class="dialog-panel max-w-md">
<div class="dialog-header">
<h3 class="section-title">{{ $t('profile.changePassword') || 'Change Password' }}</h3>
<button
type="button"
class="btn-icon-ds"
:aria-label="$t('admin.close')"
:disabled="userProfile.isChangingPassword"
@click="userProfile.showPasswordModal = false"
>
<X class="w-5 h-5" />
</button>
</div>
<form @submit.prevent="userProfile.handleChangePassword">
<div class="dialog-body">
<div>
<label class="label-field">{{ $t('profile.currentPassword') || 'Current Password' }}</label>
<input v-model="userProfile.passwordForm.current" type="password" class="input-field mt-1" :disabled="userProfile.isChangingPassword" required />
</div>
<div>
<label class="label-field">{{ $t('profile.newPassword') || 'New Password' }}</label>
<input v-model="userProfile.passwordForm.new" type="password" class="input-field mt-1" :disabled="userProfile.isChangingPassword" required />
</div>
<div>
<label class="label-field">{{ $t('profile.confirmPassword') || 'Confirm Password' }}</label>
<input v-model="userProfile.passwordForm.confirm" type="password" class="input-field mt-1" :disabled="userProfile.isChangingPassword" required />
</div>
</div>
<div class="dialog-footer">
<button type="button" :disabled="userProfile.isChangingPassword" @click="userProfile.showPasswordModal = false" class="btn-secondary flex-1 disabled:opacity-50 disabled:cursor-not-allowed">
{{ $t('profile.cancel') || 'Cancel' }}
</button>
<button type="submit" :disabled="userProfile.isChangingPassword" class="btn-primary flex-1 disabled:opacity-50 disabled:cursor-not-allowed">
{{ userProfile.isChangingPassword ? $t('profile.changingPassword') : ($t('profile.changePassword') || 'Update') }}
</button>
</div>
</form>
</div>
</div>
</template>
@@ -0,0 +1,193 @@
/**
* features/user/composables/useUserProfile.ts
* 用途:编排个人资料读取/编辑、主题偏好与统一密码修改。
* 依赖:user.api、主题/消息/i18n composable、Casdoor 错误映射。
* 逻辑:UserProfilePage 和 UserPasswordDialog 消费本 composable;Workspace 仅提供它以维持布局上下文。
*/
import { computed, ref } from 'vue';
import type { ThemePreference } from '@/shared/composables/useTheme';
import { resolveCasdoorErrorMessage } from '@/shared/utils/casdoor';
import { BusinessError } from '@/shared/api/client';
import { changeUserPassword, getEditableUserProfile, updateUserProfile } from '../api/user.api';
import { CHANGE_PASSWORD_ENABLED, type UserProfileForm } from '../types/user-profile.types';
import type { ComputedRef, WritableComputedRef } from 'vue';
import type { ComposerTranslation } from 'vue-i18n';
import type { useMessage } from '@/shared/composables/useMessage';
interface UserProfileDeps {
t: ComposerTranslation;
locale: WritableComputedRef<string>;
msg: ReturnType<typeof useMessage>;
setThemePreference: (preference: ThemePreference) => void;
appliedTheme: ComputedRef<ThemePreference>;
}
/**
* 管理当前用户资料、偏好设置和密码修改状态。
* 由工作台在初始化时创建,使资料页面与改密弹窗共享同一份状态和请求动作。
*/
export function useUserProfile(deps: UserProfileDeps) {
const { t, locale, msg, setThemePreference, appliedTheme } = deps;
const isProfileLoading = ref(false);
const isProfileSaving = ref(false);
const isChangingPassword = ref(false);
const isProfileEditing = ref(false);
const showPasswordModal = ref(false);
const profileUser = ref<UserProfileForm>({
id: 0,
username: '',
real_name: '',
email: '',
phone_number: '',
department: '',
role: '',
employee_id: '',
language: 'zh-CN',
theme_preference: 'system' as ThemePreference,
});
const originalProfile = ref<UserProfileForm | null>(null);
const passwordForm = ref({ current: '', new: '', confirm: '' });
const themeOptions: Array<{ value: ThemePreference; label: () => string }> = [
{ value: 'light', label: () => t('theme.light') || 'Light' },
{ value: 'dark', label: () => t('theme.dark') || 'Dark' },
{ value: 'system', label: () => t('theme.system') || 'Follow System' },
];
const hasProfileUnsavedChanges = computed(() => {
if (!originalProfile.value) return false;
return (
profileUser.value.real_name !== originalProfile.value.real_name ||
profileUser.value.phone_number !== originalProfile.value.phone_number ||
profileUser.value.language !== originalProfile.value.language ||
profileUser.value.theme_preference !== originalProfile.value.theme_preference ||
profileUser.value.email !== originalProfile.value.email ||
profileUser.value.employee_id !== originalProfile.value.employee_id ||
profileUser.value.department !== originalProfile.value.department
);
});
const captureOriginalProfile = () => {
originalProfile.value = { ...profileUser.value };
};
const handleChangePasswordClick = () => {
if (!CHANGE_PASSWORD_ENABLED) {
msg.warning(t('profile.changePasswordContactAdmin'));
return;
}
showPasswordModal.value = true;
};
const fetchProfile = async () => {
isProfileLoading.value = true;
try {
const data = await getEditableUserProfile();
if (!data) {
msg.error(t('workspace.profile.msg.loadFailed'));
return;
}
profileUser.value = { ...profileUser.value, ...data };
if (data.language) locale.value = data.language;
if (data.theme_preference) {
setThemePreference(data.theme_preference);
} else {
profileUser.value.theme_preference = appliedTheme.value;
}
captureOriginalProfile();
isProfileEditing.value = false;
} catch (e) {
console.error(e);
msg.error(t('workspace.profile.msg.loadFailed'));
} finally {
isProfileLoading.value = false;
}
};
const startProfileEditing = () => {
isProfileEditing.value = true;
};
const cancelProfileEditing = () => {
if (originalProfile.value) {
profileUser.value = { ...originalProfile.value };
locale.value = profileUser.value.language;
setThemePreference(profileUser.value.theme_preference);
}
isProfileEditing.value = false;
};
const saveProfile = async () => {
if (!hasProfileUnsavedChanges.value) {
isProfileEditing.value = false;
return;
}
const payload = {
real_name: profileUser.value.real_name,
phone_number: profileUser.value.phone_number,
language: profileUser.value.language,
theme_preference: profileUser.value.theme_preference,
email: profileUser.value.email,
employee_id: profileUser.value.employee_id,
department: profileUser.value.department,
};
locale.value = profileUser.value.language;
setThemePreference(profileUser.value.theme_preference);
try {
isProfileSaving.value = true;
await updateUserProfile(payload);
msg.success(t('workspace.profile.msg.saved'));
captureOriginalProfile();
isProfileEditing.value = false;
} catch (e) {
console.error(e);
msg.error((e as Error)?.message || t('workspace.profile.msg.saveFailed'));
} finally {
isProfileSaving.value = false;
}
};
const handleChangePassword = async () => {
if (isChangingPassword.value) return;
if (passwordForm.value.new !== passwordForm.value.confirm) {
msg.warning(t('profile.passwordMismatch') || 'Passwords do not match');
return;
}
try {
isChangingPassword.value = true;
await changeUserPassword(passwordForm.value.current, passwordForm.value.new);
msg.success(t('profile.passwordChanged') || 'Password changed successfully');
passwordForm.value = { current: '', new: '', confirm: '' };
showPasswordModal.value = false;
} catch (e) {
console.error(e);
msg.error(
resolveCasdoorErrorMessage(e as BusinessError, t) || t('workspace.profile.msg.changePasswordFailed'),
);
} finally {
isChangingPassword.value = false;
}
};
return {
isProfileLoading,
isProfileSaving,
isChangingPassword,
isProfileEditing,
showPasswordModal,
CHANGE_PASSWORD_ENABLED,
handleChangePasswordClick,
profileUser,
originalProfile,
passwordForm,
themeOptions,
hasProfileUnsavedChanges,
captureOriginalProfile,
fetchProfile,
startProfileEditing,
cancelProfileEditing,
saveProfile,
handleChangePassword,
};
}
@@ -0,0 +1,31 @@
/**
* features/user/composables/user-profile.context.ts
* 用途:定义个人资料页面和改密弹窗共享的注入上下文。
* 依赖:useUserProfile 的返回契约与工作台提供的移动端/登出能力。
* 逻辑:WorkspaceLayout 提供上下文;user 域组件只依赖此契约,不读取工作台注入 key。
*/
import type { InjectionKey } from 'vue';
import type { UserProfileForm } from '../types/user-profile.types';
import type { ThemePreference } from '@/shared/composables/useTheme';
export interface UserProfileContext {
isMobile: boolean;
handleLogout: () => void;
isProfileLoading: boolean;
isProfileSaving: boolean;
isChangingPassword: boolean;
isProfileEditing: boolean;
showPasswordModal: boolean;
CHANGE_PASSWORD_ENABLED: boolean;
profileUser: UserProfileForm;
passwordForm: { current: string; new: string; confirm: string };
hasProfileUnsavedChanges: boolean;
themeOptions: Array<{ value: ThemePreference; label: () => string }>;
handleChangePasswordClick: () => void;
startProfileEditing: () => void;
cancelProfileEditing: () => void;
saveProfile: () => Promise<void>;
handleChangePassword: () => Promise<void>;
}
export const USER_PROFILE_KEY: InjectionKey<UserProfileContext> = Symbol('user-profile');
+9
View File
@@ -0,0 +1,9 @@
/**
* features/user/index.ts
* 用途:暴露用户域 HTTP 能力,避免其他 feature 直接依赖实现路径。
* 依赖:user.api。
* 逻辑:Chat 等使用方从此处或 user.api 导入当前用户资料和授权资源查询。
*/
export * from './api/user.api';
export { useUserProfile } from './composables/useUserProfile';
export type { UserProfileForm } from './types/user-profile.types';
@@ -0,0 +1,22 @@
/**
* features/user/types/user-profile.types.ts
* 用途:定义个人资料编辑与密码修改的用户域类型和功能开关。
* 依赖:shared/composables/useTheme。
* 逻辑:useUserProfile、UserProfilePage 和 UserPasswordDialog 使用同一份资料契约。
*/
import type { ThemePreference } from '@/shared/composables/useTheme';
export interface UserProfileForm {
id: number;
username: string;
real_name: string;
email: string;
phone_number: string;
department: string;
role: string;
employee_id: string;
language: string;
theme_preference: ThemePreference;
}
export const CHANGE_PASSWORD_ENABLED = true;
@@ -0,0 +1,198 @@
<script setup lang="ts">
/**
* features/user/views/UserProfilePage.vue
* 閻劑鈧棑绱扮仦鏇犮仛閸滃瞼绱潏鎴濈秼閸撳秶鏁ら幋鐤カ閺傛瑣鈧浇顕㈢懛鈧?娑撳顣介崑蹇撱偨閿涘苯鑻熼幓鎰返娣囶喗鏁肩€靛棛鐖滈崗銉ュ經閵? * 娓氭繆绂嗛敍姝秙er-profile.context閵嗕勾ucide 閸ョ偓鐖i妴涔倁e i18n閵? * 闁槒绶敍姘矝閻?/workspace/profile 鐠侯垳鏁遍幍鑳祰閿涘奔绲炬い鐢告桨閸滃奔绗熼崝鈥崇秺鐏?user feature閵? */
import { inject } from 'vue';
import {
User, Mail, Building, CreditCard, Globe, Save, Palette,
} from 'lucide-vue-next';
import { USER_PROFILE_KEY } from '../composables/user-profile.context';
const userProfile = inject(USER_PROFILE_KEY)!;
</script>
<template>
<div v-if="userProfile.isProfileLoading" class="flex justify-center py-20">
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-brand-600"></div>
</div>
<div v-else class="space-y-6">
<div class="rounded-3xl border border-default bg-surface px-6 py-6 shadow-sm md:px-8">
<div class="flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between">
<div class="flex flex-1 flex-col gap-6 sm:flex-row sm:items-center sm:justify-start">
<div class="flex h-24 w-24 shrink-0 items-center justify-center rounded-full bg-brand-100 text-4xl font-bold text-brand-600" :class="userProfile.isMobile ? 'h-14 w-14 text-2xl' : ''">
{{ (userProfile.profileUser.real_name || userProfile.profileUser.username || 'U').charAt(0).toUpperCase() }}
</div>
<div class="grid flex-1 text-left" :class="userProfile.isMobile ? 'grid-cols-2 gap-x-4 gap-y-1' : 'grid-cols-1 gap-x-12 gap-y-3 sm:grid-cols-2'">
<div :class="userProfile.isMobile ? '' : ''">
<div :class="userProfile.isMobile ? 'text-xs text-muted' : 'text-lg font-semibold text-primary'">{{ userProfile.isMobile ? $t('profile.realName') : (userProfile.profileUser.username || '-') }}</div>
<div v-if="userProfile.isMobile" class="text-sm font-medium text-primary truncate">{{ userProfile.profileUser.real_name || userProfile.profileUser.username || '-' }}</div>
</div>
<div>
<div :class="userProfile.isMobile ? 'text-xs text-muted' : 'text-lg font-semibold text-primary'">{{ userProfile.isMobile ? $t('profile.employeeId') : (userProfile.profileUser.employee_id || '-') }}</div>
<div v-if="userProfile.isMobile" class="text-sm font-medium text-primary truncate">{{ userProfile.profileUser.employee_id || '-' }}</div>
</div>
<div>
<div :class="userProfile.isMobile ? 'text-xs text-muted' : 'text-lg font-semibold text-primary'">{{ userProfile.isMobile ? $t('profile.department') : (userProfile.profileUser.department || '-') }}</div>
<div v-if="userProfile.isMobile" class="text-sm font-medium text-primary truncate">{{ userProfile.profileUser.department || '-' }}</div>
</div>
<div>
<div :class="userProfile.isMobile ? 'text-xs text-muted' : 'text-lg font-semibold text-primary'">{{ userProfile.isMobile ? $t('profile.role') : (userProfile.profileUser.role === 'admin' ? ($t('profile.roleAdmin') || 'Administrator') : ($t('profile.roleUser') || 'User')) }}</div>
<div v-if="userProfile.isMobile" class="text-sm font-medium text-primary truncate">{{ userProfile.profileUser.role === 'admin' ? ($t('profile.roleAdmin') || 'Administrator') : ($t('profile.roleUser') || 'User') }}</div>
</div>
<div :class="userProfile.isMobile ? 'col-span-2' : 'sm:col-span-2'">
<div :class="userProfile.isMobile ? 'text-xs text-muted' : 'break-all text-lg font-semibold text-primary'">{{ userProfile.isMobile ? $t('profile.email') : (userProfile.profileUser.email || '-') }}</div>
<div v-if="userProfile.isMobile" class="text-sm font-medium text-primary truncate">{{ userProfile.profileUser.email || '-' }}</div>
</div>
</div>
</div>
<div v-if="!userProfile.isMobile" class="flex shrink-0 items-center gap-2 self-start lg:ml-6">
<button @click="userProfile.handleChangePasswordClick" class="btn-primary px-6 py-3 text-base">
{{ $t('profile.changePassword') }}
</button>
</div>
</div>
<div v-if="userProfile.isMobile" class="mt-4 flex items-center justify-center gap-4">
<button @click="userProfile.handleChangePasswordClick" class="btn-primary flex-1 py-2.5 text-sm text-center">
{{ $t('profile.changePassword') }}
</button>
<button @click="userProfile.handleLogout" class="btn-secondary flex-1 py-2.5 text-sm text-center text-red-600 hover:bg-red-50">
{{ $t('workspace.nav.logout') }}
</button>
</div>
</div>
<div class="space-y-6">
<div class="rounded-3xl border border-default bg-surface p-8 shadow-sm" :class="userProfile.isMobile ? 'p-4' : ''">
<div class="mb-8 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between" :class="userProfile.isMobile ? 'mb-4 gap-2' : ''">
<div class="flex items-center" :class="userProfile.isMobile ? 'w-full justify-center gap-2' : ''">
<h3 class="flex items-center gap-3 text-3xl font-bold text-primary" :class="userProfile.isMobile ? 'text-lg gap-2' : ''">
<User class="h-6 w-6 text-brand-500" :class="userProfile.isMobile ? 'h-4 w-4' : ''" />
{{ $t('profile.basicInfo') }}
</h3>
<button v-if="userProfile.isMobile && !userProfile.isProfileEditing" @click="userProfile.startProfileEditing" class="btn-secondary px-3 py-1 text-xs">
{{ $t('profile.edit') }}
</button>
</div>
<p v-if="!userProfile.isMobile" class="mt-2 text-sm text-muted">
{{ userProfile.isProfileEditing ? $t('profile.directEditHint') : $t('profile.switchEditHint') }}
</p>
<div v-if="!userProfile.isMobile" class="flex items-center gap-2">
<button v-if="!userProfile.isProfileEditing" @click="userProfile.startProfileEditing" class="btn-secondary px-5 py-2.5 text-sm">
{{ $t('profile.edit') }}
</button>
<template v-else>
<button @click="userProfile.cancelProfileEditing" class="btn-secondary px-5 py-2.5 text-sm">
{{ $t('profile.cancel') || 'Cancel' }}
</button>
<button
@click="userProfile.saveProfile"
:disabled="userProfile.isProfileSaving || !userProfile.hasProfileUnsavedChanges"
class="btn-primary px-5 py-2.5 text-sm disabled:opacity-50 disabled:cursor-not-allowed"
>
<Save class="w-4 h-4" />
<span>{{ userProfile.isProfileSaving ? $t('profile.saving') : $t('workspace.save') }}</span>
</button>
</template>
</div>
</div>
<div class="grid grid-cols-1 gap-5 md:grid-cols-2" :class="userProfile.isMobile ? 'gap-3' : ''">
<div>
<label class="mb-2 flex items-center gap-2 text-sm font-medium text-muted" :class="userProfile.isMobile ? 'text-xs mb-1' : ''">
<User class="h-4 w-4" /> {{ $t('profile.username') }}
</label>
<div class="rounded-2xl border border-default bg-surface-soft px-4 py-4 text-lg font-medium text-secondary" :class="userProfile.isMobile ? 'px-3 py-2 text-sm rounded-xl' : ''">
{{ userProfile.profileUser.username || '-' }}
</div>
</div>
<div>
<label class="mb-2 flex items-center gap-2 text-sm font-medium text-muted" :class="userProfile.isMobile ? 'text-xs mb-1' : ''">
<CreditCard class="h-4 w-4" /> {{ $t('profile.employeeId') }}
</label>
<input v-if="userProfile.isProfileEditing" v-model="userProfile.profileUser.employee_id" type="text" class="input-field" :class="userProfile.isMobile ? 'h-10 text-sm' : 'h-[58px]'" />
<div v-else class="rounded-2xl border border-default bg-surface-soft px-4 py-4 text-lg font-medium text-secondary" :class="userProfile.isMobile ? 'px-3 py-2 text-sm rounded-xl' : ''">
{{ userProfile.profileUser.employee_id || '-' }}
</div>
</div>
<div>
<label class="mb-2 flex items-center gap-2 text-sm font-medium text-muted" :class="userProfile.isMobile ? 'text-xs mb-1' : ''">
<User class="h-4 w-4" /> {{ $t('profile.realName') }}
</label>
<input v-if="userProfile.isProfileEditing" v-model="userProfile.profileUser.real_name" type="text" class="input-field" :class="userProfile.isMobile ? 'h-10 text-sm' : 'h-[58px]'" />
<div v-else class="rounded-2xl border border-default bg-surface-soft px-4 py-4 text-lg font-medium text-secondary" :class="userProfile.isMobile ? 'px-3 py-2 text-sm rounded-xl' : ''">
{{ userProfile.profileUser.real_name || '-' }}
</div>
</div>
<div>
<label class="mb-2 flex items-center gap-2 text-sm font-medium text-muted" :class="userProfile.isMobile ? 'text-xs mb-1' : ''">
<Building class="h-4 w-4" /> {{ $t('profile.department') }}
</label>
<input v-if="userProfile.isProfileEditing" v-model="userProfile.profileUser.department" type="text" class="input-field" :class="userProfile.isMobile ? 'h-10 text-sm' : 'h-[58px]'" />
<div v-else class="rounded-2xl border border-default bg-surface-soft px-4 py-4 text-lg font-medium text-secondary" :class="userProfile.isMobile ? 'px-3 py-2 text-sm rounded-xl' : ''">
{{ userProfile.profileUser.department || '-' }}
</div>
</div>
<div>
<label class="mb-2 flex items-center gap-2 text-sm font-medium text-muted" :class="userProfile.isMobile ? 'text-xs mb-1' : ''">
<Mail class="h-4 w-4" /> {{ $t('profile.email') }}
</label>
<input v-if="userProfile.isProfileEditing" v-model="userProfile.profileUser.email" type="email" class="input-field" :class="userProfile.isMobile ? 'h-10 text-sm' : 'h-[58px]'" />
<div v-else class="rounded-2xl border border-default bg-surface-soft px-4 py-4 text-lg font-medium text-secondary" :class="userProfile.isMobile ? 'px-3 py-2 text-sm rounded-xl' : ''">
{{ userProfile.profileUser.email || '-' }}
</div>
</div>
<div>
<label class="mb-2 flex items-center gap-2 text-sm font-medium text-muted" :class="userProfile.isMobile ? 'text-xs mb-1' : ''">
<Globe class="h-4 w-4" /> {{ $t('profile.phoneNumber') }}
</label>
<input v-if="userProfile.isProfileEditing" v-model="userProfile.profileUser.phone_number" type="text" class="input-field" :class="userProfile.isMobile ? 'h-10 text-sm' : 'h-[58px]'" />
<div v-else class="rounded-2xl border border-default bg-surface-soft px-4 py-4 text-lg font-medium text-secondary" :class="userProfile.isMobile ? 'px-3 py-2 text-sm rounded-xl' : ''">
{{ userProfile.profileUser.phone_number || '-' }}
</div>
</div>
</div>
</div>
<div class="rounded-3xl border border-default bg-surface p-8 shadow-sm">
<h3 class="mb-6 flex items-center gap-3 text-2xl font-bold text-primary">
<Palette class="h-5 w-5 text-brand-500" />
{{ $t('profile.preferences') }}
</h3>
<div class="grid grid-cols-1 gap-6 md:grid-cols-2">
<div>
<label class="mb-2 block text-sm font-medium text-muted">{{ $t('workspace.languageLabel') }}</label>
<select v-model="userProfile.profileUser.language" :disabled="!userProfile.isProfileEditing" class="input-field h-[58px]">
<option value="en">English</option>
<option value="zh-CN">{{ $t('workspace.lang.zhCN') }}</option>
<option value="zh-TW">{{ $t('workspace.lang.zhTW') }}</option>
<option value="th">Thai</option>
</select>
</div>
<div>
<label class="mb-2 block text-sm font-medium text-muted">{{ $t('profile.theme') }}</label>
<div
class="segment-control segment-control--cols-3 segment-control--md"
role="radiogroup"
:aria-label="$t('profile.theme')"
>
<button
v-for="item in userProfile.themeOptions"
:key="item.value"
type="button"
role="radio"
:aria-checked="userProfile.profileUser.theme_preference === item.value"
:disabled="!userProfile.isProfileEditing"
class="segment-item"
:class="userProfile.profileUser.theme_preference === item.value ? 'segment-item--active' : ''"
@click="userProfile.profileUser.theme_preference = item.value"
>
{{ item.label() }}
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
@@ -0,0 +1,91 @@
/**
* features/workspace/api/voucherCheck.api.ts
* 用途:工作台立账凭证检核记录查询 API 客户端。
* 依赖:@/shared/api/client、getAuthHeaders。
* 逻辑:AccountingVoucherCheckView 调用;对应 /api/workspace/accounting-voucher-check/*。
*/
import { requestJson } from '@/shared/api/client';
import { getAuthHeaders } from '@/shared/utils/auth';
export interface VoucherCheckStateItem {
id: number;
scope_code: string;
period_month: string | null;
invoice_no: string;
invoice_date?: string | null;
status: string;
folder_path?: string | null;
folder_exists?: boolean;
matched_files?: Record<string, string>;
missing_materials?: Array<{ code?: string; name?: string }>;
last_checked_at?: string | null;
last_missing_notified_on?: string | null;
}
export interface VoucherCheckStatesResponse {
scope_code: string;
period: string;
page: number;
page_size: number;
total: number;
items: VoucherCheckStateItem[];
}
export interface VoucherCheckRunItemsResponse {
run_id: number;
run_no: string;
page: number;
page_size: number;
total: number;
items: Array<{
id: number;
invoice_no: string;
invoice_date?: string | null;
result: string;
folder_path?: string | null;
folder_exists?: boolean;
matched_files?: Record<string, string>;
missing_materials?: Array<{ code?: string; name?: string }>;
error_code?: string | null;
error_message?: string | null;
checked_at?: string | null;
}>;
}
/**
* 按月份/状态/发票号筛选最新检核状态。
*/
export function listVoucherCheckStates(params: {
period?: string;
status?: string;
invoice_no?: string;
page?: number;
page_size?: number;
}) {
const q = new URLSearchParams();
if (params.period) q.set('period', params.period);
if (params.status) q.set('status', params.status);
if (params.invoice_no) q.set('invoice_no', params.invoice_no);
if (params.page) q.set('page', String(params.page));
if (params.page_size) q.set('page_size', String(params.page_size));
const qs = q.toString();
return requestJson<VoucherCheckStatesResponse>(
`/api/workspace/accounting-voucher-check/states${qs ? `?${qs}` : ''}`,
{ headers: getAuthHeaders() },
);
}
/**
* 分页查询指定批次明细。
*/
export function listVoucherCheckRunItems(runId: number, params?: { result?: string; page?: number; page_size?: number }) {
const q = new URLSearchParams();
if (params?.result) q.set('result', params.result);
if (params?.page) q.set('page', String(params.page));
if (params?.page_size) q.set('page_size', String(params.page_size));
const qs = q.toString();
return requestJson<VoucherCheckRunItemsResponse>(
`/api/workspace/accounting-voucher-check/runs/${runId}/items${qs ? `?${qs}` : ''}`,
{ headers: getAuthHeaders() },
);
}
@@ -0,0 +1,13 @@
<script setup lang="ts">
/**
* features/workspace/pages/AccountingVoucherCheckPage.vue
* 用途:立账凭证检核工作台页面壳。
* 依赖:AccountingVoucherCheckView。
* 逻辑:路由懒加载入口。
*/
import AccountingVoucherCheckView from '../views/AccountingVoucherCheckView.vue';
</script>
<template>
<AccountingVoucherCheckView />
</template>
@@ -0,0 +1,255 @@
<script setup lang="ts">
/**
* features/workspace/views/AccountingVoucherCheckView.vue
* 用途:立账凭证检核记录页——按月筛选最新状态与缺资料票。
* 依赖:voucherCheck.api、vue-i18n、useMessage。
* 逻辑:路由 /workspace/accounting-voucher-check;企微 textcard 也可跳转至此。
*/
import { computed, onMounted, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { Loader2, RefreshCw, Search } from 'lucide-vue-next';
import { useMessage } from '@/shared/composables/useMessage';
import {
listVoucherCheckRunItems,
listVoucherCheckStates,
type VoucherCheckStateItem,
} from '../api/voucherCheck.api';
const { t } = useI18n();
const msg = useMessage();
const route = useRoute();
const loading = ref(false);
const items = ref<VoucherCheckStateItem[]>([]);
const total = ref(0);
const page = ref(1);
const pageSize = 50;
const period = ref('');
const status = ref('');
const invoiceNo = ref('');
const runIdFilter = ref<number | null>(null);
const runItems = ref<Awaited<ReturnType<typeof listVoucherCheckRunItems>>['items']>([]);
/**
* 默认检核月份(当前自然月 YYYY-MM)。
*/
function currentPeriod(): string {
const d = new Date();
const m = String(d.getMonth() + 1).padStart(2, '0');
return `${d.getFullYear()}-${m}`;
}
const statusOptions = computed(() => [
{ value: '', label: t('workspace.voucherCheck.statusAll') },
{ value: 'complete', label: t('workspace.voucherCheck.statusComplete') },
{ value: 'missing', label: t('workspace.voucherCheck.statusMissing') },
]);
/**
* 加载最新状态列表。
*/
async function loadStates() {
loading.value = true;
try {
const data = await listVoucherCheckStates({
period: period.value || undefined,
status: status.value || undefined,
invoice_no: invoiceNo.value || undefined,
page: page.value,
page_size: pageSize,
});
items.value = data.items || [];
total.value = data.total || 0;
if (data.period && !period.value) period.value = data.period;
} catch (e: any) {
msg.error(e?.message || t('workspace.voucherCheck.loadFailed'));
} finally {
loading.value = false;
}
}
/**
* 若 URL 带 run_id,额外加载该批次明细。
*/
async function loadRunItemsIfNeeded() {
const raw = route.query.run_id;
const id = Number(Array.isArray(raw) ? raw[0] : raw);
if (!Number.isFinite(id) || id <= 0) {
runIdFilter.value = null;
runItems.value = [];
return;
}
runIdFilter.value = id;
try {
const data = await listVoucherCheckRunItems(id, { page: 1, page_size: 100 });
runItems.value = data.items || [];
} catch (e: any) {
msg.error(e?.message || t('workspace.voucherCheck.loadFailed'));
}
}
function statusLabel(value: string) {
if (value === 'complete') return t('workspace.voucherCheck.statusComplete');
if (value === 'missing') return t('workspace.voucherCheck.statusMissing');
if (value === 'skipped') return t('workspace.voucherCheck.statusSkipped');
if (value === 'technical_error') return t('workspace.voucherCheck.statusTechError');
return value || '-';
}
function formatMissing(list?: Array<{ code?: string; name?: string }>) {
if (!list?.length) return '-';
return list.map((x) => x.name || x.code || '').filter(Boolean).join('、');
}
onMounted(async () => {
period.value = currentPeriod();
const qStatus = route.query.status;
if (typeof qStatus === 'string' && qStatus) status.value = qStatus;
await Promise.all([loadStates(), loadRunItemsIfNeeded()]);
});
watch(
() => route.query.run_id,
() => {
void loadRunItemsIfNeeded();
},
);
</script>
<template>
<div class="mx-auto flex h-full w-full max-w-6xl flex-col gap-4 p-4 md:p-6">
<header class="space-y-1">
<h1 class="text-xl font-semibold text-slate-800">{{ $t('workspace.voucherCheck.title') }}</h1>
<p class="text-sm text-slate-500">{{ $t('workspace.voucherCheck.subtitle') }}</p>
</header>
<section class="flex flex-wrap items-end gap-3 rounded-xl border border-slate-200 bg-white p-3">
<label class="flex flex-col gap-1 text-xs text-slate-500">
{{ $t('workspace.voucherCheck.period') }}
<input v-model="period" type="month" class="rounded-lg border border-slate-200 px-3 py-2 text-sm text-slate-800" />
</label>
<label class="flex flex-col gap-1 text-xs text-slate-500">
{{ $t('workspace.voucherCheck.status') }}
<select v-model="status" class="rounded-lg border border-slate-200 px-3 py-2 text-sm text-slate-800">
<option v-for="opt in statusOptions" :key="opt.value || 'all'" :value="opt.value">{{ opt.label }}</option>
</select>
</label>
<label class="flex min-w-[12rem] flex-1 flex-col gap-1 text-xs text-slate-500">
{{ $t('workspace.voucherCheck.invoiceNo') }}
<input
v-model="invoiceNo"
type="text"
class="rounded-lg border border-slate-200 px-3 py-2 text-sm text-slate-800"
:placeholder="$t('workspace.voucherCheck.invoicePlaceholder')"
@keyup.enter="page = 1; loadStates()"
/>
</label>
<button
type="button"
class="inline-flex items-center gap-1 rounded-lg bg-sky-600 px-3 py-2 text-sm font-medium text-white hover:bg-sky-700"
@click="page = 1; loadStates()"
>
<Search class="h-4 w-4" />
{{ $t('workspace.voucherCheck.search') }}
</button>
<button
type="button"
class="inline-flex items-center gap-1 rounded-lg border border-slate-200 px-3 py-2 text-sm text-slate-700 hover:bg-slate-50"
@click="loadStates()"
>
<RefreshCw class="h-4 w-4" />
{{ $t('workspace.voucherCheck.refresh') }}
</button>
</section>
<section v-if="runIdFilter" class="rounded-xl border border-amber-200 bg-amber-50/60 p-3">
<h2 class="mb-2 text-sm font-semibold text-amber-900">
{{ $t('workspace.voucherCheck.runItemsTitle', { runId: runIdFilter }) }}
</h2>
<div class="overflow-x-auto">
<table class="min-w-full text-left text-sm">
<thead class="text-xs text-slate-500">
<tr>
<th class="px-2 py-1">{{ $t('workspace.voucherCheck.invoiceNo') }}</th>
<th class="px-2 py-1">{{ $t('workspace.voucherCheck.result') }}</th>
<th class="px-2 py-1">{{ $t('workspace.voucherCheck.missing') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="row in runItems" :key="row.id" class="border-t border-amber-100">
<td class="px-2 py-1.5 font-medium text-slate-800">{{ row.invoice_no }}</td>
<td class="px-2 py-1.5">{{ statusLabel(row.result) }}</td>
<td class="px-2 py-1.5 text-slate-600">{{ formatMissing(row.missing_materials) }}</td>
</tr>
</tbody>
</table>
</div>
</section>
<section class="min-h-0 flex-1 overflow-hidden rounded-xl border border-slate-200 bg-white">
<div v-if="loading" class="flex items-center justify-center gap-2 py-16 text-sm text-slate-500">
<Loader2 class="h-4 w-4 animate-spin" />
{{ $t('workspace.voucherCheck.loading') }}
</div>
<div v-else-if="!items.length" class="py-16 text-center text-sm text-slate-500">
{{ $t('workspace.voucherCheck.empty') }}
</div>
<div v-else class="max-h-full overflow-auto">
<table class="min-w-full text-left text-sm">
<thead class="sticky top-0 bg-slate-50 text-xs text-slate-500">
<tr>
<th class="px-3 py-2">{{ $t('workspace.voucherCheck.invoiceNo') }}</th>
<th class="px-3 py-2">{{ $t('workspace.voucherCheck.invoiceDate') }}</th>
<th class="px-3 py-2">{{ $t('workspace.voucherCheck.status') }}</th>
<th class="px-3 py-2">{{ $t('workspace.voucherCheck.folder') }}</th>
<th class="px-3 py-2">{{ $t('workspace.voucherCheck.missing') }}</th>
<th class="px-3 py-2">{{ $t('workspace.voucherCheck.checkedAt') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="row in items" :key="row.id" class="border-t border-slate-100 hover:bg-slate-50/80">
<td class="px-3 py-2 font-medium text-slate-800">{{ row.invoice_no }}</td>
<td class="px-3 py-2 text-slate-600">{{ row.invoice_date || '-' }}</td>
<td class="px-3 py-2">
<span
class="inline-flex rounded-full px-2 py-0.5 text-xs font-medium"
:class="row.status === 'complete' ? 'bg-emerald-50 text-emerald-700' : 'bg-rose-50 text-rose-700'"
>
{{ statusLabel(row.status) }}
</span>
</td>
<td class="max-w-[16rem] truncate px-3 py-2 text-slate-600" :title="row.folder_path || ''">
{{ row.folder_path || '-' }}
</td>
<td class="px-3 py-2 text-slate-600">{{ formatMissing(row.missing_materials) }}</td>
<td class="px-3 py-2 text-slate-600">{{ row.last_checked_at || '-' }}</td>
</tr>
</tbody>
</table>
</div>
<div class="flex items-center justify-between border-t border-slate-100 px-3 py-2 text-xs text-slate-500">
<span>{{ $t('workspace.voucherCheck.totalCount', { total }) }}</span>
<div class="flex items-center gap-2">
<button
type="button"
class="rounded border border-slate-200 px-2 py-1 disabled:opacity-40"
:disabled="page <= 1 || loading"
@click="page -= 1; loadStates()"
>
{{ $t('workspace.voucherCheck.prevPage') }}
</button>
<span>{{ page }}</span>
<button
type="button"
class="rounded border border-slate-200 px-2 py-1 disabled:opacity-40"
:disabled="page * pageSize >= total || loading"
@click="page += 1; loadStates()"
>
{{ $t('workspace.voucherCheck.nextPage') }}
</button>
</div>
</div>
</section>
</div>
</template>
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -18,6 +18,8 @@
"passwordRequired": "Password cannot be empty",
"passwordRequiredHint": "Please enter your password",
"loginRequired": "Please login first",
"sessionExpired": "Sign-in expired",
"sessionExpiredHint": "Please sign in again to continue.",
"requestFailed": "Login request failed",
"forgotPassword": "Forgot Password?",
"newPassword": "New Password",
@@ -48,7 +50,7 @@
"authFailed": "Authentication failed, please try again",
"passwordPolicy": "New password does not meet security requirements",
"setPasswordFailed": "Failed to change password. Please try again or contact the administrator.",
"incorrectCurrentPassword": "Current password is incorrect",
"incorrectCurrentPassword": "Original: current password is incorrect. New: the password you entered is incorrect; please try again.",
"userNotInIdp": "Your account has not been registered in the authentication system. Please contact the administrator to sync your account before changing your password."
},
"casdoorDialogTitles": {
File diff suppressed because it is too large. Load diff
+13 -2
View File
@@ -8,6 +8,18 @@
"refresh": "Refresh",
"yes": "Yes",
"no": "No",
"app": {
"title": "Hexin AI Workspace",
"shortTitle": "AI Workspace",
"remoteLogout": "You have signed out in another tab"
},
"sso": {
"authorizing": "Opening the external system",
"authorizingHint": "Completing secure single sign-on. Please wait.",
"failed": "Single sign-on failed",
"invalidRequest": "The external login request is invalid or expired. Start again from the target system.",
"backToHxops": "Back to HXOPS"
},
"deleteDialog": {
"defaultTitle": "Are you sure you want to delete?",
"defaultMessage": "When clicked the OK button, this dialog will be closed after 1 second",
@@ -31,6 +43,5 @@
"unsorted": "Click to sort",
"asc": "Ascending, click for descending",
"desc": "Descending, click for ascending"
},
"required": "This field is required"
}
}
+19 -457
View File
@@ -1,213 +1,20 @@
{
"generic": "Request failed.",
"codes": {
"SHIPPING.FULFILLMENT_POLICY_INVALID": "The fulfillment policy or field capability binding is invalid.",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "The fulfillment policy was not found.",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "The fulfillment policy was changed by another administrator. Refresh and try again.",
"SHIPPING.FULFILLMENT_POLICY_NOT_PUBLISHED": "No executable fulfillment policy has been published.",
"SHIPPING.RESERVATION_PO_REQUIRED": "This reservation already exists. Provide the purchase order before continuing.",
"SHIPPING.RESERVATION_PO_CONFLICT": "This reservation is already used by a different purchase order. The duplicate order is blocked.",
"SHIPPING.RESERVATION_DUPLICATED_IN_ORDER": "The frozen order contains a duplicate reservation and cannot be frozen.",
"SHIPPING.RESERVATION_REVISION_REVIEW_REQUIRED": "The reservation content changed. Show the differences and obtain manual confirmation.",
"SHIPPING.RESERVATION_REVISION_LOCKED": "This reservation has an active shipment artifact or has been uploaded, so direct revision is forbidden.",
"SHIPPING_NOTICE.BATCH_FILE_LIMIT_EXCEEDED": "The number of uploaded files exceeds the system limit. Split the batch and try again.",
"SHIPPING_NOTICE.ORDER_TASK_REQUIRED_FOR_CONFIRM": "This order candidate has no order task yet, so confirmation cannot create a notice. Refresh and retry, or re-identify.",
"AGENT.EXPOSURE_ROLE_IMMUTABLE": "An application and an internal executor cannot be converted into each other.",
"AGENT.ADMIN_SCOPE_INVALID": "The application management tab parameter is invalid.",
"AGENT.INTERNAL_EXECUTOR_USER_ACCESS_FORBIDDEN": "Internal executors cannot be displayed, assigned, or accessed through user-facing APIs.",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_NOT_RETRYABLE": "Only failed order identification runs can be retried.",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_REASON_REQUIRED": "A reason is required to re-identify. Please provide one and try again.",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_NOT_ALLOWED": "Re-identify is not allowed in the current status. Open manual review, or retry only after the run has failed.",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_CASE_REQUIRED": "This file has no review case yet, so a new identification version cannot be created. Finish extraction to enter review, or retry only after the run has failed.",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_SOURCE_INVALID": "The linked extraction run is unavailable. Refresh and try again, or contact an administrator.",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_SNAPSHOT_OBSOLETE": "This run uses an obsolete input contract and cannot be retried. Send the email and attachments again to start a new run.",
"SHIPPING_NOTICE.ORDER_EXTRACTION_CONVERSATION_ACTIVE": "Order materials are still processing in this conversation. You may upload more files; check the side panel for progress.",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RETRY_WITHOUT_REUPLOAD": "Parsing failed. Retry from the failed step without re-uploading the original file.",
"SHIPPING_NOTICE.CANCEL_FORBIDDEN": "You are not allowed to cancel this order identification run.",
"SHIPPING_NOTICE.CANCEL_REASON_REQUIRED": "A reason is required when cancelling another user’s run.",
"SHIPPING_NOTICE.CANCEL_NOT_ACTIVE": "This run is finished or cannot be cancelled.",
"SHIPPING_NOTICE.CANCEL_CONFLICT": "The cancellation request conflicts with the current progress. Refresh and try again.",
"SHIPPING_NOTICE.CANCEL_FEATURE_DISABLED": "Order extraction cancel is disabled. Contact an administrator.",
"SHIPPING_NOTICE.AUDIT_EXPORT_FEATURE_DISABLED": "Audit export is disabled. Contact an administrator.",
"SHIPPING_NOTICE.AUDIT_PERSIST_FAILED": "Failed to persist the audit record. The operation was not completed. Please retry.",
"SHIPPING_NOTICE.AUDIT_METADATA_FORBIDDEN": "Audit write contains forbidden sensitive fields.",
"SHIPPING_NOTICE.AUDIT_SNAPSHOT_FORBIDDEN": "Audit snapshot contains forbidden sensitive fields.",
"SHIPPING_PROCESSING_PROJECTION_INCONSISTENT": "Order progress is inconsistent; fulfillment actions were blocked. Refresh and try again.",
"SHIPPING_PROCESSING_TASK_OWNERSHIP_MISMATCH": "The formal task does not match the current processing context. Refresh and try again.",
"SHIPPING_ORDER_SCHEMA_NOT_FOUND": "The order template has not been initialized.",
"SHIPPING_ORDER_SCHEMA_EXISTS": "The order template already exists.",
"SHIPPING_ORDER_SCHEMA_DRAFT_EXISTS": "An order template draft already exists. Complete or publish it first.",
"SHIPPING_ORDER_SCHEMA_VERSION_INVALID": "The order field version configuration is invalid.",
"SHIPPING_ORDER_SCHEMA_LOCK_VERSION_REQUIRED": "The order field draft is missing its version lock. Refresh and try again.",
"SHIPPING_ORDER_SCHEMA_VERSION_CONFLICT": "Another administrator changed this order field draft. The page will reload the latest version.",
"SHIPPING_ORDER_SCHEMA_VERSION_IMMUTABLE": "A published order field version cannot be modified.",
"SHIPPING_ORDER_SCHEMA_VERSION_NOT_FOUND": "The order field version was not found.",
"SHIPPING_ORDER_SCHEMA_VERSION_DELETE_BLOCKED": "Only a draft version can be deleted.",
"SHIPPING_ORDER_SCHEMA_PUBLISH_INVALID": "The current order field version cannot be published.",
"SHIPPING_ORDER_SCHEMA_PUBLISH_DEPENDENCY_BLOCKED": "This version removes order fields still referenced by inventory routes, parsing profiles, or Excel templates. Migrate those configurations first.",
"SHIPPING_ORDER_SCHEMA_NOT_PUBLISHED": "No usable order field version has been published.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_NOT_FOUND": "The order document parsing profile was not found.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_INVALID": "The order document parsing profile is invalid.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SCHEMA_INVALID": "The profile must bind to a published or retired order schema version.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_FIELD_INVALID": "The profile references an unavailable order line field.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_HEADER_CONTAMINATED": "The sample header contains order line data. Rebuild the table structure before creating a profile.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_UNAVAILABLE": "This table has no usable native or OCR character coordinates for logical line reconstruction.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_INVALID": "The coordinate reconstruction settings or result are invalid. Check the column boundaries and try again.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_FILE_TYPE_INVALID": "Only PDF or EML files are supported as profile samples.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_NOT_FOUND": "The sample document was not found. Refresh the candidate list and select it again.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_DELETE_BLOCKED": "This template sample is still parsing, referenced by a blind test, or its file is used elsewhere and cannot be deleted.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_IMMUTABLE": "A published order document parsing profile cannot be modified.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_LOCK_VERSION_REQUIRED": "The profile lock version is missing. Refresh and try again.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_VERSION_CONFLICT": "Another administrator changed the profile. Refresh and try again.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_REQUIRED": "An active editing lease is required. Refresh or take over the draft first.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_CONFLICT": "This draft is currently being edited in another browser session.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LOCK_VERSION_CONFLICT": "The draft changed on the server. Refresh and resolve the conflict before saving.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_REVISION_NOT_FOUND": "The requested draft revision was not found.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_VALIDATION_STALE": "This validation run no longer matches the current draft.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_INVALID": "The publish check is no longer valid. Run the checks again.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_CONSUMED": "This publish check has already been used.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_REQUIRED": "A valid layout signature is required before publication.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_STALE": "The layout signature is stale. Regenerate it before publishing.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_OVERLAP_DETECTED": "Cross-template overlap or uniqueness checks failed. Publication is blocked.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DRAFT_EXISTS": "This order document parsing profile already has a draft.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_INVALID": "The current order document parsing profile cannot be published.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_TRAINING": "Bind at least one training sample before publishing.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_BLIND_TEST": "Complete and approve an independent blind test for the current definition before publishing.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_MULTILINE": "The blind test must include at least one multi-line truth sample before publishing.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_CROSS_PAGE": "This cross-page profile requires a continuation-page blind test sample before publishing.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_NOT_INDEPENDENT": "A blind test sample cannot reuse a training or annotation sample.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_CONFLICT": "This document is already in the current blind test suite.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RETIRE_INVALID": "The current order document parsing profile cannot be retired.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DELETE_BLOCKED": "Only a draft order document parsing profile can be deleted.",
"SHIPPING_ORDER_DOCUMENT_PROFILE_CLONE_INVALID": "A new draft can only be created from a published or retired version.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_INVALID": "The auto-freeze qualification scope is invalid. Check the customer scope, business scenarios, and confirmation requirement.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_NOT_FOUND": "The auto-freeze qualification record for the current profile version was not found.",
"SHIPPING_ORDER_FIELD_INVALID": "The order field code, scope, or type is invalid.",
"SHIPPING_ORDER_FIELD_NOT_FOUND": "The order field was not found.",
"SHIPPING_ORDER_FIELD_IMMUTABLE": "Order field code, scope, and type are immutable after publication.",
"SHIPPING_ORDER_FIELD_CONFLICT": "The order field code already exists.",
"SHIPPING_ORDER_FIELD_RETIRE_BLOCKED": "The order field is referenced by a draft version or runtime configuration and cannot be retired.",
"SHIPPING_IDENTITY_DEFINITION_NOT_FOUND": "Customer identity definition was not found.",
"SHIPPING_IDENTITY_DEFINITION_INVALID": "The customer identity definition or its source field is invalid.",
"SHIPPING_IDENTITY_DEFINITION_CONFLICT": "The customer identity definition conflicts with existing configuration.",
"SHIPPING_IDENTITY_BUILTIN_IMMUTABLE": "A built-in customer identity definition cannot be changed or retired.",
"SHIPPING_IDENTITY_ORDER_FIELD_INVALID": "The identity source must be a currently published order-header text field.",
"SHIPPING_IDENTITY_AUTOMATION_FORBIDDEN": "This identity definition or evidence cannot auto-confirm.",
"SHIPPING_IDENTITY_RULE_SET_NOT_FOUND": "Customer identity rule set was not found.",
"SHIPPING_IDENTITY_RULE_SET_INVALID": "Customer identity rule set configuration is invalid.",
"SHIPPING_IDENTITY_RULE_SET_IMMUTABLE": "A published customer identity rule set cannot be changed.",
"SHIPPING_IDENTITY_RULE_SET_CONFLICT": "The customer identity rule set was changed by another administrator or cannot be published.",
"SHIPPING_IDENTITY_TARGET_INVALID": "The customer identity evidence target is invalid or inactive.",
"SHIPPING_IDENTITY_EVIDENCE_VALUE_REQUIRED": "Customer identity evidence value is required.",
"SHIPPING_IDENTITY_EVIDENCE_INVALID": "Customer identity evidence status is invalid.",
"SHIPPING_IDENTITY_EVIDENCE_CONFLICT": "This customer identity evidence already exists.",
"SHIPPING_IDENTITY_EVIDENCE_NOT_FOUND": "Customer identity evidence was not found.",
"SHIPPING_CUSTOMER_LEGACY_IDENTIFIER_WRITE_DISABLED": "Fixed-type identity evidence is no longer writable. Use a published identity definition to create or update configured evidence.",
"AUTH_UNAUTHORIZED": "Please log in first.",
"SHIPPING_CUSTOMER_DELETE_REASON_REQUIRED": "A reason is required to delete a customer permanently.",
"SHIPPING_CUSTOMER_DELETE_CONFIRMATION_INVALID": "The deletion confirmation short code is incorrect.",
"SHIPPING_CUSTOMER_DELETE_BLOCKED": "The customer has business or audit references and cannot be deleted permanently.",
"SHIPPING_CUSTOMER_MERGED_LOCKED": "The customer has been merged and cannot be used for new business or edited.",
"SHIPPING_CUSTOMER_MERGE_TARGET_REQUIRED": "Select a target customer to merge into.",
"SHIPPING_CUSTOMER_MERGE_TARGET_INVALID": "The merge target customer must be active.",
"SHIPPING_CUSTOMER_MERGE_SAME_CUSTOMER": "The source and target customers must differ.",
"SHIPPING_CUSTOMER_MERGE_SOURCE_ALREADY_MERGED": "The source customer has already been merged.",
"SHIPPING_CUSTOMER_MERGE_REASON_REQUIRED": "A reason is required to merge customers.",
"SHIPPING_CUSTOMER_MERGE_CONFIRMATION_INVALID": "The source customer short code for merge confirmation is incorrect.",
"AUTH_INCORRECT_PASSWORD": "Incorrect password",
"AUTH_INCORRECT_CURRENT_PASSWORD": "Incorrect current password",
"AUTH_INCORRECT_CURRENT_PASSWORD": "The current password you entered is incorrect. Please try again.",
"AUTH_USER_NOT_FOUND": "User not found",
"AUTH_ACCOUNT_DISABLED": "Account is disabled",
"AUTH_CASDOOR_IDENTITY_INVALID": "Casdoor did not return a stable user identity. Check the OIDC configuration.",
"AUTH_SSO_CONFIG_ERROR": "The SSO application configuration is invalid. Contact an administrator.",
"AUTH_SSO_APP_NOT_FOUND": "The target system is not configured or is disabled.",
"AUTH_SSO_IDENTITY_UNSUPPORTED": "The current session is not backed by Casdoor. Log in again and retry.",
"AUTH_SSO_ASSERTION_ISSUE_FAILED": "The peer-service login assertion could not be issued. Please retry.",
"AUTH_FORBIDDEN": "You do not have permission to perform this action.",
"SHIPPING_TASK_SELECTION_INVALID": "Select between 1 and 100 shipping tasks.",
"SHIPPING_TASK_DELETE_REASON_REQUIRED": "A reason is required to delete or void tasks.",
"SHIPPING_TASK_EXTERNAL_VOID_BLOCKED": "The task is uploading externally or has been uploaded. It can only be archived.",
"SHIPPING_TASK_ALREADY_DELETED": "The task is already in the recycle bin.",
"SHIPPING_TASK_RESTORE_BLOCKED": "A voided or archived task cannot be restored from the recycle bin.",
"SHIPPING_TASK_LIFECYCLE_CONFLICT": "The task lifecycle does not allow this action.",
"SHIPPING_TASK_PURGE_BLOCKED": "The task has business or audit references and cannot be permanently deleted.",
"SHIPPING_TASK_PURGE_REASON_REQUIRED": "A reason is required to permanently delete tasks.",
"RESOURCE_NOT_FOUND": "The requested resource was not found.",
"RESOURCE_CONFLICT": "Request conflict. Please refresh and try again.",
"VALIDATION_INVALID_PARAM": "Invalid request parameters.",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_NOT_FOUND": "The external system warehouse mapping was not found.",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_CONFLICT": "An active external system warehouse mapping already exists for this inventory source and freight warehouse.",
"SHIPPING_INVENTORY_SOURCE_CONFIG_INVALID": "The inventory source report path, query parameters, or aliases are invalid.",
"SHIPPING_RPA_PROFILE_CONFIG_INVALID": "The freight login connection configuration is invalid; only username and password authentication is currently supported.",
"SHIPPING_EXCEL_TEMPLATE_ASSET_INVALID": "The Excel template file is invalid or cannot be read.",
"SHIPPING_EXCEL_TEMPLATE_DEFINITION_INVALID": "The Excel template mapping definition is invalid.",
"SHIPPING_EXCEL_TEMPLATE_DELETE_BLOCKED": "Only draft Excel templates can be deleted.",
"SHIPPING_EXCEL_TEMPLATE_DRAFT_EXISTS": "This template already has a draft version.",
"SHIPPING_EXCEL_TEMPLATE_FIELD_INVALID": "The Excel template field mapping is invalid.",
"SHIPPING_EXCEL_TEMPLATE_IMMUTABLE": "Published or retired Excel templates cannot be modified.",
"SHIPPING_EXCEL_TEMPLATE_INVALID": "The Excel template configuration is invalid.",
"SHIPPING_EXCEL_TEMPLATE_NOT_FOUND": "The Excel template was not found.",
"SHIPPING_EXCEL_TEMPLATE_PUBLISH_INVALID": "This Excel template cannot be published.",
"SHIPPING_EXCEL_TEMPLATE_REQUIRED": "A published Excel template is required before enabling an inventory source.",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_BLOCKED": "The Excel template is still referenced by an inventory source and cannot be retired.",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_INVALID": "This Excel template cannot be retired.",
"SHIPPING_EXCEL_TEMPLATE_TARGET_DUPLICATE": "The Excel template contains duplicate target cell mappings.",
"SHIPPING_EXPORT_ARCHIVE_EMPTY": "The selected tasks have no export files available for download.",
"SHIPPING_EXPORT_ARCHIVE_NOT_FOUND": "No export file is available for download.",
"SHIPPING_EXPORT_ARCHIVE_SELECTION_INVALID": "The batch download task selection is invalid.",
"SHIPPING_EXPORT_ARCHIVE_TOO_LARGE": "A batch download supports at most 100 tasks.",
"SHIPPING_INVENTORY_PARSING_PROFILE_DELETE_BLOCKED": "Only draft inventory parsing profiles can be deleted.",
"SHIPPING_INVENTORY_PARSING_PROFILE_IMMUTABLE": "Published or retired inventory parsing profiles cannot be modified.",
"SHIPPING_INVENTORY_PARSING_PROFILE_INVALID": "The inventory parsing profile is invalid.",
"SHIPPING_INVENTORY_PARSING_PROFILE_NOT_FOUND": "The inventory parsing profile was not found.",
"SHIPPING_INVENTORY_PARSING_PROFILE_PUBLISH_INVALID": "This inventory parsing profile cannot be published.",
"SHIPPING_INVENTORY_PARSING_PROFILE_REQUIRED": "A published inventory parsing profile is required before enabling an inventory source.",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_BLOCKED": "The inventory parsing profile is still referenced by an inventory source and cannot be retired.",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_INVALID": "This inventory parsing profile cannot be retired.",
"SHIPPING_INVENTORY_FIELD_CONFLICT": "The inventory field name already exists.",
"SHIPPING_INVENTORY_FIELD_DELETE_BLOCKED": "This inventory field is core or still referenced by configuration, so it cannot be deleted or retired.",
"SHIPPING_INVENTORY_FIELD_IMMUTABLE": "A retired inventory field cannot be edited, and a core field's format and purpose are immutable.",
"SHIPPING_INVENTORY_FIELD_INVALID": "The inventory field information is incomplete or invalid.",
"SHIPPING_INVENTORY_FIELD_NOT_FOUND": "The inventory field was not found.",
"SHIPPING_INVENTORY_FIELD_RETIRE_BLOCKED": "This inventory field is still referenced by configuration and cannot be retired.",
"SHIPPING_INVENTORY_RULE_CONDITION_INVALID": "The inventory routing rule condition is invalid.",
"SHIPPING_INVENTORY_RULE_CONDITIONS_REQUIRED": "An inventory routing rule requires at least one condition.",
"SHIPPING_INVENTORY_RULE_CONFLICT": "The inventory routing rule name or priority conflicts with another rule.",
"SHIPPING_INVENTORY_RULE_DELETE_BLOCKED": "Only draft inventory routing rules can be deleted.",
"SHIPPING_INVENTORY_RULE_IMMUTABLE": "Published inventory routing rules cannot be modified.",
"SHIPPING_INVENTORY_RULE_INVALID": "The inventory routing rule configuration is invalid.",
"SHIPPING_INVENTORY_RULE_NOT_FOUND": "The inventory routing rule was not found.",
"SHIPPING_INVENTORY_RULE_PUBLISH_INVALID": "This inventory routing rule cannot be published.",
"SHIPPING_INVENTORY_RULE_SOURCE_INVALID": "The inventory routing rule references an unavailable inventory source.",
"SHIPPING_INVENTORY_RULE_RETIRE_INVALID": "This inventory routing rule cannot be retired.",
"SHIPPING_INVENTORY_SOURCE_DELETE_BLOCKED": "The inventory source is still referenced by business data and cannot be deleted.",
"SHIPPING_INVENTORY_SOURCE_NOT_FOUND": "The inventory source was not found.",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_REQUIRED": "Complete the test export and activation checks before enabling the inventory site.",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_BLOCKED": "The inventory site has not completed its production readiness checks and cannot be enabled.",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_REQUIRED": "Select an inventory sample file.",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_TOO_LARGE": "The inventory sample file exceeds the 20 MB limit.",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_INVALID": "The inventory sample file cannot be recognised. Check its format and headers.",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_NOT_FOUND": "The inventory file structure recognition record was not found.",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_SELECTION_INVALID": "The selected worksheet, header, or source column is not in the inventory file recognition result.",
"SHIPPING_TEMP_INVENTORY_CONTEXT_INVALID": "The current conversation context cannot process a temporary inventory file.",
"SHIPPING_TEMP_INVENTORY_ASSET_REQUIRED": "Upload an inventory file first.",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_FOUND": "No inventory file is available in this conversation.",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_READY": "The inventory file is still uploading. Try again shortly.",
"SHIPPING_TEMP_INVENTORY_FILE_TYPE_INVALID": "Temporary inventory files must be .xls, .xlsx, or .csv.",
"SHIPPING_TEMP_INVENTORY_FILE_TOO_LARGE": "The temporary inventory file exceeds the 20 MB limit.",
"SHIPPING_TEMP_INVENTORY_ANALYSIS_INVALID": "The inventory file structure could not be recognized. Check its format and headers.",
"SHIPPING_TEMP_INVENTORY_SESSION_NOT_FOUND": "The temporary inventory session does not exist, has expired, or is not accessible.",
"SHIPPING_TEMP_INVENTORY_MAPPING_STATE_INVALID": "This temporary inventory session cannot accept another mapping suggestion.",
"SHIPPING_TEMP_INVENTORY_MAPPING_INVALID": "The inventory mapping suggestion is invalid, incomplete, or uses columns not in the file.",
"SHIPPING_TEMP_INVENTORY_CONFIRMATION_INVALID": "Temporary inventory confirmation requirements are not met. Select a recommended profile or mapping again.",
"SHIPPING_TEMP_INVENTORY_QUALITY_INVALID": "The temporary inventory file did not pass part number, reservation ID, or available quantity validation.",
"SHIPPING_TEMP_INVENTORY_SESSION_EXPIRED": "The temporary inventory session has expired. Upload the file again.",
"SHIPPING_TEMP_INVENTORY_TASK_NOT_FOUND": "No shipping task in this conversation can use the temporary inventory.",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_INVALID": "Run the test export while the inventory site is disabled.",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_UNAVAILABLE": "The RPA Worker is unavailable and cannot start a test export.",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_FOUND": "The inventory site test export record was not found.",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_READY": "The test export has not completed and its parsing plan cannot be confirmed.",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_STALE": "The inventory site configuration changed. Run the test export again.",
"SHIPPING_RPA_PROFILE_CONFLICT": "The freight login profile name already exists.",
"SHIPPING_RPA_PROFILE_DELETE_BLOCKED": "The freight login profile is still referenced by an inventory source and cannot be deleted.",
"SHIPPING_RPA_PROFILE_DISABLE_BLOCKED": "The freight login profile is still referenced by an enabled inventory source and cannot be disabled.",
"SHIPPING_RPA_PROFILE_DISABLED": "Enable the freight login profile before enabling its inventory source.",
"SHIPPING_RPA_PROFILE_NOT_FOUND": "The freight login profile was not found.",
"USER_USERNAME_REQUIRED": "Username is required.",
"USER_USERNAME_EXISTS": "Username already exists.",
"USER_EMAIL_INVALID": "Invalid email format.",
@@ -217,12 +24,6 @@
"USER_UNIQUENESS_CONFLICT": "Data uniqueness conflict.",
"SYSTEM_INTERNAL_ERROR": "Internal server error. Please try again later.",
"AGENT_HANDLER_NOT_CONFIGURED": "Agent business handler is not configured. Please contact an administrator.",
"AGENT_RUNTIME_CAPABILITY_NOT_DECLARED": "This application type does not declare the requested background business capability.",
"AGENT_RUNTIME_BINDING_CONFIG_INVALID": "The background business capability timeout or retry configuration is invalid.",
"AGENT_RUNTIME_PROVIDER_DISABLED": "The selected internal capability provider is disabled.",
"AGENT_RUNTIME_PROVIDER_INVALID": "The selected application does not meet the provider requirements for this capability.",
"AGENT_RUNTIME_PROVIDER_CONFIG_INCOMPLETE": "The internal provider is missing its Dify App ID, API base URL, or API key.",
"AGENT_RUNTIME_PROVIDER_DELETE_BLOCKED": "This application is referenced by a runtime binding or historical run and cannot be deleted.",
"SYSTEM_HTTP_ERROR": "Request failed.",
"WECOM_RESET_NOT_CONFIGURED": "WeCom password reset is not configured. Enable WeCom under Admin → WeCom → System Settings and fill Corp ID, Agent ID, and Secret.",
"WECOM_NOTIFY_DISABLED": "WeCom notifications are disabled. Enable them under Admin → WeCom → Notify Settings.",
@@ -249,15 +50,15 @@
"FILE_ASSET_SIZE_EXCEEDED": "File size exceeds the limit.",
"FILE_ASSET_EXPIRED": "File asset has expired.",
"FILE_ASSET_ALREADY_REFERENCED": "File asset is already referenced and cannot be deleted.",
"PROCUREMENT_CONTRACT_TEMPLATE_REFERENCED": "This template is referenced by review history and cannot be deleted. Disable it instead.",
"PROCUREMENT_CONTRACT_INVALID_COMPARISON_REGION_CONFIG": "The comparison region configuration is invalid. Check fields, anchors, and attachment policy.",
"PROCUREMENT_CONTRACT_COMPARISON_REGION_PREVIEW_FAILED": "Comparison regions could not be recognized from the template file.",
"FILE_ASSET_INVALID_STATUS": "File asset status does not allow this operation.",
"SHIPPING_NOTICE_INTAKE_NOT_FOUND": "Shipping notice intake not found.",
"SHIPPING_NOTICE_INTAKE_PARSE_PENDING": "Shipping notice is still parsing. Please wait before confirming the batch.",
"SHIPPING_NOTICE_INTAKE_PARSE_FAILED": "Shipping notice parse failed. Retry or remove and upload again.",
"SHIPPING_NOTICE_INTAKE_PARSE_TIMEOUT": "Shipping notice parsing timed out. Retry or remove and upload again.",
"SHIPPING_NOTICE_INTAKE_STAGE2_PERSIST_FAILED": "Saving preprocessed email or attachment documents failed. Retry parsing.",
"SHIPPING_NOTICE_INTAKE_ATTACHMENTS_INCOMPLETE": "Shipping notice attachments are incomplete. Retry parse or remove and upload again.",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "This file is already being handled. View the existing result instead of submitting it again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_CONSUMED": "This file already has an order-processing result. View it or use recognition again.",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "Shipping notice intake has already been consumed.",
"SHIPPING_NOTICE_INTAKE_EXPIRED": "Shipping notice intake has expired.",
"SHIPPING_NOTICE_INTAKE_INVALID_STATUS": "Current intake status does not allow this operation.",
"SHIPPING_NOTICE_DUPLICATE_RESOLUTION_REQUIRED": "A duplicate shipping notice was detected. Choose how to proceed.",
@@ -269,252 +70,13 @@
"SHIPPING_NOTICE_REVISION_ALREADY_EXISTS": "A later revision of this task already exists.",
"SHIPPING_NOTICE_REVISION_CONFLICT": "A revision of this task already exists. Open the existing revision or re-check.",
"SHIPPING_NOTICE_FINGERPRINT_UNAVAILABLE": "A reliable business fingerprint could not be generated; only file-hash dedupe applies.",
"SHIPPING_NOTICE_CANDIDATE_NOT_FOUND": "The order candidate was not found.",
"SHIPPING_NOTICE_CANDIDATE_ALREADY_CONSUMED": "The order candidate has already created a task and cannot be changed.",
"SHIPPING_NOTICE_CANDIDATE_NOT_SELECTED": "The order candidate is not selected.",
"SHIPPING_NOTICE_CANDIDATE_REVIEW_REQUIRED": "The order candidate still requires manual review.",
"SHIPPING_NOTICE_CANDIDATE_DOCUMENT_INVALID": "The order candidate's primary attachment is invalid.",
"SHIPPING_NOTICE_CANDIDATE_SELECTION_CHANGED": "The order candidate selection changed. Refresh and try again.",
"SHIPPING_NOTICE_DUPLICATE_ACTION_UNAVAILABLE": "This duplicate action is not allowed for the current state.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONTEXT_INVALID": "The order extraction context is invalid. Retry from the failed step or resubmit the current materials.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PENDING": "Email preprocessing is incomplete or order extraction is still in progress.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_LAYOUT_PENDING": "Order attachment layout parsing is still in progress. Please wait before sending.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_COMPLETED": "The order extraction result has already been saved. Review the candidates or existing tasks.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INVALID_RESULT": "The extracted order result does not match the contract. Parse it again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_FAILED": "Order identification failed. Retry from the failed step without re-uploading.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_NOT_FOUND": "The shipping agent was not found.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_INVALID": "Select an active shipping notice agent.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_FORBIDDEN": "You do not have permission to use this shipping agent.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_REQUIRED": "The order extraction conversation is required.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_NOT_FOUND": "The order extraction conversation was not found.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_MISMATCH": "The selected attachment does not belong to this conversation.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INTAKES_INVALID": "Select between 1 and 50 valid shipping notice attachments.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_ACTIVE": "An order extraction run is already active for a selected attachment.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_NOT_FOUND": "The order extraction run was not found or is not accessible.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_TRANSITION_INVALID": "The order extraction run status changed. Refresh and try again.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_NOT_CONFIGURED": "The freight application has no enabled order extraction Workflow binding. Ask an administrator to configure it.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_INVALID_RESPONSE": "The order extraction Workflow returned data that does not match the structured contract.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_FAILED": "The order extraction Workflow request failed. The system will retry according to policy.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_CHANGED": "The order extraction Workflow application or address changed. Start a new run.",
"SHIPPING_NOTICE_ORDER_EXTRACTION_TIMEOUT": "The order extraction Workflow timed out. The system will retry according to policy.",
"SHIPPING_NOTICE_CANDIDATE_SOURCE_CHANGED": "The email or attachment content changed. Send it again to re-extract orders.",
"SHIPPING_CUSTOMER_IMPORT_SOURCE_INVALID": "The source system code is invalid or too long.",
"SHIPPING_CUSTOMER_IMPORT_TOO_MANY_ROWS": "The import exceeds the row limit.",
"SHIPPING_CUSTOMER_IMPORT_KEY_INVALID": "The legacy customer key exceeds the length limit.",
"SHIPPING_CUSTOMER_IMPORT_NAME_TOO_LONG": "The standard customer name exceeds the length limit.",
"SHIPPING_CUSTOMER_SHADOW_NOT_FOUND": "Shadow resolution sample not found.",
"SHIPPING_CUSTOMER_SHADOW_LABEL_REQUIRED": "Select a standard customer as the human label.",
"SHIPPING_CUSTOMER_CONFIRMATION_REQUIRED": "The standard customer is not confirmed. Select the official customer first.",
"SHIPPING_CUSTOMER_REQUIRED_BEFORE_TASK": "Customer must be confirmed before creating a task. Select a standard customer first.",
"SHIPPING_CUSTOMER_CONFIRMATION_CUSTOMER_REQUIRED": "Select a standard customer.",
"SHIPPING_CUSTOMER_CASE_REQUIRED": "The shipping task is missing its required business case and cannot confirm a customer.",
"SHIPPING_NOTICE_REVISION_CASE_MISSING": "The revision target is missing its required business case and cannot create a revision.",
"SHIPPING_CUSTOMER_INACTIVE": "The selected customer is inactive.",
"SHIPPING_CUSTOMER_NUMBERED_CASE_LOCKED": "A numbered business case cannot silently change customer.",
"SHIPPING_FIELD_CONFLICT_NOT_FOUND": "Order field conflict not found.",
"SHIPPING_FIELD_CONFLICT_ALREADY_RESOLVED": "This field conflict is already resolved.",
"SHIPPING_FIELD_CONFLICT_VERSION_MISMATCH": "Field conflict version changed. Refresh and try again.",
"SHIPPING_ORDER_DATA_VERSION_MISMATCH": "Order data version changed. Refresh and try again.",
"SHIPPING_ORDER_FIELD_EDIT_FORBIDDEN": "This field cannot be edited on the formal task.",
"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_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.",
"SHIPPING_CUSTOMER_SHORT_CODE_INVALID": "Customer short code must contain 2-6 letters.",
"SHIPPING_CUSTOMER_SHORT_CODE_EXISTS": "Customer short code already exists.",
"SHIPPING_CUSTOMER_STATUS_INVALID": "Invalid customer status.",
"SHIPPING_CUSTOMER_CONFLICT": "Customer data conflict.",
"SHIPPING_CUSTOMER_IDENTIFIER_TYPE_INVALID": "Invalid identifier type.",
"SHIPPING_CUSTOMER_IDENTIFIER_VALUE_REQUIRED": "Identifier value is required.",
"SHIPPING_CUSTOMER_EMAIL_INVALID": "Invalid customer email.",
"SHIPPING_CUSTOMER_DOMAIN_INVALID": "Invalid customer domain.",
"SHIPPING_CUSTOMER_IDENTIFIER_STATUS_INVALID": "Invalid identifier status.",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_FOUND": "Identifier not found.",
"SHIPPING_CUSTOMER_IDENTIFIER_EXISTS": "Identifier already exists.",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_APPROVED": "Only approved identifiers can enable automatic matching.",
"SHIPPING_CUSTOMER_PUBLIC_DOMAIN_AUTO_MATCH_FORBIDDEN": "Public email domains cannot be used for automatic matching.",
"SHIPPING_CUSTOMER_EXTERNAL_REF_CONFLICT": "The legacy customer key is bound to another customer.",
"SHIPPING_CUSTOMER_IMPORT_FILE_REQUIRED": "Select an import file.",
"SHIPPING_CUSTOMER_IMPORT_FILE_TYPE_INVALID": "Only .xlsx files are supported.",
"SHIPPING_CUSTOMER_IMPORT_FILE_EMPTY": "The import file is empty.",
"SHIPPING_CUSTOMER_IMPORT_FILE_TOO_LARGE": "The import file exceeds 5 MB.",
"SHIPPING_CUSTOMER_IMPORT_FILE_INVALID": "Invalid import workbook.",
"SHIPPING_CUSTOMER_IMPORT_SHEET_MISSING": "A required worksheet is missing.",
"SHIPPING_CUSTOMER_IMPORT_COLUMNS_MISSING": "Required import columns are missing.",
"SHIPPING_CUSTOMER_IMPORT_KEY_REQUIRED": "Legacy customer key is required.",
"SHIPPING_CUSTOMER_IMPORT_DUPLICATE_KEY": "Duplicate legacy key in the same source.",
"SHIPPING_CUSTOMER_IMPORT_SHORT_CODE_CONFLICT": "Short code conflicts with an existing customer.",
"SHIPPING_CUSTOMER_IMPORT_NAME_MATCH": "Customer name may duplicate an existing customer.",
"SHIPPING_CUSTOMER_IMPORT_IDENTIFIER_CUSTOMER_MISSING": "No customer mapping was found for this identifier.",
"SHIPPING_CUSTOMER_IMPORT_NOT_FOUND": "Import batch not found.",
"SHIPPING_CUSTOMER_IMPORT_ROW_NOT_FOUND": "Import row not found.",
"SHIPPING_CUSTOMER_IMPORT_DECISION_INVALID": "Invalid import row action.",
"SHIPPING_CUSTOMER_IMPORT_TARGET_REQUIRED": "Select a target customer for update or merge.",
"SHIPPING_CUSTOMER_IMPORT_HAS_ERRORS": "The import batch contains blocking errors.",
"SHIPPING_CUSTOMER_IMPORT_DECISIONS_REQUIRED": "Resolve all warning rows first.",
"SHIPPING_CUSTOMER_IMPORT_ALREADY_PUBLISHED": "The import batch is already published.",
"SHIPPING_CUSTOMER_IMPORT_UPLOAD_CONFLICT": "A conflict occurred while staging the import.",
"SHIPPING_CUSTOMER_IMPORT_PUBLISH_CONFLICT": "A data conflict occurred while publishing the import.",
"SHIPPING.ORDER_SCHEMA_PROFILE_IMPACT_CONFIRM_REQUIRED": "This order field version affects existing document profiles. Confirm the impact before publishing.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_INVALID": "The order document profile field migration is invalid.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_REQUIRED": "Resolve every affected field before creating the migration draft.",
"SHIPPING_REVIEW_CASE_NOT_FOUND": "The order review case was not found or is not accessible.",
"SHIPPING_REVIEW_CASE_NOT_EDITABLE": "This order review is finished and can no longer be edited.",
"SHIPPING_REVIEW_DRAFT_VERSION_REQUIRED": "A valid draft version is required.",
"SHIPPING_REVIEW_DRAFT_VERSION_MISMATCH": "The draft was updated in another window. Refresh and try again.",
"SHIPPING_REVIEW_FIELD_INVALID": "The review field is not in this order's frozen schema.",
"SHIPPING_REVIEW_FIELD_CONFLICT_NOT_FOUND": "Pre-build field conflict was not found or is already resolved.",
"SHIPPING_REVIEW_FIELD_CONFLICT_OPTION_INVALID": "Select a valid conflict option.",
"SHIPPING_REVIEW_FIELD_CONFLICT_VALUE_REQUIRED": "Enter a custom field value.",
"SHIPPING_REVIEW_FIELD_CONFLICT_FIELD_UNKNOWN": "Conflict field is not in the frozen schema.",
"SHIPPING_REVIEW_FIELD_CONFLICT_LINE_MISSING": "The conflict line is missing from the draft.",
"SHIPPING_REVIEW_DUPLICATE_CANDIDATE_MISSING": "The review case has no order candidate for duplicate handling.",
"SHIPPING_REVIEW_INVENTORY_CANDIDATES_INVALID": "Manual inventory source candidates are invalid. Select enabled sources and provide a reason.",
"SHIPPING_REVIEW_INVENTORY_ROUTING_ADOPT_INVALID": "Cannot adopt the rule suggestion: this line has no valid pending rule result.",
"SHIPPING_REVIEW_INVENTORY_ROUTING_KEEP_INVALID": "Cannot keep the manual result: this line has no pending rule suggestion.",
"SHIPPING_REVIEW_BUILD_ELIGIBILITY_BLOCKED": "Build eligibility failed. Resolve blocking issues or inventory candidates before confirming.",
"SHIPPING_REVIEW_LINE_NOT_FOUND": "The order line was not found or was deleted.",
"SHIPPING_REVIEW_DOCUMENT_NOT_FOUND": "The review PDF does not exist or is not accessible.",
"SHIPPING_REVIEW_MANUAL_DRAFT_ALREADY_HAS_CANDIDATE": "This PDF already has a machine order and cannot create a manual order.",
"SHIPPING_REVIEW_DRAFT_NOT_FOUND": "The order draft does not exist.",
"SHIPPING_REVIEW_DISPOSITION_NOT_ALLOWED": "This PDF is already finalized and its disposition cannot be changed.",
"SHIPPING_REVIEW_NON_ORDER_REASON_INVALID": "The non-order reason is invalid.",
"SHIPPING_REVIEW_QUALITY_REASON_INVALID": "The file quality issue reason is invalid.",
"SHIPPING_REVIEW_REPARSE_NOT_ALLOWED": "This PDF cannot be reparsed.",
"SHIPPING_REVIEW_REPARSE_REASON_INVALID": "The reparse reason is invalid.",
"SHIPPING_REVIEW_REPARSE_SOURCE_INVALID": "The source for reparsing this PDF is unavailable.",
"SHIPPING_REVIEW_REPARSE_PENDING": "This PDF is already being reparsed.",
"SHIPPING_REVIEW_REPLACEMENT_NOT_ALLOWED": "A replacement file cannot be used for this PDF now.",
"SHIPPING_REVIEW_REPLACEMENT_FILE_INVALID": "The replacement file must be a PDF.",
"SHIPPING_REVIEW_REPLACEMENT_NOT_FOUND": "The replacement intake does not exist or is not accessible.",
"SHIPPING_REVIEW_REPLACEMENT_PENDING": "The replacement PDF is still parsing. Try again later.",
"SHIPPING_REVIEW_REPLACEMENT_DOCUMENT_INVALID": "The replacement file must contain exactly one PDF.",
"SHIPPING_REVIEW_WARNING_ACK_INVALID": "The warning acknowledgements are invalid.",
"SHIPPING_REVIEW_CONFIRM_NOT_ALLOWED": "This order review cannot be confirmed now.",
"SHIPPING_REVIEW_DUPLICATE_RESOLUTION_REQUIRED": "This order may be a duplicate. Resolve it through the duplicate workflow first.",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_REQUIRED": "The confirmation request is missing an idempotency key. Please try again.",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_CONFLICT": "The confirmation request conflicts with an existing request. Refresh and try again.",
"SHIPPING_REVIEW_CONFIRM_VALIDATION_FAILED": "The draft has not passed complete validation and cannot be confirmed.",
"SHIPPING_REVIEW_CONFIRM_DOCUMENT_INVALID": "The review PDF is unavailable and cannot be confirmed.",
"SHIPPING_REVIEW_QUALITY_COMMENT_REQUIRED": "A comment is required when the quality issue reason is Other.",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_CLOSE_REASON_REQUIRED": "A reason is required to cancel this work item.",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_LOCK_VERSION_INVALID": "The work item version is invalid. Refresh and try again.",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_VERSION_CONFLICT": "The work item was updated by another operation. Refresh and try again.",
"SHIPPING.PROCESS_EXECUTION_NOT_FOUND": "The process execution was not found.",
"SHIPPING.PROCESS_GATE_NOT_FOUND": "The process gate was not found.",
"SHIPPING.PROCESS_GATE_ACTION_INVALID": "The process gate recovery action is invalid.",
"SHIPPING.PROCESS_GATE_ACTION_FORBIDDEN": "The request includes forbidden execution control fields.",
"SHIPPING.PROCESS_GATE_ACTION_NOT_ALLOWED": "This action is not the allowed primary recovery action for the current gate.",
"SHIPPING.PROCESS_GATE_TECHNICAL_ACTION_FORBIDDEN": "Technical gate actions are system-only. Use the order processing workbench for business decisions.",
"SHIPPING.REVIEW_LINE_INSUFFICIENT_INVENTORY": "Available inventory is insufficient to fulfill the complete line. Quantity splits are not allowed.",
"SHIPPING.REVIEW_LINE_RESERVATION_REQUIRED": "A valid reservation is required before fulfilling the complete line.",
"SHIPPING.REVIEW_LINE_INVENTORY_UNKNOWN": "Available inventory is unknown; complete-line fulfillment is blocked.",
"SHIPPING.REVIEW_LINE_ALREADY_IN_TASK": "This line already belongs to a fulfillment task and cannot be reopened or duplicated.",
"SHIPPING.REVIEW_LINE_REOPEN_NOT_ALLOWED": "Only closed unfulfillable lines can be reopened.",
"SHIPPING.REVIEW_LINE_REOPEN_FORBIDDEN": "Reopening a closed line requires admin permission.",
"SHIPPING.REVIEW_LINE_QTY_SPLIT_FORBIDDEN": "Splitting a line quantity is not allowed.",
"SHIPPING.PROCESS_GATE_VERSION_MISMATCH": "The gate version changed. Refresh and try again.",
"SHIPPING.PROCESS_GATE_BUSY": "The gate is already running. Try again shortly.",
"SHIPPING.PROCESS_GATE_ALREADY_PASSED": "This gate has already passed.",
"SHIPPING.PROCESS_GATE_ATTEMPT_NOT_FOUND": "The process gate attempt was not found.",
"SHIPPING.PROCESS_GATE_PERMISSION_DENIED": "You do not have permission to access or recover this gate.",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_REQUIRED": "The recovery request is missing an idempotency key.",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_CONFLICT": "The idempotency key conflicts with a different gate request. Retry with a new key.",
"XFA_DATASET_MISSING": "The document is missing usable XFA datasets.",
"XFA_UNSAFE_XML": "Unsafe XFA XML was rejected.",
"XFA_PACKET_TOO_LARGE": "XFA packet exceeds the size limit.",
"XFA_XML_DEPTH_EXCEEDED": "XFA XML nesting depth exceeds the limit.",
"XFA_XML_NODE_LIMIT_EXCEEDED": "XFA XML node count exceeds the limit.",
"XFA_LINE_ROW_LIMIT_EXCEEDED": "XFA line row count exceeds the limit.",
"XFA_PARSE_TIMEOUT": "XFA parsing timed out.",
"XFA_UNSUPPORTED_DOCUMENT": "This document type is not supported by XFA data-path mode.",
"XFA_PROFILE_NOT_MATCHED": "No published XFA profile matched.",
"XFA_PROFILE_AMBIGUOUS": "Multiple XFA profiles matched.",
"XFA_REQUIRED_FIELD_MISSING": "A required XFA field is missing.",
"XFA_MIRROR_COLLECTION_MISMATCH": "XFA mirror line collection does not match the authoritative collection.",
"XFA_ACROFORM_MISMATCH": "XFA datasets and AcroForm values do not reconcile.",
"XFA_BUSINESS_VALIDATION_FAILED": "XFA business validation failed.",
"XFA_AUTHORITATIVE_COLLECTION_MISSING": "The authoritative line collection is missing.",
"XFA_PATH_INVALID": "Invalid XFA data path syntax.",
"XFA_PATH_UNKNOWN": "XFA data path is not present in the structure analysis record.",
"XFA_DEFINITION_INVALID": "Invalid XFA profile definition.",
"XFA_VISUAL_BINDINGS_REQUIRED": "Unified visual bindings are required before publishing an XFA profile.",
"XFA_VISUAL_BINDING_INCOMPLETE": "Some formal fields lack a confirmed visual binding.",
"XFA_VISUAL_COVERAGE_INSUFFICIENT": "Visual binding coverage is below 100%.",
"XFA_EVIDENCE_RETENTION_INSUFFICIENT": "evidence_only retention is below 100%.",
"XFA_MIRROR_CONSISTENCY_INSUFFICIENT": "Mirror formal-field consistency is below 100%.",
"XFA_PROFILE_CHECKSUM_MISMATCH": "Published XFA profile checksum does not match the runtime snapshot.",
"XFA_VISUAL_NOT_PUBLISHABLE": "Published XFA profile visual bindings are not publishable.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_VALUE_FORBIDDEN": "You do not have permission to view the full XFA sample value.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_EDIT_FORBIDDEN": "You do not have permission to edit XFA split rules.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_TOKEN_INVALID": "The split-rule preview confirmation token is invalid, expired, or does not match the current rules.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_REJECTED": "Split rule confirmation was rejected: the preview token is missing, invalid, already used, or the sample content has changed.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_STORE_UNAVAILABLE": "Confirmation service is temporarily unavailable. Please retry later; contact operations if it persists.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_UNAVAILABLE": "XFA structure analysis is not ready or incomplete. Re-parse the sample and retry.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_MISSING": "No usable XFA structure analysis is bound to the current layout. Re-parse the sample and retry.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_IDENTITY_MISMATCH": "XFA structure analysis identity does not match the current document or layout. The operation was blocked.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_STALE": "XFA structure analysis is stale relative to the current sample content. Re-parse the sample and retry.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_STALE": "The XFA synthetic preview is stale relative to the frozen structure identity. Regenerate the preview before confirming.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_FAILED": "XFA synthetic preview generation failed. Check the sample or retry later.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_UNAVAILABLE": "XFA synthetic preview is unavailable. Generate a preview first or re-parse the sample.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_CONFIRM_REQUIRES_SYNTHETIC_PREVIEW": "Confirming a visual binding requires a synthetic preview. Generate the preview and include its checksum before confirming.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_PAGE_INCONSISTENT": "XFA synthetic preview page count or page boxes do not match the frozen sample. The operation was blocked.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_VALUE_MISMATCH": "XFA synthetic preview echo does not match frozen datasets. The operation was blocked.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_LEGACY_MAPPINGS_FORBIDDEN": "XFA profiles must use unified bindings; legacy header_mappings / line_mapping.fields require migration first.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_OCR_UNAVAILABLE": "XFA synthetic-preview OCR is unavailable. Check the OCR engine deployment and retry; plain PDF paths are unaffected.",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SYNTHETIC_PREVIEW_GATE": "XFA synthetic preview publish gate failed: preview not ready, missing checksum, or unconfirmed visual bindings.",
"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.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.",
"SHIPPING.STP_CASE_NO_REQUIRED": "Review case number is required for auto-create.",
"SHIPPING.STP_AUTO_CREATE_FAILED": "Auto-create execution failed. Retry or confirm manually.",
"SHIPPING.RECONCILE_OPERATION_ID_REQUIRED": "Reconcile operation requires a client-generated operation_id. Please refresh and try again.",
"SHIPPING.RECONCILE_OPERATION_ID_TOO_LONG": "Reconcile operation_id exceeds 128 characters.",
"SHIPPING.RECONCILE_INVALID_USER_ACTION": "Invalid reconcile user_action. Choose reuse, create_revision or force_create.",
"SHIPPING.RECONCILE_INVALID_EXPECTED_VERSION": "expected_case_version must be an integer if provided.",
"SHIPPING.RECONCILE_IDEMPOTENT_CONFLICT": "Same operation_id but request snapshot changed. Generate a new operation_id and resubmit.",
"SHIPPING.RECONCILE_OWNERSHIP_ANOMALY": "Task ownership is ambiguous. Please ask a human operator to adjudicate before proceeding.",
"SHIPPING.RECONCILE_FORCE_CREATE_UNAUTHORIZED": "force_create requires admin or special permission.",
"SHIPPING.RECONCILE_LOCK_VISIBILITY_RACE": "Locked row differs from visible row. Please retry.",
"SHIPPING.RETRY_STP_BLOCKED_MANUAL": "Manual adjudication required. Do NOT use technical retry; use reconcile-and-progress or the duplicate adjudication endpoint.",
"SHIPPING.REVIEW_LLM_DISABLED": "AI suggestions for order review are disabled. No suggestion was generated; please verify manually.",
"SHIPPING.REVIEW_LLM_PROVIDER_UNAVAILABLE": "AI service is unavailable (missing Dify key or request failed). Suggestion skipped; review manually.",
"SHIPPING.REVIEW_LLM_FIELD_MISMATCH": "The AI returned a field that does not match the requested review field. The result was discarded; do not accept it.",
"SHIPPING.REVIEW_LLM_VALIDATION_FAILED": "The AI suggestion failed evidence consistency checks and cannot be written to the draft. Enter the correct value manually to continue.",
"SHIPPING.REVIEW_LLM_GATE_FIELD_NOT_FOUND": "This review field is not present in the frozen schema; no AI suggestion can be generated.",
"SHIPPING.REVIEW_LLM_GATE_LINE_NOT_FOUND": "The target line is missing. AI cannot generate a line-level suggestion. Verify the line structure and retry.",
"SHIPPING.REVIEW_LLM_GATE_FIELD_VALUE_MISSING": "The target field has no raw value. AI cannot produce a fact-based suggestion. First complete OCR or enter a manual value.",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_UNAVAILABLE": "No evidence sources were found for this field (Case-95-style evidence break). AI was blocked to avoid silent hallucinations. Complete OCR or reparse the PDF first.",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_INSUFFICIENT": "The line has fewer than 2 valid sibling fields with context, so a reliable row-level suggestion is not possible. First complete recognition of adjacent fields.",
"SHIPPING.REVIEW_LLM_GATE_POLICY_BLOCKED": "This field is sensitive/internal and blocked by the security policy from being sent to AI. Confirm manually.",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_BUILD_FAILED": "An error occurred while building the evidence view; AI suggestion skipped. Refresh and retry or contact an administrator.",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_TRUNCATED": "Core evidence of the target field was truncated under the token budget. AI has aborted to avoid a wrong conclusion. Please review this field manually.",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_AMBIGUOUS": "Multiple source candidates exist and the primary evidence cannot be uniquely determined. AI has aborted to avoid fact confusion. Resolve ambiguity first, then retry.",
"SHIPPING.REVIEW_LLM_GATE_L4_FORBIDDEN": "Page-level (L4) evidence requires explicit admin authorization. Regular users cannot request it.",
"SHIPPING.REVIEW_LLM_L4_FORBIDDEN": "Full-PDF (L4) evidence requires explicit admin authorization; the request is blocked."
},
"SHIPPING.REVIEW_INVENTORY_SOURCE_UNRESOLVED": "Inventory source is not uniquely resolved. Complete inventory-source review before creating a formal order.",
"SHIPPING_REVIEW_INVENTORY_SOURCE_UNRESOLVED": "Inventory source is not uniquely resolved. Complete inventory-source review before creating a formal order."
"VOUCHER_CHECK_CONFIG_INVALID": "Accounting voucher check configuration is invalid.",
"VOUCHER_CHECK_INVOICE_REQUIRED": "Invoice number is required.",
"VOUCHER_CHECK_INVOICE_NOT_IN_PERIOD": "The invoice is not in the current-month ERP set.",
"VOUCHER_CHECK_INVOICE_PATH_INVALID": "Invoice number contains illegal path characters.",
"VOUCHER_CHECK_SHARE_UNAVAILABLE": "Shared folder is unavailable. Check the mount and health marker.",
"VOUCHER_CHECK_ERP_UNAVAILABLE": "ERP (Oracle) is unavailable. Please try again later.",
"VOUCHER_CHECK_RUN_NOT_FOUND": "Voucher check run or invoice state was not found.",
"VOUCHER_CHECK_PERSIST_FAILED": "Failed to persist voucher check results."
}
}
+2 -1
View File
@@ -21,7 +21,8 @@
},
"msg": {
"fillContent": "Please enter feedback content",
"submitFailed": "Failed to submit feedback"
"submitFailed": "Failed to submit feedback",
"submitSuccess": "Feedback submitted successfully"
},
"cancel": "Cancel",
"submitting": "Submitting...",
+7
View File
@@ -4,6 +4,13 @@
"downloading": "Downloading...",
"tooLarge": "The file is too large for online preview. Please click Download File above to get the original file.",
"previewFailed": "Preview failed: ",
"imageCounter": "{current} / {total}",
"zoomOut": "Zoom out",
"zoomIn": "Zoom in",
"resetZoom": "Reset zoom",
"prevImage": "Previous image",
"nextImage": "Next image",
"unsupportedRawPreview": "This raw file cannot be previewed directly; automatic download was blocked.",
"msg": {
"downloadFailed": "Download failed: {reason}",
"unknownError": "Unknown error"
+14 -3
View File
@@ -1,4 +1,4 @@
{
{
"kbDifySettings": {
"title": "Dify Settings",
"subtitle": "Manage Dify connection and default sync parameters for the knowledge base module.",
@@ -391,8 +391,19 @@
"markdownFailedRetry": "Clean failed, no Markdown yet. Please re-clean.",
"markdownProcessing": "Document is being cleaned, no Markdown yet.",
"markdownPendingClean": "Document pending clean, no Markdown yet.",
"markdownNotGenerated": "No Markdown generated for this document yet."
"markdownNotGenerated": "No Markdown generated for this document yet.",
"createGroupFailed": "Failed to create knowledge base group",
"saveDifySettingsFailed": "Failed to save Dify settings",
"executeJobFailed": "Failed to run job",
"updateDocumentFailed": "Failed to update document",
"apiNotReady": "Knowledge base API is not ready. Please try again later",
"fileTooLarge": "File is too large for the current upload limit. Ask an admin to raise the limit, then retry",
"uploadPathFileFailed": "Failed to upload path file",
"markPathFileFailedStatusFailed": "Failed to record path file failure status",
"submitPathUploadFailed": "Failed to submit path upload job",
"submitCleanFailed": "Failed to submit clean job",
"updateGroupFailed": "Failed to update knowledge base group",
"deleteGroupFailed": "Failed to delete knowledge base group"
}
}
}
+5
View File
@@ -122,16 +122,20 @@
"cancel": "Cancel",
"save": "Save",
"saving": "Saving...",
"clear": "Clear",
"saveAs": "Save as {status}",
"viewAllHistory": "View All History"
},
"filters": {
"keywordPlaceholder": "Search equipment code or name",
"recentKeywordPlaceholder": "Filter by code, fault, or repairer",
"defaultHint": "By default, only open records (pending or in repair) from the last year are shown. Choose All Statuses and All Time to browse full history.",
"timeRangeLabel": "Report Date",
"timeRange3m": "Last 3 Months",
"timeRange1y": "Last Year",
"timeRangeAll": "All Time"
},
"recentTitle": "Recent Maintenance Records",
"table": {
"deviceCode": "Equipment Code",
"deviceName": "Equipment Name",
@@ -192,6 +196,7 @@
"required": "Equipment code, report date, and fault description are required",
"updated": "Maintenance record updated",
"created": "Maintenance record added",
"saved": "Maintenance record saved",
"saveFailed": "Failed to save maintenance record",
"deleteConfirm": "Delete the maintenance record for {deviceCode}?",
"deleted": "Maintenance record deleted",
+43 -470
View File
@@ -58,6 +58,7 @@
"uncategorized": "Knowledge Base Q&A"
},
"noAgents": "No agents available",
"noFavorites": "No favorites yet",
"noPublicAgents": "No public agents available, please contact admin.",
"requestPermission": "Request Access",
"startChat": "Start Conversation",
@@ -99,13 +100,18 @@
"knowledgeBase": "Knowledge Base",
"scheduleRuns": "Schedule Runs",
"shippingNotice": "Shipping Notice",
"shippingCustomers": "Customer Master Data",
"shippingTasks": "Shipping Tasks",
"shippingMyTasks": "Task Center",
"feedback": "Feedback",
"updates": "Recent Updates",
"backToChat": "Back to Chat",
"logout": "Logout"
"backShort": "Back",
"logout": "Logout",
"accountingVoucherCheck": "Voucher Check"
},
"kb": {
"accessDenied": "Administrator access is required to open the knowledge base."
},
"routes": {
"history": "Chat History"
},
"history": {
"empty": "No chat history yet",
@@ -114,7 +120,6 @@
"schedule": {
"title": "Schedule Runs",
"refresh": "Refresh",
"uploadNotices": "Upload shipping notices",
"search": "Search",
"reset": "Reset",
"loading": "Loading...",
@@ -160,438 +165,23 @@
},
"shippingNotice": {
"title": "Shipping Notice Tasks",
"subtitle": "Use Task Center for the todo list; open Order Processing for a single order task.",
"subtitle": "Read-only view. Continue processing in Chat.",
"refresh": "Refresh",
"uploadNotices": "Upload shipping notices",
"search": "Search",
"loading": "Loading...",
"empty": "No shipping tasks yet",
"selectCase": "Select a task to view details",
"loadFailed": "Failed to load task",
"openChat": "Open Chat session (optional)",
"todo": {
"label": "Current todo",
"currentTodo": "Current todo",
"noActionTitle": "No action needed now",
"noActionMessage": "The system is processing the next step. Check the workflow and activity log.",
"handleInChat": "{action} in Chat",
"workflow": "Workflow",
"orderOverview": "Order overview",
"adminViewOnly": "Admins can view others' tasks but cannot act on their behalf.",
"adminViewOnlyShort": "View only",
"lastActivity": "Last activity",
"terminateReason": "Terminate reason",
"workflowItem": "File item",
"downloadExcel": "Download shipping Excel",
"progressUnavailable": "Unified progress is temporarily unavailable. Refresh the page or try again shortly.",
"manualUploadEndNote": "Excel generated. Download it, upload on the freight platform, then register credentials here.",
"waitingManualUploadNote": "Excel generated. Download it, upload on the freight platform, then register credentials here."
},
"processGate": {
"title": "Action needed",
"currentGate": "Current step",
"blockingMessage": "What needs attention",
"failureDetail": "Failure details",
"blockingFields": "Blocking fields",
"blockingLineField": "Line {line}: {field}",
"reasonCode": "Reason",
"diagnosticHint": "Suggested action",
"responsibleParty": "Responsible party",
"attemptCount": "Attempts",
"attemptCountValue": "{current} / {max} (technical auto-retry cap)",
"viewAudit": "View audit",
"hideAudit": "Hide audit",
"auditLoading": "Loading audit…",
"auditEmpty": "No process-gate audit events",
"auditLoadFailed": "Failed to load process-gate audit",
"auditEventFallback": "Process-gate activity",
"auditEvents": {
"process_gate_created": "Processing step created",
"process_gate_attempt_started": "Processing started",
"process_gate_passed": "Processing step passed",
"process_gate_blocked": "Processing step blocked",
"process_gate_recovery_requested": "Recovery requested",
"process_gate_idempotent_replay": "Result reused (idempotent)",
"process_gate_manual_override": "Result manually overridden",
"process_gate_rule_suggestion_generated": "Rule suggestion generated",
"process_gate_suggestion_adopted": "Rule suggestion adopted",
"process_gate_suggestion_rejected": "Rule suggestion rejected",
"process_gate_downstream_invalidated": "Downstream results invalidated",
"process_gate_technical_retry": "System automatically retried",
"process_gate_lease_taken_over": "Processing taken over by another worker",
"process_gate_artifact_superseded": "Artifact superseded by a newer version",
"process_gate_permission_denied": "Permission denied for this action"
},
"parties": {
"owner": "Order reviewer / task owner",
"worker": "System worker",
"system": "System automation",
"admin": "Administrator",
"external": "External system"
},
"noAction": "No action is currently available",
"versionMissing": "This information has changed. Refresh and try again.",
"navigationMissing": "Navigation context is missing. Refresh and try again.",
"customerTaskMissing": "Task number missing — cannot open customer confirm. Refresh and try again.",
"genericBlocking": "This step needs manual attention",
"unknownStep": "Current step",
"continueAction": "Continue",
"recoveryTargets": "Prerequisite recovery",
"actionSubmitted": "Action submitted",
"submitting": "Submitting…",
"readOnlyUseFooter": "Use the footer action bar to proceed",
"actionCodes": {
"rematerialize_document": "Rematerialize document",
"retry_layout_parsing": "Retry layout parsing",
"reroute_document_profile": "Reroute document profile",
"open_profile_review": "Open profile review",
"retry_order_extraction": "Retry order extraction",
"open_order_review": "Open order review",
"edit_order_fields": "Edit order fields",
"revalidate_reservation": "Revalidate reservation",
"edit_reservation": "Edit reservation",
"retry_customer_resolution": "Retry customer resolution",
"confirm_customer": "Confirm customer",
"retry_duplicate_detection": "Retry duplicate detection",
"adjudicate_duplicate": "Adjudicate duplicate",
"reconcile_and_progress": "Reconcile and auto-recover",
"resolve_field_conflicts": "Resolve field conflicts",
"retry_with_latest_rules": "Retry with latest rules",
"open_inventory_source_review": "Open inventory source review",
"adopt_rule_suggestion": "Adopt rule suggestion",
"keep_manual_inventory_decision": "Keep manual decision",
"recheck_freeze_readiness": "Recheck freeze readiness",
"retry_task_creation": "Retry task creation",
"retry_inventory_preparation": "Retry inventory preparation",
"retry_inventory_from_preparation": "Recover from inventory preparation",
"refresh_inventory_candidate_projection": "Refresh inventory candidate status",
"poll_inventory_preparation": "Refresh inventory preparation progress",
"upload_inventory_file": "Upload inventory file",
"retry_inventory_field_mapping": "Retry inventory field mapping",
"retry_inventory_from_field_mapping": "Recover from field mapping",
"retry_inventory_from_matching": "Rematch using current inventory",
"confirm_inventory_field_mapping": "Confirm inventory field mapping",
"retry_inventory_matching": "Retry inventory matching",
"open_inventory_match_review": "Open inventory match review",
"recheck_inventory_sufficiency": "Recheck inventory sufficiency",
"open_shortage_review": "Open shortage review",
"recheck_excel_readiness": "Recheck Excel readiness",
"regenerate_excel_artifact": "Regenerate Excel",
"poll_freight_upload_rpa": "Refresh freight upload progress",
"retry_freight_upload_rpa": "Retry freight upload RPA",
"regenerate_manual_upload_todo": "Regenerate manual-upload todo",
"mark_manual_uploaded": "Record manual upload"
},
"reasons": {
"freeze_not_ready": "Order is not ready to build or freeze",
"profile_not_auto_freeze_approved": "Document profile is not approved for auto build",
"profile_manual_confirmation_required": "Document profile requires manual confirmation",
"customer_unresolved": "Customer is unresolved",
"customer_ambiguous": "Customer resolution is ambiguous",
"field_conflict": "Field conflicts need manual resolution",
"duplicate_unresolved": "Duplicate order is unresolved",
"require_manual_review": "Inventory source rules conflict or require manual confirmation",
"no_inventory_source_candidates": "No inventory source rule matched",
"inventory_source_unavailable": "Matched inventory source is currently unavailable",
"inventory_rpa_queued": "RPA job is queued",
"inventory_rpa_timeout": "RPA execution timed out",
"inventory_rpa_login_failed": "Inventory platform login failed",
"inventory_rpa_export_failed": "Inventory report export failed",
"inventory_rpa_exhausted": "Inventory source retries exhausted",
"inventory_file_missing": "Inventory file was not generated",
"inventory_file_empty": "Inventory file is empty or has no valid records",
"inventory_preparation_waiting": "Inventory file is being prepared; refresh later",
"inventory_preparation_failed": "Inventory preparation failed; retry or upload a file",
"inventory_candidates_missing": "The task is missing a formal candidate version. Reopen inventory source review.",
"inventory_candidate_version_stale": "The inventory candidate version changed. Refresh and process again.",
"inventory_match_out_of_candidate_scope": "The match result falls outside the current candidate scope and needs manual review.",
"inventory_candidate_data_incomplete": "Inventory candidate facts are incomplete. Refreeze the candidate version.",
"upload_rpa_pending": "Freight upload job is waiting",
"upload_rpa_failed": "Freight platform upload failed; RPA can be retried",
"upload_rpa_login_failed": "Freight platform login failed",
"upload_platform_rejected": "Freight platform rejected the upload",
"upload_result_unknown": "Upload result cannot be confirmed yet",
"manual_upload_pending": "Download the Excel, upload it on the freight platform, and register the result",
"technical_retry_exhausted": "Automatic retries exhausted",
"order_extraction_failed": "Order extraction failed",
"order_extraction_cancelled": "Order extraction cancelled",
"customer_out_of_scope": "Customer is out of the current business scope",
"reservation_missing": "Valid reservation is missing",
"reservation_invalid": "Reservation failed validation",
"reservation_duplicate": "Reservation is already used by another order",
"required_field_missing": "Required order fields are missing",
"field_value_invalid": "Some field values are invalid",
"field_low_confidence": "Some recognition results have low confidence",
"effective_reservation_missing": "Effective reservation ID is missing",
"document_unavailable": "Shipping notice document is unavailable",
"layout_parse_failed": "PDF layout parsing failed",
"profile_not_matched": "No matching document profile",
"profile_ambiguous": "Multiple document profiles matched",
"profile_drift": "Document structure drifted from the profile",
"extraction_incomplete": "Order field extraction is incomplete",
"cross_source_conflict": "Cross-source field conflict needs resolution",
"evidence_missing": "Key recognition results lack evidence",
"auto_freeze_not_enabled": "Auto-create policy is not enabled",
"task_creation_failed": "Fulfillment task creation failed",
"inventory_file_identity_mismatch": "Returned file does not match the selected inventory source",
"inventory_mapping_required": "Inventory field mapping requires confirmation",
"inventory_match_failed": "Inventory matching failed",
"inventory_candidates_required": "No inventory candidate set is available; fetch inventory before matching",
"inventory_candidates_frozen_required": "Inventory candidates are not confirmed; complete source confirmation first",
"inventory_snapshot_prepare_failed": "Inventory snapshot preparation failed; review inventory retrieval and retry",
"inventory_snapshots_pending": "Inventory snapshots are still being prepared; refresh shortly",
"inventory_match_not_ready": "Inventory is not ready for matching; complete inventory preparation first",
"projection_data_inconsistent": "Processing data is inconsistent; refresh and retry, or contact an administrator",
"inventory_insufficient": "Insufficient inventory",
"inventory_shortage_review_required": "Inventory shortage requires review",
"excel_not_ready": "Excel generation conditions are not met",
"artifact_generation_failed": "Excel generation failed",
"attachment_format_unsupported": "Attachment format is unsupported",
"attachment_size_exceeded": "Attachment exceeds size limit",
"attachment_corrupted": "Attachment is corrupted",
"attachment_duplicate": "Duplicate attachment already exists",
"attachment_storage_failed": "Attachment storage failed",
"attachment_security_blocked": "Attachment blocked for security reasons",
"attachment_replaced": "Shipping notice attachment was replaced",
"document_text_unavailable": "No usable text could be extracted",
"business_table_not_found": "Business table was not found",
"business_table_empty": "Business table has no valid rows",
"multiple_business_tables": "Multiple business tables were found",
"document_password_protected": "Document is password protected",
"generic_gate_blocked": "Generic order recognition gate blocked",
"gate_invalidated": "Upstream result changed; gate must be re-evaluated",
"task_cancelled_by_user": "Task was cancelled by the user",
"task_voided_for_correction": "Task was voided for correction",
"task_archived": "Task was archived",
"task_rejected_by_user": "Candidate/task was rejected by the user",
"task_closed_after_upload": "Task closed after successful upload",
"void_blocked_external_uploaded": "External fulfillment exists; void is blocked — archive instead",
"unknown_business_failure": "Business processing failed; contact admin with request ID",
"inventory_source_conflicted": "Conflicting inventory source rules require review",
"inventory_source_changed": "Confirmed inventory source configuration has changed",
"inventory_source_identity_mismatch": "Task identity does not match inventory source/warehouse",
"inventory_multi_file_conflict": "Conflicting results across inventory files",
"inventory_sku_not_found": "SKU was not found in inventory",
"inventory_reservation_not_found": "Reservation was not found in inventory",
"inventory_warehouse_mismatch": "Warehouse does not match order requirements",
"inventory_required_column_missing": "Required inventory column is missing",
"inventory_column_ambiguous": "Inventory column mapping is ambiguous",
"excel_template_missing": "Shipping Excel template is missing",
"excel_input_incomplete": "Inputs required to generate Excel are incomplete",
"artifact_validation_failed": "Excel artifact validation failed",
"late_callback_ignored": "Late external callback was ignored",
"close_blocked_missing_receipt": "Upload receipt is missing; close is blocked",
"xfa_dataset_missing": "Missing usable XFA datasets",
"xfa_unsafe_xml": "Unsafe XFA XML was rejected",
"xfa_packet_too_large": "XFA packet exceeds size limit",
"xfa_xml_depth_exceeded": "XFA XML nesting depth exceeds limit",
"xfa_xml_node_limit_exceeded": "XFA XML node count exceeds limit",
"xfa_line_row_limit_exceeded": "XFA line row count exceeds limit",
"xfa_parse_timeout": "XFA parsing timed out",
"xfa_unsupported_document": "Document type unsupported by XFA data-path mode",
"xfa_profile_not_matched": "No published XFA profile matched",
"xfa_profile_ambiguous": "Multiple XFA profiles matched",
"xfa_required_field_missing": "Required XFA field missing",
"xfa_mirror_collection_mismatch": "XFA mirror collection mismatch",
"xfa_acroform_mismatch": "XFA datasets and AcroForm mismatch",
"xfa_business_validation_failed": "XFA business validation failed",
"xfa_authoritative_collection_missing": "Authoritative line collection missing",
"xfa_path_invalid": "Invalid XFA data path",
"xfa_path_unknown": "Unknown XFA data path",
"xfa_definition_invalid": "Invalid XFA profile definition",
"xfa_structure_identity_changed": "XFA structure identity changed"
},
"nextAction": "Next step",
"nextActionHint": "Next: {action}",
"actionSuggestion": "Recommended action",
"detailFacts": "Key facts",
"detailKeys": {
"source_code": "Inventory source",
"source_codes": "Inventory sources",
"unavailable_source_codes": "Unavailable sources",
"unavailable_reasons": "Unavailable reasons",
"matched_rule_codes": "Matched rules",
"raw_rule_source_codes": "Raw rule candidates",
"candidate_inventory_source_codes": "Effective candidates",
"line_key": "Line",
"line_index": "Line no.",
"field_code": "Field",
"request_id": "Request ID",
"process_status": "Process status",
"match_status": "Match status",
"task_no": "Task no.",
"has_inventory_lines": "Has inventory lines",
"has_export": "Excel generated",
"execution_no": "Execution no.",
"inventory_file_id": "Inventory file"
}
},
"myTodos": {
"title": "Task Center",
"subtitle": "Cross-session todos, exceptions, and manual-upload registration; open Order Processing for a single task.",
"empty": "No todos in this bucket",
"open": "Open",
"openReview": "Open order processing",
"openConversation": "Open conversation",
"openTask": "Open task",
"openProcessingHint": "Review, edit, and fulfillment registration happen in the order processing workbench.",
"openProcessingUnavailable": "Unable to locate the extraction run. Open order processing from the original conversation.",
"progressSummary": "Current: {stage} · {current}/{total}",
"progressBlocker": "Blocked: {reason}",
"intakeParseBadge": "Material parsing",
"buckets": {
"pending": "Pending",
"processing": "Processing",
"done": "Done"
},
"filters": {
"todoCategory": "Todo type",
"all": "All",
"review": "Review",
"exception": "Exception",
"manualUpload": "Waiting for manual upload",
"intakeParse": "Material parsing",
"customer": "Customer",
"customerPlaceholder": "Customer name or short code",
"taskNo": "Task no.",
"taskNoPlaceholder": "SN number",
"apply": "Apply filters",
"reset": "Reset"
}
},
"risk": {
"title": "Risks and open issues"
},
"pdfEvidence": {
"title": "PDF / source evidence",
"empty": "No source file metadata",
"hint": "Source preview and manual-upload evidence are handled via todo actions.",
"uploadCount": "{count} manual-upload evidence file(s) recorded"
},
"manualUpload": {
"title": "Confirm manual upload",
"hint": "Upload a freight-portal screenshot or PDF and enter the receipt number. This does not trigger RPA upload.",
"evidenceLabel": "Evidence file (screenshot / PDF, required)",
"freightRefLabel": "Freight receipt no. (required)",
"freightRefOptional": "Freight receipt no. (required)",
"evidenceRequired": "Please select an evidence file first",
"freightRefRequired": "Please enter the freight receipt number",
"cancel": "Cancel",
"submit": "Confirm uploaded",
"submitting": "Submitting…"
},
"timeline": {
"empty": "No events yet",
"loading": "Loading events…",
"loadFailed": "Failed to load events",
"detail": "View details",
"sourceTask": "Task event",
"sourceWorkflow": "File processing record",
"sourceAudit": "Audit record",
"workflowEvent": "File processing record",
"updated": "Processing status updated",
"actors": {
"user": "Business user",
"system": "System",
"admin": "Administrator"
}
},
"workflowStatus": {
"created": "Created",
"queued": "Waiting",
"extracting": "Recognizing",
"pending_review": "Pending review",
"waiting_manual_upload": "Waiting for manual upload",
"failed": "Processing failed",
"completed": "Completed",
"closed": "Closed"
},
"workflowReasons": {
"review_case_draft": "Order review required",
"user_cancelled": "Cancelled by user",
"completed": "Processing completed"
},
"stpFacts": {
"title": "STP fulfillment progress",
"inventorySourceStatus": "Inventory source status",
"inventorySourceCode": "Current inventory source",
"frozenCandidates": "Frozen candidate sources",
"multiSourceBlock": "Order lines resolved to different inventory sources; a single shipment Excel cannot be generated. Split the order or pick one source.",
"resolutionCounts": "Line match results",
"lineTableTitle": "Per-line match evidence",
"colLine": "Line",
"colReservation": "Reservation",
"colPart": "Part",
"colDisposition": "Disposition",
"colSource": "Resolved source",
"colEvidence": "Inventory file / evidence",
"disposition": {
"ok": "Fulfillable",
"shortage": "Shortage",
"not_found": "Not found",
"multi_file_conflict": "Multi-file conflict",
"unknown": "Unknown"
}
},
"openChat": "Continue in Chat",
"download": "Download Excel",
"downloadBatch": "Download batch ZIP",
"selectAllVisible": "Select current results",
"selectedCount": "{count} tasks selected",
"downloadSelected": "Download selected ZIP",
"selectForDownload": "Select task {taskNo} for batch download",
"archiveDownloadFailed": "Batch download failed. Refresh the tasks and try again.",
"actions": {
"title": "Available actions",
"freezeOrder": "Freeze order",
"freezeConfirm": "Freeze the reviewed order? The frozen order becomes the fulfillment fact for inventory, Excel, and upload.",
"freezeFailed": "Order freezing failed or its version changed. Refresh and review it again.",
"inventorySourcePrompt": "Enter the published inventory source code:",
"customerPrompt": "Enter a customer short code or name to search:",
"customerNotFound": "No enabled customer is available to confirm.",
"customerConfirm": "Bind this task to customer {name} ({code})?",
"failed": "Action failed. Refresh the task and try again."
},
"candidateReview": {
"title": "Candidates awaiting batch creation",
"hint": "Select, revise, and resolve duplicates here. Only selected candidates that pass backend gates can create a batch.",
"createBatch": "Create batch from selected"
},
"lifecycle": {
"active": "Active",
"deleted": "Recycle bin",
"voided": "Voided",
"archived": "Archived"
},
"disposition": {
"actions": {
"delete": "Delete",
"archive": "Archive",
"restore": "Restore",
"purge": "Delete permanently"
},
"reasonPrompt": "Enter the deletion or void reason:",
"purgeReasonPrompt": "Enter the permanent deletion reason (administrators, pure draft tasks only):",
"confirm": "{action} the selected {count} task(s)?",
"success": "Processed {count} task(s).",
"partial": "Processed {success} task(s); {blocked} task(s) were blocked by the server.",
"failed": "Task disposition failed. Refresh and try again."
},
"pagination": {
"summary": "Showing {start}-{end} of {total} tasks",
"previous": "Previous",
"next": "Next",
"page": "Page {page} of {total}"
},
"lines": "Shipment lines",
"qty": "Qty",
"columns": {
"sku": "SKU"
},
"events": "Event log",
"operator": "Operator ID: {id}",
"filters": {
"status": "Status",
"lifecycle": "Task state"
"status": "Status"
},
"fields": {
"status": "Process status",
@@ -599,12 +189,6 @@
"shipTo": "Ship to",
"freightRef": "Freight ref no."
},
"inventorySourceDialog": {
"title": "Confirm inventory source",
"hint": "Select a published inventory source from the candidates, or enter a source code manually.",
"confirm": "Confirm source",
"manualEntry": "Enter source code manually"
},
"inventorySource": {
"title": "Inventory query source",
"sourceCode": "Source code",
@@ -639,28 +223,19 @@
"sourceManual": "Manual upload",
"exportedAt": "Exported at",
"fileNo": "Snapshot ID",
"expired": "Snapshot expired; system will re-trigger RPA inventory fetch"
},
"fulfillmentTimeline": {
"inventoryTitle": "Inventory verification history",
"verificationLine": "Reservation {reservationId}: {availableQty}/{requiredQty} ({status})",
"artifactTitle": "Excel artifact timeline",
"reservationIds": "Reservation IDs: {reservationIds}",
"uploadTitle": "Upload attempt timeline",
"uploadAttempt": "Artifact #{artifactId} / Attempt {attemptNo}",
"freightRef": "Freight reference: {freightRefNo}",
"evidenceAsset": "Receipt asset: {assetId}"
"expired": "Snapshot expired; system will re-trigger RPA or wait for manual upload"
},
"status": {
"all": "All",
"created": "Created",
"parsed": "Parsed",
"pendingReview": "Pending review",
"alignReview": "Confirm fields",
"shortageReview": "Inventory shortage",
"waitingInventory": "Waiting inventory",
"inventoryReady": "Inventory ready",
"matched": "Matched",
"waitingUpload": "Excel ready",
"waitingUpload": "Waiting upload",
"uploaded": "Uploaded",
"uploadFailed": "Upload failed",
"rejected": "Rejected",
@@ -681,40 +256,11 @@
"inventory_uploaded": "Inventory uploaded",
"inventory_parsed": "Inventory parsed",
"matched_fulfillable": "Inventory matched",
"matched_stp_candidates": "Cross-candidate inventory matched",
"matched_multi_source_excel_block": "Multi-source conflict; cannot export",
"matched_multi_file_conflict": "Inventory multi-file conflict",
"matched_shortage": "Inventory shortage",
"candidates_frozen": "Multi-candidate inventory sources frozen at create",
"inventory_source_resolved_at_build": "Inventory source resolved at create",
"inventory_candidate_files_missing": "Candidate inventory files missing",
"inventory_candidate_files_partial": "Some candidate inventory files ready",
"stp_auto_create": "STP auto-create",
"stp_auto_create_failed": "STP auto-create failed",
"match_needs_review": "Inventory match needs review",
"excel_generated": "Shipment file generated",
"uploaded": "Uploaded to freight",
"upload_failed": "Freight upload failed",
"backend_orchestrator_task_finished": "Background task completed"
},
"myRuns": {
"title": "My identification runs",
"subtitle": "Continue in-progress, failed, or cancelled order identification runs from here.",
"status": "Status",
"allStatuses": "All statuses",
"runNo": "Run no.",
"stage": "Current stage",
"summary": "Attachment progress",
"summaryCounts": "{total} total: done {done} / review {review} / failed {failed} / cancelled {cancelled}",
"elapsed": "Elapsed",
"actions": "Actions",
"openChat": "Open chat",
"loading": "Loading identification runs...",
"empty": "No identification runs yet",
"loadFailed": "Failed to load identification runs",
"total": "{count} total",
"previous": "Previous",
"next": "Next"
}
},
"profile": {
@@ -729,5 +275,32 @@
"casdoorNotMatchedContactAdmin": "Casdoor login succeeded, but no local account matched. Please contact the administrator.",
"casdoorNotMatchedNeedLocalUser": "Casdoor login succeeded, but no local account matched. Ask the administrator to create a local user with the same username or email.",
"localAccountDisabled": "This local account is disabled. Please contact the administrator."
},
"voucherCheck": {
"title": "Accounting Voucher Check Records",
"subtitle": "View completeness of required voucher materials for the current calendar month. Existence check only — no amount or supplier matching.",
"period": "Period",
"status": "Status",
"statusAll": "All",
"statusComplete": "Complete",
"statusMissing": "Missing",
"statusSkipped": "Skipped",
"statusTechError": "Technical error",
"invoiceNo": "Invoice No.",
"invoiceDate": "Invoice Date",
"invoicePlaceholder": "Filter by invoice number",
"folder": "Share path",
"missing": "Missing materials",
"checkedAt": "Checked at",
"result": "Result",
"search": "Search",
"refresh": "Refresh",
"loading": "Loading…",
"empty": "No check records yet",
"loadFailed": "Failed to load voucher check records",
"totalCount": "{total} records",
"prevPage": "Previous",
"nextPage": "Next",
"runItemsTitle": "Run {runId} details"
}
}
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -18,6 +18,8 @@
"passwordRequired": "รหัสผ่านต้องไม่ว่าง",
"passwordRequiredHint": "กรุณากรอกรหัสผ่าน",
"loginRequired": "กรุณาเข้าสู่ระบบก่อนเริ่มการสนทนา",
"sessionExpired": "การเข้าสู่ระบบหมดอายุแล้ว",
"sessionExpiredHint": "กรุณาเข้าสู่ระบบอีกครั้งเพื่อใช้งานต่อ",
"requestFailed": "คำขอเข้าสู่ระบบล้มเหลว",
"forgotPassword": "ลืมรหัสผ่าน?",
"rememberMe": "จดจำฉัน",
@@ -38,7 +40,7 @@
"authFailed": "เข้าสู่ระบบไม่สำเร็จ กรุณาลองใหม่",
"passwordPolicy": "รหัสผ่านใหม่ไม่ตรงตามข้อกำหนดด้านความปลอดภัย",
"setPasswordFailed": "เปลี่ยนรหัสผ่านไม่สำเร็จ กรุณาลองใหม่หรือติดต่อผู้ดูแลระบบ",
"incorrectCurrentPassword": "รหัสผ่านปัจจุบันไม่ถูกต้อง",
"incorrectCurrentPassword": "เดิม: รหัสผ่านปัจจุบันไม่ถูกต้อง ใหม่: รหัสผ่านที่คุณป้อนไม่ถูกต้อง โปรดลองอีกครั้ง",
"userNotInIdp": "บัญชีของคุณยังไม่ได้ลงทะเบียนในระบบยืนยันตัวตน กรุณาติดต่อผู้ดูแลระบบเพื่อซิงค์บัญชีก่อนเปลี่ยนรหัสผ่าน"
},
"casdoorDialogTitles": {
File diff suppressed because it is too large. Load diff
+13 -2
View File
@@ -8,6 +8,18 @@
"refresh": "รีเฟรช",
"yes": "ใช่",
"no": "ไม่",
"app": {
"title": "Hexin AI Workspace",
"shortTitle": "AI Workspace",
"remoteLogout": "คุณได้ออกจากระบบในแท็บอื่นแล้ว"
},
"sso": {
"authorizing": "กำลังเปิดระบบภายนอก",
"authorizingHint": "กำลังดำเนินการเข้าสู่ระบบแบบครั้งเดียวอย่างปลอดภัย โปรดรอสักครู่",
"failed": "การเข้าสู่ระบบแบบครั้งเดียวล้มเหลว",
"invalidRequest": "คำขอเข้าสู่ระบบภายนอกไม่ถูกต้องหรือหมดอายุ โปรดเริ่มใหม่จากระบบเป้าหมาย",
"backToHxops": "กลับไป HXOPS"
},
"deleteDialog": {
"defaultTitle": "คุณแน่ใจหรือไม่ว่าต้องการลบ?",
"defaultMessage": "เมื่อกดปุ่มตกลง กล่องโต้ตอบนี้จะปิดหลังจาก 1 วินาที",
@@ -31,6 +43,5 @@
"unsorted": "คลิกเพื่อเรียงลำดับ",
"asc": "เรียงจากน้อยไปมาก คลิกเพื่อสลับ",
"desc": "เรียงจากมากไปน้อย คลิกเพื่อสลับ"
},
"required": "กรุณากรอกข้อมูลที่จำเป็น"
}
}
+19 -457
View File
@@ -1,213 +1,20 @@
{
"generic": "คำขอล้มเหลว",
"codes": {
"SHIPPING.FULFILLMENT_POLICY_INVALID": "นโยบายการปฏิบัติตามหรือการผูกความสามารถของฟิลด์ไม่ถูกต้อง",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "ไม่พบนโยบายการปฏิบัติตาม",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "นโยบายการปฏิบัติตามถูกแก้ไขโดยผู้ดูแลรายอื่น โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING.FULFILLMENT_POLICY_NOT_PUBLISHED": "ยังไม่มีการเผยแพร่นโยบายการปฏิบัติตามที่ใช้งานได้",
"SHIPPING.RESERVATION_PO_REQUIRED": "Reservation นี้มีอยู่แล้ว ต้องระบุใบสั่งซื้อก่อนดำเนินการต่อ",
"SHIPPING.RESERVATION_PO_CONFLICT": "Reservation นี้ถูกใช้กับใบสั่งซื้ออื่นแล้ว ระบบบล็อกคำสั่งซื้อซ้ำ",
"SHIPPING.RESERVATION_DUPLICATED_IN_ORDER": "พบ Reservation ซ้ำในคำสั่งซื้อเดียวกัน จึงไม่สามารถตรึงคำสั่งซื้อได้",
"SHIPPING.RESERVATION_REVISION_REVIEW_REQUIRED": "ข้อมูล Reservation เปลี่ยนแปลง ต้องแสดงความแตกต่างและให้มนุษย์ยืนยัน",
"SHIPPING.RESERVATION_REVISION_LOCKED": "Reservation นี้มีไฟล์จัดส่งที่ยังใช้ได้หรืออัปโหลดแล้ว จึงห้ามแก้ไขโดยตรง",
"SHIPPING_NOTICE.BATCH_FILE_LIMIT_EXCEEDED": "จำนวนไฟล์ที่อัปโหลดเกินขีดจำกัดของระบบ โปรดแบ่งชุดแล้วลองใหม่",
"SHIPPING_NOTICE.ORDER_TASK_REQUIRED_FOR_CONFIRM": "ผู้สมัครออร์เดอร์นี้ยังไม่มีงานออร์เดอร์ จึงยืนยันสร้างใบแจ้งส่งไม่ได้ โปรดรีเฟรชแล้วลองใหม่ หรือระบุใหม่",
"AGENT.EXPOSURE_ROLE_IMMUTABLE": "ไม่สามารถแปลงแอปพลิเคชันเป็นตัวดำเนินการภายในหรือกลับกันได้",
"AGENT.ADMIN_SCOPE_INVALID": "พารามิเตอร์แท็บการจัดการแอปพลิเคชันไม่ถูกต้อง",
"AGENT.INTERNAL_EXECUTOR_USER_ACCESS_FORBIDDEN": "ไม่สามารถแสดง มอบสิทธิ์ หรือเข้าถึงตัวดำเนินการภายในผ่าน API สำหรับผู้ใช้ได้",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_NOT_RETRYABLE": "ลองระบุใหม่ได้เฉพาะงานระบุคำสั่งซื้อที่ล้มเหลวเท่านั้น",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_REASON_REQUIRED": "ต้องระบุเหตุผลในการระบุใหม่ กรุณาเติมแล้วลองอีกครั้ง",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_NOT_ALLOWED": "สถานะปัจจุบันไม่อนุญาตให้ระบุใหม่ กรุณาเข้าสู่การตรวจทานด้วยตนเอง หรือรอให้การระบุล้มเหลวก่อนแล้วค่อยลองใหม่",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_CASE_REQUIRED": "ไฟล์นี้ยังไม่มีเคสตรวจทาน จึงสร้างเวอร์ชันระบุใหม่ไม่ได้ กรุณาให้การระบุเสร็จแล้วเข้าสู่การตรวจทาน หรือลองใหม่ได้เฉพาะเมื่อรันล้มเหลว",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_SOURCE_INVALID": "งานระบุที่เชื่อมโยงใช้งานไม่ได้ กรุณารีเฟรชแล้วลองใหม่ หรือติดต่อผู้ดูแล",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_SNAPSHOT_OBSOLETE": "งานนี้ใช้สัญญาข้อมูลนำเข้าเวอร์ชันเก่าและไม่สามารถลองใหม่ได้ โปรดส่งอีเมลและไฟล์แนบอีกครั้งเพื่อเริ่มงานใหม่",
"SHIPPING_NOTICE.ORDER_EXTRACTION_CONVERSATION_ACTIVE": "ยังมีเอกสารคำสั่งซื้อกำลังดำเนินการในบทสนทนานี้ คุณสามารถอัปโหลดไฟล์เพิ่มได้ โปรดดูความคืบหน้าในแผงด้านข้าง",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RETRY_WITHOUT_REUPLOAD": "การแยกวิเคราะห์ล้มเหลว สามารถลองใหม่จากขั้นตอนที่ล้มเหลวโดยไม่ต้องอัปโหลดไฟล์ต้นฉบับซ้ำ",
"SHIPPING_NOTICE.CANCEL_FORBIDDEN": "คุณไม่มีสิทธิ์ยกเลิกงานระบุคำสั่งซื้อนี้",
"SHIPPING_NOTICE.CANCEL_REASON_REQUIRED": "เมื่อยกเลิกงานของผู้อื่นต้องระบุเหตุผล",
"SHIPPING_NOTICE.CANCEL_NOT_ACTIVE": "งานนี้สิ้นสุดแล้วหรือไม่สามารถยกเลิกได้",
"SHIPPING_NOTICE.CANCEL_CONFLICT": "คำขอยกเลิกขัดแย้งกับความคืบหน้าปัจจุบัน กรุณารีเฟรชแล้วลองใหม่",
"SHIPPING_NOTICE.CANCEL_FEATURE_DISABLED": "ฟังก์ชันยกเลิกการระบุคำสั่งซื้อถูกปิด กรุณาติดต่อผู้ดูแลระบบ",
"SHIPPING_NOTICE.AUDIT_EXPORT_FEATURE_DISABLED": "ฟังก์ชันส่งออกการตรวจสอบถูกปิด กรุณาติดต่อผู้ดูแลระบบ",
"SHIPPING_NOTICE.AUDIT_PERSIST_FAILED": "บันทึกการตรวจสอบล้มเหลว การดำเนินการยังไม่เสร็จสิ้น กรุณาลองใหม่",
"SHIPPING_NOTICE.AUDIT_METADATA_FORBIDDEN": "การบันทึกตรวจสอบมีฟิลด์ที่ละเอียดอ่อนซึ่งห้ามใช้",
"SHIPPING_NOTICE.AUDIT_SNAPSHOT_FORBIDDEN": "สแนปชอตการตรวจสอบมีฟิลด์ที่ละเอียดอ่อนซึ่งห้ามใช้",
"SHIPPING_PROCESSING_PROJECTION_INCONSISTENT": "สถานะความคืบหน้าคำสั่งซื้อไม่สอดคล้องกัน การดำเนินการถูกบล็อก กรุณารีเฟรชแล้วลองใหม่",
"SHIPPING_PROCESSING_TASK_OWNERSHIP_MISMATCH": "งานทางการไม่ตรงกับบริบทการประมวลผลปัจจุบัน การดำเนินการถูกบล็อก กรุณารีเฟรชแล้วลองใหม่",
"SHIPPING_ORDER_SCHEMA_NOT_FOUND": "ยังไม่ได้เริ่มต้นเทมเพลตคำสั่งซื้อ",
"SHIPPING_ORDER_SCHEMA_EXISTS": "มีเทมเพลตคำสั่งซื้ออยู่แล้ว",
"SHIPPING_ORDER_SCHEMA_DRAFT_EXISTS": "มีฉบับร่างเทมเพลตคำสั่งซื้ออยู่แล้ว โปรดดำเนินการหรือเผยแพร่ฉบับปัจจุบันก่อน",
"SHIPPING_ORDER_SCHEMA_VERSION_INVALID": "การตั้งค่าเวอร์ชันฟิลด์คำสั่งซื้อไม่ถูกต้อง",
"SHIPPING_ORDER_SCHEMA_LOCK_VERSION_REQUIRED": "ฉบับร่างฟิลด์คำสั่งซื้อไม่มีเวอร์ชันล็อก โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING_ORDER_SCHEMA_VERSION_CONFLICT": "ผู้ดูแลระบบรายอื่นแก้ไขฉบับร่างนี้แล้ว หน้าจะโหลดเวอร์ชันล่าสุดอีกครั้ง",
"SHIPPING_ORDER_SCHEMA_VERSION_IMMUTABLE": "ไม่สามารถแก้ไขเวอร์ชันฟิลด์คำสั่งซื้อที่เผยแพร่แล้ว",
"SHIPPING_ORDER_SCHEMA_VERSION_NOT_FOUND": "ไม่พบเวอร์ชันฟิลด์คำสั่งซื้อ",
"SHIPPING_ORDER_SCHEMA_VERSION_DELETE_BLOCKED": "ลบได้เฉพาะเวอร์ชันฉบับร่าง",
"SHIPPING_ORDER_SCHEMA_PUBLISH_INVALID": "ไม่สามารถเผยแพร่เวอร์ชันฟิลด์คำสั่งซื้อปัจจุบัน",
"SHIPPING_ORDER_SCHEMA_PUBLISH_DEPENDENCY_BLOCKED": "เวอร์ชันนี้ลบฟิลด์คำสั่งซื้อที่ยังถูกอ้างอิงโดยกฎเส้นทาง โปรไฟล์การแยกข้อมูล หรือเทมเพลต Excel โปรดย้ายการตั้งค่าเหล่านั้นก่อน",
"SHIPPING_ORDER_SCHEMA_NOT_PUBLISHED": "ยังไม่มีเวอร์ชันฟิลด์คำสั่งซื้อที่เผยแพร่และใช้งานได้",
"SHIPPING_ORDER_DOCUMENT_PROFILE_NOT_FOUND": "ไม่พบโปรไฟล์การแยกข้อมูลเอกสารคำสั่งซื้อ",
"SHIPPING_ORDER_DOCUMENT_PROFILE_INVALID": "การตั้งค่าโปรไฟล์การแยกข้อมูลเอกสารคำสั่งซื้อไม่ถูกต้อง",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SCHEMA_INVALID": "โปรไฟล์ต้องผูกกับเวอร์ชันสคีมาคำสั่งซื้อที่เผยแพร่หรือเลิกใช้งานแล้ว",
"SHIPPING_ORDER_DOCUMENT_PROFILE_FIELD_INVALID": "โปรไฟล์อ้างอิงฟิลด์รายการคำสั่งซื้อที่ไม่พร้อมใช้งาน",
"SHIPPING_ORDER_DOCUMENT_PROFILE_HEADER_CONTAMINATED": "ส่วนหัวของตัวอย่างมีข้อมูลรายการคำสั่งซื้อ ต้องสร้างโครงสร้างตารางใหม่ก่อนจึงจะสร้างโปรไฟล์ได้",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_UNAVAILABLE": "ตารางนี้ไม่มีพิกัดอักขระแบบต้นฉบับหรือ OCR ที่ใช้งานได้สำหรับสร้างรายการตรรกะใหม่",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_INVALID": "การตั้งค่าหรือผลลัพธ์การสร้างใหม่ด้วยพิกัดไม่ถูกต้อง โปรดตรวจสอบขอบเขตคอลัมน์แล้วลองอีกครั้ง",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_FILE_TYPE_INVALID": "ตัวอย่างโปรไฟล์รองรับเฉพาะไฟล์ PDF หรือ EML",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_NOT_FOUND": "ไม่พบเอกสารตัวอย่าง โปรดรีเฟรชรายการตัวเลือกแล้วเลือกอีกครั้ง",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_DELETE_BLOCKED": "ตัวอย่างเทมเพลตนี้ยังอยู่ระหว่างแยกข้อมูล ถูกอ้างอิงโดย Blind Test หรือไฟล์ถูกใช้โดยงานอื่น จึงลบไม่ได้",
"SHIPPING_ORDER_DOCUMENT_PROFILE_IMMUTABLE": "ไม่สามารถแก้ไขโปรไฟล์เอกสารคำสั่งซื้อที่เผยแพร่แล้ว",
"SHIPPING_ORDER_DOCUMENT_PROFILE_LOCK_VERSION_REQUIRED": "ไม่มีเวอร์ชันล็อกของโปรไฟล์ โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING_ORDER_DOCUMENT_PROFILE_VERSION_CONFLICT": "ผู้ดูแลระบบรายอื่นแก้ไขโปรไฟล์แล้ว โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_REQUIRED": "ต้องมีสัญญาเช่าการแก้ไขที่ยังใช้งานอยู่ โปรดรีเฟรชหรือเข้ารับช่วงฉบับร่างก่อน",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_CONFLICT": "ฉบับร่างนี้กำลังถูกแก้ไขในเซสชันเบราว์เซอร์อื่น",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LOCK_VERSION_CONFLICT": "ฉบับร่างบนเซิร์ฟเวอร์เปลี่ยนแล้ว โปรดรีเฟรชและแก้ไขข้อขัดแย้งก่อนบันทึก",
"SHIPPING.ORDER_DOCUMENT_PROFILE_REVISION_NOT_FOUND": "ไม่พบการแก้ไขฉบับร่างที่ร้องขอ",
"SHIPPING.ORDER_DOCUMENT_PROFILE_VALIDATION_STALE": "การตรวจสอบนี้ไม่ตรงกับฉบับร่างปัจจุบันแล้ว",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_INVALID": "การตรวจสอบก่อนเผยแพร่ไม่ใช้ได้แล้ว โปรดตรวจสอบใหม่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_CONSUMED": "การตรวจสอบก่อนเผยแพร่นี้ถูกใช้ไปแล้ว",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_REQUIRED": "ต้องมีลายเซ็นเลย์เอาต์ที่ถูกต้องก่อนเผยแพร่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_STALE": "ลายเซ็นเลย์เอาต์หมดอายุแล้ว โปรดสร้างใหม่ก่อนเผยแพร่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_OVERLAP_DETECTED": "ตรวจพบการทับซ้อนข้ามเทมเพลตหรือความไม่ซ้ำไม่ผ่าน จึงเผยแพร่ไม่ได้",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DRAFT_EXISTS": "โปรไฟล์เอกสารคำสั่งซื้อนี้มีฉบับร่างอยู่แล้ว",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_INVALID": "ไม่สามารถเผยแพร่โปรไฟล์เอกสารคำสั่งซื้อปัจจุบัน",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_TRAINING": "ต้องผูกตัวอย่างการฝึกอย่างน้อยหนึ่งรายการก่อนเผยแพร่",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_BLIND_TEST": "ต้องทำและอนุมัติการทดสอบแบบปิดบังที่เป็นอิสระสำหรับคำนิยามปัจจุบันก่อนเผยแพร่",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_MULTILINE": "การทดสอบแบบปิดบังต้องมีตัวอย่างข้อมูลจริงแบบหลายรายการอย่างน้อยหนึ่งรายการก่อนเผยแพร่",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_CROSS_PAGE": "โปรไฟล์ข้ามหน้านี้ต้องมีตัวอย่างการทดสอบแบบปิดบังของหน้าต่อเนื่องก่อนเผยแพร่",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_NOT_INDEPENDENT": "ตัวอย่างการทดสอบแบบปิดบังห้ามใช้ซ้ำกับตัวอย่างการฝึกหรือการทำคำอธิบายประกอบ",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_CONFLICT": "เอกสารนี้อยู่ในชุดการทดสอบแบบปิดบังปัจจุบันแล้ว",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RETIRE_INVALID": "ไม่สามารถเลิกใช้โปรไฟล์เอกสารคำสั่งซื้อปัจจุบัน",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DELETE_BLOCKED": "ลบได้เฉพาะโปรไฟล์เอกสารคำสั่งซื้อฉบับร่าง",
"SHIPPING_ORDER_DOCUMENT_PROFILE_CLONE_INVALID": "สร้างฉบับร่างใหม่ได้จากเวอร์ชันที่เผยแพร่หรือเลิกใช้งานแล้วเท่านั้น",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_INVALID": "ขอบเขตคุณสมบัติการตรึงอัตโนมัติไม่ถูกต้อง โปรดตรวจสอบขอบเขตลูกค้า สถานการณ์ธุรกิจ และข้อกำหนดการยืนยัน",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_NOT_FOUND": "ไม่พบระเบียนคุณสมบัติการตรึงอัตโนมัติของเวอร์ชันโปรไฟล์ปัจจุบัน",
"SHIPPING_ORDER_FIELD_INVALID": "รหัส ขอบเขต หรือชนิดของฟิลด์คำสั่งซื้อไม่ถูกต้อง",
"SHIPPING_ORDER_FIELD_NOT_FOUND": "ไม่พบฟิลด์คำสั่งซื้อ",
"SHIPPING_ORDER_FIELD_IMMUTABLE": "ไม่สามารถแก้ไข code ขอบเขต และชนิดของฟิลด์หลังเผยแพร่",
"SHIPPING_ORDER_FIELD_CONFLICT": "รหัสฟิลด์คำสั่งซื้อมีอยู่แล้ว",
"SHIPPING_ORDER_FIELD_RETIRE_BLOCKED": "ฟิลด์คำสั่งซื้อถูกอ้างอิงโดยฉบับร่างหรือการตั้งค่าการทำงานและไม่สามารถเลิกใช้งานได้",
"SHIPPING_IDENTITY_DEFINITION_NOT_FOUND": "ไม่พบนิยามการระบุตัวตนลูกค้า",
"SHIPPING_IDENTITY_DEFINITION_INVALID": "นิยามการระบุตัวตนลูกค้าหรือฟิลด์แหล่งที่มาไม่ถูกต้อง",
"SHIPPING_IDENTITY_DEFINITION_CONFLICT": "นิยามการระบุตัวตนลูกค้าขัดแย้งกับการตั้งค่าที่มีอยู่",
"SHIPPING_IDENTITY_BUILTIN_IMMUTABLE": "ไม่สามารถแก้ไขหรือเลิกใช้นิยามการระบุตัวตนลูกค้าที่ระบบกำหนดได้",
"SHIPPING_IDENTITY_ORDER_FIELD_INVALID": "แหล่งการระบุตัวตนต้องเป็นฟิลด์ข้อความส่วนหัวคำสั่งซื้อที่เผยแพร่แล้ว",
"SHIPPING_IDENTITY_AUTOMATION_FORBIDDEN": "นิยามหรือหลักฐานการระบุตัวตนนี้ไม่อนุญาตให้ยืนยันอัตโนมัติ",
"SHIPPING_IDENTITY_RULE_SET_NOT_FOUND": "ไม่พบชุดกฎการระบุตัวตนลูกค้า",
"SHIPPING_IDENTITY_RULE_SET_INVALID": "การตั้งค่าชุดกฎการระบุตัวตนลูกค้าไม่ถูกต้อง",
"SHIPPING_IDENTITY_RULE_SET_IMMUTABLE": "ไม่สามารถแก้ไขชุดกฎการระบุตัวตนลูกค้าที่เผยแพร่แล้ว",
"SHIPPING_IDENTITY_RULE_SET_CONFLICT": "ชุดกฎการระบุตัวตนลูกค้าถูกแก้ไขโดยผู้ดูแลรายอื่นหรือไม่สามารถเผยแพร่ได้",
"SHIPPING_IDENTITY_TARGET_INVALID": "เป้าหมายหลักฐานการระบุตัวตนลูกค้าไม่ถูกต้องหรือไม่เปิดใช้งาน",
"SHIPPING_IDENTITY_EVIDENCE_VALUE_REQUIRED": "ต้องระบุค่าหลักฐานการระบุตัวตนลูกค้า",
"SHIPPING_IDENTITY_EVIDENCE_INVALID": "สถานะหลักฐานการระบุตัวตนลูกค้าไม่ถูกต้อง",
"SHIPPING_IDENTITY_EVIDENCE_CONFLICT": "มีหลักฐานการระบุตัวตนลูกค้านี้อยู่แล้ว",
"SHIPPING_IDENTITY_EVIDENCE_NOT_FOUND": "ไม่พบหลักฐานการระบุตัวตนลูกค้า",
"SHIPPING_CUSTOMER_LEGACY_IDENTIFIER_WRITE_DISABLED": "ไม่สามารถแก้ไขหลักฐานประเภทคงที่ได้อีกต่อไป โปรดใช้คำจำกัดความการระบุตัวตนที่เผยแพร่เพื่อสร้างหรืออัปเดตหลักฐานที่กำหนดค่า",
"AUTH_UNAUTHORIZED": "กรุณาเข้าสู่ระบบก่อน",
"SHIPPING_CUSTOMER_DELETE_REASON_REQUIRED": "ต้องระบุเหตุผลเพื่อลบลูกค้าถาวร",
"SHIPPING_CUSTOMER_DELETE_CONFIRMATION_INVALID": "รหัสย่อที่ใช้ยืนยันการลบไม่ถูกต้อง",
"SHIPPING_CUSTOMER_DELETE_BLOCKED": "ลูกค้ามีข้อมูลอ้างอิงทางธุรกิจหรือการตรวจสอบ จึงลบถาวรไม่ได้",
"SHIPPING_CUSTOMER_MERGED_LOCKED": "ลูกค้าถูกรวมแล้ว จึงใช้กับธุรกิจใหม่หรือแก้ไขไม่ได้",
"SHIPPING_CUSTOMER_MERGE_TARGET_REQUIRED": "เลือกลูกค้าเป้าหมายสำหรับการรวม",
"SHIPPING_CUSTOMER_MERGE_TARGET_INVALID": "ลูกค้าเป้าหมายสำหรับการรวมต้องอยู่ในสถานะใช้งาน",
"SHIPPING_CUSTOMER_MERGE_SAME_CUSTOMER": "ลูกค้าต้นทางและเป้าหมายต้องไม่ใช่รายเดียวกัน",
"SHIPPING_CUSTOMER_MERGE_SOURCE_ALREADY_MERGED": "ลูกค้าต้นทางถูกรวมแล้ว",
"SHIPPING_CUSTOMER_MERGE_REASON_REQUIRED": "ต้องระบุเหตุผลในการรวมลูกค้า",
"SHIPPING_CUSTOMER_MERGE_CONFIRMATION_INVALID": "รหัสย่อลูกค้าต้นทางที่ใช้ยืนยันการรวมไม่ถูกต้อง",
"AUTH_INCORRECT_PASSWORD": "รหัสผ่านไม่ถูกต้อง",
"AUTH_INCORRECT_CURRENT_PASSWORD": "รหัสผ่านปัจจุบันไม่ถูกต้อง",
"AUTH_INCORRECT_CURRENT_PASSWORD": "รหัสผ่านเดิมที่คุณป้อนไม่ถูกต้อง โปรดลองอีกครั้ง",
"AUTH_USER_NOT_FOUND": "ไม่พบผู้ใช้",
"AUTH_ACCOUNT_DISABLED": "บัญชีถูกปิดใช้งาน",
"AUTH_CASDOOR_IDENTITY_INVALID": "Casdoor ไม่ได้ส่งคืนข้อมูลระบุตัวผู้ใช้ที่คงที่ โปรดตรวจสอบการตั้งค่า OIDC",
"AUTH_SSO_CONFIG_ERROR": "การตั้งค่าแอป SSO ไม่ถูกต้อง โปรดติดต่อผู้ดูแลระบบ",
"AUTH_SSO_APP_NOT_FOUND": "ยังไม่ได้ตั้งค่าระบบเป้าหมายหรือระบบถูกปิดใช้งาน",
"AUTH_SSO_IDENTITY_UNSUPPORTED": "เซสชันปัจจุบันไม่ได้ยืนยันผ่าน Casdoor โปรดเข้าสู่ระบบใหม่",
"AUTH_SSO_ASSERTION_ISSUE_FAILED": "ไม่สามารถออกข้อมูลยืนยันการเข้าสู่ระบบสำหรับบริการในผลิตภัณฑ์ได้ โปรดลองใหม่",
"AUTH_FORBIDDEN": "คุณไม่มีสิทธิ์ดำเนินการนี้",
"SHIPPING_TASK_SELECTION_INVALID": "เลือกงานจัดส่งได้ 1 ถึง 100 งาน",
"SHIPPING_TASK_DELETE_REASON_REQUIRED": "ต้องระบุเหตุผลในการลบหรือยกเลิกงาน",
"SHIPPING_TASK_EXTERNAL_VOID_BLOCKED": "งานกำลังอัปโหลดภายนอกหรืออัปโหลดแล้ว จึงทำได้เพียงเก็บถาวร",
"SHIPPING_TASK_ALREADY_DELETED": "งานอยู่ในถังรีไซเคิลแล้ว",
"SHIPPING_TASK_RESTORE_BLOCKED": "งานที่ยกเลิกหรือเก็บถาวรแล้วไม่สามารถกู้คืนจากถังรีไซเคิลได้",
"SHIPPING_TASK_LIFECYCLE_CONFLICT": "สถานะวงจรชีวิตของงานไม่อนุญาตให้ดำเนินการนี้",
"SHIPPING_TASK_PURGE_BLOCKED": "งานมีการอ้างอิงทางธุรกิจหรือการตรวจสอบ จึงลบถาวรไม่ได้",
"SHIPPING_TASK_PURGE_REASON_REQUIRED": "ต้องระบุเหตุผลในการลบงานถาวร",
"RESOURCE_NOT_FOUND": "ไม่พบทรัพยากรที่ร้องขอ",
"RESOURCE_CONFLICT": "คำขอขัดแย้ง โปรดรีเฟรชแล้วลองใหม่",
"VALIDATION_INVALID_PARAM": "พารามิเตอร์คำขอไม่ถูกต้อง",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_NOT_FOUND": "ไม่พบการแมปคลังระบบภายนอก",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_CONFLICT": "มีการแมปคลังระบบภายนอกที่ใช้งานอยู่สำหรับแหล่งสินค้าคงคลังและคลังขนส่งนี้แล้ว",
"SHIPPING_INVENTORY_SOURCE_CONFIG_INVALID": "เส้นทางรายงาน พารามิเตอร์ค้นหา หรือนามแฝงของแหล่งสินค้าคงคลังไม่ถูกต้อง",
"SHIPPING_RPA_PROFILE_CONFIG_INVALID": "การตั้งค่าการเชื่อมต่อเข้าสู่ระบบขนส่งไม่ถูกต้อง ขณะนี้รองรับเฉพาะชื่อผู้ใช้และรหัสผ่าน",
"SHIPPING_EXCEL_TEMPLATE_ASSET_INVALID": "ไฟล์เทมเพลต Excel ไม่ถูกต้องหรือไม่สามารถอ่านได้",
"SHIPPING_EXCEL_TEMPLATE_DEFINITION_INVALID": "ข้อกำหนดการจับคู่เทมเพลต Excel ไม่ถูกต้อง",
"SHIPPING_EXCEL_TEMPLATE_DELETE_BLOCKED": "ลบได้เฉพาะเทมเพลต Excel ฉบับร่างเท่านั้น",
"SHIPPING_EXCEL_TEMPLATE_DRAFT_EXISTS": "เทมเพลตนี้มีฉบับร่างอยู่แล้ว",
"SHIPPING_EXCEL_TEMPLATE_FIELD_INVALID": "การจับคู่ฟิลด์เทมเพลต Excel ไม่ถูกต้อง",
"SHIPPING_EXCEL_TEMPLATE_IMMUTABLE": "ไม่สามารถแก้ไขเทมเพลต Excel ที่เผยแพร่หรือเลิกใช้งานแล้ว",
"SHIPPING_EXCEL_TEMPLATE_INVALID": "การตั้งค่าเทมเพลต Excel ไม่ถูกต้อง",
"SHIPPING_EXCEL_TEMPLATE_NOT_FOUND": "ไม่พบเทมเพลต Excel",
"SHIPPING_EXCEL_TEMPLATE_PUBLISH_INVALID": "ไม่สามารถเผยแพร่เทมเพลต Excel นี้ได้",
"SHIPPING_EXCEL_TEMPLATE_REQUIRED": "ต้องผูกเทมเพลต Excel ที่เผยแพร่แล้วก่อนเปิดใช้แหล่งสินค้าคงคลัง",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_BLOCKED": "เทมเพลต Excel ยังถูกอ้างอิงโดยแหล่งสินค้าคงคลังและไม่สามารถเลิกใช้งานได้",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_INVALID": "ไม่สามารถเลิกใช้งานเทมเพลต Excel นี้ได้",
"SHIPPING_EXCEL_TEMPLATE_TARGET_DUPLICATE": "เทมเพลต Excel มีการจับคู่เซลล์ปลายทางซ้ำกัน",
"SHIPPING_EXPORT_ARCHIVE_EMPTY": "งานที่เลือกไม่มีไฟล์ส่งออกให้ดาวน์โหลด",
"SHIPPING_EXPORT_ARCHIVE_NOT_FOUND": "ไม่พบไฟล์ส่งออกที่ดาวน์โหลดได้",
"SHIPPING_EXPORT_ARCHIVE_SELECTION_INVALID": "การเลือกงานสำหรับดาวน์โหลดแบบกลุ่มไม่ถูกต้อง",
"SHIPPING_EXPORT_ARCHIVE_TOO_LARGE": "การดาวน์โหลดแบบกลุ่มรองรับสูงสุด 100 งานต่อครั้ง",
"SHIPPING_INVENTORY_PARSING_PROFILE_DELETE_BLOCKED": "ลบได้เฉพาะโปรไฟล์การแยกข้อมูลสินค้าคงคลังฉบับร่างเท่านั้น",
"SHIPPING_INVENTORY_PARSING_PROFILE_IMMUTABLE": "ไม่สามารถแก้ไขโปรไฟล์การแยกข้อมูลสินค้าคงคลังที่เผยแพร่หรือเลิกใช้งานแล้ว",
"SHIPPING_INVENTORY_PARSING_PROFILE_INVALID": "โปรไฟล์การแยกข้อมูลสินค้าคงคลังไม่ถูกต้อง",
"SHIPPING_INVENTORY_PARSING_PROFILE_NOT_FOUND": "ไม่พบโปรไฟล์การแยกข้อมูลสินค้าคงคลัง",
"SHIPPING_INVENTORY_PARSING_PROFILE_PUBLISH_INVALID": "ไม่สามารถเผยแพร่โปรไฟล์การแยกข้อมูลสินค้าคงคลังนี้ได้",
"SHIPPING_INVENTORY_PARSING_PROFILE_REQUIRED": "ต้องผูกโปรไฟล์การแยกข้อมูลสินค้าคงคลังที่เผยแพร่แล้วก่อนเปิดใช้แหล่งสินค้าคงคลัง",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_BLOCKED": "โปรไฟล์การแยกข้อมูลสินค้าคงคลังยังถูกอ้างอิงและไม่สามารถเลิกใช้งานได้",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_INVALID": "ไม่สามารถเลิกใช้งานโปรไฟล์การแยกข้อมูลสินค้าคงคลังนี้ได้",
"SHIPPING_INVENTORY_FIELD_CONFLICT": "ชื่อฟิลด์สต็อกมีอยู่แล้ว",
"SHIPPING_INVENTORY_FIELD_DELETE_BLOCKED": "ฟิลด์สต็อกนี้เป็นฟิลด์หลักหรือยังถูกอ้างอิงโดยการตั้งค่า จึงลบหรือเลิกใช้ไม่ได้",
"SHIPPING_INVENTORY_FIELD_IMMUTABLE": "ฟิลด์สต็อกที่เลิกใช้แล้วแก้ไขไม่ได้ และรูปแบบกับวัตถุประสงค์ของฟิลด์หลักเปลี่ยนไม่ได้",
"SHIPPING_INVENTORY_FIELD_INVALID": "ข้อมูลฟิลด์สต็อกไม่ครบถ้วนหรือไม่ถูกต้อง",
"SHIPPING_INVENTORY_FIELD_NOT_FOUND": "ไม่พบฟิลด์สต็อก",
"SHIPPING_INVENTORY_FIELD_RETIRE_BLOCKED": "ฟิลด์สต็อกนี้ยังถูกอ้างอิงโดยการตั้งค่า จึงเลิกใช้ไม่ได้",
"SHIPPING_INVENTORY_RULE_CONDITION_INVALID": "เงื่อนไขกฎการกำหนดเส้นทางสินค้าคงคลังไม่ถูกต้อง",
"SHIPPING_INVENTORY_RULE_CONDITIONS_REQUIRED": "กฎการกำหนดเส้นทางสินค้าคงคลังต้องมีอย่างน้อยหนึ่งเงื่อนไข",
"SHIPPING_INVENTORY_RULE_CONFLICT": "ชื่อหรือลำดับความสำคัญของกฎการกำหนดเส้นทางสินค้าคงคลังขัดแย้งกัน",
"SHIPPING_INVENTORY_RULE_DELETE_BLOCKED": "ลบได้เฉพาะกฎการกำหนดเส้นทางสินค้าคงคลังฉบับร่างเท่านั้น",
"SHIPPING_INVENTORY_RULE_IMMUTABLE": "ไม่สามารถแก้ไขกฎการกำหนดเส้นทางสินค้าคงคลังที่เผยแพร่แล้ว",
"SHIPPING_INVENTORY_RULE_INVALID": "การตั้งค่ากฎการกำหนดเส้นทางสินค้าคงคลังไม่ถูกต้อง",
"SHIPPING_INVENTORY_RULE_NOT_FOUND": "ไม่พบกฎการกำหนดเส้นทางสินค้าคงคลัง",
"SHIPPING_INVENTORY_RULE_PUBLISH_INVALID": "ไม่สามารถเผยแพร่กฎการกำหนดเส้นทางสินค้าคงคลังนี้ได้",
"SHIPPING_INVENTORY_RULE_SOURCE_INVALID": "กฎการกำหนดเส้นทางสินค้าคงคลังอ้างอิงแหล่งสินค้าคงคลังที่ไม่มีอยู่หรือปิดใช้งานแล้ว",
"SHIPPING_INVENTORY_RULE_RETIRE_INVALID": "ไม่สามารถเลิกใช้งานกฎการกำหนดเส้นทางสินค้าคงคลังนี้ได้",
"SHIPPING_INVENTORY_SOURCE_DELETE_BLOCKED": "แหล่งสินค้าคงคลังยังถูกอ้างอิงโดยข้อมูลธุรกิจและไม่สามารถลบได้",
"SHIPPING_INVENTORY_SOURCE_NOT_FOUND": "ไม่พบแหล่งสินค้าคงคลัง",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_REQUIRED": "โปรดทำการส่งออกทดสอบและตรวจสอบก่อนเปิดใช้งานไซต์สต็อก",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_BLOCKED": "ไซต์สต็อกยังไม่ผ่านการตรวจสอบก่อนใช้งานจริง จึงไม่สามารถเปิดใช้งานได้",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_REQUIRED": "โปรดเลือกไฟล์ตัวอย่างสต็อก",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_TOO_LARGE": "ไฟล์ตัวอย่างสต็อกเกินขีดจำกัด 20 MB",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_INVALID": "ไม่สามารถระบุไฟล์ตัวอย่างสต็อกได้ โปรดตรวจสอบรูปแบบไฟล์และหัวตาราง",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_NOT_FOUND": "ไม่พบระเบียนการระบุโครงสร้างไฟล์สต็อก",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_SELECTION_INVALID": "ชีต หัวตาราง หรือคอลัมน์ต้นทางที่เลือกไม่อยู่ในผลการระบุไฟล์สต็อก",
"SHIPPING_TEMP_INVENTORY_CONTEXT_INVALID": "บริบทการสนทนาปัจจุบันไม่สามารถประมวลผลไฟล์สต็อกชั่วคราวได้",
"SHIPPING_TEMP_INVENTORY_ASSET_REQUIRED": "โปรดอัปโหลดไฟล์สต็อกก่อน",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_FOUND": "ไม่พบไฟล์สต็อกที่ใช้ได้ในการสนทนานี้",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_READY": "ไฟล์สต็อกยังอัปโหลดไม่เสร็จ โปรดลองอีกครั้งภายหลัง",
"SHIPPING_TEMP_INVENTORY_FILE_TYPE_INVALID": "ไฟล์สต็อกชั่วคราวต้องเป็น .xls, .xlsx หรือ .csv เท่านั้น",
"SHIPPING_TEMP_INVENTORY_FILE_TOO_LARGE": "ไฟล์สต็อกชั่วคราวเกินขีดจำกัด 20 MB",
"SHIPPING_TEMP_INVENTORY_ANALYSIS_INVALID": "ไม่สามารถระบุโครงสร้างไฟล์สต็อกได้ โปรดตรวจสอบรูปแบบและส่วนหัว",
"SHIPPING_TEMP_INVENTORY_SESSION_NOT_FOUND": "ไม่พบเซสชันสต็อกชั่วคราว เซสชันหมดอายุ หรือไม่มีสิทธิ์เข้าถึง",
"SHIPPING_TEMP_INVENTORY_MAPPING_STATE_INVALID": "เซสชันสต็อกชั่วคราวนี้ไม่สามารถส่งคำแนะนำการแมปเพิ่มเติมได้",
"SHIPPING_TEMP_INVENTORY_MAPPING_INVALID": "คำแนะนำการแมปฟิลด์สต็อกไม่ถูกต้อง ไม่ครบถ้วน หรือมีคอลัมน์ที่ไม่มีในไฟล์",
"SHIPPING_TEMP_INVENTORY_CONFIRMATION_INVALID": "เงื่อนไขการยืนยันสต็อกชั่วคราวไม่ครบ โปรดเลือกแผนหรือการแมปที่แนะนำอีกครั้ง",
"SHIPPING_TEMP_INVENTORY_QUALITY_INVALID": "ไฟล์สต็อกชั่วคราวไม่ผ่านการตรวจสอบเลขชิ้นส่วน รหัสการจอง หรือจำนวนคงเหลือ",
"SHIPPING_TEMP_INVENTORY_SESSION_EXPIRED": "เซสชันสต็อกชั่วคราวหมดอายุ โปรดอัปโหลดไฟล์อีกครั้ง",
"SHIPPING_TEMP_INVENTORY_TASK_NOT_FOUND": "ไม่พบงานจัดส่งในการสนทนานี้ที่ใช้สต็อกชั่วคราวได้",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_INVALID": "โปรดส่งออกทดสอบขณะที่ไซต์สต็อกปิดใช้งาน",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_UNAVAILABLE": "RPA Worker ไม่พร้อมใช้งานและไม่สามารถเริ่มการส่งออกทดสอบได้",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_FOUND": "ไม่พบระเบียนการส่งออกทดสอบของไซต์สต็อก",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_READY": "การส่งออกทดสอบยังไม่เสร็จ จึงยังยืนยันแผนการอ่านไม่ได้",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_STALE": "การตั้งค่าไซต์สต็อกเปลี่ยนแล้ว โปรดส่งออกทดสอบอีกครั้ง",
"SHIPPING_RPA_PROFILE_CONFLICT": "ชื่อโปรไฟล์เข้าสู่ระบบขนส่งมีอยู่แล้ว",
"SHIPPING_RPA_PROFILE_DELETE_BLOCKED": "โปรไฟล์เข้าสู่ระบบขนส่งยังถูกอ้างอิงและไม่สามารถลบได้",
"SHIPPING_RPA_PROFILE_DISABLE_BLOCKED": "โปรไฟล์เข้าสู่ระบบขนส่งยังถูกอ้างอิงโดยแหล่งสินค้าคงคลังที่เปิดใช้และไม่สามารถปิดใช้งานได้",
"SHIPPING_RPA_PROFILE_DISABLED": "ต้องเปิดใช้โปรไฟล์เข้าสู่ระบบขนส่งก่อนเปิดใช้แหล่งสินค้าคงคลัง",
"SHIPPING_RPA_PROFILE_NOT_FOUND": "ไม่พบโปรไฟล์เข้าสู่ระบบขนส่ง",
"USER_USERNAME_REQUIRED": "กรุณากรอกชื่อผู้ใช้",
"USER_USERNAME_EXISTS": "ชื่อผู้ใช้นี้มีอยู่แล้ว",
"USER_EMAIL_INVALID": "รูปแบบอีเมลไม่ถูกต้อง",
@@ -217,12 +24,6 @@
"USER_UNIQUENESS_CONFLICT": "ข้อมูลซ้ำกัน",
"SYSTEM_INTERNAL_ERROR": "เซิร์ฟเวอร์ขัดข้อง กรุณาลองใหม่ภายหลัง",
"AGENT_HANDLER_NOT_CONFIGURED": "ยังไม่ได้กำหนด Agent handler กรุณาติดต่อผู้ดูแลระบบ",
"AGENT_RUNTIME_CAPABILITY_NOT_DECLARED": "ประเภทแอปพลิเคชันนี้ไม่ได้ประกาศความสามารถทางธุรกิจเบื้องหลังที่ร้องขอ",
"AGENT_RUNTIME_BINDING_CONFIG_INVALID": "การตั้งค่าเวลาหมดอายุหรือการลองใหม่ของความสามารถทางธุรกิจเบื้องหลังไม่ถูกต้อง",
"AGENT_RUNTIME_PROVIDER_DISABLED": "Provider ความสามารถภายในที่เลือกถูกปิดใช้งาน",
"AGENT_RUNTIME_PROVIDER_INVALID": "แอปพลิเคชันที่เลือกไม่ตรงตามข้อกำหนด Provider ของความสามารถนี้",
"AGENT_RUNTIME_PROVIDER_CONFIG_INCOMPLETE": "Provider ภายในยังขาด Dify App ID, API base URL หรือ API key",
"AGENT_RUNTIME_PROVIDER_DELETE_BLOCKED": "แอปพลิเคชันนี้ถูกอ้างอิงโดย runtime binding หรืองานในอดีต จึงไม่สามารถลบได้",
"SYSTEM_HTTP_ERROR": "คำขอล้มเหลว",
"WECOM_RESET_NOT_CONFIGURED": "ยังไม่ได้ตั้งค่าการรีเซ็ตรหัสผ่านผ่าน WeCom โปรดเปิดใช้งานและกรอก Corp ID, Agent ID, Secret ใน Admin → WeCom → System Settings",
"WECOM_NOTIFY_DISABLED": "การแจ้งเตือน WeCom ถูกปิด โปรดเปิดใน Admin → WeCom → Notify Settings",
@@ -249,15 +50,15 @@
"FILE_ASSET_SIZE_EXCEEDED": "ขนาดไฟล์เกินขีดจำกัด",
"FILE_ASSET_EXPIRED": "ไฟล์หมดอายุแล้ว",
"FILE_ASSET_ALREADY_REFERENCED": "ไฟล์ถูกอ้างอิงโดยธุรกิจแล้ว ไม่สามารถลบได้",
"PROCUREMENT_CONTRACT_TEMPLATE_REFERENCED": "เทมเพลตนี้ถูกอ้างอิงโดยประวัติการตรวจสอบและไม่สามารถลบได้ โปรดปิดใช้งานแทน",
"PROCUREMENT_CONTRACT_INVALID_COMPARISON_REGION_CONFIG": "การตั้งค่าพื้นที่เปรียบเทียบไม่ถูกต้อง โปรดตรวจสอบฟิลด์ จุดยึด และนโยบายภาคผนวก",
"PROCUREMENT_CONTRACT_COMPARISON_REGION_PREVIEW_FAILED": "ไม่สามารถระบุพื้นที่เปรียบเทียบจากไฟล์เทมเพลตได้",
"FILE_ASSET_INVALID_STATUS": "สถานะไฟล์ไม่อนุญาตการดำเนินการนี้",
"SHIPPING_NOTICE_INTAKE_NOT_FOUND": "ไม่พบบันทึก intake ของใบแจ้งจัดส่ง",
"SHIPPING_NOTICE_INTAKE_PARSE_PENDING": "ใบแจ้งจัดส่งยังกำลังแยกข้อความ โปรดรอก่อนยืนยันสร้างชุดงาน",
"SHIPPING_NOTICE_INTAKE_PARSE_FAILED": "แยกข้อความใบแจ้งจัดส่งล้มเหลว โปรดลองใหม่หรือลบแล้วอัปโหลดใหม่",
"SHIPPING_NOTICE_INTAKE_PARSE_TIMEOUT": "การแยกข้อความใบแจ้งจัดส่งหมดเวลา โปรดลองใหม่หรือลบแล้วอัปโหลดใหม่",
"SHIPPING_NOTICE_INTAKE_STAGE2_PERSIST_FAILED": "บันทึกอีเมลหรือไฟล์แนบที่ประมวลผลเบื้องต้นไม่สำเร็จ โปรดลองแยกข้อความใหม่",
"SHIPPING_NOTICE_INTAKE_ATTACHMENTS_INCOMPLETE": "ไฟล์แนบใบแจ้งจัดส่งแยกข้อความไม่ครบ โปรดลองแยกใหม่หรือลบแล้วอัปโหลดใหม่",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "ไฟล์นี้เข้าสู่กระบวนการคำสั่งซื้อแล้ว โปรดดูผลลัพธ์เดิมโดยไม่ต้องส่งซ้ำ",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_CONSUMED": "ไฟล์นี้มีผลการประมวลผลคำสั่งซื้อแล้ว โปรดดูผลลัพธ์หรือใช้การรู้จำใหม่",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "บันทึก intake ถูกใช้งานไปแล้ว",
"SHIPPING_NOTICE_INTAKE_EXPIRED": "บันทึก intake หมดอายุแล้ว",
"SHIPPING_NOTICE_INTAKE_INVALID_STATUS": "สถานะ intake ปัจจุบันไม่อนุญาตการดำเนินการนี้",
"SHIPPING_NOTICE_DUPLICATE_RESOLUTION_REQUIRED": "พบใบแจ้งจัดส่งซ้ำ กรุณาเลือกวิธีดำเนินการก่อน",
@@ -269,252 +70,13 @@
"SHIPPING_NOTICE_REVISION_ALREADY_EXISTS": "งานนี้มีเวอร์ชันแก้ไขถัดไปอยู่แล้ว",
"SHIPPING_NOTICE_REVISION_CONFLICT": "งานเป้าหมายมีเวอร์ชันแก้ไขอยู่แล้ว กรุณาเปิดเวอร์ชันที่มีหรือตรวจสอบใหม่",
"SHIPPING_NOTICE_FINGERPRINT_UNAVAILABLE": "สร้างลายนิ้วมือทางธุรกิจที่เชื่อถือได้ไม่ได้ จะใช้การตัดรายการซ้ำด้วยแฮชไฟล์เท่านั้น",
"SHIPPING_NOTICE_CANDIDATE_NOT_FOUND": "ไม่พบรายการคำสั่งซื้อ",
"SHIPPING_NOTICE_CANDIDATE_ALREADY_CONSUMED": "รายการคำสั่งซื้อนี้สร้างงานแล้วและไม่สามารถแก้ไขได้",
"SHIPPING_NOTICE_CANDIDATE_NOT_SELECTED": "ยังไม่ได้เลือกรายการคำสั่งซื้อ",
"SHIPPING_NOTICE_CANDIDATE_REVIEW_REQUIRED": "รายการคำสั่งซื้อยังต้องได้รับการตรวจสอบ",
"SHIPPING_NOTICE_CANDIDATE_DOCUMENT_INVALID": "ไฟล์แนบหลักของรายการคำสั่งซื้อไม่ถูกต้อง",
"SHIPPING_NOTICE_CANDIDATE_SELECTION_CHANGED": "สถานะการเลือกรายการคำสั่งซื้อเปลี่ยนแปลง โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING_NOTICE_DUPLICATE_ACTION_UNAVAILABLE": "สถานะรายการซ้ำปัจจุบันไม่อนุญาตการดำเนินการนี้",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONTEXT_INVALID": "บริบทการแยกคำสั่งซื้อไม่ถูกต้อง โปรดลองใหม่จากขั้นตอนที่ล้มเหลวหรือส่งเอกสารปัจจุบันอีกครั้ง",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PENDING": "การประมวลผลอีเมลเบื้องต้นยังไม่เสร็จ หรือกำลังแยกคำสั่งซื้ออยู่",
"SHIPPING_NOTICE_ORDER_EXTRACTION_LAYOUT_PENDING": "กำลังแยกโครงร่างไฟล์แนบคำสั่งซื้อ โปรดรอก่อนส่ง",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_COMPLETED": "บันทึกผลการแยกคำสั่งซื้อของอีเมลนี้แล้ว โปรดตรวจสอบรายการคำสั่งซื้อที่เสนอหรืองานที่มีอยู่",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INVALID_RESULT": "ผลการแยกคำสั่งซื้อไม่ตรงตามสัญญาข้อมูล โปรดลองแยกข้อความใหม่",
"SHIPPING_NOTICE_ORDER_EXTRACTION_FAILED": "การระบุคำสั่งซื้อล้มเหลว สามารถลองใหม่จากขั้นตอนที่ล้มเหลวโดยไม่ต้องอัปโหลดซ้ำ",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_NOT_FOUND": "ไม่พบแอปตัวแทนขนส่ง",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_INVALID": "โปรดเลือกแอปใบแจ้งจัดส่งที่เปิดใช้งาน",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_FORBIDDEN": "คุณไม่มีสิทธิ์ใช้แอปตัวแทนขนส่งนี้",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_REQUIRED": "ต้องระบุการสนทนาของงานแยกคำสั่งซื้อ",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_NOT_FOUND": "ไม่พบการสนทนาของงานแยกคำสั่งซื้อ",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_MISMATCH": "ไฟล์แนบที่เลือกไม่ได้อยู่ในการสนทนานี้",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INTAKES_INVALID": "เลือกไฟล์แนบใบแจ้งจัดส่งที่ถูกต้อง 1 ถึง 50 ไฟล์",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_ACTIVE": "มีงานแยกคำสั่งซื้อที่กำลังทำงานสำหรับไฟล์แนบที่เลือกแล้ว",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_NOT_FOUND": "ไม่พบงานแยกคำสั่งซื้อหรือคุณไม่มีสิทธิ์เข้าถึง",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_TRANSITION_INVALID": "สถานะงานแยกคำสั่งซื้อเปลี่ยนแล้ว โปรดรีเฟรชและลองใหม่",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_NOT_CONFIGURED": "แอปขนส่งยังไม่ได้ผูก Workflow แยกคำสั่งซื้อที่เปิดใช้งาน โปรดติดต่อผู้ดูแลระบบ",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_INVALID_RESPONSE": "Workflow แยกคำสั่งซื้อส่งคืนข้อมูลที่ไม่ตรงตามสัญญาแบบมีโครงสร้าง",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_FAILED": "การเรียก Workflow แยกคำสั่งซื้อล้มเหลว ระบบจะลองใหม่ตามนโยบาย",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_CHANGED": "แอปหรือที่อยู่ของ Workflow แยกคำสั่งซื้อเปลี่ยนแล้ว โปรดเริ่มงานใหม่",
"SHIPPING_NOTICE_ORDER_EXTRACTION_TIMEOUT": "Workflow แยกคำสั่งซื้อหมดเวลา ระบบจะลองใหม่ตามนโยบาย",
"SHIPPING_NOTICE_CANDIDATE_SOURCE_CHANGED": "เนื้อหาอีเมลหรือไฟล์แนบเปลี่ยนแปลง โปรดส่งอีกครั้งเพื่อแยกคำสั่งซื้อใหม่",
"SHIPPING_CUSTOMER_IMPORT_SOURCE_INVALID": "รหัสระบบต้นทางไม่ถูกต้องหรือยาวเกินไป",
"SHIPPING_CUSTOMER_IMPORT_TOO_MANY_ROWS": "จำนวนแถวนำเข้าเกินขีดจำกัด",
"SHIPPING_CUSTOMER_IMPORT_KEY_INVALID": "รหัสลูกค้าเดิมยาวเกินขีดจำกัด",
"SHIPPING_CUSTOMER_IMPORT_NAME_TOO_LONG": "ชื่อลูกค้ามาตรฐานยาวเกินขีดจำกัด",
"SHIPPING_CUSTOMER_SHADOW_NOT_FOUND": "ไม่พบตัวอย่างการระบุแบบเงา",
"SHIPPING_CUSTOMER_SHADOW_LABEL_REQUIRED": "เลือกลูกค้ามาตรฐานเป็นป้ายกำกับจากผู้ดูแล",
"SHIPPING_CUSTOMER_CONFIRMATION_REQUIRED": "ยังไม่ยืนยันลูกค้ามาตรฐาน โปรดเลือกลูกค้าอย่างเป็นทางการก่อน",
"SHIPPING_CUSTOMER_REQUIRED_BEFORE_TASK": "ต้องยืนยันลูกค้าก่อนสร้างงาน โปรดเลือกลูกค้ามาตรฐานก่อน",
"SHIPPING_CUSTOMER_CONFIRMATION_CUSTOMER_REQUIRED": "เลือกลูกค้ามาตรฐาน",
"SHIPPING_CUSTOMER_CASE_REQUIRED": "งานจัดส่งไม่มีความเชื่อมโยงกับรายการธุรกิจ จึงไม่สามารถยืนยันลูกค้าได้",
"SHIPPING_NOTICE_REVISION_CASE_MISSING": "งานเป้าหมายสำหรับการแก้ไขไม่มีความเชื่อมโยงกับรายการธุรกิจ จึงไม่สามารถสร้างฉบับแก้ไขได้",
"SHIPPING_CUSTOMER_INACTIVE": "ลูกค้าที่เลือกถูกปิดใช้งาน",
"SHIPPING_CUSTOMER_NUMBERED_CASE_LOCKED": "รายการธุรกิจที่มีเลขแล้วไม่สามารถเปลี่ยนลูกค้าโดยเงียบได้",
"SHIPPING_FIELD_CONFLICT_NOT_FOUND": "ไม่พบความขัดแย้งของฟิลด์คำสั่งซื้อ",
"SHIPPING_FIELD_CONFLICT_ALREADY_RESOLVED": "ความขัดแย้งนี้ถูกแก้ไขแล้ว",
"SHIPPING_FIELD_CONFLICT_VERSION_MISMATCH": "เวอร์ชันความขัดแย้งเปลี่ยนแล้ว กรุณารีเฟรชแล้วลองใหม่",
"SHIPPING_ORDER_DATA_VERSION_MISMATCH": "เวอร์ชันข้อมูลคำสั่งซื้อเปลี่ยนแล้ว กรุณารีเฟรชแล้วลองใหม่",
"SHIPPING_ORDER_FIELD_EDIT_FORBIDDEN": "ไม่สามารถแก้ไขฟิลด์นี้ในงานทางการได้",
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "ไม่สามารถแก้ไขฟิลด์นี้ในงานทางการได้",
"SHIPPING_ORDER_EXCEL_FROZEN": "สร้าง Excel จัดส่งแล้ว ฟิลด์งานทางการถูกล็อก",
"SHIPPING.ORDER_EXCEL_FROZEN": "สร้าง Excel จัดส่งแล้ว ฟิลด์งานทางการถูกล็อก",
"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": "ต้องระบุชื่อลูกค้ามาตรฐาน",
"SHIPPING_CUSTOMER_SHORT_CODE_INVALID": "รหัสย่อลูกค้าต้องเป็นตัวอักษร 2-6 ตัว",
"SHIPPING_CUSTOMER_SHORT_CODE_EXISTS": "รหัสย่อลูกค้ามีอยู่แล้ว",
"SHIPPING_CUSTOMER_STATUS_INVALID": "สถานะลูกค้าไม่ถูกต้อง",
"SHIPPING_CUSTOMER_CONFLICT": "ข้อมูลลูกค้าขัดแย้ง",
"SHIPPING_CUSTOMER_IDENTIFIER_TYPE_INVALID": "ประเภทหลักฐานไม่ถูกต้อง",
"SHIPPING_CUSTOMER_IDENTIFIER_VALUE_REQUIRED": "ต้องระบุค่าหลักฐาน",
"SHIPPING_CUSTOMER_EMAIL_INVALID": "อีเมลลูกค้าไม่ถูกต้อง",
"SHIPPING_CUSTOMER_DOMAIN_INVALID": "โดเมนลูกค้าไม่ถูกต้อง",
"SHIPPING_CUSTOMER_IDENTIFIER_STATUS_INVALID": "สถานะหลักฐานไม่ถูกต้อง",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_FOUND": "ไม่พบหลักฐาน",
"SHIPPING_CUSTOMER_IDENTIFIER_EXISTS": "หลักฐานนี้มีอยู่แล้ว",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_APPROVED": "เปิดจับคู่อัตโนมัติได้เฉพาะหลักฐานที่อนุมัติแล้ว",
"SHIPPING_CUSTOMER_PUBLIC_DOMAIN_AUTO_MATCH_FORBIDDEN": "โดเมนอีเมลสาธารณะใช้จับคู่อัตโนมัติไม่ได้",
"SHIPPING_CUSTOMER_EXTERNAL_REF_CONFLICT": "รหัสลูกค้าเดิมผูกกับลูกค้ารายอื่นแล้ว",
"SHIPPING_CUSTOMER_IMPORT_FILE_REQUIRED": "เลือกไฟล์นำเข้า",
"SHIPPING_CUSTOMER_IMPORT_FILE_TYPE_INVALID": "รองรับเฉพาะไฟล์ .xlsx",
"SHIPPING_CUSTOMER_IMPORT_FILE_EMPTY": "ไฟล์นำเข้าว่าง",
"SHIPPING_CUSTOMER_IMPORT_FILE_TOO_LARGE": "ไฟล์นำเข้าเกิน 5 MB",
"SHIPPING_CUSTOMER_IMPORT_FILE_INVALID": "ไฟล์ Excel นำเข้าไม่ถูกต้อง",
"SHIPPING_CUSTOMER_IMPORT_SHEET_MISSING": "ขาดชีตที่จำเป็น",
"SHIPPING_CUSTOMER_IMPORT_COLUMNS_MISSING": "ขาดคอลัมน์ที่จำเป็น",
"SHIPPING_CUSTOMER_IMPORT_KEY_REQUIRED": "ต้องระบุรหัสลูกค้าเดิม",
"SHIPPING_CUSTOMER_IMPORT_DUPLICATE_KEY": "รหัสลูกค้าเดิมซ้ำในแหล่งเดียวกัน",
"SHIPPING_CUSTOMER_IMPORT_SHORT_CODE_CONFLICT": "รหัสย่อขัดแย้งกับลูกค้าที่มีอยู่",
"SHIPPING_CUSTOMER_IMPORT_NAME_MATCH": "ชื่อลูกค้าอาจซ้ำกับลูกค้าที่มีอยู่",
"SHIPPING_CUSTOMER_IMPORT_IDENTIFIER_CUSTOMER_MISSING": "ไม่พบลูกค้าที่ตรงกับหลักฐาน",
"SHIPPING_CUSTOMER_IMPORT_NOT_FOUND": "ไม่พบชุดนำเข้า",
"SHIPPING_CUSTOMER_IMPORT_ROW_NOT_FOUND": "ไม่พบแถวนำเข้า",
"SHIPPING_CUSTOMER_IMPORT_DECISION_INVALID": "การดำเนินการของแถวไม่ถูกต้อง",
"SHIPPING_CUSTOMER_IMPORT_TARGET_REQUIRED": "ต้องเลือกลูกค้าเป้าหมายสำหรับอัปเดตหรือรวม",
"SHIPPING_CUSTOMER_IMPORT_HAS_ERRORS": "ชุดนำเข้ามีข้อผิดพลาดที่บล็อก",
"SHIPPING_CUSTOMER_IMPORT_DECISIONS_REQUIRED": "จัดการแถวคำเตือนทั้งหมดก่อน",
"SHIPPING_CUSTOMER_IMPORT_ALREADY_PUBLISHED": "ชุดนำเข้าเผยแพร่แล้ว",
"SHIPPING_CUSTOMER_IMPORT_UPLOAD_CONFLICT": "เกิดข้อขัดแย้งระหว่างอัปโหลด",
"SHIPPING_CUSTOMER_IMPORT_PUBLISH_CONFLICT": "เกิดข้อขัดแย้งของข้อมูลระหว่างเผยแพร่",
"SHIPPING.ORDER_SCHEMA_PROFILE_IMPACT_CONFIRM_REQUIRED": "เวอร์ชันฟิลด์คำสั่งซื้อนี้มีผลต่อโปรไฟล์เอกสารที่มีอยู่ โปรดยืนยันผลกระทบก่อนเผยแพร่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_INVALID": "การกำหนดการย้ายฟิลด์ของโปรไฟล์เอกสารคำสั่งซื้อไม่ถูกต้อง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_REQUIRED": "โปรดจัดการฟิลด์ที่ได้รับผลกระทบทั้งหมดก่อนสร้างฉบับร่างการย้าย",
"SHIPPING_REVIEW_CASE_NOT_FOUND": "ไม่พบรายการตรวจทานคำสั่งซื้อหรือไม่มีสิทธิ์เข้าถึง",
"SHIPPING_REVIEW_CASE_NOT_EDITABLE": "การตรวจทานคำสั่งซื้อนี้สิ้นสุดแล้วและแก้ไขไม่ได้",
"SHIPPING_REVIEW_DRAFT_VERSION_REQUIRED": "ต้องระบุเวอร์ชันร่างที่ถูกต้อง",
"SHIPPING_REVIEW_DRAFT_VERSION_MISMATCH": "ร่างถูกแก้ไขจากหน้าต่างอื่น โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING_REVIEW_FIELD_INVALID": "ฟิลด์ตรวจทานไม่อยู่ใน Schema ที่ตรึงไว้ของคำสั่งซื้อนี้",
"SHIPPING_REVIEW_FIELD_CONFLICT_NOT_FOUND": "ไม่พบความขัดแย้งของฟิลด์ก่อนสร้างคำสั่ง หรือถูกตัดสินแล้ว",
"SHIPPING_REVIEW_FIELD_CONFLICT_OPTION_INVALID": "โปรดเลือกตัวเลือกความขัดแย้งที่ถูกต้อง",
"SHIPPING_REVIEW_FIELD_CONFLICT_VALUE_REQUIRED": "โปรดกรอกค่าฟิลด์ด้วยตนเอง",
"SHIPPING_REVIEW_FIELD_CONFLICT_FIELD_UNKNOWN": "ฟิลด์ที่ขัดแย้งไม่อยู่ใน Schema ที่ตรึงไว้",
"SHIPPING_REVIEW_FIELD_CONFLICT_LINE_MISSING": "ไม่พบบรรทัดที่สัมพันธ์กับความขัดแย้งในร่าง",
"SHIPPING_REVIEW_DUPLICATE_CANDIDATE_MISSING": "เคสตรวจทานยังไม่มีตัวเลือกคำสั่ง จึงจัดการรายการซ้ำไม่ได้",
"SHIPPING_REVIEW_INVENTORY_CANDIDATES_INVALID": "ตัวเลือกแหล่งสินค้าคงคลังไม่ถูกต้อง โปรดเลือกแหล่งที่เปิดใช้และระบุเหตุผล",
"SHIPPING_REVIEW_INVENTORY_ROUTING_ADOPT_INVALID": "ไม่สามารถใช้คำแนะนำจากกฎได้ เพราะแถวนี้ไม่มีผลกฎที่ค้างอยู่ซึ่งถูกต้อง",
"SHIPPING_REVIEW_INVENTORY_ROUTING_KEEP_INVALID": "ไม่สามารถคงผลที่เลือกเองได้ เพราะแถวนี้ไม่มีคำแนะนำจากกฎที่ค้างอยู่",
"SHIPPING_REVIEW_BUILD_ELIGIBILITY_BLOCKED": "คุณสมบัติการสร้างงานไม่ผ่าน โปรดแก้ปัญหาที่บล็อกหรือเติมแหล่งสินค้าคงคลังก่อนยืนยัน",
"SHIPPING_REVIEW_LINE_NOT_FOUND": "ไม่พบรายการคำสั่งซื้อหรือรายการถูกลบแล้ว",
"SHIPPING_REVIEW_DOCUMENT_NOT_FOUND": "ไม่พบ PDF สำหรับตรวจทานหรือไม่มีสิทธิ์เข้าถึง",
"SHIPPING_REVIEW_MANUAL_DRAFT_ALREADY_HAS_CANDIDATE": "PDF นี้มีคำสั่งซื้อจากระบบแล้ว จึงสร้างคำสั่งซื้อด้วยตนเองไม่ได้",
"SHIPPING_REVIEW_DRAFT_NOT_FOUND": "ไม่พบร่างคำสั่งซื้อ",
"SHIPPING_REVIEW_DISPOSITION_NOT_ALLOWED": "PDF นี้จัดการเสร็จแล้วและเปลี่ยนผลการจัดการไม่ได้",
"SHIPPING_REVIEW_NON_ORDER_REASON_INVALID": "เหตุผลที่ไม่ใช่คำสั่งซื้อไม่ถูกต้อง",
"SHIPPING_REVIEW_QUALITY_REASON_INVALID": "เหตุผลปัญหาคุณภาพไฟล์ไม่ถูกต้อง",
"SHIPPING_REVIEW_REPARSE_NOT_ALLOWED": "ไม่อนุญาตให้ระบุ PDF นี้ใหม่",
"SHIPPING_REVIEW_REPARSE_REASON_INVALID": "เหตุผลการระบุใหม่ไม่ถูกต้อง",
"SHIPPING_REVIEW_REPARSE_SOURCE_INVALID": "แหล่งข้อมูลสำหรับระบุ PDF นี้ใหม่ใช้งานไม่ได้",
"SHIPPING_REVIEW_REPARSE_PENDING": "PDF นี้กำลังระบุใหม่อยู่",
"SHIPPING_REVIEW_REPLACEMENT_NOT_ALLOWED": "ไม่สามารถใช้ไฟล์ทดแทนกับ PDF นี้ในขณะนี้",
"SHIPPING_REVIEW_REPLACEMENT_FILE_INVALID": "ไฟล์ทดแทนต้องเป็น PDF",
"SHIPPING_REVIEW_REPLACEMENT_NOT_FOUND": "ไม่พบรายการรับไฟล์ทดแทนหรือไม่มีสิทธิ์เข้าถึง",
"SHIPPING_REVIEW_REPLACEMENT_PENDING": "PDF ทดแทนกำลังแยกวิเคราะห์ โปรดลองอีกครั้งภายหลัง",
"SHIPPING_REVIEW_REPLACEMENT_DOCUMENT_INVALID": "ไฟล์ทดแทนต้องมี PDF เพียงหนึ่งไฟล์",
"SHIPPING_REVIEW_WARNING_ACK_INVALID": "ข้อมูลการยืนยันคำเตือนไม่ถูกต้อง",
"SHIPPING_REVIEW_CONFIRM_NOT_ALLOWED": "ไม่สามารถยืนยันการตรวจทานคำสั่งซื้อนี้ได้ในขณะนี้",
"SHIPPING_REVIEW_DUPLICATE_RESOLUTION_REQUIRED": "คำสั่งซื้อนี้อาจซ้ำกัน โปรดจัดการผ่านขั้นตอนคำสั่งซื้อซ้ำก่อน",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_REQUIRED": "คำขอยืนยันไม่มีคีย์ idempotency โปรดลองอีกครั้ง",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_CONFLICT": "คำขอยืนยันขัดแย้งกับคำขอเดิม โปรดรีเฟรชแล้วลองอีกครั้ง",
"SHIPPING_REVIEW_CONFIRM_VALIDATION_FAILED": "ฉบับร่างยังไม่ผ่านการตรวจสอบครบถ้วน จึงยืนยันไม่ได้",
"SHIPPING_REVIEW_CONFIRM_DOCUMENT_INVALID": "PDF สำหรับตรวจทานไม่พร้อมใช้งาน จึงยืนยันไม่ได้",
"SHIPPING_REVIEW_QUALITY_COMMENT_REQUIRED": "ต้องระบุรายละเอียดเมื่อเลือกเหตุผลเป็น อื่นๆ",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_CLOSE_REASON_REQUIRED": "ต้องระบุเหตุผลเมื่อยกเลิกรายการงานนี้",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_LOCK_VERSION_INVALID": "หมายเลขเวอร์ชันรายการงานไม่ถูกต้อง โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_VERSION_CONFLICT": "รายการงานถูกอัปเดตโดยการดำเนินการอื่น โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING.PROCESS_EXECUTION_NOT_FOUND": "ไม่พบ process execution",
"SHIPPING.PROCESS_GATE_NOT_FOUND": "ไม่พบ process gate",
"SHIPPING.PROCESS_GATE_ACTION_INVALID": "การกู้คืน process gate ไม่ถูกต้อง",
"SHIPPING.PROCESS_GATE_ACTION_FORBIDDEN": "คำขอมีฟิลด์ควบคุมการทำงานที่ห้ามส่ง",
"SHIPPING.PROCESS_GATE_ACTION_NOT_ALLOWED": "การกระทำนี้ไม่ใช่การกู้คืนหลักที่อนุญาตสำหรับ gate ปัจจุบัน",
"SHIPPING.PROCESS_GATE_TECHNICAL_ACTION_FORBIDDEN": "การดำเนินการ gate ทางเทคนิคทำได้เฉพาะระบบเท่านั้น ให้ใช้โต๊ะประมวลผลคำสั่งซื้อสำหรับงานธุรกิจ",
"SHIPPING.REVIEW_LINE_INSUFFICIENT_INVENTORY": "สต็อกไม่พอสำหรับเติมเต็มทั้งบรรทัด ห้ามแยกจำนวน",
"SHIPPING.REVIEW_LINE_RESERVATION_REQUIRED": "ต้องมี Reservation ที่ถูกต้องก่อนเติมเต็มทั้งบรรทัด",
"SHIPPING.REVIEW_LINE_INVENTORY_UNKNOWN": "ยังไม่ทราบสต็อกที่ใช้ได้ จึงบล็อกการเติมเต็มทั้งบรรทัด",
"SHIPPING.REVIEW_LINE_ALREADY_IN_TASK": "บรรทัดนี้อยู่ใน Task แล้ว ห้ามเปิดใหม่หรือสร้างซ้ำ",
"SHIPPING.REVIEW_LINE_REOPEN_NOT_ALLOWED": "เปิดใหม่ได้เฉพาะบรรทัดที่ปิดเพราะปฏิบัติตามไม่ได้",
"SHIPPING.REVIEW_LINE_REOPEN_FORBIDDEN": "การเปิดบรรทัดที่ปิดแล้วต้องใช้สิทธิ์แอดมิน",
"SHIPPING.REVIEW_LINE_QTY_SPLIT_FORBIDDEN": "ห้ามแยกจำนวนในบรรทัดเดียว",
"SHIPPING.PROCESS_GATE_VERSION_MISMATCH": "เวอร์ชัน gate เปลี่ยนแล้ว โปรดรีเฟรชแล้วลองใหม่",
"SHIPPING.PROCESS_GATE_BUSY": "gate กำลังทำงานอยู่ โปรดลองใหม่ภายหลัง",
"SHIPPING.PROCESS_GATE_ALREADY_PASSED": "gate นี้ผ่านแล้ว",
"SHIPPING.PROCESS_GATE_ATTEMPT_NOT_FOUND": "ไม่พบ process gate attempt",
"SHIPPING.PROCESS_GATE_PERMISSION_DENIED": "คุณไม่มีสิทธิ์เข้าถึงหรือกู้คืน gate นี้",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_REQUIRED": "คำขอกู้คืนไม่มี idempotency key",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_CONFLICT": "idempotency key ขัดแย้งกับคำขอ gate อื่น กรุณาใช้คีย์ใหม่แล้วลองอีกครั้ง",
"XFA_DATASET_MISSING": "เอกสารไม่มี XFA datasets ที่ใช้งานได้",
"XFA_UNSAFE_XML": "ปฏิเสธ XML ของ XFA ที่ไม่ปลอดภัย",
"XFA_PACKET_TOO_LARGE": "แพ็กเก็ต XFA เกินขนาดที่อนุญาต",
"XFA_XML_DEPTH_EXCEEDED": "ความลึกของ XML XFA เกินขีดจำกัด",
"XFA_XML_NODE_LIMIT_EXCEEDED": "จำนวนโหนด XML XFA เกินขีดจำกัด",
"XFA_LINE_ROW_LIMIT_EXCEEDED": "จำนวนแถวรายการ XFA เกินขีดจำกัด",
"XFA_PARSE_TIMEOUT": "การแยกวิเคราะห์ XFA หมดเวลา",
"XFA_UNSUPPORTED_DOCUMENT": "ประเภทเอกสารนี้ไม่รองรับโหมดเส้นทางข้อมูล XFA",
"XFA_PROFILE_NOT_MATCHED": "ไม่พบโปรไฟล์ XFA ที่เผยแพร่แล้ว",
"XFA_PROFILE_AMBIGUOUS": "พบโปรไฟล์ XFA หลายรายการ",
"XFA_REQUIRED_FIELD_MISSING": "ฟิลด์จำเป็นของ XFA หายไป",
"XFA_MIRROR_COLLECTION_MISMATCH": "ชุดรายการกระจกเงา XFA ไม่ตรงกับชุดหลัก",
"XFA_ACROFORM_MISMATCH": "ค่า XFA datasets และ AcroForm ไม่สอดคล้องกัน",
"XFA_BUSINESS_VALIDATION_FAILED": "การตรวจสอบธุรกิจ XFA ล้มเหลว",
"XFA_AUTHORITATIVE_COLLECTION_MISSING": "ไม่พบชุดรายการหลัก",
"XFA_PATH_INVALID": "ไวยากรณ์เส้นทางข้อมูล XFA ไม่ถูกต้อง",
"XFA_PATH_UNKNOWN": "เส้นทางข้อมูล XFA ไม่อยู่ในบันทึกการวิเคราะห์โครงสร้าง",
"XFA_DEFINITION_INVALID": "นิยามโปรไฟล์ XFA ไม่ถูกต้อง",
"XFA_VISUAL_BINDINGS_REQUIRED": "ต้องมีการผูกภาพรวมก่อนเผยแพร่โปรไฟล์ XFA",
"XFA_VISUAL_BINDING_INCOMPLETE": "มีฟิลด์ทางการที่ยังไม่ยืนยันกรอบภาพ ไม่สามารถเผยแพร่ได้",
"XFA_VISUAL_COVERAGE_INSUFFICIENT": "อัตราครอบคลุมการผูกภาพยังไม่ถึง 100%",
"XFA_EVIDENCE_RETENTION_INSUFFICIENT": "อัตราการเก็บ evidence_only ยังไม่ถึง 100%",
"XFA_MIRROR_CONSISTENCY_INSUFFICIENT": "อัตราความสอดคล้องของฟิลด์ทางการในชุดกระจกยังไม่ถึง 100%",
"XFA_PROFILE_CHECKSUM_MISMATCH": "checksum ของโปรไฟล์ XFA ที่เผยแพร่แล้วไม่ตรงกับสแนปช็อตรันไทม์",
"XFA_VISUAL_NOT_PUBLISHABLE": "การผูกภาพของโปรไฟล์ XFA ที่เผยแพร่แล้วใช้ไม่ได้ ต้องตรวจสอบใหม่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_VALUE_FORBIDDEN": "บัญชีนี้ไม่มีสิทธิ์ดูค่าตัวอย่าง XFA แบบเต็ม",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_EDIT_FORBIDDEN": "บัญชีนี้ไม่มีสิทธิ์แก้ไขกฎการแยกฟิลด์ XFA",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_TOKEN_INVALID": "โทเคนยืนยันตัวอย่างกฎการแยกไม่ถูกต้อง หมดอายุ หรือไม่ตรงกับกฎปัจจุบัน",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_REJECTED": "การยืนยันกฎการแยกถูกปฏิเสธ: โทเคนตัวอย่างหายไป ไม่ถูกต้อง ถูกใช้แล้ว หรือเนื้อหาตัวอย่างเปลี่ยนแปลง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_STORE_UNAVAILABLE": "บริการยืนยันชั่วคราวไม่พร้อมใช้งาน กรุณาลองใหม่ภายหลัง หากยังล้มเหลวให้ติดต่อทีมปฏิบัติการ",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_UNAVAILABLE": "การวิเคราะห์โครงสร้าง XFA ยังไม่พร้อมหรือบันทึกไม่ครบ กรุณาแยกวิเคราะห์ตัวอย่างใหม่แล้วลองอีกครั้ง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_MISSING": "เลย์เอาต์ปัจจุบันไม่ได้ผูกกับการวิเคราะห์โครงสร้าง XFA ที่ใช้ได้ กรุณาแยกวิเคราะห์ตัวอย่างใหม่แล้วลองอีกครั้ง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_IDENTITY_MISMATCH": "ตัวตนการวิเคราะห์โครงสร้าง XFA ไม่ตรงกับเอกสารหรือเลย์เอาต์ปัจจุบัน การดำเนินการถูกบล็อก",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_STALE": "การวิเคราะห์โครงสร้าง XFA ล้าสมัยเมื่อเทียบกับเนื้อหาตัวอย่างปัจจุบัน กรุณาแยกวิเคราะห์ตัวอย่างใหม่แล้วลองอีกครั้ง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_STALE": "ตัวอย่างสังเคราะห์ XFA ล้าสมัยเมื่อเทียบกับตัวตนโครงสร้างที่แช่แข็ง กรุณาสร้างตัวอย่างใหม่ก่อนยืนยัน",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_FAILED": "การสร้างตัวอย่างสังเคราะห์ XFA ล้มเหลว กรุณาตรวจสอบตัวอย่างหรือลองใหม่ภายหลัง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_UNAVAILABLE": "ตัวอย่างสังเคราะห์ XFA ไม่พร้อมใช้งาน กรุณาสร้างตัวอย่างก่อนหรือแยกวิเคราะห์ตัวอย่างใหม่",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_CONFIRM_REQUIRES_SYNTHETIC_PREVIEW": "การยืนยัน visual binding ต้องทำบนตัวอย่างสังเคราะห์ กรุณาสร้างตัวอย่างและส่ง checksum ก่อนยืนยัน",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_PAGE_INCONSISTENT": "จำนวนหน้าหรือกรอบหน้าของตัวอย่างสังเคราะห์ XFA ไม่ตรงกับตัวอย่างที่แช่แข็ง การดำเนินการถูกบล็อก",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_VALUE_MISMATCH": "ข้อความที่แสดงในตัวอย่างสังเคราะห์ XFA ไม่ตรงกับ datasets ที่แช่แข็ง การดำเนินการถูกบล็อก",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_LEGACY_MAPPINGS_FORBIDDEN": "โปรไฟล์ XFA ต้องใช้ bindings แบบรวม ฟิลด์ header_mappings / line_mapping.fields แบบเดิมต้องย้ายก่อน",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_OCR_UNAVAILABLE": "OCR ของภาพตัวอย่างสังเคราะห์ XFA ไม่พร้อมใช้งาน โปรดตรวจสอบการติดตั้ง OCR แล้วลองใหม่ เส้นทาง PDF ธรรมดาไม่ได้รับผลกระทบ",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SYNTHETIC_PREVIEW_GATE": "เกตเผยแพร่ภาพตัวอย่างสังเคราะห์ XFA ไม่ผ่าน: ตัวอย่างยังไม่พร้อม ขาด checksum หรือยังไม่ได้ยืนยันการผูกภาพ",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "ผลเลย์เอาต์เปลี่ยนแปลงแล้ว โปรดรีเฟรชตัวอย่างและดูตัวอย่างอีกครั้ง",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "ผลเลย์เอาต์ยังอยู่ระหว่างการเตรียม โปรดรีเฟรชสถานะอีกครั้งในภายหลัง",
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "เคสตรวจทานนี้ยืนยันสร้างงานแล้ว กรุณารีทรายการผลักดันอัตโนมัติหลังยืนยันแทน",
"SHIPPING.STP_ENQUEUE_FAILED": "จัดคิวสร้างออเดอร์อัตโนมัติไม่สำเร็จ กรุณาลองใหม่หรือติดต่อผู้ดูแล",
"SHIPPING.STP_NOT_ELIGIBLE": "ออเดอร์นี้ยังไม่ผ่านเงื่อนไขสร้างอัตโนมัติ กรุณาตรวจและผ่านเกตก่อนลองใหม่",
"SHIPPING.STP_CASE_NO_REQUIRED": "ต้องมีหมายเลขเคสตรวจทานเพื่อสร้างออเดอร์อัตโนมัติ",
"SHIPPING.STP_AUTO_CREATE_FAILED": "สร้างออเดอร์อัตโนมัติล้มเหลว กรุณาลองใหม่หรือยืนยันด้วยตนเอง",
"SHIPPING.RECONCILE_OPERATION_ID_REQUIRED": "การดำเนินการปรับทานตัวต้องมี operation_id จากไคลเอนต์ กรุณารีเฟรชและลองใหม่",
"SHIPPING.RECONCILE_OPERATION_ID_TOO_LONG": "operation_id สำหรับการปรับทานตัวยาวเกิน 128 ตัวอักษร",
"SHIPPING.RECONCILE_INVALID_USER_ACTION": "user_action สำหรับการปรับทานตัวไม่ถูกต้อง เลือก reuse, create_revision หรือ force_create",
"SHIPPING.RECONCILE_INVALID_EXPECTED_VERSION": "expected_case_version ต้องเป็นจำนวนเต็มหากระบุ",
"SHIPPING.RECONCILE_IDEMPOTENT_CONFLICT": "operation_id เดิมแต่สแน็ปช็อตคำขอเปลี่ยนแปลง กรุณาสร้าง operation_id ใหม่แล้วส่งอีกครั้ง",
"SHIPPING.RECONCILE_OWNERSHIP_ANOMALY": "ความเป็นเจ้าของงานไม่ชัดเจน กรุณาให้ผู้ปฏิบัติงานตัดสินใจก่อนดำเนินการต่อ",
"SHIPPING.RECONCILE_FORCE_CREATE_UNAUTHORIZED": "force_create ต้องมีสิทธิ์ admin หรือสิทธิพิเศษ",
"SHIPPING.RECONCILE_LOCK_VISIBILITY_RACE": "แถวที่ล็อกไม่ตรงกับแถวที่มองเห็น กรุณาลองใหม่",
"SHIPPING.RETRY_STP_BLOCKED_MANUAL": "กำลังรอการตัดสินใจด้วยตนเอง ห้ามใช้การลองใหม่ทางเทคนิค ใช้ reconcile-and-progress หรือ endpoint ตัดสินคำสั่งซื้อซ้ำแทน",
"SHIPPING.REVIEW_LLM_DISABLED": "ฟีเจอร์คำแนะนำ AI สำหรับตรวจสอบใบสั่งซื้อถูกปิด ไม่ได้สร้างคำแนะนำ โปรดตรวจสอบด้วยตนเองแทน",
"SHIPPING.REVIEW_LLM_PROVIDER_UNAVAILABLE": "บริการ AI ไม่พร้อมใช้งานชั่วคราว (ไม่มีคีย์ Dify หรือคำขอล้มเหลว) ข้ามคำแนะนำแล้ว โปรดตรวจสอบด้วยตนเอง",
"SHIPPING.REVIEW_LLM_FIELD_MISMATCH": "AI ส่งคืนฟิลด์ที่ไม่ตรงกับฟิลด์ที่ร้องขอ ผลลัพธ์ถูกปฏิเสธ โปรดอย่ายอมรับ",
"SHIPPING.REVIEW_LLM_VALIDATION_FAILED": "คำแนะนำจาก AI ไม่ผ่านการตรวจสอบความสอดคล้องกับหลักฐาน ไม่สามารถเขียนลงร่างได้ โปรดป้อนค่าที่ถูกต้องด้วยตนเองเพื่อดำเนินการต่อ",
"SHIPPING.REVIEW_LLM_GATE_FIELD_NOT_FOUND": "ไม่พบฟิลด์ตรวจสอบนี้ในสคีมาที่แช่แข็ง ไม่สามารถสร้างคำแนะนำ AI ได้",
"SHIPPING.REVIEW_LLM_GATE_LINE_NOT_FOUND": "ไม่พบบรรทัดเป้าหมาย AI ไม่สามารถสร้างคำแนะนำระดับบรรทัดได้ โปรดตรวจสอบโครงสร้างบรรทัดแล้วลองใหม่",
"SHIPPING.REVIEW_LLM_GATE_FIELD_VALUE_MISSING": "ฟิลด์เป้าหมายไม่มีค่าดิบ AI ไม่สามารถให้คำแนะนำตามข้อเท็จจริงได้ โปรดป้อนค่าด้วย OCR หรือป้อนด้วยตนเองก่อน",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_UNAVAILABLE": "ไม่พบแหล่งหลักฐานสำหรับฟิลด์นี้ (คล้ายกับปัญหา Case 95) บล็อกการส่ง AI เพื่อหลีกเลี่ยงผลลัพธ์เท็จ โปรดปิดการรู้จำ OCR หรือแยกวิเคราะห์ PDF ใหม่ก่อน",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_INSUFFICIENT": "บรรทัดนี้มีฟิลด์บริบทน้อยกว่า 2 ฟิลด์ จึงไม่สามารถให้คำแนะนำระดับบรรทัดที่น่าเชื่อถือได้ โปรดปิดการรู้จำฟิลด์ใกล้เคียงก่อน",
"SHIPPING.REVIEW_LLM_GATE_POLICY_BLOCKED": "ฟิลด์นี้เป็นฟิลด์ที่ละเอียดอ่อน/ภายใน ถูกป้องกันตามนโยบายความปลอดภัยจากการส่งไปยัง AI โปรดยืนยันด้วยตนเอง",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_BUILD_FAILED": "เกิดข้อผิดพลาดขณะสร้างมุมมองหลักฐาน ข้ามคำแนะนำ AI แล้ว โปรดรีเฟรชและลองใหม่ หรือติดต่อผู้ดูแลระบบ",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_TRUNCATED": "หลักฐานหลักของฟิลด์เป้าหมายถูกตัดเนื่องจากงบประมาณ Token หมด AI ได้ยกเลิกเพื่อหลีกเลี่ยงข้อสรุปที่ผิด โปรดตรวจสอบฟิลด์นี้ด้วยตนเอง",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_AMBIGUOUS": "มีผู้สมัครหลายแหล่งที่มา และไม่สามารถกำหนดหลักฐานหลักได้อย่างชัดเจน AI ได้ยกเลิกเพื่อหลีกเลี่ยงความสับสน โปรดแก้ไขความคลุมเครือก่อน แล้วลองใหม่",
"SHIPPING.REVIEW_LLM_GATE_L4_FORBIDDEN": "การใช้หลักฐานระดับหน้า (L4) ต้องมีการอนุญาตจากผู้ดูแลระบบอย่างชัดเจน ผู้ใช้ทั่วไปไม่สามารถร้องขอได้",
"SHIPPING.REVIEW_LLM_L4_FORBIDDEN": "การใช้หลักฐาน PDF เต็ม (L4) ต้องมีการอนุญาตจากผู้ดูแลระบบอย่างชัดเจน คำขอนี้ถูกปิดกั้น"
},
"SHIPPING.REVIEW_INVENTORY_SOURCE_UNRESOLVED": "ยังไม่ยืนยันแหล่งสต็อกแบบเฉพาะเจาะจง ไม่สามารถสร้างคำสั่งอย่างเป็นทางการได้ กรุณาตรวจสอบแหล่งสต็อกก่อน",
"SHIPPING_REVIEW_INVENTORY_SOURCE_UNRESOLVED": "ยังไม่ยืนยันแหล่งสต็อกแบบเฉพาะเจาะจง ไม่สามารถสร้างคำสั่งอย่างเป็นทางการได้ กรุณาตรวจสอบแหล่งสต็อกก่อน"
"VOUCHER_CHECK_CONFIG_INVALID": "การตั้งค่าการตรวจสอบเอกสารบัญชีไม่ถูกต้อง",
"VOUCHER_CHECK_INVOICE_REQUIRED": "ต้องระบุเลขที่ใบแจ้งหนี้",
"VOUCHER_CHECK_INVOICE_NOT_IN_PERIOD": "ใบแจ้งหนี้ไม่อยู่ในชุด ERP ของเดือนปัจจุบัน",
"VOUCHER_CHECK_INVOICE_PATH_INVALID": "เลขที่ใบแจ้งหนี้มีอักขระเส้นทางที่ไม่ถูกต้อง",
"VOUCHER_CHECK_SHARE_UNAVAILABLE": "โฟลเดอร์แชร์ใช้ไม่ได้ โปรดตรวจสอบการเมานต์และไฟล์สุขภาพ",
"VOUCHER_CHECK_ERP_UNAVAILABLE": "ERP (Oracle) ใช้ไม่ได้ โปรดลองใหม่ภายหลัง",
"VOUCHER_CHECK_RUN_NOT_FOUND": "ไม่พบรอบการตรวจหรือสถานะใบแจ้งหนี้",
"VOUCHER_CHECK_PERSIST_FAILED": "บันทึกผลการตรวจไม่สำเร็จ"
}
}
+2 -1
View File
@@ -21,7 +21,8 @@
},
"msg": {
"fillContent": "กรุณากรอกเนื้อหาข้อเสนอแนะ",
"submitFailed": "ส่งข้อเสนอแนะไม่สำเร็จ"
"submitFailed": "ส่งข้อเสนอแนะไม่สำเร็จ",
"submitSuccess": "ส่งข้อเสนอแนะสำเร็จ"
},
"cancel": "ยกเลิก",
"submitting": "กำลังส่ง...",
+7
View File
@@ -4,6 +4,13 @@
"downloading": "กำลังดาวน์โหลด...",
"tooLarge": "ไฟล์มีขนาดใหญ่เกินไป ไม่รองรับการพรีวิวออนไลน์ กรุณาคลิก \"ดาวน์โหลดไฟล์\" ด้านบนเพื่อรับไฟล์ต้นฉบับ",
"previewFailed": "พรีวิวล้มเหลว: ",
"imageCounter": "รูปที่ {current} / {total}",
"zoomOut": "ซูมออก",
"zoomIn": "ซูมเข้า",
"resetZoom": "รีเซ็ตซูม",
"prevImage": "รูปก่อนหน้า",
"nextImage": "รูปถัดไป",
"unsupportedRawPreview": "ไฟล์ต้นฉบับนี้ยังไม่รองรับการพรีวิวโดยตรง และได้ป้องกันการดาวน์โหลดอัตโนมัติแล้ว",
"msg": {
"downloadFailed": "ดาวน์โหลดล้มเหลว: {reason}",
"unknownError": "ข้อผิดพลาดที่ไม่ทราบสาเหตุ"
+14 -3
View File
@@ -1,4 +1,4 @@
{
{
"kbDifySettings": {
"title": "ตั้งค่า Dify",
"subtitle": "จัดการการเชื่อมต่อ Dify และค่าซิงค์เริ่มต้นของโมดูลคลังความรู้",
@@ -391,8 +391,19 @@
"markdownFailedRetry": "ทำความสะอาดล้มเหลว ยังไม่มี Markdown โปรดทำความสะอาดใหม่",
"markdownProcessing": "กำลังทำความสะอาด ยังไม่มี Markdown",
"markdownPendingClean": "รอทำความสะอาด ยังไม่มี Markdown",
"markdownNotGenerated": "ยังไม่มี Markdown สำหรับเอกสารนี้"
"markdownNotGenerated": "ยังไม่มี Markdown สำหรับเอกสารนี้",
"createGroupFailed": "สร้างกลุ่มคลังความรู้ไม่สำเร็จ",
"saveDifySettingsFailed": "บันทึกการตั้งค่า Dify ไม่สำเร็จ",
"executeJobFailed": "รันงานไม่สำเร็จ",
"updateDocumentFailed": "อัปเดตเอกสารไม่สำเร็จ",
"apiNotReady": "API คลังความรู้ยังไม่พร้อม กรุณาลองใหม่ภายหลัง",
"fileTooLarge": "ไฟล์ใหญ่เกินขีดจำกัดอัปโหลดปัจจุบัน กรุณาติดต่อผู้ดูแลเพื่อปรับขีดจำกัดแล้วลองใหม่",
"uploadPathFileFailed": "อัปโหลดไฟล์ตามเส้นทางไม่สำเร็จ",
"markPathFileFailedStatusFailed": "บันทึกสถานะไฟล์ล้มเหลวไม่สำเร็จ",
"submitPathUploadFailed": "ส่งงานอัปโหลดตามเส้นทางไม่สำเร็จ",
"submitCleanFailed": "ส่งงานทำความสะอาดไม่สำเร็จ",
"updateGroupFailed": "อัปเดตกลุ่มคลังความรู้ไม่สำเร็จ",
"deleteGroupFailed": "ลบกลุ่มคลังความรู้ไม่สำเร็จ"
}
}
}
+5
View File
@@ -122,16 +122,20 @@
"cancel": "ยกเลิก",
"save": "บันทึก",
"saving": "กำลังบันทึก...",
"clear": "ล้าง",
"saveAs": "บันทึกเป็น{status}",
"viewAllHistory": "ดูประวัติทั้งหมด"
},
"filters": {
"keywordPlaceholder": "ค้นหารหัสอุปกรณ์หรือชื่ออุปกรณ์",
"recentKeywordPlaceholder": "กรองตามรหัส ปัญหา หรือผู้ซ่อม",
"defaultHint": "ค่าเริ่มต้นแสดงเฉพาะรายการที่ยังไม่เสร็จ (รอซ่อม/กำลังซ่อม) ในช่วง 1 ปีล่าสุด หากต้องการดูประวัติทั้งหมด ให้เลือกทุกสถานะและทุกช่วงเวลา",
"timeRangeLabel": "วันที่แจ้งซ่อม",
"timeRange3m": "3 เดือนล่าสุด",
"timeRange1y": "1 ปีล่าสุด",
"timeRangeAll": "ทุกช่วงเวลา"
},
"recentTitle": "บันทึกซ่อมบำรุงล่าสุด",
"table": {
"deviceCode": "รหัสอุปกรณ์",
"deviceName": "ชื่ออุปกรณ์",
@@ -192,6 +196,7 @@
"required": "ต้องระบุรหัสอุปกรณ์ วันที่แจ้งซ่อม และรายละเอียดปัญหา",
"updated": "อัปเดตบันทึกซ่อมบำรุงแล้ว",
"created": "เพิ่มบันทึกซ่อมบำรุงแล้ว",
"saved": "บันทึกซ่อมบำรุงแล้ว",
"saveFailed": "บันทึกข้อมูลซ่อมบำรุงไม่สำเร็จ",
"deleteConfirm": "ลบบันทึกซ่อมบำรุงของ {deviceCode} หรือไม่?",
"deleted": "ลบบันทึกซ่อมบำรุงแล้ว",
+58 -476
View File
@@ -84,455 +84,54 @@
"submit": "ส่งคำขอ"
},
"wecomEntryNotice": "เปิดมาจากข้อความ WeCom และเตรียมบริบทที่เกี่ยวข้องไว้ให้แล้ว",
"mobileTabs": {
"me": "ของฉัน",
"history": "ประวัติแชท",
"applications": "แอปพลิเคชัน"
},
"nav": {
"profile": "ศูนย์ส่วนบุคคล",
"admin": "แผงผู้ดูแลระบบ",
"applications": "จัดการแอป",
"knowledgeBase": "ฐานความรู้",
"scheduleRuns": "ประวัติการตั้งเวลา",
"shippingNotice": "การจัดส่งสินค้า",
"shippingCustomers": "ข้อมูลหลักลูกค้า",
"shippingTasks": "งานจัดส่ง",
"shippingMyTasks": "ศูนย์งาน",
"profile": "โปรไฟล์",
"admin": "คอนโซลผู้ดูแล",
"applications": "แอปพลิเคชัน",
"knowledgeBase": "คลังความรู้",
"scheduleRuns": "บันทึกตารางงาน",
"shippingNotice": "ใบแจ้งส่งสินค้า",
"feedback": "ข้อเสนอแนะ",
"updates": "อัปเดตล่าสุด",
"backToChat": "กลับไปที่แชท",
"logout": "ออกจากระบบ"
"backToChat": "กลับไปแชท",
"backShort": "กลับ",
"logout": "ออกจากระบบ",
"accountingVoucherCheck": "ตรวจเอกสารบัญชี"
},
"kb": {
"accessDenied": "ต้องมีสิทธิ์ผู้ดูแลระบบจึงจะเข้าถึงคลังความรู้ได้"
},
"routes": {
"history": "ประวัติแชท"
},
"history": {
"empty": "ยังไม่มีประวัติแชท",
"untitled": "บทสนทนาไม่มีชื่อ"
},
"shippingNotice": {
"title": "ใบแจ้งส่งสินค้า",
"subtitle": "ดูรายการในศูนย์งาน; ประมวลผลรายการเดียวที่โต๊ะประมวลผลคำสั่งซื้อ",
"subtitle": "พื้นที่ทำงานแบบอ่านอย่างเดียว โปรดดำเนินการต่อใน Chat",
"refresh": "รีเฟรช",
"uploadNotices": "อัปโหลดใบแจ้งการจัดส่ง",
"search": "ค้นหา",
"loading": "กำลังโหลด...",
"empty": "ยังไม่มีงานส่งสินค้า",
"selectCase": "เลือกงานทางซ้ายเพื่อดูรายละเอียด",
"loadFailed": "โหลดไม่สำเร็จ",
"openChat": "เปิดแชท (ไม่บังคับ)",
"todo": {
"label": "งานที่ต้องทำตอนนี้",
"currentTodo": "งานที่ต้องทำตอนนี้",
"noActionTitle": "ยังไม่ต้องดำเนินการด้วยตนเอง",
"noActionMessage": "ระบบกำลังประมวลผลขั้นตอนถัดไป โปรดดูขั้นตอนการทำงานและบันทึกกิจกรรม",
"handleInChat": "{action} ใน Chat",
"workflow": "ขั้นตอนการทำงาน",
"orderOverview": "ภาพรวมคำสั่งซื้อ",
"adminViewOnly": "ผู้ดูแลระบบดูงานของผู้อื่นได้ แต่ดำเนินการแทนไม่ได้",
"adminViewOnlyShort": "ดูอย่างเดียว",
"lastActivity": "กิจกรรมล่าสุด",
"terminateReason": "เหตุผลยุติ",
"workflowItem": "รายการไฟล์",
"downloadExcel": "ดาวน์โหลด Excel",
"progressUnavailable": "ความคืบหน้าแบบรวมไม่พร้อมใช้งานชั่วคราว โปรดรีเฟรชหน้าหรือลองใหม่อีกครั้ง",
"manualUploadEndNote": "สร้าง Excel แล้ว โปรดดาวน์โหลด อัปโหลดบนแพลตฟอร์มขนส่ง แล้วลงทะเบียนหลักฐานในระบบนี้",
"waitingManualUploadNote": "สร้าง Excel แล้ว โปรดดาวน์โหลด อัปโหลดบนแพลตฟอร์มขนส่ง แล้วลงทะเบียนหลักฐานในระบบนี้"
},
"processGate": {
"title": "รายการที่ต้องดำเนินการ",
"currentGate": "ขั้นตอนปัจจุบัน",
"blockingMessage": "เหตุผลที่ต้องดำเนินการ",
"failureDetail": "รายละเอียดความล้มเหลว",
"blockingFields": "ฟิลด์ที่ขัดขวาง",
"blockingLineField": "แถว {line}: {field}",
"reasonCode": "เหตุผล",
"diagnosticHint": "คำแนะนำในการดำเนินการ",
"responsibleParty": "ผู้รับผิดชอบ",
"attemptCount": "จำนวนครั้งที่ลอง",
"attemptCountValue": "{current} / {max} (ขีดจำกัดรีไทรอัตโนมัติทางเทคนิค)",
"viewAudit": "ดูบันทึกตรวจสอบ",
"hideAudit": "ซ่อนบันทึกตรวจสอบ",
"auditLoading": "กำลังโหลดบันทึกตรวจสอบ…",
"auditEmpty": "ยังไม่มีเหตุการณ์ตรวจสอบของเกต",
"auditLoadFailed": "โหลดบันทึกตรวจสอบของเกตไม่สำเร็จ",
"auditEventFallback": "บันทึกการดำเนินการของเกต",
"auditEvents": {
"process_gate_created": "สร้างขั้นตอนการดำเนินการแล้ว",
"process_gate_attempt_started": "เริ่มดำเนินการแล้ว",
"process_gate_passed": "ขั้นตอนผ่านแล้ว",
"process_gate_blocked": "ขั้นตอนถูกบล็อก",
"process_gate_recovery_requested": "ร้องขอการกู้คืนแล้ว",
"process_gate_idempotent_replay": "ใช้ผลลัพธ์ซ้ำตามกฎ idempotent",
"process_gate_manual_override": "มีการแทนที่ผลลัพธ์ด้วยตนเอง",
"process_gate_rule_suggestion_generated": "สร้างคำแนะนำกฎแล้ว",
"process_gate_suggestion_adopted": "ยอมรับคำแนะนำกฎแล้ว",
"process_gate_suggestion_rejected": "ปฏิเสธคำแนะนำกฎแล้ว",
"process_gate_downstream_invalidated": "ผลลัพธ์ปลายทางถูกทำให้หมดอายุ",
"process_gate_technical_retry": "ระบบลองใหม่อัตโนมัติแล้ว",
"process_gate_lease_taken_over": "งานถูก Worker อื่นรับช่วงต่อ",
"process_gate_artifact_superseded": "ผลลัพธ์ถูกเวอร์ชันใหม่แทนที่",
"process_gate_permission_denied": "ไม่มีสิทธิ์ดำเนินการนี้"
},
"parties": {
"owner": "ผู้ตรวจทานคำสั่งซื้อ / เจ้าของงาน",
"worker": "ระบบ Worker",
"system": "ระบบอัตโนมัติ",
"admin": "ผู้ดูแลระบบ",
"external": "ระบบภายนอก"
},
"noAction": "ขณะนี้ไม่มีการดำเนินการที่ใช้ได้",
"versionMissing": "ข้อมูลนี้มีการเปลี่ยนแปลง โปรดรีเฟรชแล้วลองใหม่",
"navigationMissing": "ไม่มีข้อมูลสำหรับนำทาง โปรดรีเฟรชแล้วลองใหม่",
"customerTaskMissing": "ไม่มีหมายเลขงาน — ไม่สามารถเปิดยืนยันลูกค้าได้ โปรดรีเฟรชแล้วลองใหม่",
"genericBlocking": "ขั้นตอนนี้ต้องดำเนินการด้วยตนเอง",
"unknownStep": "ขั้นตอนปัจจุบัน",
"continueAction": "ดำเนินการต่อ",
"recoveryTargets": "การกู้คืนขั้นก่อนหน้า",
"actionSubmitted": "ส่งการดำเนินการแล้ว",
"submitting": "กำลังส่ง…",
"readOnlyUseFooter": "ใช้แถบดำเนินการด้านล่างเพื่อดำเนินการต่อ",
"actionCodes": {
"rematerialize_document": "เตรียมเอกสารใหม่",
"retry_layout_parsing": "ลองแยกผังเลย์เอาต์อีกครั้ง",
"reroute_document_profile": "จับคู่โปรไฟล์เอกสารใหม่",
"open_profile_review": "เปิดการตรวจทานโปรไฟล์",
"retry_order_extraction": "ลองแยกคำสั่งซื้ออีกครั้ง",
"open_order_review": "เปิดการตรวจทานคำสั่งซื้อ",
"edit_order_fields": "แก้ไขฟิลด์คำสั่งซื้อ",
"revalidate_reservation": "ตรวจสอบ Reservation อีกครั้ง",
"edit_reservation": "แก้ไข Reservation",
"retry_customer_resolution": "ลองระบุลูกค้าอีกครั้ง",
"confirm_customer": "ยืนยันลูกค้า",
"retry_duplicate_detection": "ลองตรวจหาข้อมูลซ้ำอีกครั้ง",
"adjudicate_duplicate": "ตัดสินคำสั่งซื้อซ้ำ",
"reconcile_and_progress": "ปรับทานตัวและกู้คืนอัตโนมัติ",
"refresh_inventory_candidate_projection": "รีเฟรชสถานะผู้สมัครสินค้าคงคลัง",
"resolve_field_conflicts": "แก้ไขความขัดแย้งฟิลด์",
"retry_with_latest_rules": "ลองใหม่ด้วยกฎล่าสุด",
"open_inventory_source_review": "เปิดการตรวจสอบแหล่งสต็อก",
"adopt_rule_suggestion": "ยอมรับคำแนะนำกฎ",
"keep_manual_inventory_decision": "คงการตัดสินใจด้วยตนเอง",
"recheck_freeze_readiness": "ตรวจสอบสิทธิ์การสร้างงานใหม่",
"retry_task_creation": "ลองสร้างงานใหม่",
"retry_inventory_preparation": "ลองเตรียมสต็อกใหม่",
"retry_inventory_from_preparation": "กู้คืนจากขั้นเตรียมสต็อก",
"poll_inventory_preparation": "รีเฟรชความคืบหน้าเตรียมสต็อก",
"upload_inventory_file": "อัปโหลดไฟล์สต็อก",
"retry_inventory_field_mapping": "ลองแมปฟิลด์สต็อกอีกครั้ง",
"retry_inventory_from_field_mapping": "กู้คืนจากขั้นแมปฟิลด์สต็อก",
"retry_inventory_from_matching": "จับคู่ใหม่ด้วยสต็อกปัจจุบัน",
"confirm_inventory_field_mapping": "ยืนยันการแมปฟิลด์สต็อก",
"retry_inventory_matching": "ลองจับคู่สต็อกอีกครั้ง",
"open_inventory_match_review": "เปิดการตรวจสอบการจับคู่สต็อก",
"recheck_inventory_sufficiency": "ตรวจสอบความเพียงพอของสต็อกอีกครั้ง",
"open_shortage_review": "เปิดการตรวจสอบสินค้าขาด",
"recheck_excel_readiness": "ตรวจสอบสิทธิ์การสร้าง Excel อีกครั้ง",
"regenerate_excel_artifact": "สร้าง Excel ใหม่",
"poll_freight_upload_rpa": "รีเฟรชความคืบหน้าอัปโหลด freight",
"retry_freight_upload_rpa": "ลองอัปโหลด freight RPA อีกครั้ง",
"regenerate_manual_upload_todo": "สร้างรายการอัปโหลดด้วยตนเองใหม่",
"mark_manual_uploaded": "บันทึกการอัปโหลดด้วยตนเอง"
},
"reasons": {
"freeze_not_ready": "คำสั่งซื้อยังไม่พร้อมสร้างหรือ freeze",
"profile_not_auto_freeze_approved": "โปรไฟล์เอกสารยังไม่ได้รับอนุมัติ auto build",
"profile_manual_confirmation_required": "โปรไฟล์เอกสารต้องยืนยันด้วยตนเอง",
"customer_unresolved": "ยังระบุลูกค้าไม่ได้",
"customer_ambiguous": "การระบุลูกค้ามีความคลุมเครือ",
"field_conflict": "ฟิลด์ขัดแย้ง ต้องตัดสินด้วยตนเอง",
"duplicate_unresolved": "คำสั่งซื้อซ้ำยังไม่ได้รับการแก้ไข",
"require_manual_review": "กฎแหล่งสต็อกขัดแย้งหรือต้องยืนยันด้วยตนเอง",
"no_inventory_source_candidates": "ไม่พบกฎแหล่งสต็อกที่ตรงกัน",
"inventory_source_unavailable": "แหล่งสต็อกที่กฎจับได้ยังไม่พร้อมใช้งาน",
"inventory_rpa_queued": "งาน RPA อยู่ในคิว",
"inventory_rpa_timeout": "RPA หมดเวลา",
"inventory_rpa_login_failed": "เข้าสู่ระบบแพลตฟอร์มสต็อกไม่สำเร็จ",
"inventory_rpa_export_failed": "ส่งออกสต็อกล้มเหลว",
"inventory_rpa_exhausted": "ลองใหม่แหล่งสต็อกครบแล้ว",
"inventory_file_missing": "ยังไม่มีไฟล์สต็อก",
"inventory_file_empty": "ไฟล์สต็อกว่างหรือไม่มีรายการที่ใช้ได้",
"inventory_preparation_waiting": "กำลังเตรียมไฟล์สต็อก กรุณารีเฟรชภายหลัง",
"inventory_preparation_failed": "เตรียมสต็อกล้มเหลว ลองใหม่หรืออัปโหลดไฟล์",
"upload_rpa_pending": "งานอัปโหลดไปยัง freight กำลังรอ",
"upload_rpa_failed": "อัปโหลดไปยัง freight ล้มเหลว สามารถลอง RPA อีกครั้ง",
"upload_rpa_login_failed": "เข้าสู่ระบบแพลตฟอร์มขนส่งล้มเหลว",
"upload_platform_rejected": "แพลตฟอร์มขนส่งปฏิเสธการอัปโหลด",
"upload_result_unknown": "ยังยืนยันผลการอัปโหลดไม่ได้",
"manual_upload_pending": "ดาวน์โหลด Excel แล้วอัปโหลดบน freight พร้อมลงทะเบียนผล",
"technical_retry_exhausted": "ลองใหม่อัตโนมัติครบแล้ว",
"order_extraction_failed": "ดึงข้อมูลคำสั่งซื้อล้มเหลว",
"order_extraction_cancelled": "ยกเลิกการดึงข้อมูลคำสั่งซื้อแล้ว",
"customer_out_of_scope": "ลูกค้านอกขอบเขตธุรกิจปัจจุบัน",
"reservation_missing": "ไม่มี Reservation ที่ถูกต้อง",
"reservation_invalid": "Reservation ไม่ผ่านการตรวจสอบ",
"reservation_duplicate": "Reservation ถูกใช้ในคำสั่งอื่นแล้ว",
"required_field_missing": "ขาดฟิลด์ที่จำเป็นสำหรับสร้างคำสั่ง",
"field_value_invalid": "ค่าฟิลด์บางรายการไม่ถูกต้อง",
"field_low_confidence": "ผลการรู้จำบางรายการมีความมั่นใจต่ำ",
"effective_reservation_missing": "ไม่มีรหัสจองที่มีผล",
"document_unavailable": "เอกสารแจ้งจัดส่งไม่พร้อมใช้งาน",
"layout_parse_failed": "การวิเคราะห์เลย์เอาต์ PDF ล้มเหลว",
"profile_not_matched": "ไม่พบโปรไฟล์เอกสารที่ตรงกัน",
"profile_ambiguous": "พบโปรไฟล์เอกสารหลายรายการ",
"profile_drift": "โครงสร้างเอกสารไม่ตรงกับโปรไฟล์",
"extraction_incomplete": "การดึงฟิลด์คำสั่งยังไม่เสร็จ",
"cross_source_conflict": "ฟิลด์จากหลายแหล่งขัดแย้งกัน",
"evidence_missing": "ผลการรู้จำสำคัญไม่มีหลักฐาน",
"auto_freeze_not_enabled": "ยังไม่ได้เปิดนโยบายสร้างอัตโนมัติ",
"task_creation_failed": "สร้างงานปฏิบัติการล้มเหลว",
"inventory_file_identity_mismatch": "ไฟล์ที่ได้รับไม่ตรงกับแหล่งสินค้าคงคลัง",
"inventory_mapping_required": "ต้องยืนยันการแมปฟิลด์สินค้าคงคลัง",
"inventory_match_failed": "จับคู่สินค้าคงคลังล้มเหลว",
"inventory_candidates_required": "ยังไม่มีชุดผู้สมัครสินค้าคงคลัง จึงจับคู่ไม่ได้ โปรดดึงสินค้าคงคลังก่อน",
"inventory_candidates_missing": "ไม่พบเวอร์ชันผู้สมัครสินค้าคงคลังอย่างเป็นทางการ โปรดเปิดการตรวจทานแหล่งสินค้าคงคลังอีกครั้ง",
"inventory_candidate_version_stale": "เวอร์ชันผู้สมัครสินค้าคงคลังเปลี่ยนแปลง โปรดรีเฟรชและดำเนินการอีกครั้ง",
"inventory_candidate_data_incomplete": "ข้อมูลผู้สมัครสินค้าคงคลังไม่ครบถ้วน โปรดยืนยันเวอร์ชันผู้สมัครใหม่",
"inventory_match_out_of_candidate_scope": "ผลการจับคู่เกินขอบเขตผู้สมัครปัจจุบันและต้องตรวจทานด้วยคน",
"inventory_candidates_frozen_required": "ยังไม่ได้ยืนยันผู้สมัครสินค้าคงคลัง โปรดยืนยันแหล่งสินค้าคงคลังก่อน",
"inventory_snapshot_prepare_failed": "เตรียมสแนปช็อตสินค้าคงคลังล้มเหลว โปรดตรวจสอบผลการดึงข้อมูลแล้วลองใหม่",
"inventory_snapshots_pending": "กำลังเตรียมสแนปช็อตสินค้าคงคลัง โปรดรีเฟรชอีกครั้งภายหลัง",
"inventory_match_not_ready": "สินค้าคงคลังยังไม่พร้อมจับคู่ โปรดเตรียมสินค้าคงคลังก่อน",
"projection_data_inconsistent": "ข้อมูลความคืบหน้าไม่สอดคล้อง โปรดรีเฟรชแล้วลองใหม่ หรือติดต่อผู้ดูแลระบบ",
"inventory_insufficient": "สินค้าคงคลังไม่พอ",
"inventory_shortage_review_required": "มีสินค้าขาด ต้องตรวจทานด้วยคน",
"excel_not_ready": "ยังไม่พร้อมสร้าง Excel",
"artifact_generation_failed": "สร้าง Excel ล้มเหลว",
"attachment_format_unsupported": "รูปแบบไฟล์แนบไม่รองรับ",
"attachment_size_exceeded": "ไฟล์แนบเกินขนาดที่กำหนด",
"attachment_corrupted": "ไฟล์แนบเสียหาย",
"attachment_duplicate": "มีไฟล์แนบซ้ำอยู่แล้ว",
"attachment_storage_failed": "บันทึกไฟล์แนบล้มเหลว",
"attachment_security_blocked": "ไฟล์แนบถูกบล็อกด้วยเหตุผลด้านความปลอดภัย",
"attachment_replaced": "แทนที่ไฟล์แนบแจ้งจัดส่งแล้ว",
"document_text_unavailable": "ดึงข้อความที่ใช้งานได้ไม่ได้",
"business_table_not_found": "ไม่พบตารางคำสั่ง",
"business_table_empty": "ตารางคำสั่งไม่มีแถวที่ถูกต้อง",
"multiple_business_tables": "พบตารางคำสั่งหลายตาราง",
"document_password_protected": "เอกสารมีการป้องกันด้วยรหัสผ่าน",
"generic_gate_blocked": "เกตการรู้จำคำสั่งทั่วไปถูกบล็อก",
"gate_invalidated": "ผลต้นทางเปลี่ยน ต้องประเมินเกตใหม่",
"task_cancelled_by_user": "ผู้ใช้ยกเลิกงานแล้ว",
"task_voided_for_correction": "งานถูกยกเลิกเพื่อแก้ไข",
"task_archived": "งานถูกเก็บถาวรแล้ว",
"task_rejected_by_user": "ผู้ใช้ปฏิเสธผู้สมัคร/งานแล้ว",
"task_closed_after_upload": "ปิดงานหลังอัปโหลดสำเร็จ",
"void_blocked_external_uploaded": "มีการปฏิบัติภายนอกแล้ว ห้ามยกเลิก — ให้เก็บถาวรแทน",
"unknown_business_failure": "การประมวลผลธุรกิจล้มเหลว ติดต่อผู้ดูแลด้วยรหัสคำขอ",
"inventory_source_conflicted": "กฎแหล่งสินค้าคงคลังขัดแย้ง ต้องตรวจทาน",
"inventory_source_changed": "การตั้งค่าแหล่งสินค้าคงคลังที่ยืนยันแล้วมีการเปลี่ยนแปลง",
"inventory_source_identity_mismatch": "ตัวตนงานไม่ตรงกับแหล่งสินค้าคงคลัง/คลังสินค้า",
"inventory_multi_file_conflict": "ผลจากหลายไฟล์สินค้าคงคลังขัดแย้งกัน",
"inventory_sku_not_found": "ไม่พบ SKU ในสินค้าคงคลัง",
"inventory_reservation_not_found": "ไม่พบ Reservation ในสินค้าคงคลัง",
"inventory_warehouse_mismatch": "คลังสินค้าไม่ตรงตามคำสั่ง",
"inventory_required_column_missing": "ไฟล์สินค้าคงคลังขาดคอลัมน์ที่จำเป็น",
"inventory_column_ambiguous": "การแมปคอลัมน์สินค้าคงคลังคลุมเครือ",
"excel_template_missing": "ไม่มีเทมเพลต Excel จัดส่ง",
"excel_input_incomplete": "ข้อมูลสำหรับสร้าง Excel ยังไม่ครบ",
"artifact_validation_failed": "ตรวจสอบไฟล์ Excel ล้มเหลว",
"late_callback_ignored": "ละเว้นคอลแบ็กภายนอกที่มาช้า",
"close_blocked_missing_receipt": "ไม่มีใบเสร็จอัปโหลด ยังปิดงานไม่ได้",
"xfa_dataset_missing": "ไม่มี XFA datasets ที่ใช้งานได้",
"xfa_unsafe_xml": "ปฏิเสธ XML ของ XFA ที่ไม่ปลอดภัย",
"xfa_packet_too_large": "แพ็กเก็ต XFA เกินขนาด",
"xfa_xml_depth_exceeded": "ความลึก XML XFA เกินขีดจำกัด",
"xfa_xml_node_limit_exceeded": "จำนวนโหนด XML XFA เกินขีดจำกัด",
"xfa_line_row_limit_exceeded": "จำนวนแถว XFA เกินขีดจำกัด",
"xfa_parse_timeout": "การแยกวิเคราะห์ XFA หมดเวลา",
"xfa_unsupported_document": "ประเภทเอกสารไม่รองรับโหมดเส้นทางข้อมูล XFA",
"xfa_profile_not_matched": "ไม่พบโปรไฟล์ XFA ที่เผยแพร่",
"xfa_profile_ambiguous": "พบโปรไฟล์ XFA หลายรายการ",
"xfa_required_field_missing": "ฟิลด์จำเป็น XFA หายไป",
"xfa_mirror_collection_mismatch": "ชุดรายการกระจกเงา XFA ไม่ตรงกัน",
"xfa_acroform_mismatch": "XFA datasets และ AcroForm ไม่ตรงกัน",
"xfa_business_validation_failed": "การตรวจสอบธุรกิจ XFA ล้มเหลว",
"xfa_authoritative_collection_missing": "ไม่พบชุดรายการหลัก",
"xfa_path_invalid": "เส้นทางข้อมูล XFA ไม่ถูกต้อง",
"xfa_path_unknown": "ไม่รู้จักเส้นทางข้อมูล XFA",
"xfa_definition_invalid": "นิยามโปรไฟล์ XFA ไม่ถูกต้อง",
"xfa_structure_identity_changed": "เอกลักษณ์โครงสร้าง XFA เปลี่ยนแล้ว"
},
"nextAction": "ขั้นตอนถัดไป",
"nextActionHint": "ถัดไป: {action}",
"actionSuggestion": "การดำเนินการที่แนะนำ",
"detailFacts": "ข้อเท็จจริงสำคัญ",
"detailKeys": {
"source_code": "แหล่งสต็อก",
"source_codes": "แหล่งสต็อก",
"unavailable_source_codes": "แหล่งที่ไม่พร้อม",
"unavailable_reasons": "เหตุผลที่ไม่พร้อม",
"matched_rule_codes": "กฎที่ตรงกัน",
"raw_rule_source_codes": "ตัวเลือกจากกฎ",
"candidate_inventory_source_codes": "ตัวเลือกที่ใช้ได้",
"line_key": "รายการ",
"line_index": "แถว",
"field_code": "ฟิลด์",
"request_id": "รหัสคำขอ",
"process_status": "สถานะกระบวนการ",
"match_status": "สถานะการจับคู่",
"task_no": "หมายเลขงาน",
"has_inventory_lines": "มีแถวสต็อกแล้ว",
"has_export": "สร้าง Excel แล้ว",
"execution_no": "รหัสการดำเนินการ",
"inventory_file_id": "ไฟล์สต็อก"
}
},
"myTodos": {
"title": "ศูนย์งาน",
"subtitle": "รวมงานค้าง ข้อยกเว้น และการลงทะเบียนอัปโหลดด้วยตนเอง; รายละเอียดอยู่ที่โต๊ะประมวลผลคำสั่งซื้อ",
"empty": "ยังไม่มีงานในกลุ่มนี้",
"open": "เปิด",
"openReview": "เข้าสู่การประมวลผลคำสั่งซื้อ",
"openConversation": "เปิดบทสนทนา",
"openTask": "เปิดงาน",
"openProcessingHint": "การตรวจแก้ แก้ไข และลงทะเบียนการจัดส่ง ให้ทำในโต๊ะประมวลผลคำสั่งซื้อ",
"openProcessingUnavailable": "ไม่พบงานระบุตัวตน โปรดเปิดโต๊ะประมวลผลจากบทสนทนาเดิม",
"progressSummary": "ปัจจุบัน: {stage} · {current}/{total}",
"progressBlocker": "ถูกบล็อก: {reason}",
"intakeParseBadge": "การแยกวิเคราะห์เอกสาร",
"buckets": {
"pending": "รอดำเนินการ",
"processing": "กำลังดำเนินการ",
"done": "เสร็จแล้ว"
},
"filters": {
"todoCategory": "ประเภทงานค้าง",
"all": "ทั้งหมด",
"review": "รอตรวจ",
"exception": "ข้อยกเว้น",
"manualUpload": "รออัปโหลดด้วยตนเอง",
"intakeParse": "การแยกวิเคราะห์เอกสาร",
"customer": "ลูกค้า",
"customerPlaceholder": "ชื่อหรือรหัสย่อลูกค้า",
"taskNo": "หมายเลขงาน",
"taskNoPlaceholder": "หมายเลข SN",
"apply": "ใช้ตัวกรอง",
"reset": "รีเซ็ต"
}
},
"risk": {
"title": "ความเสี่ยงและประเด็นที่ค้าง"
},
"pdfEvidence": {
"title": "PDF / หลักฐานต้นทาง",
"empty": "ไม่มีข้อมูลไฟล์ต้นทาง",
"hint": "การดูตัวอย่างไฟล์และการลงทะเบียนหลักฐานอัปโหลดด้วยตนเองทำผ่านปุ่มงานค้าง",
"uploadCount": "บันทึกหลักฐานอัปโหลดด้วยตนเองแล้ว {count} ไฟล์"
},
"manualUpload": {
"title": "ยืนยันอัปโหลดด้วยตนเอง",
"hint": "อัปโหลดภาพหน้าจอหรือ PDF และกรอกเลขใบเสร็จ จะไม่เรียก RPA อัปโหลด",
"evidenceLabel": "ไฟล์หลักฐาน (ภาพหน้าจอ / PDF จำเป็น)",
"freightRefLabel": "เลขใบเสร็จผู้ขนส่ง (จำเป็น)",
"freightRefOptional": "เลขใบเสร็จผู้ขนส่ง (จำเป็น)",
"evidenceRequired": "กรุณาเลือกไฟล์หลักฐานก่อน",
"freightRefRequired": "กรุณากรอกเลขใบเสร็จผู้ขนส่ง",
"cancel": "ยกเลิก",
"submit": "ยืนยันอัปโหลดแล้ว",
"submitting": "กำลังส่ง…"
},
"timeline": {
"empty": "ยังไม่มีเหตุการณ์",
"loading": "กำลังโหลดเหตุการณ์…",
"loadFailed": "โหลดเหตุการณ์ไม่สำเร็จ",
"detail": "ดูรายละเอียด",
"sourceTask": "เหตุการณ์งาน",
"sourceWorkflow": "บันทึกการประมวลผลไฟล์",
"sourceAudit": "บันทึกการตรวจสอบ",
"workflowEvent": "บันทึกการประมวลผลไฟล์",
"updated": "อัปเดตสถานะการประมวลผลแล้ว",
"actors": {
"user": "ผู้ใช้งานธุรกิจ",
"system": "ระบบ",
"admin": "ผู้ดูแลระบบ"
}
},
"workflowStatus": {
"created": "สร้างแล้ว",
"queued": "รอดำเนินการ",
"extracting": "กำลังอ่านข้อมูล",
"pending_review": "รอตรวจสอบ",
"waiting_manual_upload": "รออัปโหลดด้วยตนเอง",
"failed": "ดำเนินการไม่สำเร็จ",
"completed": "เสร็จสิ้น",
"closed": "สิ้นสุดแล้ว"
},
"workflowReasons": {
"review_case_draft": "ต้องตรวจสอบคำสั่งซื้อ",
"user_cancelled": "ผู้ใช้ยกเลิกแล้ว",
"completed": "ดำเนินการเสร็จสิ้นแล้ว"
},
"stpFacts": {
"title": "ความคืบหน้า STP",
"inventorySourceStatus": "สถานะแหล่งสต็อก",
"inventorySourceCode": "แหล่งสต็อกปัจจุบัน",
"frozenCandidates": "แหล่งสต็อกผู้สมัครที่แช่แข็ง",
"multiSourceBlock": "บรรทัดคำสั่งจับคู่หลายแหล่งสต็อก ไม่สามารถสร้าง Excel เดียวได้ กรุณาแยกออเดอร์หรือเลือกแหล่งเอง",
"resolutionCounts": "ผลการจับคู่รายบรรทัด",
"lineTableTitle": "หลักฐานการจับคู่รายบรรทัด",
"colLine": "บรรทัด",
"colReservation": "Reservation",
"colPart": "รหัสชิ้นส่วน",
"colDisposition": "ผลตัดสิน",
"colSource": "แหล่งสต็อกจริง",
"colEvidence": "ไฟล์สต็อก/หลักฐาน",
"disposition": {
"ok": "พร้อมส่ง",
"shortage": "สต็อกไม่พอ",
"not_found": "ไม่พบ",
"multi_file_conflict": "ชนหลายไฟล์",
"unknown": "ไม่ทราบ"
}
},
"openChat": "ดำเนินการต่อใน Chat",
"download": "ดาวน์โหลด Excel",
"downloadBatch": "ดาวน์โหลด ZIP ของชุดงาน",
"selectAllVisible": "เลือกผลลัพธ์ปัจจุบันทั้งหมด",
"selectedCount": "เลือกแล้ว {count} งาน",
"downloadSelected": "ดาวน์โหลด ZIP ที่เลือก",
"selectForDownload": "เลือกงาน {taskNo} สำหรับดาวน์โหลดแบบกลุ่ม",
"archiveDownloadFailed": "ดาวน์โหลดแบบกลุ่มไม่สำเร็จ โปรดรีเฟรชงานแล้วลองอีกครั้ง",
"actions": {
"title": "การดำเนินการที่ทำได้",
"freezeOrder": "ตรึงคำสั่งซื้อ",
"freezeConfirm": "ยืนยันการตรึงคำสั่งซื้อที่ตรวจทานแล้วหรือไม่ หลังตรึงแล้วจะเป็นข้อเท็จจริงสำหรับสต็อก Excel และการอัปโหลด",
"freezeFailed": "ตรึงคำสั่งซื้อไม่สำเร็จหรือเวอร์ชันเปลี่ยนแล้ว โปรดรีเฟรชและตรวจทานอีกครั้ง",
"inventorySourcePrompt": "ป้อนรหัสแหล่งสต็อกที่เผยแพร่แล้ว:",
"customerPrompt": "ป้อนรหัสย่อลูกค้าหรือชื่อเพื่อค้นหา:",
"customerNotFound": "ไม่พบลูกค้าที่เปิดใช้งานสำหรับการยืนยัน",
"customerConfirm": "ผูกงานนี้กับลูกค้า {name} ({code}) หรือไม่?",
"failed": "การดำเนินการล้มเหลว โปรดรีเฟรชงานแล้วลองใหม่"
},
"candidateReview": {
"title": "ผู้สมัครที่รอสร้างแบตช์",
"hint": "เลือก แก้ไข และจัดการรายการซ้ำที่นี่ เฉพาะผู้สมัครที่เลือกและผ่านเงื่อนไขฝั่งเซิร์ฟเวอร์จึงสร้างแบตช์ได้",
"createBatch": "สร้างแบตช์จากรายการที่เลือก"
},
"lifecycle": {
"active": "กำลังดำเนินการ",
"deleted": "ถังรีไซเคิล",
"voided": "ยกเลิกแล้ว",
"archived": "เก็บถาวรแล้ว"
},
"disposition": {
"actions": {
"delete": "ลบ",
"archive": "เก็บถาวร",
"restore": "กู้คืน",
"purge": "ลบถาวร"
},
"reasonPrompt": "ระบุเหตุผลในการลบหรือยกเลิกงาน:",
"purgeReasonPrompt": "ระบุเหตุผลในการลบถาวร (เฉพาะผู้ดูแลและงานที่สร้างผิดเท่านั้น):",
"confirm": "ยืนยัน{action}งานที่เลือก {count} งานหรือไม่?",
"success": "ดำเนินการแล้ว {count} งาน",
"partial": "ดำเนินการแล้ว {success} งาน และ {blocked} งานถูกเซิร์ฟเวอร์ปิดกั้น",
"failed": "ดำเนินการกับงานไม่สำเร็จ โปรดรีเฟรชแล้วลองอีกครั้ง"
},
"pagination": {
"summary": "แสดง {start}-{end} จากทั้งหมด {total} งาน",
"previous": "ก่อนหน้า",
"next": "ถัดไป",
"page": "หน้า {page} จาก {total}"
},
"lines": "รายการส่งสินค้า",
"qty": "จำนวน",
"columns": {
"sku": "SKU"
},
"events": "บันทึกเหตุการณ์",
"operator": "รหัสผู้ปฏิบัติงาน: {id}",
"filters": {
"status": "สถานะ",
"lifecycle": "สถานะงาน"
"status": "สถานะ"
},
"fields": {
"status": "สถานะกระบวนการ",
@@ -540,12 +139,6 @@
"shipTo": "ที่อยู่จัดส่ง",
"freightRef": "เลขอ้างอิงขนส่ง"
},
"inventorySourceDialog": {
"title": "ยืนยันแหล่งสต็อก",
"hint": "เลือกแหล่งสต็อกที่เผยแพร่แล้วจากรายการ หรือป้อนรหัสแหล่งสต็อกด้วยตนเอง",
"confirm": "ยืนยันแหล่งสต็อก",
"manualEntry": "ป้อนรหัสแหล่งสต็อกด้วยตนเอง"
},
"inventorySource": {
"title": "แหล่งสต็อกสำหรับการค้นหา",
"sourceCode": "รหัสแหล่ง",
@@ -580,28 +173,19 @@
"sourceManual": "อัปโหลดด้วยตนเอง",
"exportedAt": "เวลาส่งออก",
"fileNo": "รหัสสแนปช็อต",
"expired": "สแนปช็อตหมดอายุ ระบบจะเรียก RPA ดึงสต็อกใหม่"
},
"fulfillmentTimeline": {
"inventoryTitle": "ประวัติการตรวจสอบสต็อก",
"verificationLine": "ใบจอง {reservationId}: {availableQty}/{requiredQty} ({status})",
"artifactTitle": "ไทม์ไลน์ Excel Artifact",
"reservationIds": "รหัสใบจอง: {reservationIds}",
"uploadTitle": "ไทม์ไลน์ความพยายามอัปโหลด",
"uploadAttempt": "Artifact #{artifactId} / Attempt {attemptNo}",
"freightRef": "หมายเลขอ้างอิงผู้ขนส่ง: {freightRefNo}",
"evidenceAsset": "ไฟล์หลักฐาน: {assetId}"
"expired": "สแนปช็อตหมดอายุ ระบบจะเรียก RPA ใหม่หรือรอการอัปโหลดด้วยตนเอง"
},
"status": {
"all": "ทั้งหมด",
"created": "สร้างแล้ว",
"parsed": "แยกข้อมูลแล้ว",
"pendingReview": "รอตรวจสอบ",
"alignReview": "รอยืนยันฟิลด์",
"shortageReview": "สต็อกขาด",
"waitingInventory": "รอสต็อก",
"inventoryReady": "สต็อกพร้อม",
"matched": "จับคู่แล้ว",
"waitingUpload": "Excel พร้อมแล้ว",
"waitingUpload": "รออัปโหลด",
"uploaded": "อัปโหลดแล้ว",
"uploadFailed": "อัปโหลดล้มเหลว",
"rejected": "ถูกปฏิเสธ",
@@ -622,40 +206,38 @@
"inventory_uploaded": "อัปโหลดไฟล์สต็อกแล้ว",
"inventory_parsed": "แยกข้อมูลสต็อกแล้ว",
"matched_fulfillable": "จับคู่สต็อกเสร็จแล้ว",
"matched_stp_candidates": "จับคู่สต็อกข้ามผู้สมัครเสร็จแล้ว",
"matched_multi_source_excel_block": "ชนหลายแหล่งสต็อก สร้างใบส่งไม่ได้",
"matched_multi_file_conflict": "สต็อกชนหลายไฟล์",
"matched_shortage": "สต็อกไม่พอ",
"candidates_frozen": "แช่แข็งหลายแหล่งสต็อกตอนสร้างงาน",
"inventory_source_resolved_at_build": "ยืนยันแหล่งสต็อกตอนสร้างงาน",
"inventory_candidate_files_missing": "ไฟล์สต็อกผู้สมัครหายไป",
"inventory_candidate_files_partial": "ไฟล์สต็อกผู้สมัครพร้อมบางส่วน",
"stp_auto_create": "STP สร้างงานอัตโนมัติ",
"stp_auto_create_failed": "STP สร้างงานอัตโนมัติล้มเหลว",
"match_needs_review": "การจับคู่สต็อกรอตรวจสอบ",
"excel_generated": "สร้างไฟล์ส่งสินค้าแล้ว",
"uploaded": "อัปโหลดไปยังระบบขนส่งแล้ว",
"upload_failed": "อัปโหลดไปยังระบบขนส่งไม่สำเร็จ",
"backend_orchestrator_task_finished": "งานเบื้องหลังเสร็จแล้ว"
},
"myRuns": {
"title": "งานระบุของฉัน",
"subtitle": "ดูและดำเนินการต่องานระบุคำสั่งซื้อที่กำลังทำ ล้มเหลว หรือยกเลิกแล้ว",
"status": "สถานะ",
"allStatuses": "ทุกสถานะ",
"runNo": "หมายเลขรอบ",
"stage": "ขั้นตอนปัจจุบัน",
"summary": "ความคืบหน้าไฟล์",
"summaryCounts": "ทั้งหมด {total}: สำเร็จ {done} / ตรวจทาน {review} / ล้มเหลว {failed} / ยกเลิก {cancelled}",
"elapsed": "ใช้เวลา",
"actions": "การดำเนินการ",
"openChat": "เปิดแชท",
"loading": "กำลังโหลดงานระบุ...",
"empty": "ยังไม่มีงานระบุ",
"loadFailed": "โหลดงานระบุล้มเหลว",
"total": "ทั้งหมด {count}",
"previous": "ก่อนหน้า",
"next": "ถัดไป"
}
},
"voucherCheck": {
"title": "บันทึกตรวจสอบเอกสารบัญชี",
"subtitle": "ดูสถานะครบ/ขาดเอกสารใบแจ้งหนี้ของเดือนปฏิทินปัจจุบัน ตรวจสอบเฉพาะการมีอยู่ของไฟล์ ไม่เทียบยอดหรือผู้ขาย",
"period": "เดือนที่ตรวจ",
"status": "สถานะ",
"statusAll": "ทั้งหมด",
"statusComplete": "ครบ",
"statusMissing": "ขาดเอกสาร",
"statusSkipped": "ข้าม",
"statusTechError": "ข้อผิดพลาดทางเทคนิค",
"invoiceNo": "เลขที่ใบแจ้งหนี้",
"invoiceDate": "วันที่ใบแจ้งหนี้",
"invoicePlaceholder": "กรองด้วยเลขที่ใบแจ้งหนี้",
"folder": "เส้นทางแชร์",
"missing": "เอกสารที่ขาด",
"checkedAt": "เวลาที่ตรวจ",
"result": "ผลลัพธ์",
"search": "ค้นหา",
"refresh": "รีเฟรช",
"loading": "กำลังโหลด…",
"empty": "ยังไม่มีบันทึกการตรวจ",
"loadFailed": "โหลดบันทึกตรวจสอบไม่สำเร็จ",
"totalCount": "ทั้งหมด {total} รายการ",
"prevPage": "ก่อนหน้า",
"nextPage": "ถัดไป",
"runItemsTitle": "รายละเอียดรอบ {runId}"
}
}
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -18,6 +18,8 @@
"passwordRequired": "密码不能为空",
"passwordRequiredHint": "请输入密码",
"loginRequired": "请先登录",
"sessionExpired": "登录已失效",
"sessionExpiredHint": "请重新登录后继续使用。",
"requestFailed": "登录请求失败",
"forgotPassword": "忘记密码?",
"newPassword": "新密码",
@@ -48,7 +50,7 @@
"authFailed": "登录失败,请稍后重试",
"passwordPolicy": "新密码不符合安全要求",
"setPasswordFailed": "修改密码失败,请稍后重试或联系管理员",
"incorrectCurrentPassword": "当前密码不正确",
"incorrectCurrentPassword": "原:当前密码不正确,新:您输入的原密码有误,请重新输入",
"userNotInIdp": "您的账号尚未在统一认证系统中开通,请联系管理员同步账号后再修改密码。"
},
"casdoorDialogTitles": {
File diff suppressed because it is too large. Load diff
+13 -2
View File
@@ -8,6 +8,18 @@
"refresh": "刷新",
"yes": "是",
"no": "否",
"app": {
"title": "和信AI智能工作台",
"shortTitle": "AI工作台",
"remoteLogout": "您已在其他标签页退出登录"
},
"sso": {
"authorizing": "正在进入第三方系统",
"authorizingHint": "正在安全地完成统一登录,请稍候。",
"failed": "统一登录失败",
"invalidRequest": "第三方登录请求无效或已过期,请从目标系统重新发起。",
"backToHxops": "返回 HXOPS"
},
"deleteDialog": {
"defaultTitle": "您确定要删除吗?",
"defaultMessage": "点击“确定”按钮后,该对话框将在 1 秒后关闭",
@@ -31,6 +43,5 @@
"unsorted": "点击排序",
"asc": "升序,点击切换为降序",
"desc": "降序,点击切换为升序"
},
"required": "请填写必填项"
}
}
+19 -457
View File
@@ -1,213 +1,20 @@
{
"generic": "请求失败。",
"codes": {
"SHIPPING.FULFILLMENT_POLICY_INVALID": "货代履约策略或字段能力绑定无效。",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "未找到货代履约策略。",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "货代履约策略已被其他管理员修改,请刷新后重试。",
"SHIPPING.FULFILLMENT_POLICY_NOT_PUBLISHED": "尚未发布可执行的货代履约策略。",
"SHIPPING.RESERVATION_PO_REQUIRED": "该预定单号已存在,必须补齐采购订单后才能继续。",
"SHIPPING.RESERVATION_PO_CONFLICT": "该预定单号已被其他采购订单使用,已阻断重复订单。",
"SHIPPING.RESERVATION_DUPLICATED_IN_ORDER": "同一订单中存在重复的预定单号,无法冻结。",
"SHIPPING.RESERVATION_REVISION_REVIEW_REQUIRED": "该预定单号内容已变更,必须展示差异并经人工确认。",
"SHIPPING.RESERVATION_REVISION_LOCKED": "该预定单号已生成有效发货文件或已上传,禁止直接修订。",
"SHIPPING_NOTICE.BATCH_FILE_LIMIT_EXCEEDED": "本次上传文件数超过系统限制,请拆分后重试。",
"SHIPPING_NOTICE.ORDER_TASK_REQUIRED_FOR_CONFIRM": "当前订单候选尚未形成订单任务,无法确认建单。请刷新后重试或重新识别。",
"AGENT.EXPOSURE_ROLE_IMMUTABLE": "应用与内部执行器不可互相转换。",
"AGENT.ADMIN_SCOPE_INVALID": "应用管理页签参数无效。",
"AGENT.INTERNAL_EXECUTOR_USER_ACCESS_FORBIDDEN": "内部执行器不能展示、授权或通过普通用户接口访问。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_NOT_RETRYABLE": "只有识别失败的订单任务可以重新识别。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_REASON_REQUIRED": "重新识别必须填写原因,请补充后重试。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_NOT_ALLOWED": "当前状态不允许重新识别。请先进入人工复核,或等待识别失败后再重试。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_CASE_REQUIRED": "当前文件尚无复核单,不能新建识别版本。请先完成识别进入人工复核,或仅在识别失败后重试原任务。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_SOURCE_INVALID": "关联的识别任务不可用,无法重新识别。请刷新后重试或联系管理员。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_SNAPSHOT_OBSOLETE": "该识别任务使用旧版输入契约,无法重试。请重新发送邮件及附件发起新识别。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_CONVERSATION_ACTIVE": "当前对话仍有进行中的订单材料处理,可继续上传其他文件;若需等待,请查看右侧进度。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RETRY_WITHOUT_REUPLOAD": "解析失败可从失败节点重试,无需重新上传原文件。",
"SHIPPING_NOTICE.CANCEL_FORBIDDEN": "无权取消该订单识别任务。",
"SHIPPING_NOTICE.CANCEL_REASON_REQUIRED": "取消他人任务时必须填写原因。",
"SHIPPING_NOTICE.CANCEL_NOT_ACTIVE": "该任务已结束或不可取消。",
"SHIPPING_NOTICE.CANCEL_CONFLICT": "取消请求与当前进度冲突,请刷新后重试。",
"SHIPPING_NOTICE.CANCEL_FEATURE_DISABLED": "订单识别取消功能已关闭,请联系管理员。",
"SHIPPING_NOTICE.AUDIT_EXPORT_FEATURE_DISABLED": "审计导出功能已关闭,请联系管理员。",
"SHIPPING_NOTICE.AUDIT_PERSIST_FAILED": "审计记录写入失败,操作未完成,请稍后重试。",
"SHIPPING_NOTICE.AUDIT_METADATA_FORBIDDEN": "审计写入包含禁止的敏感字段。",
"SHIPPING_NOTICE.AUDIT_SNAPSHOT_FORBIDDEN": "审计快照包含禁止的敏感字段。",
"SHIPPING_PROCESSING_PROJECTION_INCONSISTENT": "订单进度状态不一致,已阻止履约动作。请刷新后重试。",
"SHIPPING_PROCESSING_TASK_OWNERSHIP_MISMATCH": "正式任务与当前处理上下文不匹配,已阻止操作。请刷新后重试。",
"SHIPPING_ORDER_SCHEMA_NOT_FOUND": "尚未初始化订单模板。",
"SHIPPING_ORDER_SCHEMA_EXISTS": "订单模板已存在。",
"SHIPPING_ORDER_SCHEMA_DRAFT_EXISTS": "已有订单模板草稿,请先完成或发布当前草稿。",
"SHIPPING_ORDER_SCHEMA_VERSION_INVALID": "订单字段版本配置无效。",
"SHIPPING_ORDER_SCHEMA_LOCK_VERSION_REQUIRED": "订单字段草稿缺少版本锁,请刷新页面后重试。",
"SHIPPING_ORDER_SCHEMA_VERSION_CONFLICT": "订单字段草稿已被其他管理员修改,页面将刷新为最新版本。",
"SHIPPING_ORDER_SCHEMA_VERSION_IMMUTABLE": "已发布的订单字段版本不可修改。",
"SHIPPING_ORDER_SCHEMA_VERSION_NOT_FOUND": "未找到订单字段版本。",
"SHIPPING_ORDER_SCHEMA_VERSION_DELETE_BLOCKED": "只有草稿版本可以删除。",
"SHIPPING_ORDER_SCHEMA_PUBLISH_INVALID": "当前订单字段版本不能发布。",
"SHIPPING_ORDER_SCHEMA_PUBLISH_DEPENDENCY_BLOCKED": "当前版本移除了仍被库存路由、解析配置或 Excel 模板引用的订单字段,请先迁移下游配置。",
"SHIPPING_ORDER_SCHEMA_NOT_PUBLISHED": "尚未发布可用的订单字段版本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_NOT_FOUND": "未找到订单文档解析模板。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_INVALID": "订单文档解析模板配置无效。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SCHEMA_INVALID": "订单文档解析模板必须绑定已发布或已退役的订单字段版本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_FIELD_INVALID": "订单文档解析模板引用了不可用的订单明细字段。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_HEADER_CONTAMINATED": "样本表头混入订单明细,必须先重建表格结构,不能创建模板。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_UNAVAILABLE": "当前表格缺少可用的原生或 OCR 字符坐标,无法重建逻辑明细。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_INVALID": "坐标重建配置或结果无效,请检查列边界后重试。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_FILE_TYPE_INVALID": "模板样本仅支持 PDF 或 EML 文件。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_NOT_FOUND": "未找到该样本文档,请刷新候选列表后重新选择。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_DELETE_BLOCKED": "该模板样本仍在解析、被盲测引用或其文件被其他业务使用,不能删除。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_IMMUTABLE": "已发布的订单文档解析模板不可修改。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_LOCK_VERSION_REQUIRED": "订单文档解析模板缺少版本锁,请刷新后重试。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_VERSION_CONFLICT": "订单文档解析模板已被其他管理员修改,请刷新后重试。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_REQUIRED": "需要有效的编辑租约,请先刷新或接管草稿。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_CONFLICT": "该草稿正在由另一个浏览器会话编辑。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LOCK_VERSION_CONFLICT": "服务端草稿已变更,请刷新并解决冲突后再保存。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_REVISION_NOT_FOUND": "未找到请求的草稿修订版本。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_VALIDATION_STALE": "该验证运行已不匹配当前草稿。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_INVALID": "发布检查已失效,请重新执行检查。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_CONSUMED": "该发布检查已被使用。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_REQUIRED": "发布前必须生成有效的版面签名。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_STALE": "版面签名已过期,请重新生成后再发布。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_OVERLAP_DETECTED": "检测到跨模板重叠或唯一性未通过,不能发布。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DRAFT_EXISTS": "该订单文档解析模板已有草稿版本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_INVALID": "当前订单文档解析模板不能发布。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_TRAINING": "发布前必须至少绑定一个训练样本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_BLIND_TEST": "发布前必须完成当前定义的独立盲测并获得批准。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_MULTILINE": "发布前盲测必须包含至少一份多明细真值样本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_CROSS_PAGE": "该跨页模板发布前盲测必须包含续页样本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_NOT_INDEPENDENT": "盲测样本不能复用训练或标注样本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_CONFLICT": "该文档已在当前盲测集中。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RETIRE_INVALID": "当前订单文档解析模板不能退役。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DELETE_BLOCKED": "只有草稿订单文档解析模板可以删除。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_CLONE_INVALID": "只能从已发布或已退役版本创建新草稿。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_INVALID": "自动冻结资格范围配置无效,请检查客户范围、业务场景和确认要求。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_NOT_FOUND": "未找到当前模板版本的自动冻结资格记录。",
"SHIPPING_ORDER_FIELD_INVALID": "订单字段编码、作用域或类型无效。",
"SHIPPING_ORDER_FIELD_NOT_FOUND": "未找到订单字段。",
"SHIPPING_ORDER_FIELD_IMMUTABLE": "订单字段发布后,编码、作用域和类型不可修改。",
"SHIPPING_ORDER_FIELD_CONFLICT": "订单字段编码已存在。",
"SHIPPING_ORDER_FIELD_RETIRE_BLOCKED": "该订单字段仍被草稿版本或运行配置引用,不能退役。",
"SHIPPING_IDENTITY_DEFINITION_NOT_FOUND": "未找到客户识别定义。",
"SHIPPING_IDENTITY_DEFINITION_INVALID": "客户识别定义或其来源字段无效。",
"SHIPPING_IDENTITY_DEFINITION_CONFLICT": "客户识别定义与现有配置冲突。",
"SHIPPING_IDENTITY_BUILTIN_IMMUTABLE": "系统内置客户识别定义不可修改或退役。",
"SHIPPING_IDENTITY_ORDER_FIELD_INVALID": "识别来源必须是当前已发布的订单信息文本字段。",
"SHIPPING_IDENTITY_AUTOMATION_FORBIDDEN": "该识别定义或证据不允许自动确认。",
"SHIPPING_IDENTITY_RULE_SET_NOT_FOUND": "未找到客户识别规则集。",
"SHIPPING_IDENTITY_RULE_SET_INVALID": "客户识别规则集配置无效。",
"SHIPPING_IDENTITY_RULE_SET_IMMUTABLE": "已发布客户识别规则集不可修改。",
"SHIPPING_IDENTITY_RULE_SET_CONFLICT": "客户识别规则集已被其他管理员修改或不能发布。",
"SHIPPING_IDENTITY_TARGET_INVALID": "客户识别证据目标无效或未启用。",
"SHIPPING_IDENTITY_EVIDENCE_VALUE_REQUIRED": "客户识别证据值不能为空。",
"SHIPPING_IDENTITY_EVIDENCE_INVALID": "客户识别证据状态无效。",
"SHIPPING_IDENTITY_EVIDENCE_CONFLICT": "该客户识别证据已存在。",
"SHIPPING_IDENTITY_EVIDENCE_NOT_FOUND": "未找到客户识别证据。",
"SHIPPING_CUSTOMER_LEGACY_IDENTIFIER_WRITE_DISABLED": "固定类型识别证据已停止维护,请选择已发布的识别定义创建或更新配置化证据。",
"AUTH_UNAUTHORIZED": "请先登录。",
"SHIPPING_CUSTOMER_DELETE_REASON_REQUIRED": "永久删除客户必须填写原因。",
"SHIPPING_CUSTOMER_DELETE_CONFIRMATION_INVALID": "删除确认的客户简码不正确。",
"SHIPPING_CUSTOMER_DELETE_BLOCKED": "客户存在业务或审计引用,不能永久删除。",
"SHIPPING_CUSTOMER_MERGED_LOCKED": "客户已合并,不能再用于新业务或编辑。",
"SHIPPING_CUSTOMER_MERGE_TARGET_REQUIRED": "请选择合并目标客户。",
"SHIPPING_CUSTOMER_MERGE_TARGET_INVALID": "合并目标客户必须处于启用状态。",
"SHIPPING_CUSTOMER_MERGE_SAME_CUSTOMER": "源客户和目标客户不能相同。",
"SHIPPING_CUSTOMER_MERGE_SOURCE_ALREADY_MERGED": "源客户已完成合并。",
"SHIPPING_CUSTOMER_MERGE_REASON_REQUIRED": "合并客户必须填写原因。",
"SHIPPING_CUSTOMER_MERGE_CONFIRMATION_INVALID": "合并确认的源客户简码不正确。",
"AUTH_INCORRECT_PASSWORD": "密码错误",
"AUTH_INCORRECT_CURRENT_PASSWORD": "当前密码不正确",
"AUTH_INCORRECT_CURRENT_PASSWORD": "您输入的原密码有误,请重新输入",
"AUTH_USER_NOT_FOUND": "用户不存在",
"AUTH_ACCOUNT_DISABLED": "账号已禁用",
"AUTH_CASDOOR_IDENTITY_INVALID": "Casdoor 未返回稳定用户身份,请联系管理员检查 OIDC 配置。",
"AUTH_SSO_CONFIG_ERROR": "统一登录应用配置无效,请联系管理员。",
"AUTH_SSO_APP_NOT_FOUND": "目标系统未配置或已停用。",
"AUTH_SSO_IDENTITY_UNSUPPORTED": "当前登录不是 Casdoor 身份,请重新登录后重试。",
"AUTH_SSO_ASSERTION_ISSUE_FAILED": "平级服务登录声明签发失败,请重试。",
"AUTH_FORBIDDEN": "你没有权限执行该操作。",
"SHIPPING_TASK_SELECTION_INVALID": "请选择 1 到 100 个发货任务。",
"SHIPPING_TASK_DELETE_REASON_REQUIRED": "删除或作废任务必须填写原因。",
"SHIPPING_TASK_EXTERNAL_VOID_BLOCKED": "任务正在外部上传或已上传,只能归档,不能作废或删除。",
"SHIPPING_TASK_ALREADY_DELETED": "任务已在回收站中。",
"SHIPPING_TASK_RESTORE_BLOCKED": "该任务已作废或归档,不能从回收站恢复。",
"SHIPPING_TASK_LIFECYCLE_CONFLICT": "任务当前生命周期不允许此操作。",
"SHIPPING_TASK_PURGE_BLOCKED": "任务存在业务或审计引用,不能永久删除。",
"SHIPPING_TASK_PURGE_REASON_REQUIRED": "永久删除任务必须填写原因。",
"RESOURCE_NOT_FOUND": "请求的资源不存在。",
"RESOURCE_CONFLICT": "请求冲突,请刷新后重试。",
"VALIDATION_INVALID_PARAM": "请求参数不合法。",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_NOT_FOUND": "外部系统仓库映射不存在。",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_CONFLICT": "该库存源和货代仓库已存在启用的外部系统仓库映射。",
"SHIPPING_INVENTORY_SOURCE_CONFIG_INVALID": "库存源的报表路径、查询参数或别名配置不合法。",
"SHIPPING_RPA_PROFILE_CONFIG_INVALID": "货代登录连接配置不合法,当前仅支持账号密码登录。",
"SHIPPING_EXCEL_TEMPLATE_ASSET_INVALID": "Excel 模板文件无效或无法读取。",
"SHIPPING_EXCEL_TEMPLATE_DEFINITION_INVALID": "Excel 模板映射定义无效。",
"SHIPPING_EXCEL_TEMPLATE_DELETE_BLOCKED": "只有草稿 Excel 模板可以删除。",
"SHIPPING_EXCEL_TEMPLATE_DRAFT_EXISTS": "该模板已有草稿版本,请先处理当前草稿。",
"SHIPPING_EXCEL_TEMPLATE_FIELD_INVALID": "Excel 模板字段映射无效。",
"SHIPPING_EXCEL_TEMPLATE_IMMUTABLE": "已发布或已退役的 Excel 模板不可修改。",
"SHIPPING_EXCEL_TEMPLATE_INVALID": "Excel 模板配置无效。",
"SHIPPING_EXCEL_TEMPLATE_NOT_FOUND": "未找到 Excel 模板。",
"SHIPPING_EXCEL_TEMPLATE_PUBLISH_INVALID": "当前 Excel 模板不能发布。",
"SHIPPING_EXCEL_TEMPLATE_REQUIRED": "启用库存源前必须绑定已发布的 Excel 模板。",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_BLOCKED": "Excel 模板仍被库存源引用,不能退役。",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_INVALID": "当前 Excel 模板不能退役。",
"SHIPPING_EXCEL_TEMPLATE_TARGET_DUPLICATE": "Excel 模板存在重复的目标单元格映射。",
"SHIPPING_EXPORT_ARCHIVE_EMPTY": "所选任务没有可下载的导出文件。",
"SHIPPING_EXPORT_ARCHIVE_NOT_FOUND": "未找到可下载的导出文件。",
"SHIPPING_EXPORT_ARCHIVE_SELECTION_INVALID": "批量下载的任务选择无效。",
"SHIPPING_EXPORT_ARCHIVE_TOO_LARGE": "单次批量下载最多支持 100 个任务。",
"SHIPPING_INVENTORY_PARSING_PROFILE_DELETE_BLOCKED": "只有草稿库存解析配置可以删除。",
"SHIPPING_INVENTORY_PARSING_PROFILE_IMMUTABLE": "已发布或已退役的库存解析配置不可修改。",
"SHIPPING_INVENTORY_PARSING_PROFILE_INVALID": "库存解析配置无效。",
"SHIPPING_INVENTORY_PARSING_PROFILE_NOT_FOUND": "未找到库存解析配置。",
"SHIPPING_INVENTORY_PARSING_PROFILE_PUBLISH_INVALID": "当前库存解析配置不能发布。",
"SHIPPING_INVENTORY_PARSING_PROFILE_REQUIRED": "启用库存源前必须绑定已发布的库存解析配置。",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_BLOCKED": "库存解析配置仍被库存源引用,不能退役。",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_INVALID": "当前库存解析配置不能退役。",
"SHIPPING_INVENTORY_FIELD_CONFLICT": "库存字段名称已存在。",
"SHIPPING_INVENTORY_FIELD_DELETE_BLOCKED": "该库存字段是核心字段或仍被配置引用,不能删除或停用。",
"SHIPPING_INVENTORY_FIELD_IMMUTABLE": "已停用库存字段不可编辑,核心字段的数据格式和字段用途不可修改。",
"SHIPPING_INVENTORY_FIELD_INVALID": "库存字段信息不完整或格式不正确。",
"SHIPPING_INVENTORY_FIELD_NOT_FOUND": "未找到库存字段。",
"SHIPPING_INVENTORY_FIELD_RETIRE_BLOCKED": "该库存字段仍被配置引用,不能停用。",
"SHIPPING_INVENTORY_RULE_CONDITION_INVALID": "库存路由规则条件无效。",
"SHIPPING_INVENTORY_RULE_CONDITIONS_REQUIRED": "库存路由规则至少需要一个条件。",
"SHIPPING_INVENTORY_RULE_CONFLICT": "库存路由规则名称或优先级冲突。",
"SHIPPING_INVENTORY_RULE_DELETE_BLOCKED": "只有草稿库存路由规则可以删除。",
"SHIPPING_INVENTORY_RULE_IMMUTABLE": "已发布的库存路由规则不可修改。",
"SHIPPING_INVENTORY_RULE_INVALID": "库存路由规则配置无效。",
"SHIPPING_INVENTORY_RULE_NOT_FOUND": "未找到库存路由规则。",
"SHIPPING_INVENTORY_RULE_PUBLISH_INVALID": "当前库存路由规则不能发布。",
"SHIPPING_INVENTORY_RULE_SOURCE_INVALID": "库存路由规则引用了不存在或已停用的库存源。",
"SHIPPING_INVENTORY_RULE_RETIRE_INVALID": "当前库存路由规则不能退役。",
"SHIPPING_INVENTORY_SOURCE_DELETE_BLOCKED": "库存源仍被业务数据引用,不能删除。",
"SHIPPING_INVENTORY_SOURCE_NOT_FOUND": "未找到库存源。",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_REQUIRED": "请先完成测试导出和启用检查,再启用库存站点。",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_BLOCKED": "库存站点尚未完成正式运行检查,暂不能启用。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_REQUIRED": "请选择库存样本文件。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_TOO_LARGE": "库存样本文件超过 20 MB 限制。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_INVALID": "库存样本文件无法识别,请检查文件格式和表头。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_NOT_FOUND": "库存文件结构识别记录不存在。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_SELECTION_INVALID": "所选工作表、表头或来源栏位不在库存文件识别结果中。",
"SHIPPING_TEMP_INVENTORY_CONTEXT_INVALID": "当前对话上下文无效,无法处理临时库存文件。",
"SHIPPING_TEMP_INVENTORY_ASSET_REQUIRED": "请先上传库存文件。",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_FOUND": "未找到当前对话可用的库存文件。",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_READY": "库存文件仍在上传中,请稍后重试。",
"SHIPPING_TEMP_INVENTORY_FILE_TYPE_INVALID": "对话库存文件仅支持 .xls、.xlsx 或 .csv。",
"SHIPPING_TEMP_INVENTORY_FILE_TOO_LARGE": "对话库存文件超过 20 MB 限制。",
"SHIPPING_TEMP_INVENTORY_ANALYSIS_INVALID": "无法识别库存文件结构,请检查文件格式和表头。",
"SHIPPING_TEMP_INVENTORY_SESSION_NOT_FOUND": "临时库存会话不存在、已过期或无权访问。",
"SHIPPING_TEMP_INVENTORY_MAPPING_STATE_INVALID": "当前临时库存会话不能再提交字段映射建议。",
"SHIPPING_TEMP_INVENTORY_MAPPING_INVALID": "库存字段映射建议无效、不完整,或包含不在文件中的栏位。",
"SHIPPING_TEMP_INVENTORY_CONFIRMATION_INVALID": "临时库存确认条件不满足,请重新选择已推荐的方案或映射。",
"SHIPPING_TEMP_INVENTORY_QUALITY_INVALID": "临时库存文件未通过料号、预约号或可用库存数量校验。",
"SHIPPING_TEMP_INVENTORY_SESSION_EXPIRED": "临时库存会话已过期,请重新上传文件。",
"SHIPPING_TEMP_INVENTORY_TASK_NOT_FOUND": "当前对话中未找到可使用该临时库存的发货任务。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_INVALID": "请在库存站点停用状态下执行测试导出。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_UNAVAILABLE": "RPA Worker 当前不可用,无法发起测试导出。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_FOUND": "库存站点测试导出记录不存在。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_READY": "测试导出尚未完成,暂不能确认解析方案。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_STALE": "库存站点配置已变更,请重新测试导出。",
"SHIPPING_RPA_PROFILE_CONFLICT": "货代登录配置名称已存在。",
"SHIPPING_RPA_PROFILE_DELETE_BLOCKED": "货代登录配置仍被库存源引用,不能删除。",
"SHIPPING_RPA_PROFILE_DISABLE_BLOCKED": "货代登录配置仍被启用的库存源引用,不能停用。",
"SHIPPING_RPA_PROFILE_DISABLED": "启用库存源前必须先启用其货代登录配置。",
"SHIPPING_RPA_PROFILE_NOT_FOUND": "未找到货代登录配置。",
"USER_USERNAME_REQUIRED": "用户名必填。",
"USER_USERNAME_EXISTS": "用户名已存在。",
"USER_EMAIL_INVALID": "邮箱格式不正确。",
@@ -217,12 +24,6 @@
"USER_UNIQUENESS_CONFLICT": "数据唯一性冲突。",
"SYSTEM_INTERNAL_ERROR": "服务器内部错误,请稍后重试。",
"AGENT_HANDLER_NOT_CONFIGURED": "应用业务 Handler 未配置,请联系管理员。",
"AGENT_RUNTIME_CAPABILITY_NOT_DECLARED": "当前应用类型未声明该后台业务能力。",
"AGENT_RUNTIME_BINDING_CONFIG_INVALID": "后台业务能力的超时或重试配置无效。",
"AGENT_RUNTIME_PROVIDER_DISABLED": "所选内部能力 Provider 已停用。",
"AGENT_RUNTIME_PROVIDER_INVALID": "所选应用不符合该后台业务能力的 Provider 类型要求。",
"AGENT_RUNTIME_PROVIDER_CONFIG_INCOMPLETE": "内部能力 Provider 的 Dify App ID、API 地址或密钥配置不完整。",
"AGENT_RUNTIME_PROVIDER_DELETE_BLOCKED": "该应用已被后台业务能力绑定或历史任务引用,不能删除。",
"SYSTEM_HTTP_ERROR": "请求失败。",
"WECOM_RESET_NOT_CONFIGURED": "企微找回密码未配置,请在管理端「企业微信 → 系统配置」开启企微并填写 Corp ID、Agent ID、Secret。",
"WECOM_NOTIFY_DISABLED": "企微通知已关闭,请在管理端「企业微信 → 通知设置」开启。",
@@ -249,15 +50,15 @@
"FILE_ASSET_SIZE_EXCEEDED": "文件大小超过限制。",
"FILE_ASSET_EXPIRED": "文件资产已过期。",
"FILE_ASSET_ALREADY_REFERENCED": "文件已被业务引用,无法删除。",
"PROCUREMENT_CONTRACT_TEMPLATE_REFERENCED": "模板已被审查历史引用,无法删除;请停用该模板。",
"PROCUREMENT_CONTRACT_INVALID_COMPARISON_REGION_CONFIG": "比对区域配置无效,请检查字段、锚点和附件策略。",
"PROCUREMENT_CONTRACT_COMPARISON_REGION_PREVIEW_FAILED": "无法从模板文件中识别比对区域。",
"FILE_ASSET_INVALID_STATUS": "文件状态不允许该操作。",
"SHIPPING_NOTICE_INTAKE_NOT_FOUND": "发货通知接入记录不存在。",
"SHIPPING_NOTICE_INTAKE_PARSE_PENDING": "发货通知仍在解析中,请稍后再确认建单。",
"SHIPPING_NOTICE_INTAKE_PARSE_FAILED": "发货通知解析失败,请重试或移除后重新上传。",
"SHIPPING_NOTICE_INTAKE_PARSE_TIMEOUT": "发货通知解析超时,请重试或移除后重新上传。",
"SHIPPING_NOTICE_INTAKE_STAGE2_PERSIST_FAILED": "发货通知正文或附件预处理保存失败,请重试解析。",
"SHIPPING_NOTICE_INTAKE_ATTACHMENTS_INCOMPLETE": "发货通知附件解析不完整,请重试解析或移除后重新上传。",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "该文件已进入订单处理,请查看现有处理结果,无需重复提交。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_CONSUMED": "该文件已完成一次订单处理,请查看现有结果或使用重新识别。",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "发货通知接入记录已被消费。",
"SHIPPING_NOTICE_INTAKE_EXPIRED": "发货通知接入记录已过期。",
"SHIPPING_NOTICE_INTAKE_INVALID_STATUS": "当前接入状态不允许该操作。",
"SHIPPING_NOTICE_DUPLICATE_RESOLUTION_REQUIRED": "检测到重复发货通知,请先选择处理方式。",
@@ -269,252 +70,13 @@
"SHIPPING_NOTICE_REVISION_ALREADY_EXISTS": "该任务已有后续修订版本。",
"SHIPPING_NOTICE_REVISION_CONFLICT": "目标任务已有修订版本,请打开已有修订或重新检测。",
"SHIPPING_NOTICE_FINGERPRINT_UNAVAILABLE": "无法生成可靠业务指纹,将仅按文件去重。",
"SHIPPING_NOTICE_CANDIDATE_NOT_FOUND": "订单候选不存在。",
"SHIPPING_NOTICE_CANDIDATE_ALREADY_CONSUMED": "订单候选已被建单,无法修改。",
"SHIPPING_NOTICE_CANDIDATE_NOT_SELECTED": "订单候选未被选中。",
"SHIPPING_NOTICE_CANDIDATE_REVIEW_REQUIRED": "订单候选仍需人工审核。",
"SHIPPING_NOTICE_CANDIDATE_DOCUMENT_INVALID": "订单候选的主附件无效。",
"SHIPPING_NOTICE_CANDIDATE_SELECTION_CHANGED": "订单候选选择状态已变化,请刷新后重试。",
"SHIPPING_NOTICE_DUPLICATE_ACTION_UNAVAILABLE": "当前重复状态不允许该处理方式。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONTEXT_INVALID": "订单识别上下文无效,请从失败节点重试或重新提交当前材料。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PENDING": "邮件预处理尚未完成,或本次订单识别仍在处理中。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_LAYOUT_PENDING": "订单附件版面仍在解析,请稍候再发送。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_COMPLETED": "该邮件的订单识别结果已保存,请查看订单候选或已有任务。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INVALID_RESULT": "订单识别结果不符合协议,请重新解析。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_FAILED": "订单识别失败,可从失败节点重试,无需重新上传。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_NOT_FOUND": "货代应用不存在。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_INVALID": "请选择已启用的货代发货应用。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_FORBIDDEN": "您没有使用该货代应用的权限。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_REQUIRED": "缺少订单抽取所属会话。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_NOT_FOUND": "订单抽取所属会话不存在。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_MISMATCH": "所选附件不属于当前会话。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INTAKES_INVALID": "请选择 1 至 50 个有效的发货通知附件。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_ACTIVE": "所选附件已有正在处理的订单抽取任务。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_NOT_FOUND": "订单抽取任务不存在或无权访问。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_TRANSITION_INVALID": "订单抽取任务状态已变化,请刷新后重试。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_NOT_CONFIGURED": "货代应用尚未绑定启用的订单抽取 Workflow,请联系管理员配置。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_INVALID_RESPONSE": "订单抽取 Workflow 返回的数据不符合结构化协议。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_FAILED": "订单抽取 Workflow 调用失败,系统将按策略重试。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_CHANGED": "订单抽取 Workflow 的应用或地址已变化,请重新发起任务。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_TIMEOUT": "订单抽取 Workflow 执行超时,系统将按策略重试。",
"SHIPPING_NOTICE_CANDIDATE_SOURCE_CHANGED": "邮件或附件内容已变化,请重新发送并识别订单。",
"SHIPPING_CUSTOMER_IMPORT_SOURCE_INVALID": "来源系统编码无效或过长。",
"SHIPPING_CUSTOMER_IMPORT_TOO_MANY_ROWS": "导入数据行数超过限制。",
"SHIPPING_CUSTOMER_IMPORT_KEY_INVALID": "历史客户键超过长度限制。",
"SHIPPING_CUSTOMER_IMPORT_NAME_TOO_LONG": "标准客户名称超过长度限制。",
"SHIPPING_CUSTOMER_SHADOW_NOT_FOUND": "影子识别样本不存在。",
"SHIPPING_CUSTOMER_SHADOW_LABEL_REQUIRED": "请选择标准客户作为人工真值。",
"SHIPPING_CUSTOMER_CONFIRMATION_REQUIRED": "标准客户尚未确认,请先选择正式客户。",
"SHIPPING_CUSTOMER_REQUIRED_BEFORE_TASK": "客户确认必须在创建任务之前完成,请先选择标准客户。",
"SHIPPING_CUSTOMER_CONFIRMATION_CUSTOMER_REQUIRED": "请选择标准客户。",
"SHIPPING_CUSTOMER_CASE_REQUIRED": "发货任务缺少业务单关联,无法确认客户。",
"SHIPPING_NOTICE_REVISION_CASE_MISSING": "修订目标任务缺少业务单关联,无法创建修订。",
"SHIPPING_CUSTOMER_INACTIVE": "所选客户已停用。",
"SHIPPING_CUSTOMER_NUMBERED_CASE_LOCKED": "已编号业务单不能静默更换客户。",
"SHIPPING_FIELD_CONFLICT_NOT_FOUND": "订单字段冲突不存在。",
"SHIPPING_FIELD_CONFLICT_ALREADY_RESOLVED": "该字段冲突已解决。",
"SHIPPING_FIELD_CONFLICT_VERSION_MISMATCH": "字段冲突版本已变更,请刷新后重试。",
"SHIPPING_ORDER_DATA_VERSION_MISMATCH": "订单数据版本已变更,请刷新后重试。",
"SHIPPING_ORDER_FIELD_EDIT_FORBIDDEN": "该字段在正式任务中不可编辑。",
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "该字段在正式任务中不可编辑。",
"SHIPPING_ORDER_EXCEL_FROZEN": "发货 Excel 已生成,正式任务字段已冻结。",
"SHIPPING.ORDER_EXCEL_FROZEN": "发货 Excel 已生成,正式任务字段已冻结。",
"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": "标准客户名称必填。",
"SHIPPING_CUSTOMER_SHORT_CODE_INVALID": "客户简码必须为 2-6 位英文字母。",
"SHIPPING_CUSTOMER_SHORT_CODE_EXISTS": "客户简码已存在。",
"SHIPPING_CUSTOMER_STATUS_INVALID": "客户状态无效。",
"SHIPPING_CUSTOMER_CONFLICT": "客户数据冲突。",
"SHIPPING_CUSTOMER_IDENTIFIER_TYPE_INVALID": "识别证据类型无效。",
"SHIPPING_CUSTOMER_IDENTIFIER_VALUE_REQUIRED": "识别证据值必填。",
"SHIPPING_CUSTOMER_EMAIL_INVALID": "客户邮箱格式无效。",
"SHIPPING_CUSTOMER_DOMAIN_INVALID": "客户域名格式无效。",
"SHIPPING_CUSTOMER_IDENTIFIER_STATUS_INVALID": "识别证据状态无效。",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_FOUND": "识别证据不存在。",
"SHIPPING_CUSTOMER_IDENTIFIER_EXISTS": "该识别证据已存在。",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_APPROVED": "只有已审核证据才能启用自动匹配。",
"SHIPPING_CUSTOMER_PUBLIC_DOMAIN_AUTO_MATCH_FORBIDDEN": "公共邮箱域名不能用于自动匹配。",
"SHIPPING_CUSTOMER_EXTERNAL_REF_CONFLICT": "历史客户键已绑定其他客户。",
"SHIPPING_CUSTOMER_IMPORT_FILE_REQUIRED": "请选择导入文件。",
"SHIPPING_CUSTOMER_IMPORT_FILE_TYPE_INVALID": "仅支持 .xlsx 文件。",
"SHIPPING_CUSTOMER_IMPORT_FILE_EMPTY": "导入文件为空。",
"SHIPPING_CUSTOMER_IMPORT_FILE_TOO_LARGE": "导入文件超过 5 MB。",
"SHIPPING_CUSTOMER_IMPORT_FILE_INVALID": "导入 Excel 无效。",
"SHIPPING_CUSTOMER_IMPORT_SHEET_MISSING": "导入文件缺少必要 Sheet。",
"SHIPPING_CUSTOMER_IMPORT_COLUMNS_MISSING": "导入文件缺少必要列。",
"SHIPPING_CUSTOMER_IMPORT_KEY_REQUIRED": "历史客户键必填。",
"SHIPPING_CUSTOMER_IMPORT_DUPLICATE_KEY": "同一来源存在重复历史客户键。",
"SHIPPING_CUSTOMER_IMPORT_SHORT_CODE_CONFLICT": "客户简码与现有客户冲突。",
"SHIPPING_CUSTOMER_IMPORT_NAME_MATCH": "客户名称可能与现有客户重复。",
"SHIPPING_CUSTOMER_IMPORT_IDENTIFIER_CUSTOMER_MISSING": "识别证据找不到对应客户。",
"SHIPPING_CUSTOMER_IMPORT_NOT_FOUND": "导入批次不存在。",
"SHIPPING_CUSTOMER_IMPORT_ROW_NOT_FOUND": "导入行不存在。",
"SHIPPING_CUSTOMER_IMPORT_DECISION_INVALID": "导入行处理动作无效。",
"SHIPPING_CUSTOMER_IMPORT_TARGET_REQUIRED": "更新或合并时必须选择目标客户。",
"SHIPPING_CUSTOMER_IMPORT_HAS_ERRORS": "导入批次存在阻断错误。",
"SHIPPING_CUSTOMER_IMPORT_DECISIONS_REQUIRED": "请先处理全部警告行。",
"SHIPPING_CUSTOMER_IMPORT_ALREADY_PUBLISHED": "导入批次已发布。",
"SHIPPING_CUSTOMER_IMPORT_UPLOAD_CONFLICT": "上传导入批次时发生冲突。",
"SHIPPING_CUSTOMER_IMPORT_PUBLISH_CONFLICT": "发布导入批次时发生数据冲突。",
"SHIPPING.ORDER_SCHEMA_PROFILE_IMPACT_CONFIRM_REQUIRED": "订单字段版本会影响现有文档模板,请确认影响后再发布。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_INVALID": "订单文档模板字段迁移配置无效。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_REQUIRED": "请处理全部受影响字段后再创建迁移草稿。",
"SHIPPING_REVIEW_CASE_NOT_FOUND": "订单复核对象不存在或无权访问。",
"SHIPPING_REVIEW_CASE_NOT_EDITABLE": "该订单复核已结束,不能再编辑。",
"SHIPPING_REVIEW_DRAFT_VERSION_REQUIRED": "缺少有效的草稿版本号。",
"SHIPPING_REVIEW_DRAFT_VERSION_MISMATCH": "草稿已被其他窗口更新,请刷新后重试。",
"SHIPPING_REVIEW_FIELD_INVALID": "复核字段不属于该订单的冻结模板。",
"SHIPPING_REVIEW_FIELD_CONFLICT_NOT_FOUND": "建单前字段冲突不存在或已裁决。",
"SHIPPING_REVIEW_FIELD_CONFLICT_OPTION_INVALID": "请选择有效的冲突候选值。",
"SHIPPING_REVIEW_FIELD_CONFLICT_VALUE_REQUIRED": "请填写手工字段值。",
"SHIPPING_REVIEW_FIELD_CONFLICT_FIELD_UNKNOWN": "冲突字段不在当前冻结模板中。",
"SHIPPING_REVIEW_FIELD_CONFLICT_LINE_MISSING": "冲突对应的明细行不存在。",
"SHIPPING_REVIEW_DUPLICATE_CANDIDATE_MISSING": "复核单尚未关联订单候选,无法处理重复。",
"SHIPPING_REVIEW_INVENTORY_CANDIDATES_INVALID": "人工库存源候选无效:请选择已启用的库存源并填写原因。",
"SHIPPING_REVIEW_INVENTORY_ROUTING_ADOPT_INVALID": "无法采用规则建议:当前行没有有效的待决规则结果。",
"SHIPPING_REVIEW_INVENTORY_ROUTING_KEEP_INVALID": "无法保留人工结果:当前行没有待决的规则建议。",
"SHIPPING_REVIEW_BUILD_ELIGIBILITY_BLOCKED": "建单资格未通过,请先处理阻断问题或补齐库存源候选后再确认。",
"SHIPPING_REVIEW_LINE_NOT_FOUND": "订单明细行不存在或已被删除。",
"SHIPPING_REVIEW_DOCUMENT_NOT_FOUND": "复核 PDF 不存在或无权访问。",
"SHIPPING_REVIEW_MANUAL_DRAFT_ALREADY_HAS_CANDIDATE": "该 PDF 已有机器订单,不能再创建手工订单。",
"SHIPPING_REVIEW_DRAFT_NOT_FOUND": "订单草稿不存在。",
"SHIPPING_REVIEW_DISPOSITION_NOT_ALLOWED": "该 PDF 已完成处理,不能再变更处置。",
"SHIPPING_REVIEW_NON_ORDER_REASON_INVALID": "非订单原因无效。",
"SHIPPING_REVIEW_QUALITY_REASON_INVALID": "文件质量异常原因无效。",
"SHIPPING_REVIEW_REPARSE_NOT_ALLOWED": "该 PDF 不允许重新识别。",
"SHIPPING_REVIEW_REPARSE_REASON_INVALID": "重新识别原因无效。",
"SHIPPING_REVIEW_REPARSE_SOURCE_INVALID": "当前 PDF 的重新识别来源不可用。",
"SHIPPING_REVIEW_REPARSE_PENDING": "该 PDF 正在重新识别。",
"SHIPPING_REVIEW_REPLACEMENT_NOT_ALLOWED": "该 PDF 当前不能上传或使用替代文件。",
"SHIPPING_REVIEW_REPLACEMENT_FILE_INVALID": "替代文件必须是 PDF。",
"SHIPPING_REVIEW_REPLACEMENT_NOT_FOUND": "替代文件接入记录不存在或无权访问。",
"SHIPPING_REVIEW_REPLACEMENT_PENDING": "替代 PDF 仍在解析,请稍后重试。",
"SHIPPING_REVIEW_REPLACEMENT_DOCUMENT_INVALID": "替代文件必须且只能包含一份 PDF。",
"SHIPPING_REVIEW_WARNING_ACK_INVALID": "警告确认内容无效。",
"SHIPPING_REVIEW_CONFIRM_NOT_ALLOWED": "该订单复核当前不能确认建单。",
"SHIPPING_REVIEW_DUPLICATE_RESOLUTION_REQUIRED": "订单存在重复风险,请先按重复订单流程处理。",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_REQUIRED": "确认建单缺少幂等键,请重试。",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_CONFLICT": "确认请求冲突,请刷新后重试。",
"SHIPPING_REVIEW_CONFIRM_VALIDATION_FAILED": "草稿尚未通过完整校验,不能确认建单。",
"SHIPPING_REVIEW_CONFIRM_DOCUMENT_INVALID": "复核 PDF 已不可用,不能确认建单。",
"SHIPPING_REVIEW_QUALITY_COMMENT_REQUIRED": "选择「其他」时必须填写质量异常说明。",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_CLOSE_REASON_REQUIRED": "取消本次处理必须填写原因。",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_LOCK_VERSION_INVALID": "工作项版本号无效,请刷新后重试。",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_VERSION_CONFLICT": "工作项已被其他操作更新,请刷新后重试。",
"SHIPPING.PROCESS_EXECUTION_NOT_FOUND": "未找到流程执行实例。",
"SHIPPING.PROCESS_GATE_NOT_FOUND": "未找到门禁实例。",
"SHIPPING.PROCESS_GATE_ACTION_INVALID": "门禁恢复动作无效。",
"SHIPPING.PROCESS_GATE_ACTION_FORBIDDEN": "请求包含禁止提交的执行控制字段。",
"SHIPPING.PROCESS_GATE_ACTION_NOT_ALLOWED": "该动作不是当前门禁允许的主要恢复动作。",
"SHIPPING.PROCESS_GATE_TECHNICAL_ACTION_FORBIDDEN": "技术门禁动作仅系统可执行,业务用户请在订单处理工作台处理业务问题。",
"SHIPPING.REVIEW_LINE_INSUFFICIENT_INVENTORY": "当前库存不足以完整履约该明细行,禁止拆分数量先行。",
"SHIPPING.REVIEW_LINE_RESERVATION_REQUIRED": "缺少有效预约单号,无法完整行先行。",
"SHIPPING.REVIEW_LINE_INVENTORY_UNKNOWN": "尚未取得可用库存事实,无法完整行先行。",
"SHIPPING.REVIEW_LINE_ALREADY_IN_TASK": "该明细行已进入履约任务,不可重开或重复建单。",
"SHIPPING.REVIEW_LINE_REOPEN_NOT_ALLOWED": "仅已关闭且无法履约的行可重开。",
"SHIPPING.REVIEW_LINE_REOPEN_FORBIDDEN": "重开已关闭行需要管理员权限。",
"SHIPPING.REVIEW_LINE_QTY_SPLIT_FORBIDDEN": "禁止拆分单行数量。",
"SHIPPING.PROCESS_GATE_VERSION_MISMATCH": "门禁版本已变更,请刷新后重试。",
"SHIPPING.PROCESS_GATE_BUSY": "门禁正在执行中,请稍后再试。",
"SHIPPING.PROCESS_GATE_ALREADY_PASSED": "该门禁已通过,无需重复恢复。",
"SHIPPING.PROCESS_GATE_ATTEMPT_NOT_FOUND": "未找到门禁执行尝试。",
"SHIPPING.PROCESS_GATE_PERMISSION_DENIED": "无权访问或恢复该门禁。",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_REQUIRED": "恢复请求缺少幂等键。",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_CONFLICT": "幂等键与其他门禁请求冲突,请使用新的幂等键后重试。",
"XFA_DATASET_MISSING": "文档缺少可用的 XFA datasets。",
"XFA_UNSAFE_XML": "XFA XML 包含不安全结构,已拒绝解析。",
"XFA_PACKET_TOO_LARGE": "XFA packet 超过大小限制。",
"XFA_XML_DEPTH_EXCEEDED": "XFA XML 嵌套深度超过限制。",
"XFA_XML_NODE_LIMIT_EXCEEDED": "XFA XML 节点数超过限制。",
"XFA_LINE_ROW_LIMIT_EXCEEDED": "XFA 明细行数超过限制。",
"XFA_PARSE_TIMEOUT": "XFA 解析超时。",
"XFA_UNSUPPORTED_DOCUMENT": "当前文档类型不受 XFA 数据路径模式支持。",
"XFA_PROFILE_NOT_MATCHED": "未命中已发布的 XFA 模板。",
"XFA_PROFILE_AMBIGUOUS": "同时命中多个 XFA 模板。",
"XFA_REQUIRED_FIELD_MISSING": "XFA 必填字段缺失。",
"XFA_MIRROR_COLLECTION_MISMATCH": "XFA 镜像明细集合与权威集合不一致。",
"XFA_ACROFORM_MISMATCH": "XFA datasets 与 AcroForm 对账不一致。",
"XFA_BUSINESS_VALIDATION_FAILED": "XFA 业务恒等式校验失败。",
"XFA_AUTHORITATIVE_COLLECTION_MISSING": "权威明细集合不存在。",
"XFA_PATH_INVALID": "XFA 数据路径语法非法。",
"XFA_PATH_UNKNOWN": "XFA 数据路径不在结构分析记录中。",
"XFA_DEFINITION_INVALID": "XFA 模板定义不合法。",
"XFA_VISUAL_BINDINGS_REQUIRED": "统一视觉绑定缺失,无法发布 XFA 模板。",
"XFA_VISUAL_BINDING_INCOMPLETE": "存在未确认视觉框的正式字段,无法发布。",
"XFA_VISUAL_COVERAGE_INSUFFICIENT": "视觉绑定覆盖率未达 100%。",
"XFA_EVIDENCE_RETENTION_INSUFFICIENT": "evidence_only 保留率未达 100%。",
"XFA_MIRROR_CONSISTENCY_INSUFFICIENT": "镜像集合正式字段一致率未达 100%。",
"XFA_PROFILE_CHECKSUM_MISMATCH": "已发布 XFA 模板 checksum 与运行快照不一致。",
"XFA_VISUAL_NOT_PUBLISHABLE": "已发布 XFA 模板视觉绑定不可用,需复核。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_VALUE_FORBIDDEN": "当前账号没有查看 XFA 完整样本值的权限。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_EDIT_FORBIDDEN": "当前账号没有编辑 XFA 拆分规则的权限。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_TOKEN_INVALID": "拆分规则预览确认令牌无效、过期或与当前规则不匹配。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_REJECTED": "拆分规则确认被拒绝:预览令牌缺失、无效、已使用或样本内容已变化。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_STORE_UNAVAILABLE": "确认服务暂不可用,请稍后重试;持续失败请联系运维。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_UNAVAILABLE": "XFA 结构分析尚未就绪或记录不完整,请重新解析样本后重试。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_MISSING": "当前版面未绑定可用的 XFA 结构分析,请重新解析样本后重试。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_IDENTITY_MISMATCH": "XFA 结构分析与当前文档或版面身份不一致,已阻断操作。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_STALE": "XFA 结构分析相对当前样本内容已过期,请重新解析样本后重试。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_STALE": "XFA 合成预览相对冻结结构身份已过期,请重新生成预览后再确认。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_FAILED": "XFA 合成预览生成失败,请检查样本或稍后重试。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_UNAVAILABLE": "XFA 合成预览不可用,请先生成预览或重新解析样本。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_CONFIRM_REQUIRES_SYNTHETIC_PREVIEW": "确认视觉绑定须先在合成预览上完成:请生成合成预览并携带校验和后再确认。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_PAGE_INCONSISTENT": "XFA 合成预览页数或页框与冻结样本不一致,已阻断操作。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_VALUE_MISMATCH": "XFA 合成回显与冻结 datasets 不一致,已阻断操作。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_LEGACY_MAPPINGS_FORBIDDEN": "XFA 模板须使用统一 bindings;旧 header_mappings / line_mapping.fields 须先完成迁移。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_OCR_UNAVAILABLE": "XFA 合成预览 OCR 不可用,请检查 OCR 引擎部署后重试;普通 PDF 路径不受影响。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SYNTHETIC_PREVIEW_GATE": "XFA 合成预览发布门禁未通过:预览未就绪、缺少校验和或视觉绑定未确认。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "版面解析结果已变化,请刷新样本并重新预览复核。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "版面解析仍在准备中,请稍后刷新状态。",
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "该复核单已确认建单,请改用确认后自动推进重试。",
"SHIPPING.STP_ENQUEUE_FAILED": "自动建单入队失败,请稍后重试或联系管理员。",
"SHIPPING.STP_NOT_ELIGIBLE": "当前订单尚未满足自动建单条件,请先完成校验与门禁后再重试。",
"SHIPPING.STP_CASE_NO_REQUIRED": "缺少复核单编号,无法执行自动建单。",
"SHIPPING.STP_AUTO_CREATE_FAILED": "自动建单执行失败,请重试或改用人工确认。",
"SHIPPING.RECONCILE_OPERATION_ID_REQUIRED": "对账操作缺少 operation_id,请刷新页面后重试。",
"SHIPPING.RECONCILE_OPERATION_ID_TOO_LONG": "对账操作 operation_id 超过 128 字符。",
"SHIPPING.RECONCILE_INVALID_USER_ACTION": "对账用户动作不合法,请选择复用、新建修订或强制新建。",
"SHIPPING.RECONCILE_INVALID_EXPECTED_VERSION": "expected_case_version 必须是整数。",
"SHIPPING.RECONCILE_IDEMPOTENT_CONFLICT": "同一 operation_id 请求参数已变更,请生成新的 operation_id 再提交。",
"SHIPPING.RECONCILE_OWNERSHIP_ANOMALY": "任务归属关系不明确,请交由人工裁决后再推进。",
"SHIPPING.RECONCILE_FORCE_CREATE_UNAUTHORIZED": "强制新建重复订单需要管理员或特殊权限。",
"SHIPPING.RECONCILE_LOCK_VISIBILITY_RACE": "对账锁行与可见行不一致,请重试。",
"SHIPPING.RETRY_STP_BLOCKED_MANUAL": "当前等待人工裁决,请勿使用技术重试;请通过对账恢复或裁决重复订单接口推进。",
"SHIPPING.REVIEW_LLM_DISABLED": "订单复核 AI 建议功能已关闭,本次未生成建议。请直接人工核对即可。",
"SHIPPING.REVIEW_LLM_PROVIDER_UNAVAILABLE": "AI 服务暂时不可用(未配置 Dify 密钥或请求失败)。建议已跳过,请按人工流程复核。",
"SHIPPING.REVIEW_LLM_FIELD_MISMATCH": "AI 返回的字段与当前复核字段不一致。建议已丢弃,请勿采纳本次结果。",
"SHIPPING.REVIEW_LLM_VALIDATION_FAILED": "AI 建议未通过证据一致性校验,不能写入草稿。可人工录入正确值后继续。",
"SHIPPING.REVIEW_LLM_GATE_FIELD_NOT_FOUND": "未在冻结模板中找到该复核字段,无法生成 AI 建议。",
"SHIPPING.REVIEW_LLM_GATE_LINE_NOT_FOUND": "明细行缺失,无法为该行生成 AI 建议。请确认行结构后重试。",
"SHIPPING.REVIEW_LLM_GATE_FIELD_VALUE_MISSING": "该字段缺少原始值,AI 无法基于事实给出建议。请先补齐机器识别或人工输入。",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_UNAVAILABLE": "未检索到该字段的证据来源(Case 95 类断裂),AI 静默已阻断。请先完成识别或重新解析 PDF。",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_INSUFFICIENT": "该行上下文字段不足 2 条,无法给出可靠行级建议。请先补足相邻字段的识别结果。",
"SHIPPING.REVIEW_LLM_GATE_POLICY_BLOCKED": "该字段属于敏感/内部字段,按安全策略不允许发送给 AI。请直接人工确认。",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_BUILD_FAILED": "构建证据视图时发生异常,已放弃本次 AI 建议。请刷新后重试或联系管理员。",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_TRUNCATED": "目标字段核心证据超出 Token 预算被截断,AI 已放弃以避免错误结论。请人工复核该字段。",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_AMBIGUOUS": "识别结果存在多份来源候选且无法唯一确定主证据,AI 已放弃以避免事实混淆。请先裁决多候选后重试。",
"SHIPPING.REVIEW_LLM_GATE_L4_FORBIDDEN": "整页级证据仅管理员在显式授权下可用,普通用户无法调用。",
"SHIPPING.REVIEW_LLM_L4_FORBIDDEN": "完整 PDF 级证据仅管理员在显式授权下可用,本次请求已阻断。"
},
"SHIPPING.REVIEW_INVENTORY_SOURCE_UNRESOLVED": "库存源尚未唯一确定,不能创建正式订单。请先完成库存源复核。",
"SHIPPING_REVIEW_INVENTORY_SOURCE_UNRESOLVED": "库存源尚未唯一确定,不能创建正式订单。请先完成库存源复核。"
"VOUCHER_CHECK_CONFIG_INVALID": "立账凭证检核配置无效。",
"VOUCHER_CHECK_INVOICE_REQUIRED": "请提供发票号。",
"VOUCHER_CHECK_INVOICE_NOT_IN_PERIOD": "指定发票不在当前月 ERP 集合中。",
"VOUCHER_CHECK_INVOICE_PATH_INVALID": "发票号含非法路径字符。",
"VOUCHER_CHECK_SHARE_UNAVAILABLE": "共享盘不可用,请检查挂载与健康标记。",
"VOUCHER_CHECK_ERP_UNAVAILABLE": "ERP(Oracle)不可用,请稍后重试。",
"VOUCHER_CHECK_RUN_NOT_FOUND": "检核批次或发票状态不存在。",
"VOUCHER_CHECK_PERSIST_FAILED": "检核结果落库失败。"
}
}
+2 -1
View File
@@ -21,7 +21,8 @@
},
"msg": {
"fillContent": "请填写反馈内容",
"submitFailed": "提交反馈失败"
"submitFailed": "提交反馈失败",
"submitSuccess": "反馈提交成功"
},
"cancel": "取消",
"submitting": "提交中...",
@@ -4,6 +4,13 @@
"downloading": "下载中...",
"tooLarge": "文件较大,暂不支持在线预览。",
"previewFailed": "预览失败:",
"imageCounter": "第 {current} / {total} 张",
"zoomOut": "缩小",
"zoomIn": "放大",
"resetZoom": "重置缩放",
"prevImage": "上一张",
"nextImage": "下一张",
"unsupportedRawPreview": "当前原始文件暂不支持直接预览,已阻止浏览器自动下载",
"msg": {
"downloadFailed": "下载失败: {reason}",
"unknownError": "未知错误"
+14 -3
View File
@@ -1,4 +1,4 @@
{
{
"kbDifySettings": {
"title": "Dify 设置",
"subtitle": "管理知识库模块使用的 Dify 连接和默认同步参数。",
@@ -391,8 +391,19 @@
"markdownFailedRetry": "当前文档清洗失败,尚未生成 Markdown,请重新清洗后重试",
"markdownProcessing": "当前文档正在清洗中,暂未生成 Markdown,请稍后再试",
"markdownPendingClean": "当前文档待清洗,暂未生成 Markdown,请先发起清洗",
"markdownNotGenerated": "当前文档尚未生成 Markdown"
"markdownNotGenerated": "当前文档尚未生成 Markdown",
"createGroupFailed": "创建知识库分组失败",
"saveDifySettingsFailed": "保存 Dify 设置失败",
"executeJobFailed": "执行任务失败",
"updateDocumentFailed": "更新文档失败",
"apiNotReady": "知识库接口暂未就绪,请稍后再试",
"fileTooLarge": "文件过大,超过当前上传限制,请联系管理员放宽限制后重试",
"uploadPathFileFailed": "上传路径文件失败",
"markPathFileFailedStatusFailed": "记录路径文件失败状态失败",
"submitPathUploadFailed": "提交路径上传任务失败",
"submitCleanFailed": "提交清洗任务失败",
"updateGroupFailed": "更新知识库分组失败",
"deleteGroupFailed": "删除知识库分组失败"
}
}
}
@@ -122,16 +122,20 @@
"cancel": "取消",
"save": "保存",
"saving": "保存中...",
"clear": "清空",
"saveAs": "保存为{status}",
"viewAllHistory": "查看全部历史"
},
"filters": {
"keywordPlaceholder": "搜索设备编号、设备名称",
"recentKeywordPlaceholder": "筛选设备编号、故障、维修人",
"defaultHint": "默认显示近一年内未完成(待维修、维修中)的记录;查全部历史请选择「全部状态」和「全部时间」。",
"timeRangeLabel": "报修时间",
"timeRange3m": "近 3 个月",
"timeRange1y": "近 1 年",
"timeRangeAll": "全部时间"
},
"recentTitle": "最近维修记录",
"table": {
"deviceCode": "设备编号",
"deviceName": "设备名称",
@@ -192,6 +196,7 @@
"required": "设备编号、报修日期和故障描述不能为空",
"updated": "维修记录已更新",
"created": "维修记录已新增",
"saved": "维修记录已保存",
"saveFailed": "保存维修记录失败",
"deleteConfirm": "确认删除 {deviceCode} 的维修记录?",
"deleted": "维修记录已删除",
+42 -470
View File
@@ -100,13 +100,18 @@
"knowledgeBase": "知识库",
"scheduleRuns": "排程记录",
"shippingNotice": "货代发货",
"shippingCustomers": "客户主数据",
"shippingTasks": "发货任务",
"shippingMyTasks": "任务中心",
"feedback": "意见反馈",
"updates": "最近更新",
"backToChat": "返回聊天",
"logout": "退出登录"
"backShort": "返",
"logout": "退出登录",
"accountingVoucherCheck": "立账凭证"
},
"kb": {
"accessDenied": "需要管理员权限才能访问知识库。"
},
"routes": {
"history": "聊天历史"
},
"history": {
"empty": "暂无历史会话",
@@ -115,7 +120,6 @@
"schedule": {
"title": "排程记录",
"refresh": "刷新",
"uploadNotices": "上传发货通知",
"search": "查询",
"reset": "重置",
"loading": "正在加载...",
@@ -161,438 +165,23 @@
},
"shippingNotice": {
"title": "货代发货通知",
"subtitle": "在任务中心查看待办列表;单票处理请进入订单处理工作台。",
"subtitle": "只读工作台,请在 Chat 中继续处理。",
"refresh": "刷新",
"uploadNotices": "上传发货通知",
"search": "查询",
"loading": "正在加载...",
"empty": "暂无发货任务",
"selectCase": "选择左侧任务查看详情",
"loadFailed": "加载失败",
"openChat": "打开 Chat 会话(可选)",
"todo": {
"label": "当前待办",
"currentTodo": "当前待办",
"noActionTitle": "当前无需人工操作",
"noActionMessage": "系统正在处理后续步骤,请查看流程和处理记录。",
"handleInChat": "在 Chat 中{action}",
"workflow": "处理流程",
"orderOverview": "订单概览",
"adminViewOnly": "管理员仅可查看他人任务,不可代操作。",
"adminViewOnlyShort": "只读",
"lastActivity": "最后活动",
"terminateReason": "终止原因",
"workflowItem": "文件处理项",
"downloadExcel": "下载发货 Excel",
"progressUnavailable": "统一进度暂不可用,请刷新页面或稍后再试。",
"manualUploadEndNote": "Excel 已生成,请下载后在货代平台上传,并在本系统登记凭据。",
"waitingManualUploadNote": "Excel 已生成,请下载后在货代平台上传,并在本系统登记凭据。"
},
"processGate": {
"title": "待处理事项",
"currentGate": "当前处理环节",
"blockingMessage": "需要处理的原因",
"failureDetail": "失败详情",
"blockingFields": "阻断字段",
"blockingLineField": "第 {line} 行:{field}",
"reasonCode": "处理原因",
"diagnosticHint": "处理建议",
"responsibleParty": "责任方",
"attemptCount": "执行尝试",
"attemptCountValue": "{current} / {max}(技术自动重试上限)",
"viewAudit": "查看审计",
"hideAudit": "收起审计",
"auditLoading": "正在加载审计…",
"auditEmpty": "暂无门禁审计事件",
"auditLoadFailed": "加载门禁审计失败",
"auditEventFallback": "门禁处理记录",
"auditEvents": {
"process_gate_created": "已创建处理环节",
"process_gate_attempt_started": "开始执行处理",
"process_gate_passed": "处理环节已通过",
"process_gate_blocked": "处理环节已阻断",
"process_gate_recovery_requested": "已请求恢复处理",
"process_gate_idempotent_replay": "已按幂等规则复用结果",
"process_gate_manual_override": "已人工覆盖处理结果",
"process_gate_rule_suggestion_generated": "已生成规则建议",
"process_gate_suggestion_adopted": "已采用规则建议",
"process_gate_suggestion_rejected": "已拒绝规则建议",
"process_gate_downstream_invalidated": "下游结果已失效",
"process_gate_technical_retry": "系统已自动重试",
"process_gate_lease_taken_over": "处理任务已由其他 Worker 接管",
"process_gate_artifact_superseded": "产物已被新版本替代",
"process_gate_permission_denied": "无权限执行该操作"
},
"parties": {
"owner": "订单复核 / 任务负责人",
"worker": "系统 Worker",
"system": "系统自动",
"admin": "管理员",
"external": "外部系统"
},
"noAction": "当前没有可执行的处理操作",
"versionMissing": "当前信息已更新,请刷新后重试",
"navigationMissing": "缺少跳转所需的任务或复核信息,请刷新后重试",
"customerTaskMissing": "缺少任务编号,无法打开客户确认,请刷新后重试",
"genericBlocking": "当前步骤需要人工处理",
"unknownStep": "当前步骤",
"continueAction": "继续处理",
"recoveryTargets": "前置恢复",
"actionSubmitted": "操作已提交",
"submitting": "提交中…",
"readOnlyUseFooter": "请使用底部操作栏继续处理",
"actionCodes": {
"rematerialize_document": "重新准备文档",
"retry_layout_parsing": "重试版面解析",
"reroute_document_profile": "重新匹配文档模板",
"open_profile_review": "打开模板复核",
"retry_order_extraction": "重试订单抽取",
"open_order_review": "打开订单复核",
"edit_order_fields": "编辑订单字段",
"revalidate_reservation": "重新校验 Reservation",
"edit_reservation": "编辑 Reservation",
"retry_customer_resolution": "重试客户识别",
"confirm_customer": "确认客户",
"retry_duplicate_detection": "重试重复检测",
"adjudicate_duplicate": "处理重复订单",
"reconcile_and_progress": "对账并自动恢复",
"resolve_field_conflicts": "解决字段冲突",
"retry_with_latest_rules": "按最新规则重试",
"open_inventory_source_review": "打开库存源复核",
"adopt_rule_suggestion": "采用规则建议",
"keep_manual_inventory_decision": "保留人工决定",
"recheck_freeze_readiness": "重新检查建单资格",
"retry_task_creation": "重试创建任务",
"retry_inventory_preparation": "重试库存准备",
"retry_inventory_from_preparation": "从库存准备重新恢复",
"refresh_inventory_candidate_projection": "刷新库存候选状态",
"poll_inventory_preparation": "刷新库存准备进度",
"upload_inventory_file": "上传库存文件",
"retry_inventory_field_mapping": "重试库存字段映射",
"retry_inventory_from_field_mapping": "从字段映射重新恢复",
"retry_inventory_from_matching": "使用当前库存重新匹配",
"confirm_inventory_field_mapping": "确认库存字段映射",
"retry_inventory_matching": "重试库存匹配",
"open_inventory_match_review": "打开库存匹配复核",
"recheck_inventory_sufficiency": "重新检查库存满足性",
"open_shortage_review": "打开缺货复核",
"recheck_excel_readiness": "重新检查 Excel 生成资格",
"regenerate_excel_artifact": "重新生成 Excel",
"poll_freight_upload_rpa": "刷新货代上传进度",
"retry_freight_upload_rpa": "重试货代上传 RPA",
"regenerate_manual_upload_todo": "重新生成待上传待办",
"mark_manual_uploaded": "人工上传登记"
},
"reasons": {
"freeze_not_ready": "订单尚未满足建单/冻结条件",
"profile_not_auto_freeze_approved": "文档模板未通过自动建单审批",
"profile_manual_confirmation_required": "文档模板需要人工确认",
"customer_unresolved": "客户尚未识别",
"customer_ambiguous": "客户识别存在歧义",
"field_conflict": "字段存在冲突,需人工裁决",
"duplicate_unresolved": "重复订单尚未处理",
"require_manual_review": "库存源规则冲突或要求人工确认",
"no_inventory_source_candidates": "未匹配到库存源规则",
"inventory_source_unavailable": "规则命中的库存源当前不可用",
"inventory_rpa_queued": "RPA 任务已排队等待执行",
"inventory_rpa_timeout": "RPA 执行超时",
"inventory_rpa_login_failed": "库存平台登录失败",
"inventory_rpa_export_failed": "库存报表导出失败",
"inventory_rpa_exhausted": "库存源重试次数已耗尽",
"inventory_file_missing": "未生成库存文件",
"inventory_file_empty": "库存文件为空或没有有效库存记录",
"inventory_preparation_waiting": "库存文件准备中,请稍后刷新",
"inventory_preparation_failed": "库存准备失败,请重试或上传库存文件",
"inventory_candidates_missing": "当前任务缺少正式候选版本,请重新打开库存源复核",
"inventory_candidate_version_stale": "库存候选版本已变化,请刷新后重新处理",
"inventory_match_out_of_candidate_scope": "匹配结果超出当前候选范围,需人工复核",
"inventory_candidate_data_incomplete": "库存候选事实不完整,请重新冻结候选版本",
"upload_rpa_pending": "货代平台上传任务等待执行",
"upload_rpa_failed": "货代平台上传失败,可重试 RPA",
"upload_rpa_login_failed": "货代平台登录失败",
"upload_platform_rejected": "货代平台拒绝本次上传",
"upload_result_unknown": "上传结果暂时无法确认",
"manual_upload_pending": "请下载 Excel 后在货代平台上传并登记结果",
"technical_retry_exhausted": "系统自动重试已耗尽",
"order_extraction_failed": "订单字段抽取失败",
"order_extraction_cancelled": "订单抽取已取消",
"customer_out_of_scope": "客户不在当前业务范围内",
"reservation_missing": "缺少有效 Reservation",
"reservation_invalid": "Reservation 格式或规则校验未通过",
"reservation_duplicate": "Reservation 已在其他订单中使用",
"required_field_missing": "缺少创建订单所需字段",
"field_value_invalid": "部分字段格式不正确",
"field_low_confidence": "部分识别结果置信度较低",
"effective_reservation_missing": "缺少有效的预约单号",
"document_unavailable": "发货通知文档不可用,请重新上传或物化文档",
"layout_parse_failed": "PDF 版面解析失败,请重试解析",
"profile_not_matched": "未能匹配文档模板,请人工确认 Profile",
"profile_ambiguous": "文档模板存在歧义,请人工确认 Profile",
"profile_drift": "文档结构与模板版本不一致",
"extraction_incomplete": "订单字段抽取未完成,请重试或进入复核",
"cross_source_conflict": "跨来源字段冲突,请解决冲突后继续",
"evidence_missing": "关键识别结果缺少有效证据",
"auto_freeze_not_enabled": "自动建单策略尚未启用",
"task_creation_failed": "履约任务创建失败",
"inventory_file_identity_mismatch": "返回文件与所选库存源不一致",
"inventory_mapping_required": "库存字段映射待确认",
"inventory_match_failed": "库存匹配失败",
"inventory_candidates_required": "当前没有库存候选集,无法开始库存匹配;请先重新获取库存",
"inventory_candidates_frozen_required": "库存候选集尚未确认,无法开始库存匹配;请先完成库存源确认",
"inventory_snapshot_prepare_failed": "库存快照准备失败,请查看库存获取结果后重试",
"inventory_snapshots_pending": "库存快照仍在准备中,请稍后刷新进度",
"inventory_match_not_ready": "库存尚未满足匹配条件,请先完成库存准备",
"projection_data_inconsistent": "处理进度数据不一致,请刷新页面后重试;若仍失败请联系管理员",
"inventory_insufficient": "库存不足",
"inventory_shortage_review_required": "存在库存缺口,需要人工处理",
"excel_not_ready": "当前尚不满足 Excel 生成条件",
"artifact_generation_failed": "Excel 生成失败",
"attachment_format_unsupported": "附件格式不支持",
"attachment_size_exceeded": "附件超过系统大小限制",
"attachment_corrupted": "附件文件损坏,无法读取",
"attachment_duplicate": "已存在相同内容的附件",
"attachment_storage_failed": "附件保存失败",
"attachment_security_blocked": "附件包含被禁止的脚本或宏",
"attachment_replaced": "已重新上传并覆盖当前发货通知附件",
"document_text_unavailable": "未能从文档中提取可用文本",
"business_table_not_found": "未找到订单明细表",
"business_table_empty": "找到订单表,但没有有效业务行",
"multiple_business_tables": "发现多个可能的订单明细表",
"document_password_protected": "文档受密码保护",
"generic_gate_blocked": "通用订单识别门禁未通过,需要人工复核",
"gate_invalidated": "上游结果已变化,当前门禁需重新评估",
"task_cancelled_by_user": "任务已由用户取消",
"task_voided_for_correction": "任务已作废以进行更正",
"task_archived": "任务已归档",
"task_rejected_by_user": "订单候选/任务已由用户驳回",
"task_closed_after_upload": "上传完成后任务已关闭",
"void_blocked_external_uploaded": "已存在外部履约,禁止作废,请归档",
"unknown_business_failure": "业务处理失败,请凭请求编号联系管理员",
"inventory_source_conflicted": "多条规则产生冲突,需要人工确认",
"inventory_source_changed": "原已确认库存源配置已变化",
"inventory_source_identity_mismatch": "当前任务与库存源/仓库身份不一致",
"inventory_multi_file_conflict": "多库存文件结果冲突",
"inventory_sku_not_found": "库存中未找到对应 SKU",
"inventory_reservation_not_found": "库存中未找到对应 Reservation",
"inventory_warehouse_mismatch": "仓库与订单要求不一致",
"inventory_required_column_missing": "库存文件缺少必填列",
"inventory_column_ambiguous": "库存列映射存在歧义",
"excel_template_missing": "发货 Excel 模板缺失",
"excel_input_incomplete": "生成 Excel 所需输入不完整",
"artifact_validation_failed": "Excel 产物校验失败",
"late_callback_ignored": "迟到的外部回调已忽略",
"close_blocked_missing_receipt": "缺少上传回执,暂不可关闭",
"xfa_dataset_missing": "文档缺少可用的 XFA datasets",
"xfa_unsafe_xml": "XFA XML 包含不安全结构,已拒绝解析",
"xfa_packet_too_large": "XFA packet 超过大小限制",
"xfa_xml_depth_exceeded": "XFA XML 嵌套深度超过限制",
"xfa_xml_node_limit_exceeded": "XFA XML 节点数超过限制",
"xfa_line_row_limit_exceeded": "XFA 明细行数超过限制",
"xfa_parse_timeout": "XFA 解析超时",
"xfa_unsupported_document": "当前文档类型不受 XFA 数据路径模式支持",
"xfa_profile_not_matched": "未命中已发布的 XFA 模板",
"xfa_profile_ambiguous": "同时命中多个 XFA 模板",
"xfa_required_field_missing": "XFA 必填字段缺失",
"xfa_mirror_collection_mismatch": "XFA 镜像明细集合与权威集合不一致",
"xfa_acroform_mismatch": "XFA datasets 与 AcroForm 对账不一致",
"xfa_business_validation_failed": "XFA 业务恒等式校验失败",
"xfa_authoritative_collection_missing": "权威明细集合不存在",
"xfa_path_invalid": "XFA 数据路径语法非法",
"xfa_path_unknown": "XFA 数据路径不在结构分析记录中",
"xfa_definition_invalid": "XFA 模板定义不合法",
"xfa_structure_identity_changed": "XFA 结构身份已变化,需重新治理模板"
},
"nextAction": "下一步",
"nextActionHint": "下一步:{action}",
"actionSuggestion": "操作建议",
"detailFacts": "关键事实",
"detailKeys": {
"source_code": "库存源",
"source_codes": "库存源",
"unavailable_source_codes": "不可用库存源",
"unavailable_reasons": "不可用原因",
"matched_rule_codes": "命中规则",
"raw_rule_source_codes": "规则原始候选",
"candidate_inventory_source_codes": "有效候选",
"line_key": "明细行",
"line_index": "行号",
"field_code": "字段",
"request_id": "请求编号",
"process_status": "处理状态",
"match_status": "匹配状态",
"task_no": "任务编号",
"has_inventory_lines": "是否已有库存行",
"has_export": "是否已生成 Excel",
"execution_no": "执行编号",
"inventory_file_id": "库存文件"
}
},
"myTodos": {
"title": "任务中心",
"subtitle": "跨会话聚合待处理、异常与待人工上传登记;处理详情在订单处理工作台。",
"empty": "当前桶内暂无待办",
"open": "打开",
"openReview": "进入订单处理",
"openConversation": "打开对话",
"openTask": "打开任务",
"openProcessingHint": "单票校对、改单与履约登记请在订单处理工作台完成。",
"openProcessingUnavailable": "暂无法定位识别任务,请从原对话打开订单处理工作台。",
"progressSummary": "当前:{stage} · {current}/{total}",
"progressBlocker": "当前阻断:{reason}",
"intakeParseBadge": "材料解析",
"buckets": {
"pending": "待处理",
"processing": "处理中",
"done": "已完成"
},
"filters": {
"todoCategory": "待办类型",
"all": "全部",
"review": "待复核",
"exception": "异常",
"manualUpload": "待人工上传",
"intakeParse": "材料解析",
"customer": "客户",
"customerPlaceholder": "客户名称或简码",
"taskNo": "任务编号",
"taskNoPlaceholder": "SN 编号",
"apply": "应用筛选",
"reset": "重置"
}
},
"risk": {
"title": "风险与待处理问题"
},
"pdfEvidence": {
"title": "PDF / 来源证据",
"empty": "暂无来源文件元数据",
"hint": "来源文件预览与人工上传证据登记在待办动作中完成。",
"uploadCount": "已登记 {count} 份人工上传证据"
},
"manualUpload": {
"title": "登记人工上传",
"hint": "请上传货代系统截图或 PDF,并填写回执号。不会触发 RPA 上传。",
"evidenceLabel": "证据文件(截图 / PDF,必填)",
"freightRefLabel": "货代回执号(必填)",
"freightRefOptional": "货代回执号(必填)",
"evidenceRequired": "请先选择证据文件",
"freightRefRequired": "请填写货代回执号",
"cancel": "取消",
"submit": "确认已上传",
"submitting": "提交中…"
},
"timeline": {
"empty": "暂无事件记录",
"loading": "加载事件记录中…",
"loadFailed": "加载事件记录失败",
"detail": "查看详情",
"sourceTask": "任务事件",
"sourceWorkflow": "文件处理记录",
"sourceAudit": "审计记录",
"workflowEvent": "文件处理记录",
"updated": "处理状态已更新",
"actors": {
"user": "业务人员",
"system": "系统",
"admin": "管理员"
}
},
"workflowStatus": {
"created": "已创建",
"queued": "等待处理",
"extracting": "正在识别",
"pending_review": "待复核",
"waiting_manual_upload": "待人工上传",
"failed": "处理失败",
"completed": "已完成",
"closed": "已结束"
},
"workflowReasons": {
"review_case_draft": "待订单复核",
"user_cancelled": "已由用户取消",
"completed": "处理已完成"
},
"stpFacts": {
"title": "STP 履约进度",
"inventorySourceStatus": "库存源状态",
"inventorySourceCode": "当前库存源",
"frozenCandidates": "冻结候选库存源",
"multiSourceBlock": "订单行命中多个不同库存源,无法生成单一发货 Excel,请拆单或人工指定后继续。",
"resolutionCounts": "行级匹配结果",
"lineTableTitle": "逐行匹配证据",
"colLine": "行",
"colReservation": "Reservation",
"colPart": "料号",
"colDisposition": "裁决",
"colSource": "实际库存源",
"colEvidence": "库存文件/证据",
"disposition": {
"ok": "可履约",
"shortage": "短缺",
"not_found": "未命中",
"multi_file_conflict": "多文件冲突",
"unknown": "未知"
}
},
"openChat": "在 Chat 中继续",
"download": "下载 Excel",
"downloadBatch": "下载本批次 ZIP",
"selectAllVisible": "全选当前结果",
"selectedCount": "已选 {count} 个任务",
"downloadSelected": "下载所选 ZIP",
"selectForDownload": "选择任务 {taskNo} 用于批量下载",
"archiveDownloadFailed": "批量下载失败,请刷新任务后重试。",
"actions": {
"title": "当前可执行操作",
"freezeOrder": "冻结订单",
"freezeConfirm": "确认冻结当前已复核订单吗?冻结后将作为库存、Excel 和上传的履约事实。",
"freezeFailed": "订单冻结失败或版本已变化,请刷新后复核。",
"inventorySourcePrompt": "请输入已发布的库存源编码:",
"customerPrompt": "请输入客户简码或名称以搜索:",
"customerNotFound": "未找到可确认的启用客户。",
"customerConfirm": "确认将当前任务绑定到客户 {name}({code})吗?",
"failed": "操作失败,请刷新任务后重试。"
},
"candidateReview": {
"title": "待建单候选复核",
"hint": "在此完成候选选择、人工修订和重复处理;仅已选择且通过后端门禁的候选可以建批。",
"createBatch": "按已选候选建批"
},
"lifecycle": {
"active": "进行中/活动",
"deleted": "回收站",
"voided": "已作废",
"archived": "已归档"
},
"disposition": {
"actions": {
"delete": "删除",
"archive": "归档",
"restore": "恢复",
"purge": "永久删除"
},
"reasonPrompt": "请输入删除/作废原因:",
"purgeReasonPrompt": "请输入永久删除原因(仅管理员且仅纯误建任务可执行):",
"confirm": "确认{action}选中的 {count} 个任务吗?",
"success": "已处理 {count} 个任务。",
"partial": "已处理 {success} 个任务,{blocked} 个任务被服务端阻断。",
"failed": "任务处置失败,请刷新后重试。"
},
"pagination": {
"summary": "显示 {start}-{end},共 {total} 个任务",
"previous": "上一页",
"next": "下一页",
"page": "第 {page}/{total} 页"
},
"lines": "发货明细",
"qty": "数量",
"columns": {
"sku": "SKU"
},
"events": "事件记录",
"operator": "操作人 ID:{id}",
"filters": {
"status": "状态",
"lifecycle": "任务状态"
"status": "状态"
},
"fields": {
"status": "流程状态",
@@ -600,12 +189,6 @@
"shipTo": "收货地址",
"freightRef": "货代单号"
},
"inventorySourceDialog": {
"title": "确认库存查询来源",
"hint": "请从候选列表选择已发布的库存源,或手动输入库存源编码。",
"confirm": "确认库存源",
"manualEntry": "手动输入库存源编码"
},
"inventorySource": {
"title": "库存查询来源",
"sourceCode": "库存源编码",
@@ -640,28 +223,19 @@
"sourceManual": "手动上传",
"exportedAt": "导出时间",
"fileNo": "快照编号",
"expired": "快照已过期,系统将重新触发 RPA 拉取库存"
},
"fulfillmentTimeline": {
"inventoryTitle": "库存核验历史",
"verificationLine": "预约 {reservationId}:{availableQty}/{requiredQty}({status})",
"artifactTitle": "Excel Artifact 时间线",
"reservationIds": "包含预约单:{reservationIds}",
"uploadTitle": "上传 Attempt 时间线",
"uploadAttempt": "Artifact #{artifactId} / Attempt {attemptNo}",
"freightRef": "货代参考号:{freightRefNo}",
"evidenceAsset": "回执资产:{assetId}"
"expired": "快照已过期,系统将重新触发 RPA 或等待人工上传"
},
"status": {
"all": "全部",
"created": "已创建",
"parsed": "已解析",
"pendingReview": "待复核",
"alignReview": "待确认字段",
"shortageReview": "库存缺口",
"waitingInventory": "等待库存",
"inventoryReady": "库存就绪",
"matched": "已匹配",
"waitingUpload": "Excel 已就绪",
"waitingUpload": "等待上传",
"uploaded": "已上传",
"uploadFailed": "上传失败",
"rejected": "已驳回",
@@ -682,40 +256,11 @@
"inventory_uploaded": "库存文件已上传",
"inventory_parsed": "库存解析完成",
"matched_fulfillable": "库存匹配完成",
"matched_stp_candidates": "跨候选库存匹配完成",
"matched_multi_source_excel_block": "多库存源冲突,无法制单",
"matched_multi_file_conflict": "库存多文件冲突",
"matched_shortage": "库存短缺",
"candidates_frozen": "建单已冻结多候选库存源",
"inventory_source_resolved_at_build": "建单已确定库存源",
"inventory_candidate_files_missing": "候选库存文件缺失",
"inventory_candidate_files_partial": "部分候选库存文件就绪",
"stp_auto_create": "STP 自动建单",
"stp_auto_create_failed": "STP 自动建单失败",
"match_needs_review": "库存匹配待复核",
"excel_generated": "发货文件已生成",
"uploaded": "已上传货代",
"upload_failed": "上传货代失败",
"backend_orchestrator_task_finished": "后台任务已完成"
},
"myRuns": {
"title": "我的识别",
"subtitle": "查看处理中、失败、已取消的订单识别任务,并可返回会话续办。",
"status": "状态",
"allStatuses": "全部状态",
"runNo": "识别编号",
"stage": "当前阶段",
"summary": "附件进度",
"summaryCounts": "共 {total}:完成 {done} / 复核 {review} / 失败 {failed} / 取消 {cancelled}",
"elapsed": "已用时",
"actions": "操作",
"openChat": "打开会话",
"loading": "正在加载识别任务...",
"empty": "暂无识别任务",
"loadFailed": "加载识别任务失败",
"total": "共 {count} 条",
"previous": "上一页",
"next": "下一页"
}
},
"profile": {
@@ -730,5 +275,32 @@
"casdoorNotMatchedContactAdmin": "Casdoor 登录成功,但未匹配到本地账号,请联系管理员。",
"casdoorNotMatchedNeedLocalUser": "Casdoor 登录成功,但未匹配到本地账号。请让管理员在本地用户表创建同名 username 或相同 email 的账号。",
"localAccountDisabled": "该本地账号已被禁用,请联系管理员启用后再登录。"
},
"voucherCheck": {
"title": "立账凭证检核记录",
"subtitle": "按当前自然月查看发票材料齐全/缺资料状态;只判文件是否存在,不核对金额与供应商。",
"period": "检核月份",
"status": "状态",
"statusAll": "全部",
"statusComplete": "齐全",
"statusMissing": "缺资料",
"statusSkipped": "跳过",
"statusTechError": "技术异常",
"invoiceNo": "发票号",
"invoiceDate": "发票日期",
"invoicePlaceholder": "输入发票号筛选",
"folder": "共享盘路径",
"missing": "缺失材料",
"checkedAt": "检核时间",
"result": "结论",
"search": "查询",
"refresh": "刷新",
"loading": "加载中…",
"empty": "暂无检核记录",
"loadFailed": "加载检核记录失败",
"totalCount": "共 {total} 条",
"prevPage": "上一页",
"nextPage": "下一页",
"runItemsTitle": "批次 {runId} 明细"
}
}
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -18,6 +18,8 @@
"passwordRequired": "密碼不能為空",
"passwordRequiredHint": "請輸入密碼",
"loginRequired": "請先登錄後再進入對話",
"sessionExpired": "登入已失效",
"sessionExpiredHint": "請重新登入後繼續使用。",
"requestFailed": "登錄請求失敗",
"forgotPassword": "忘記密碼?",
"rememberMe": "記住我",
@@ -38,7 +40,7 @@
"authFailed": "登入失敗,請稍後重試",
"passwordPolicy": "新密碼不符合安全要求",
"setPasswordFailed": "修改密碼失敗,請稍後重試或聯繫管理員",
"incorrectCurrentPassword": "當前密碼不正確",
"incorrectCurrentPassword": "原:當前密碼不正確,新:您輸入的原密碼有誤,請重新輸入",
"userNotInIdp": "您的賬號尚未在統一認證系統中開通,請聯繫管理員同步賬號後再修改密碼。"
},
"casdoorDialogTitles": {
File diff suppressed because it is too large. Load diff
+13 -2
View File
@@ -8,6 +8,18 @@
"refresh": "刷新",
"yes": "是",
"no": "否",
"app": {
"title": "和信AI智慧工作台",
"shortTitle": "AI工作台",
"remoteLogout": "您已在其他分頁退出登入"
},
"sso": {
"authorizing": "正在進入第三方系統",
"authorizingHint": "正在安全地完成統一登入,請稍候。",
"failed": "統一登入失敗",
"invalidRequest": "第三方登入請求無效或已過期,請從目標系統重新發起。",
"backToHxops": "返回 HXOPS"
},
"deleteDialog": {
"defaultTitle": "您確定要刪除嗎?",
"defaultMessage": "點擊「確定」按鈕後,此對話框將在 1 秒後關閉",
@@ -31,6 +43,5 @@
"unsorted": "點擊排序",
"asc": "升序,點擊切換為降序",
"desc": "降序,點擊切換為升序"
},
"required": "請填寫必填欄位"
}
}
+19 -457
View File
@@ -1,213 +1,20 @@
{
"generic": "請求失敗。",
"codes": {
"SHIPPING.FULFILLMENT_POLICY_INVALID": "貨代履約策略或欄位能力綁定無效。",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "找不到貨代履約策略。",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "貨代履約策略已被其他管理員修改,請重新整理後再試。",
"SHIPPING.FULFILLMENT_POLICY_NOT_PUBLISHED": "尚未發佈可執行的貨代履約策略。",
"SHIPPING.RESERVATION_PO_REQUIRED": "此預定單號已存在,必須補齊採購訂單後才能繼續。",
"SHIPPING.RESERVATION_PO_CONFLICT": "此預定單號已被其他採購訂單使用,已阻擋重複訂單。",
"SHIPPING.RESERVATION_DUPLICATED_IN_ORDER": "同一訂單中存在重複的預定單號,無法凍結。",
"SHIPPING.RESERVATION_REVISION_REVIEW_REQUIRED": "此預定單號內容已變更,必須顯示差異並經人工確認。",
"SHIPPING.RESERVATION_REVISION_LOCKED": "此預定單號已產生有效發貨檔案或已上傳,禁止直接修訂。",
"SHIPPING_NOTICE.BATCH_FILE_LIMIT_EXCEEDED": "本次上傳檔案數超過系統限制,請拆分後重試。",
"SHIPPING_NOTICE.ORDER_TASK_REQUIRED_FOR_CONFIRM": "目前訂單候選尚未形成訂單任務,無法確認建單。請重新整理後重試或重新識別。",
"AGENT.EXPOSURE_ROLE_IMMUTABLE": "應用與內部執行器不可互相轉換。",
"AGENT.ADMIN_SCOPE_INVALID": "應用管理頁籤參數無效。",
"AGENT.INTERNAL_EXECUTOR_USER_ACCESS_FORBIDDEN": "內部執行器不能顯示、授權或透過一般使用者介面存取。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_NOT_RETRYABLE": "只有識別失敗的訂單任務可以重新識別。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_REASON_REQUIRED": "重新識別必須填寫原因,請補充後重試。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_NOT_ALLOWED": "目前狀態不允許重新識別。請先進入人工覆核,或等待識別失敗後再重試。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_CASE_REQUIRED": "目前檔案尚無覆核單,不能建立新識別版本。請先完成識別進入人工覆核,或僅在識別失敗後重試原任務。",
"SHIPPING_NOTICE.WORKFLOW_ITEM_REPARSE_SOURCE_INVALID": "關聯的識別任務不可用,無法重新識別。請重新整理後重試或聯絡管理員。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RUN_SNAPSHOT_OBSOLETE": "此識別任務使用舊版輸入契約,無法重試。請重新傳送郵件及附件以開始新的識別。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_CONVERSATION_ACTIVE": "目前對話仍有進行中的訂單材料處理,可繼續上傳其他檔案;若需等待,請查看右側進度。",
"SHIPPING_NOTICE.ORDER_EXTRACTION_RETRY_WITHOUT_REUPLOAD": "解析失敗可從失敗節點重試,無需重新上傳原始檔案。",
"SHIPPING_NOTICE.CANCEL_FORBIDDEN": "無權取消該訂單識別任務。",
"SHIPPING_NOTICE.CANCEL_REASON_REQUIRED": "取消他人任務時必須填寫原因。",
"SHIPPING_NOTICE.CANCEL_NOT_ACTIVE": "該任務已結束或不可取消。",
"SHIPPING_NOTICE.CANCEL_CONFLICT": "取消請求與目前進度衝突,請重新整理後重試。",
"SHIPPING_NOTICE.CANCEL_FEATURE_DISABLED": "訂單識別取消功能已關閉,請聯繫管理員。",
"SHIPPING_NOTICE.AUDIT_EXPORT_FEATURE_DISABLED": "稽核匯出功能已關閉,請聯繫管理員。",
"SHIPPING_NOTICE.AUDIT_PERSIST_FAILED": "稽核記錄寫入失敗,操作未完成,請稍後重試。",
"SHIPPING_NOTICE.AUDIT_METADATA_FORBIDDEN": "稽核寫入包含禁止的敏感欄位。",
"SHIPPING_NOTICE.AUDIT_SNAPSHOT_FORBIDDEN": "稽核快照包含禁止的敏感欄位。",
"SHIPPING_PROCESSING_PROJECTION_INCONSISTENT": "訂單進度狀態不一致,已阻止履約動作。請重新整理後重試。",
"SHIPPING_PROCESSING_TASK_OWNERSHIP_MISMATCH": "正式任務與目前處理內容不符,已阻止操作。請重新整理後重試。",
"SHIPPING_ORDER_SCHEMA_NOT_FOUND": "尚未初始化訂單範本。",
"SHIPPING_ORDER_SCHEMA_EXISTS": "訂單範本已存在。",
"SHIPPING_ORDER_SCHEMA_DRAFT_EXISTS": "已有訂單範本草稿,請先完成或發布目前草稿。",
"SHIPPING_ORDER_SCHEMA_VERSION_INVALID": "訂單欄位版本設定無效。",
"SHIPPING_ORDER_SCHEMA_LOCK_VERSION_REQUIRED": "訂單欄位草稿缺少版本鎖,請重新整理頁面後再試。",
"SHIPPING_ORDER_SCHEMA_VERSION_CONFLICT": "訂單欄位草稿已被其他管理員修改,頁面將重新整理為最新版本。",
"SHIPPING_ORDER_SCHEMA_VERSION_IMMUTABLE": "已發布的訂單欄位版本不可修改。",
"SHIPPING_ORDER_SCHEMA_VERSION_NOT_FOUND": "找不到訂單欄位版本。",
"SHIPPING_ORDER_SCHEMA_VERSION_DELETE_BLOCKED": "只有草稿版本可以刪除。",
"SHIPPING_ORDER_SCHEMA_PUBLISH_INVALID": "目前訂單欄位版本不能發布。",
"SHIPPING_ORDER_SCHEMA_PUBLISH_DEPENDENCY_BLOCKED": "目前版本移除了仍被庫存路由、解析設定或 Excel 範本引用的訂單欄位,請先遷移下游設定。",
"SHIPPING_ORDER_SCHEMA_NOT_PUBLISHED": "尚未發布可用的訂單欄位版本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_NOT_FOUND": "找不到訂單文件解析範本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_INVALID": "訂單文件解析範本設定無效。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SCHEMA_INVALID": "訂單文件解析範本必須綁定已發布或已退役的訂單欄位版本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_FIELD_INVALID": "訂單文件解析範本引用了不可用的訂單明細欄位。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_HEADER_CONTAMINATED": "樣本表頭混入訂單明細,必須先重建表格結構,不能建立範本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_UNAVAILABLE": "目前表格缺少可用的原生或 OCR 字元座標,無法重建邏輯明細。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RECONSTRUCTION_INVALID": "座標重建設定或結果無效,請檢查欄位邊界後重試。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_FILE_TYPE_INVALID": "範本樣本僅支援 PDF 或 EML 檔案。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_NOT_FOUND": "找不到該樣本文件,請重新整理候選清單後再選擇。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_SAMPLE_DELETE_BLOCKED": "此範本樣本仍在解析、被盲測引用,或其檔案被其他業務使用,不能刪除。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_IMMUTABLE": "已發布的訂單文件解析範本不可修改。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_LOCK_VERSION_REQUIRED": "訂單文件解析範本缺少版本鎖,請重新整理後再試。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_VERSION_CONFLICT": "訂單文件解析範本已被其他管理員修改,請重新整理後再試。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_REQUIRED": "需要有效的編輯租約,請先重新整理或接管草稿。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LEASE_CONFLICT": "此草稿正在由另一個瀏覽器工作階段編輯。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_LOCK_VERSION_CONFLICT": "伺服器草稿已變更,請重新整理並解決衝突後再儲存。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_REVISION_NOT_FOUND": "找不到要求的草稿修訂版本。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_VALIDATION_STALE": "此驗證執行已不符合目前草稿。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_INVALID": "發布檢查已失效,請重新執行檢查。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_PUBLISH_CHECK_CONSUMED": "此發布檢查已被使用。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_REQUIRED": "發布前必須產生有效的版面簽名。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_SIGNATURE_STALE": "版面簽名已過期,請重新產生後再發布。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_OVERLAP_DETECTED": "偵測到跨範本重疊或唯一性未通過,不能發布。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DRAFT_EXISTS": "此訂單文件解析範本已有草稿版本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_INVALID": "目前訂單文件解析範本不能發布。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_TRAINING": "發布前必須至少綁定一個訓練樣本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_BLIND_TEST": "發布前必須完成目前定義的獨立盲測並獲得批准。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_MULTILINE": "發布前盲測必須包含至少一份多明細真值樣本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_PUBLISH_GATE_CROSS_PAGE": "此跨頁範本發布前盲測必須包含續頁樣本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_NOT_INDEPENDENT": "盲測樣本不可重用訓練或標註樣本。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_TEST_SAMPLE_CONFLICT": "該文件已在目前盲測集中。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_RETIRE_INVALID": "目前訂單文件解析範本不能退役。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_DELETE_BLOCKED": "只有草稿訂單文件解析範本可以刪除。",
"SHIPPING_ORDER_DOCUMENT_PROFILE_CLONE_INVALID": "只能從已發布或已退役版本建立新草稿。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_INVALID": "自動凍結資格範圍設定無效,請檢查客戶範圍、業務場景與確認要求。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_QUALIFICATION_NOT_FOUND": "找不到目前範本版本的自動凍結資格記錄。",
"SHIPPING_ORDER_FIELD_INVALID": "訂單欄位編碼、範圍或類型無效。",
"SHIPPING_ORDER_FIELD_NOT_FOUND": "找不到訂單欄位。",
"SHIPPING_ORDER_FIELD_IMMUTABLE": "訂單欄位發布後,編碼、範圍和類型不可修改。",
"SHIPPING_ORDER_FIELD_CONFLICT": "訂單欄位編碼已存在。",
"SHIPPING_ORDER_FIELD_RETIRE_BLOCKED": "該訂單欄位仍被草稿版本或執行設定引用,不能退役。",
"SHIPPING_IDENTITY_DEFINITION_NOT_FOUND": "找不到客戶識別定義。",
"SHIPPING_IDENTITY_DEFINITION_INVALID": "客戶識別定義或其來源欄位無效。",
"SHIPPING_IDENTITY_DEFINITION_CONFLICT": "客戶識別定義與現有設定衝突。",
"SHIPPING_IDENTITY_BUILTIN_IMMUTABLE": "系統內建客戶識別定義不可修改或退役。",
"SHIPPING_IDENTITY_ORDER_FIELD_INVALID": "識別來源必須是目前已發布的訂單資訊文字欄位。",
"SHIPPING_IDENTITY_AUTOMATION_FORBIDDEN": "此識別定義或證據不允許自動確認。",
"SHIPPING_IDENTITY_RULE_SET_NOT_FOUND": "找不到客戶識別規則集。",
"SHIPPING_IDENTITY_RULE_SET_INVALID": "客戶識別規則集設定無效。",
"SHIPPING_IDENTITY_RULE_SET_IMMUTABLE": "已發布客戶識別規則集不可修改。",
"SHIPPING_IDENTITY_RULE_SET_CONFLICT": "客戶識別規則集已被其他管理員修改或無法發布。",
"SHIPPING_IDENTITY_TARGET_INVALID": "客戶識別證據目標無效或未啟用。",
"SHIPPING_IDENTITY_EVIDENCE_VALUE_REQUIRED": "客戶識別證據值不可為空。",
"SHIPPING_IDENTITY_EVIDENCE_INVALID": "客戶識別證據狀態無效。",
"SHIPPING_IDENTITY_EVIDENCE_CONFLICT": "此客戶識別證據已存在。",
"SHIPPING_IDENTITY_EVIDENCE_NOT_FOUND": "找不到客戶識別證據。",
"SHIPPING_CUSTOMER_LEGACY_IDENTIFIER_WRITE_DISABLED": "固定類型識別證據已停止維護,請選擇已發布識別定義建立或更新可設定證據。",
"AUTH_UNAUTHORIZED": "請先登入。",
"SHIPPING_CUSTOMER_DELETE_REASON_REQUIRED": "永久刪除客戶必須填寫原因。",
"SHIPPING_CUSTOMER_DELETE_CONFIRMATION_INVALID": "刪除確認的客戶簡碼不正確。",
"SHIPPING_CUSTOMER_DELETE_BLOCKED": "客戶存在業務或稽核引用,不能永久刪除。",
"SHIPPING_CUSTOMER_MERGED_LOCKED": "客戶已合併,不能再用於新業務或編輯。",
"SHIPPING_CUSTOMER_MERGE_TARGET_REQUIRED": "請選擇合併目標客戶。",
"SHIPPING_CUSTOMER_MERGE_TARGET_INVALID": "合併目標客戶必須處於啟用狀態。",
"SHIPPING_CUSTOMER_MERGE_SAME_CUSTOMER": "來源客戶和目標客戶不能相同。",
"SHIPPING_CUSTOMER_MERGE_SOURCE_ALREADY_MERGED": "來源客戶已完成合併。",
"SHIPPING_CUSTOMER_MERGE_REASON_REQUIRED": "合併客戶必須填寫原因。",
"SHIPPING_CUSTOMER_MERGE_CONFIRMATION_INVALID": "合併確認的來源客戶簡碼不正確。",
"AUTH_INCORRECT_PASSWORD": "密碼錯誤",
"AUTH_INCORRECT_CURRENT_PASSWORD": "當前密碼不正確",
"AUTH_INCORRECT_CURRENT_PASSWORD": "您輸入的原密碼有誤,請重新輸入",
"AUTH_USER_NOT_FOUND": "用戶不存在",
"AUTH_ACCOUNT_DISABLED": "帳號已禁用",
"AUTH_CASDOOR_IDENTITY_INVALID": "Casdoor 未返回穩定用戶身份,請聯絡管理員檢查 OIDC 設定。",
"AUTH_SSO_CONFIG_ERROR": "統一登入應用設定無效,請聯絡管理員。",
"AUTH_SSO_APP_NOT_FOUND": "目標系統未設定或已停用。",
"AUTH_SSO_IDENTITY_UNSUPPORTED": "目前登入不是 Casdoor 身份,請重新登入後再試。",
"AUTH_SSO_ASSERTION_ISSUE_FAILED": "平級服務登入聲明簽發失敗,請重試。",
"AUTH_FORBIDDEN": "你沒有權限執行此操作。",
"SHIPPING_TASK_SELECTION_INVALID": "請選擇 1 到 100 個發貨任務。",
"SHIPPING_TASK_DELETE_REASON_REQUIRED": "刪除或作廢任務必須填寫原因。",
"SHIPPING_TASK_EXTERNAL_VOID_BLOCKED": "任務正在外部上傳或已上傳,只能歸檔,不能作廢或刪除。",
"SHIPPING_TASK_ALREADY_DELETED": "任務已在回收站中。",
"SHIPPING_TASK_RESTORE_BLOCKED": "該任務已作廢或歸檔,無法從回收站恢復。",
"SHIPPING_TASK_LIFECYCLE_CONFLICT": "任務目前生命週期不允許此操作。",
"SHIPPING_TASK_PURGE_BLOCKED": "任務存在業務或審計引用,不能永久刪除。",
"SHIPPING_TASK_PURGE_REASON_REQUIRED": "永久刪除任務必須填寫原因。",
"RESOURCE_NOT_FOUND": "請求的資源不存在。",
"RESOURCE_CONFLICT": "請求衝突,請刷新後重試。",
"VALIDATION_INVALID_PARAM": "請求參數不合法。",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_NOT_FOUND": "外部系統倉庫對應不存在。",
"SHIPPING_INVENTORY_EXTERNAL_MAPPING_CONFLICT": "此庫存來源和貨代倉庫已存在啟用的外部系統倉庫對應。",
"SHIPPING_INVENTORY_SOURCE_CONFIG_INVALID": "庫存來源的報表路徑、查詢參數或別名設定不合法。",
"SHIPPING_RPA_PROFILE_CONFIG_INVALID": "貨代登入連線設定不合法,目前僅支援帳號密碼登入。",
"SHIPPING_EXCEL_TEMPLATE_ASSET_INVALID": "Excel 範本檔案無效或無法讀取。",
"SHIPPING_EXCEL_TEMPLATE_DEFINITION_INVALID": "Excel 範本對應定義無效。",
"SHIPPING_EXCEL_TEMPLATE_DELETE_BLOCKED": "只有草稿 Excel 範本可以刪除。",
"SHIPPING_EXCEL_TEMPLATE_DRAFT_EXISTS": "該範本已有草稿版本,請先處理目前草稿。",
"SHIPPING_EXCEL_TEMPLATE_FIELD_INVALID": "Excel 範本欄位對應無效。",
"SHIPPING_EXCEL_TEMPLATE_IMMUTABLE": "已發佈或已退役的 Excel 範本不可修改。",
"SHIPPING_EXCEL_TEMPLATE_INVALID": "Excel 範本設定無效。",
"SHIPPING_EXCEL_TEMPLATE_NOT_FOUND": "找不到 Excel 範本。",
"SHIPPING_EXCEL_TEMPLATE_PUBLISH_INVALID": "目前 Excel 範本不能發佈。",
"SHIPPING_EXCEL_TEMPLATE_REQUIRED": "啟用庫存來源前必須綁定已發佈的 Excel 範本。",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_BLOCKED": "Excel 範本仍被庫存來源引用,不能退役。",
"SHIPPING_EXCEL_TEMPLATE_RETIRE_INVALID": "目前 Excel 範本不能退役。",
"SHIPPING_EXCEL_TEMPLATE_TARGET_DUPLICATE": "Excel 範本存在重複的目標儲存格對應。",
"SHIPPING_EXPORT_ARCHIVE_EMPTY": "所選任務沒有可下載的匯出檔案。",
"SHIPPING_EXPORT_ARCHIVE_NOT_FOUND": "找不到可下載的匯出檔案。",
"SHIPPING_EXPORT_ARCHIVE_SELECTION_INVALID": "批次下載的任務選擇無效。",
"SHIPPING_EXPORT_ARCHIVE_TOO_LARGE": "單次批次下載最多支援 100 個任務。",
"SHIPPING_INVENTORY_PARSING_PROFILE_DELETE_BLOCKED": "只有草稿庫存解析設定可以刪除。",
"SHIPPING_INVENTORY_PARSING_PROFILE_IMMUTABLE": "已發佈或已退役的庫存解析設定不可修改。",
"SHIPPING_INVENTORY_PARSING_PROFILE_INVALID": "庫存解析設定無效。",
"SHIPPING_INVENTORY_PARSING_PROFILE_NOT_FOUND": "找不到庫存解析設定。",
"SHIPPING_INVENTORY_PARSING_PROFILE_PUBLISH_INVALID": "目前庫存解析設定不能發佈。",
"SHIPPING_INVENTORY_PARSING_PROFILE_REQUIRED": "啟用庫存來源前必須綁定已發佈的庫存解析設定。",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_BLOCKED": "庫存解析設定仍被庫存來源引用,不能退役。",
"SHIPPING_INVENTORY_PARSING_PROFILE_RETIRE_INVALID": "目前庫存解析設定不能退役。",
"SHIPPING_INVENTORY_FIELD_CONFLICT": "庫存欄位名稱已存在。",
"SHIPPING_INVENTORY_FIELD_DELETE_BLOCKED": "該庫存欄位是核心欄位或仍被設定引用,不能刪除或停用。",
"SHIPPING_INVENTORY_FIELD_IMMUTABLE": "已停用庫存欄位不可編輯,核心欄位的資料格式和欄位用途不可修改。",
"SHIPPING_INVENTORY_FIELD_INVALID": "庫存欄位資訊不完整或格式不正確。",
"SHIPPING_INVENTORY_FIELD_NOT_FOUND": "找不到庫存欄位。",
"SHIPPING_INVENTORY_FIELD_RETIRE_BLOCKED": "該庫存欄位仍被設定引用,不能停用。",
"SHIPPING_INVENTORY_RULE_CONDITION_INVALID": "庫存路由規則條件無效。",
"SHIPPING_INVENTORY_RULE_CONDITIONS_REQUIRED": "庫存路由規則至少需要一個條件。",
"SHIPPING_INVENTORY_RULE_CONFLICT": "庫存路由規則名稱或優先順序衝突。",
"SHIPPING_INVENTORY_RULE_DELETE_BLOCKED": "只有草稿庫存路由規則可以刪除。",
"SHIPPING_INVENTORY_RULE_IMMUTABLE": "已發佈的庫存路由規則不可修改。",
"SHIPPING_INVENTORY_RULE_INVALID": "庫存路由規則設定無效。",
"SHIPPING_INVENTORY_RULE_NOT_FOUND": "找不到庫存路由規則。",
"SHIPPING_INVENTORY_RULE_PUBLISH_INVALID": "目前庫存路由規則不能發佈。",
"SHIPPING_INVENTORY_RULE_SOURCE_INVALID": "庫存路由規則引用了不存在或已停用的庫存來源。",
"SHIPPING_INVENTORY_RULE_RETIRE_INVALID": "目前庫存路由規則不能退役。",
"SHIPPING_INVENTORY_SOURCE_DELETE_BLOCKED": "庫存來源仍被業務資料引用,不能刪除。",
"SHIPPING_INVENTORY_SOURCE_NOT_FOUND": "找不到庫存來源。",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_REQUIRED": "請先完成測試匯出與啟用檢查,再啟用庫存站點。",
"SHIPPING_INVENTORY_SOURCE_ACTIVATION_BLOCKED": "庫存站點尚未完成正式執行檢查,暫時不能啟用。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_REQUIRED": "請選擇庫存樣本檔案。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_FILE_TOO_LARGE": "庫存樣本檔案超過 20 MB 限制。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_INVALID": "無法識別庫存樣本檔案,請檢查檔案格式與表頭。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_NOT_FOUND": "庫存檔案結構識別記錄不存在。",
"SHIPPING_INVENTORY_STRUCTURE_ANALYSIS_SELECTION_INVALID": "所選工作表、表頭或來源欄位不在庫存檔案識別結果中。",
"SHIPPING_TEMP_INVENTORY_CONTEXT_INVALID": "目前對話上下文無法處理臨時庫存檔案。",
"SHIPPING_TEMP_INVENTORY_ASSET_REQUIRED": "請先上傳庫存檔案。",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_FOUND": "找不到目前對話可用的庫存檔案。",
"SHIPPING_TEMP_INVENTORY_ASSET_NOT_READY": "庫存檔案仍在上傳中,請稍後再試。",
"SHIPPING_TEMP_INVENTORY_FILE_TYPE_INVALID": "臨時庫存檔案僅支援 .xls、.xlsx 或 .csv。",
"SHIPPING_TEMP_INVENTORY_FILE_TOO_LARGE": "臨時庫存檔案超過 20 MB 限制。",
"SHIPPING_TEMP_INVENTORY_ANALYSIS_INVALID": "無法識別庫存檔案結構,請檢查檔案格式與表頭。",
"SHIPPING_TEMP_INVENTORY_SESSION_NOT_FOUND": "臨時庫存會話不存在、已過期或無權存取。",
"SHIPPING_TEMP_INVENTORY_MAPPING_STATE_INVALID": "目前臨時庫存會話不能再提交欄位映射建議。",
"SHIPPING_TEMP_INVENTORY_MAPPING_INVALID": "庫存欄位映射建議無效、不完整,或包含不在檔案中的欄位。",
"SHIPPING_TEMP_INVENTORY_CONFIRMATION_INVALID": "臨時庫存確認條件不符合,請重新選擇已推薦的方案或映射。",
"SHIPPING_TEMP_INVENTORY_QUALITY_INVALID": "臨時庫存檔案未通過料號、預約號或可用庫存數量驗證。",
"SHIPPING_TEMP_INVENTORY_SESSION_EXPIRED": "臨時庫存會話已過期,請重新上傳檔案。",
"SHIPPING_TEMP_INVENTORY_TASK_NOT_FOUND": "目前對話中找不到可使用該臨時庫存的發貨任務。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_INVALID": "請在庫存站點停用狀態下執行測試匯出。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_UNAVAILABLE": "RPA Worker 目前不可用,無法發起測試匯出。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_FOUND": "庫存站點測試匯出記錄不存在。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_NOT_READY": "測試匯出尚未完成,暫時不能確認解析方案。",
"SHIPPING_INVENTORY_CONFIGURATION_TEST_STALE": "庫存站點設定已變更,請重新測試匯出。",
"SHIPPING_RPA_PROFILE_CONFLICT": "貨代登入設定名稱已存在。",
"SHIPPING_RPA_PROFILE_DELETE_BLOCKED": "貨代登入設定仍被庫存來源引用,不能刪除。",
"SHIPPING_RPA_PROFILE_DISABLE_BLOCKED": "貨代登入設定仍被啟用的庫存來源引用,不能停用。",
"SHIPPING_RPA_PROFILE_DISABLED": "啟用庫存來源前必須先啟用其貨代登入設定。",
"SHIPPING_RPA_PROFILE_NOT_FOUND": "找不到貨代登入設定。",
"USER_USERNAME_REQUIRED": "用戶名必填。",
"USER_USERNAME_EXISTS": "用戶名已存在。",
"USER_EMAIL_INVALID": "郵箱格式不正確。",
@@ -217,12 +24,6 @@
"USER_UNIQUENESS_CONFLICT": "數據唯一性衝突。",
"SYSTEM_INTERNAL_ERROR": "伺服器內部錯誤,請稍後重試。",
"AGENT_HANDLER_NOT_CONFIGURED": "應用業務 Handler 未配置,請聯絡管理員。",
"AGENT_RUNTIME_CAPABILITY_NOT_DECLARED": "目前應用類型未宣告此後台業務能力。",
"AGENT_RUNTIME_BINDING_CONFIG_INVALID": "後台業務能力的逾時或重試設定無效。",
"AGENT_RUNTIME_PROVIDER_DISABLED": "所選內部能力 Provider 已停用。",
"AGENT_RUNTIME_PROVIDER_INVALID": "所選應用不符合此後台業務能力的 Provider 類型要求。",
"AGENT_RUNTIME_PROVIDER_CONFIG_INCOMPLETE": "內部能力 Provider 的 Dify App ID、API 位址或金鑰設定不完整。",
"AGENT_RUNTIME_PROVIDER_DELETE_BLOCKED": "此應用已被後台業務能力綁定或歷史任務引用,無法刪除。",
"SYSTEM_HTTP_ERROR": "請求失敗。",
"WECOM_RESET_NOT_CONFIGURED": "企微找回密碼未配置,請在管理端「企業微信 → 系統配置」開啟企微並填寫 Corp ID、Agent ID、Secret。",
"WECOM_NOTIFY_DISABLED": "企微通知已關閉,請在管理端「企業微信 → 通知設定」開啟。",
@@ -249,15 +50,15 @@
"FILE_ASSET_SIZE_EXCEEDED": "檔案大小超過限制。",
"FILE_ASSET_EXPIRED": "檔案資產已過期。",
"FILE_ASSET_ALREADY_REFERENCED": "檔案已被業務引用,無法刪除。",
"PROCUREMENT_CONTRACT_TEMPLATE_REFERENCED": "範本已被審查歷史引用,無法刪除;請停用該範本。",
"PROCUREMENT_CONTRACT_INVALID_COMPARISON_REGION_CONFIG": "比對區域設定無效,請檢查欄位、錨點與附件策略。",
"PROCUREMENT_CONTRACT_COMPARISON_REGION_PREVIEW_FAILED": "無法從範本檔案識別比對區域。",
"FILE_ASSET_INVALID_STATUS": "檔案狀態不允許此操作。",
"SHIPPING_NOTICE_INTAKE_NOT_FOUND": "發貨通知接入記錄不存在。",
"SHIPPING_NOTICE_INTAKE_PARSE_PENDING": "發貨通知仍在解析中,請稍後再確認建單。",
"SHIPPING_NOTICE_INTAKE_PARSE_FAILED": "發貨通知解析失敗,請重試或移除後重新上傳。",
"SHIPPING_NOTICE_INTAKE_PARSE_TIMEOUT": "發貨通知解析逾時,請重試或移除後重新上傳。",
"SHIPPING_NOTICE_INTAKE_STAGE2_PERSIST_FAILED": "發貨通知正文或附件預處理儲存失敗,請重試解析。",
"SHIPPING_NOTICE_INTAKE_ATTACHMENTS_INCOMPLETE": "發貨通知附件解析不完整,請重試解析或移除後重新上傳。",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "此檔案已進入訂單處理,請查看現有處理結果,無需重複提交。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_CONSUMED": "此檔案已完成一次訂單處理,請查看現有結果或使用重新識別。",
"SHIPPING_NOTICE_INTAKE_ALREADY_CONSUMED": "發貨通知接入記錄已被消費。",
"SHIPPING_NOTICE_INTAKE_EXPIRED": "發貨通知接入記錄已過期。",
"SHIPPING_NOTICE_INTAKE_INVALID_STATUS": "目前接入狀態不允許此操作。",
"SHIPPING_NOTICE_DUPLICATE_RESOLUTION_REQUIRED": "偵測到重複發貨通知,請先選擇處理方式。",
@@ -269,252 +70,13 @@
"SHIPPING_NOTICE_REVISION_ALREADY_EXISTS": "該任務已有後續修訂版本。",
"SHIPPING_NOTICE_REVISION_CONFLICT": "目標任務已有修訂版本,請打開已有修訂或重新檢測。",
"SHIPPING_NOTICE_FINGERPRINT_UNAVAILABLE": "無法產生可靠業務指紋,將僅按檔案去重。",
"SHIPPING_NOTICE_CANDIDATE_NOT_FOUND": "訂單候選不存在。",
"SHIPPING_NOTICE_CANDIDATE_ALREADY_CONSUMED": "訂單候選已被建單,無法修改。",
"SHIPPING_NOTICE_CANDIDATE_NOT_SELECTED": "訂單候選未被選中。",
"SHIPPING_NOTICE_CANDIDATE_REVIEW_REQUIRED": "訂單候選仍需人工審核。",
"SHIPPING_NOTICE_CANDIDATE_DOCUMENT_INVALID": "訂單候選的主附件無效。",
"SHIPPING_NOTICE_CANDIDATE_SELECTION_CHANGED": "訂單候選選擇狀態已變化,請重新整理後再試。",
"SHIPPING_NOTICE_DUPLICATE_ACTION_UNAVAILABLE": "目前重複狀態不允許此處理方式。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONTEXT_INVALID": "訂單識別上下文無效,請從失敗節點重試或重新提交目前材料。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PENDING": "郵件預處理尚未完成,或本次訂單識別仍在處理中。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_LAYOUT_PENDING": "訂單附件版面仍在解析,請稍候再發送。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_ALREADY_COMPLETED": "該郵件的訂單識別結果已儲存,請查看訂單候選或既有任務。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INVALID_RESULT": "訂單識別結果不符合協議,請重新解析。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_FAILED": "訂單識別失敗,可從失敗節點重試,無需重新上傳。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_NOT_FOUND": "貨代應用不存在。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_INVALID": "請選擇已啟用的貨代發貨應用。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_AGENT_FORBIDDEN": "您沒有使用該貨代應用的權限。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_REQUIRED": "缺少訂單抽取所屬會話。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_NOT_FOUND": "訂單抽取所屬會話不存在。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_CONVERSATION_MISMATCH": "所選附件不屬於目前會話。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_INTAKES_INVALID": "請選擇 1 至 50 個有效的發貨通知附件。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_ACTIVE": "所選附件已有正在處理的訂單抽取任務。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_NOT_FOUND": "訂單抽取任務不存在或無權存取。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_RUN_TRANSITION_INVALID": "訂單抽取任務狀態已變更,請重新整理後再試。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_NOT_CONFIGURED": "貨代應用尚未綁定已啟用的訂單抽取 Workflow,請聯絡管理員設定。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_INVALID_RESPONSE": "訂單抽取 Workflow 回傳的資料不符合結構化協議。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_FAILED": "訂單抽取 Workflow 呼叫失敗,系統將依策略重試。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_PROVIDER_CHANGED": "訂單抽取 Workflow 的應用或位址已變更,請重新發起任務。",
"SHIPPING_NOTICE_ORDER_EXTRACTION_TIMEOUT": "訂單抽取 Workflow 執行逾時,系統將依策略重試。",
"SHIPPING_NOTICE_CANDIDATE_SOURCE_CHANGED": "郵件或附件內容已變更,請重新傳送並識別訂單。",
"SHIPPING_CUSTOMER_IMPORT_SOURCE_INVALID": "來源系統編碼無效或過長。",
"SHIPPING_CUSTOMER_IMPORT_TOO_MANY_ROWS": "匯入資料行數超過限制。",
"SHIPPING_CUSTOMER_IMPORT_KEY_INVALID": "歷史客戶鍵超過長度限制。",
"SHIPPING_CUSTOMER_IMPORT_NAME_TOO_LONG": "標準客戶名稱超過長度限制。",
"SHIPPING_CUSTOMER_SHADOW_NOT_FOUND": "影子識別樣本不存在。",
"SHIPPING_CUSTOMER_SHADOW_LABEL_REQUIRED": "請選擇標準客戶作為人工真值。",
"SHIPPING_CUSTOMER_CONFIRMATION_REQUIRED": "標準客戶尚未確認,請先選擇正式客戶。",
"SHIPPING_CUSTOMER_REQUIRED_BEFORE_TASK": "客戶確認必須在建立任務之前完成,請先選擇標準客戶。",
"SHIPPING_CUSTOMER_CONFIRMATION_CUSTOMER_REQUIRED": "請選擇標準客戶。",
"SHIPPING_CUSTOMER_CASE_REQUIRED": "發貨任務缺少業務單關聯,無法確認客戶。",
"SHIPPING_NOTICE_REVISION_CASE_MISSING": "修訂目標任務缺少業務單關聯,無法建立修訂。",
"SHIPPING_CUSTOMER_INACTIVE": "所選客戶已停用。",
"SHIPPING_CUSTOMER_NUMBERED_CASE_LOCKED": "已編號業務單不能靜默更換客戶。",
"SHIPPING_FIELD_CONFLICT_NOT_FOUND": "訂單欄位衝突不存在。",
"SHIPPING_FIELD_CONFLICT_ALREADY_RESOLVED": "該欄位衝突已解決。",
"SHIPPING_FIELD_CONFLICT_VERSION_MISMATCH": "欄位衝突版本已變更,請重新整理後再試。",
"SHIPPING_ORDER_DATA_VERSION_MISMATCH": "訂單資料版本已變更,請重新整理後再試。",
"SHIPPING_ORDER_FIELD_EDIT_FORBIDDEN": "此欄位在正式任務中不可編輯。",
"SHIPPING.ORDER_FIELD_EDIT_FORBIDDEN": "此欄位在正式任務中不可編輯。",
"SHIPPING_ORDER_EXCEL_FROZEN": "出貨 Excel 已產生,正式任務欄位已凍結。",
"SHIPPING.ORDER_EXCEL_FROZEN": "出貨 Excel 已產生,正式任務欄位已凍結。",
"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": "標準客戶名稱必填。",
"SHIPPING_CUSTOMER_SHORT_CODE_INVALID": "客戶簡碼必須為 2-6 位英文字母。",
"SHIPPING_CUSTOMER_SHORT_CODE_EXISTS": "客戶簡碼已存在。",
"SHIPPING_CUSTOMER_STATUS_INVALID": "客戶狀態無效。",
"SHIPPING_CUSTOMER_CONFLICT": "客戶資料衝突。",
"SHIPPING_CUSTOMER_IDENTIFIER_TYPE_INVALID": "識別證據類型無效。",
"SHIPPING_CUSTOMER_IDENTIFIER_VALUE_REQUIRED": "識別證據值必填。",
"SHIPPING_CUSTOMER_EMAIL_INVALID": "客戶郵箱格式無效。",
"SHIPPING_CUSTOMER_DOMAIN_INVALID": "客戶網域格式無效。",
"SHIPPING_CUSTOMER_IDENTIFIER_STATUS_INVALID": "識別證據狀態無效。",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_FOUND": "識別證據不存在。",
"SHIPPING_CUSTOMER_IDENTIFIER_EXISTS": "該識別證據已存在。",
"SHIPPING_CUSTOMER_IDENTIFIER_NOT_APPROVED": "只有已審核證據才能啟用自動匹配。",
"SHIPPING_CUSTOMER_PUBLIC_DOMAIN_AUTO_MATCH_FORBIDDEN": "公共郵箱網域不能用於自動匹配。",
"SHIPPING_CUSTOMER_EXTERNAL_REF_CONFLICT": "歷史客戶鍵已綁定其他客戶。",
"SHIPPING_CUSTOMER_IMPORT_FILE_REQUIRED": "請選擇匯入檔案。",
"SHIPPING_CUSTOMER_IMPORT_FILE_TYPE_INVALID": "僅支援 .xlsx 檔案。",
"SHIPPING_CUSTOMER_IMPORT_FILE_EMPTY": "匯入檔案為空。",
"SHIPPING_CUSTOMER_IMPORT_FILE_TOO_LARGE": "匯入檔案超過 5 MB。",
"SHIPPING_CUSTOMER_IMPORT_FILE_INVALID": "匯入 Excel 無效。",
"SHIPPING_CUSTOMER_IMPORT_SHEET_MISSING": "匯入檔案缺少必要 Sheet。",
"SHIPPING_CUSTOMER_IMPORT_COLUMNS_MISSING": "匯入檔案缺少必要欄位。",
"SHIPPING_CUSTOMER_IMPORT_KEY_REQUIRED": "歷史客戶鍵必填。",
"SHIPPING_CUSTOMER_IMPORT_DUPLICATE_KEY": "同一來源存在重複歷史客戶鍵。",
"SHIPPING_CUSTOMER_IMPORT_SHORT_CODE_CONFLICT": "客戶簡碼與現有客戶衝突。",
"SHIPPING_CUSTOMER_IMPORT_NAME_MATCH": "客戶名稱可能與現有客戶重複。",
"SHIPPING_CUSTOMER_IMPORT_IDENTIFIER_CUSTOMER_MISSING": "識別證據找不到對應客戶。",
"SHIPPING_CUSTOMER_IMPORT_NOT_FOUND": "匯入批次不存在。",
"SHIPPING_CUSTOMER_IMPORT_ROW_NOT_FOUND": "匯入行不存在。",
"SHIPPING_CUSTOMER_IMPORT_DECISION_INVALID": "匯入行處理動作無效。",
"SHIPPING_CUSTOMER_IMPORT_TARGET_REQUIRED": "更新或合併時必須選擇目標客戶。",
"SHIPPING_CUSTOMER_IMPORT_HAS_ERRORS": "匯入批次存在阻斷錯誤。",
"SHIPPING_CUSTOMER_IMPORT_DECISIONS_REQUIRED": "請先處理全部警告行。",
"SHIPPING_CUSTOMER_IMPORT_ALREADY_PUBLISHED": "匯入批次已發佈。",
"SHIPPING_CUSTOMER_IMPORT_UPLOAD_CONFLICT": "上傳匯入批次時發生衝突。",
"SHIPPING_CUSTOMER_IMPORT_PUBLISH_CONFLICT": "發佈匯入批次時發生資料衝突。",
"SHIPPING.ORDER_SCHEMA_PROFILE_IMPACT_CONFIRM_REQUIRED": "訂單欄位版本會影響現有文件範本,請確認影響後再發布。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_INVALID": "訂單文件範本欄位遷移設定無效。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_MIGRATION_REQUIRED": "請處理全部受影響欄位後再建立遷移草稿。",
"SHIPPING_REVIEW_CASE_NOT_FOUND": "訂單覆核物件不存在或無權存取。",
"SHIPPING_REVIEW_CASE_NOT_EDITABLE": "此訂單覆核已結束,不能再編輯。",
"SHIPPING_REVIEW_DRAFT_VERSION_REQUIRED": "缺少有效的草稿版本號。",
"SHIPPING_REVIEW_DRAFT_VERSION_MISMATCH": "草稿已被其他視窗更新,請重新整理後再試。",
"SHIPPING_REVIEW_FIELD_INVALID": "覆核欄位不屬於此訂單的凍結範本。",
"SHIPPING_REVIEW_FIELD_CONFLICT_NOT_FOUND": "建單前欄位衝突不存在或已裁決。",
"SHIPPING_REVIEW_FIELD_CONFLICT_OPTION_INVALID": "請選擇有效的衝突候選值。",
"SHIPPING_REVIEW_FIELD_CONFLICT_VALUE_REQUIRED": "請填寫人工欄位值。",
"SHIPPING_REVIEW_FIELD_CONFLICT_FIELD_UNKNOWN": "衝突欄位不在目前凍結範本中。",
"SHIPPING_REVIEW_FIELD_CONFLICT_LINE_MISSING": "衝突對應的明細列不存在。",
"SHIPPING_REVIEW_DUPLICATE_CANDIDATE_MISSING": "覆核單尚未關聯訂單候選,無法處理重複。",
"SHIPPING_REVIEW_INVENTORY_CANDIDATES_INVALID": "人工庫存源候選無效:請選擇已啟用的庫存源並填寫原因。",
"SHIPPING_REVIEW_INVENTORY_ROUTING_ADOPT_INVALID": "無法採用規則建議:目前明細沒有有效的待決規則結果。",
"SHIPPING_REVIEW_INVENTORY_ROUTING_KEEP_INVALID": "無法保留人工結果:目前明細沒有待決的規則建議。",
"SHIPPING_REVIEW_BUILD_ELIGIBILITY_BLOCKED": "建單資格未通過,請先處理阻斷問題或補齊庫存源候選後再確認。",
"SHIPPING_REVIEW_LINE_NOT_FOUND": "訂單明細行不存在或已被刪除。",
"SHIPPING_REVIEW_DOCUMENT_NOT_FOUND": "覆核 PDF 不存在或無權存取。",
"SHIPPING_REVIEW_MANUAL_DRAFT_ALREADY_HAS_CANDIDATE": "此 PDF 已有機器訂單,不能再建立手動訂單。",
"SHIPPING_REVIEW_DRAFT_NOT_FOUND": "訂單草稿不存在。",
"SHIPPING_REVIEW_DISPOSITION_NOT_ALLOWED": "此 PDF 已完成處理,不能再變更處置。",
"SHIPPING_REVIEW_NON_ORDER_REASON_INVALID": "非訂單原因無效。",
"SHIPPING_REVIEW_QUALITY_REASON_INVALID": "檔案品質異常原因無效。",
"SHIPPING_REVIEW_REPARSE_NOT_ALLOWED": "此 PDF 不允許重新識別。",
"SHIPPING_REVIEW_REPARSE_REASON_INVALID": "重新識別原因無效。",
"SHIPPING_REVIEW_REPARSE_SOURCE_INVALID": "目前 PDF 的重新識別來源不可用。",
"SHIPPING_REVIEW_REPARSE_PENDING": "此 PDF 正在重新識別。",
"SHIPPING_REVIEW_REPLACEMENT_NOT_ALLOWED": "此 PDF 目前不能上傳或使用替代檔案。",
"SHIPPING_REVIEW_REPLACEMENT_FILE_INVALID": "替代檔案必須是 PDF。",
"SHIPPING_REVIEW_REPLACEMENT_NOT_FOUND": "替代檔案接入記錄不存在或無權存取。",
"SHIPPING_REVIEW_REPLACEMENT_PENDING": "替代 PDF 仍在解析,請稍後再試。",
"SHIPPING_REVIEW_REPLACEMENT_DOCUMENT_INVALID": "替代檔案必須且只能包含一份 PDF。",
"SHIPPING_REVIEW_WARNING_ACK_INVALID": "警告確認內容無效。",
"SHIPPING_REVIEW_CONFIRM_NOT_ALLOWED": "此訂單覆核目前不能確認建單。",
"SHIPPING_REVIEW_DUPLICATE_RESOLUTION_REQUIRED": "訂單存在重複風險,請先依重複訂單流程處理。",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_REQUIRED": "確認建單缺少冪等鍵,請重試。",
"SHIPPING_REVIEW_IDEMPOTENCY_KEY_CONFLICT": "確認請求衝突,請重新整理後再試。",
"SHIPPING_REVIEW_CONFIRM_VALIDATION_FAILED": "草稿尚未通過完整驗證,不能確認建單。",
"SHIPPING_REVIEW_CONFIRM_DOCUMENT_INVALID": "覆核 PDF 已不可用,不能確認建單。",
"SHIPPING_REVIEW_QUALITY_COMMENT_REQUIRED": "選擇「其他」時必須填寫品質異常說明。",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_CLOSE_REASON_REQUIRED": "取消本次處理必須填寫原因。",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_LOCK_VERSION_INVALID": "工作項版本號無效,請重新整理後再試。",
"SHIPPING_NOTICE_SESSION_WORK_ITEM_VERSION_CONFLICT": "工作項已被其他操作更新,請重新整理後再試。",
"SHIPPING.PROCESS_EXECUTION_NOT_FOUND": "未找到流程執行個體。",
"SHIPPING.PROCESS_GATE_NOT_FOUND": "未找到門禁個體。",
"SHIPPING.PROCESS_GATE_ACTION_INVALID": "門禁恢復動作無效。",
"SHIPPING.PROCESS_GATE_ACTION_FORBIDDEN": "請求包含禁止提交的執行控制欄位。",
"SHIPPING.PROCESS_GATE_ACTION_NOT_ALLOWED": "該動作不是當前門禁允許的主要恢復動作。",
"SHIPPING.PROCESS_GATE_TECHNICAL_ACTION_FORBIDDEN": "技術門禁動作僅系統可執行,業務用戶請在訂單處理工作台處理業務問題。",
"SHIPPING.REVIEW_LINE_INSUFFICIENT_INVENTORY": "目前庫存不足以完整履約該明細行,禁止拆分數量先行。",
"SHIPPING.REVIEW_LINE_RESERVATION_REQUIRED": "缺少有效預約單號,無法完整行先行。",
"SHIPPING.REVIEW_LINE_INVENTORY_UNKNOWN": "尚未取得可用庫存事實,無法完整行先行。",
"SHIPPING.REVIEW_LINE_ALREADY_IN_TASK": "該明細行已進入履約任務,不可重開或重複建單。",
"SHIPPING.REVIEW_LINE_REOPEN_NOT_ALLOWED": "僅已關閉且無法履約的行可重開。",
"SHIPPING.REVIEW_LINE_REOPEN_FORBIDDEN": "重開已關閉行需要管理員權限。",
"SHIPPING.REVIEW_LINE_QTY_SPLIT_FORBIDDEN": "禁止拆分單行數量。",
"SHIPPING.PROCESS_GATE_VERSION_MISMATCH": "門禁版本已變更,請重新整理後再試。",
"SHIPPING.PROCESS_GATE_BUSY": "門禁正在執行中,請稍後再試。",
"SHIPPING.PROCESS_GATE_ALREADY_PASSED": "該門禁已通過,無需重複恢復。",
"SHIPPING.PROCESS_GATE_ATTEMPT_NOT_FOUND": "未找到門禁執行嘗試。",
"SHIPPING.PROCESS_GATE_PERMISSION_DENIED": "無權存取或恢復該門禁。",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_REQUIRED": "恢復請求缺少冪等鍵。",
"SHIPPING.PROCESS_GATE_IDEMPOTENCY_CONFLICT": "冪等鍵與其他門禁請求衝突,請使用新的冪等鍵後重試。",
"XFA_DATASET_MISSING": "文件缺少可用的 XFA datasets。",
"XFA_UNSAFE_XML": "XFA XML 包含不安全結構,已拒絕解析。",
"XFA_PACKET_TOO_LARGE": "XFA packet 超過大小限制。",
"XFA_XML_DEPTH_EXCEEDED": "XFA XML 巢狀深度超過限制。",
"XFA_XML_NODE_LIMIT_EXCEEDED": "XFA XML 節點數超過限制。",
"XFA_LINE_ROW_LIMIT_EXCEEDED": "XFA 明細行數超過限制。",
"XFA_PARSE_TIMEOUT": "XFA 解析逾時。",
"XFA_UNSUPPORTED_DOCUMENT": "目前文件類型不受 XFA 資料路徑模式支援。",
"XFA_PROFILE_NOT_MATCHED": "未命中已發佈的 XFA 範本。",
"XFA_PROFILE_AMBIGUOUS": "同時命中多個 XFA 範本。",
"XFA_REQUIRED_FIELD_MISSING": "XFA 必填欄位缺失。",
"XFA_MIRROR_COLLECTION_MISMATCH": "XFA 鏡像明細集合與權威集合不一致。",
"XFA_ACROFORM_MISMATCH": "XFA datasets 與 AcroForm 對帳不一致。",
"XFA_BUSINESS_VALIDATION_FAILED": "XFA 業務恆等式校驗失敗。",
"XFA_AUTHORITATIVE_COLLECTION_MISSING": "權威明細集合不存在。",
"XFA_PATH_INVALID": "XFA 資料路徑語法非法。",
"XFA_PATH_UNKNOWN": "XFA 資料路徑不在結構分析記錄中。",
"XFA_DEFINITION_INVALID": "XFA 範本定義不合法。",
"XFA_VISUAL_BINDINGS_REQUIRED": "缺少統一視覺綁定,無法發佈 XFA 範本。",
"XFA_VISUAL_BINDING_INCOMPLETE": "存在未確認視覺框的正式欄位,無法發佈。",
"XFA_VISUAL_COVERAGE_INSUFFICIENT": "視覺綁定覆蓋率未達 100%。",
"XFA_EVIDENCE_RETENTION_INSUFFICIENT": "evidence_only 保留率未達 100%。",
"XFA_MIRROR_CONSISTENCY_INSUFFICIENT": "鏡像集合正式欄位一致率未達 100%。",
"XFA_PROFILE_CHECKSUM_MISMATCH": "已發佈 XFA 範本 checksum 與執行快照不一致。",
"XFA_VISUAL_NOT_PUBLISHABLE": "已發佈 XFA 範本視覺綁定不可用,需覆核。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_VALUE_FORBIDDEN": "目前帳號沒有查看 XFA 完整樣本值的權限。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_EDIT_FORBIDDEN": "目前帳號沒有編輯 XFA 拆分規則的權限。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_TOKEN_INVALID": "拆分規則預覽確認令牌無效、過期或與目前規則不符。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_REJECTED": "拆分規則確認被拒絕:預覽令牌缺失、無效、已使用或樣本內容已變化。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SPLIT_CONFIRM_STORE_UNAVAILABLE": "確認服務暫不可用,請稍後重試;持續失敗請聯繫運維。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_UNAVAILABLE": "XFA 結構分析尚未就緒或記錄不完整,請重新解析樣本後重試。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_MISSING": "當前版面未綁定可用的 XFA 結構分析,請重新解析樣本後重試。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_IDENTITY_MISMATCH": "XFA 結構分析與當前文檔或版面身份不一致,已阻斷操作。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_ANALYSIS_STALE": "XFA 結構分析相對當前樣本內容已過期,請重新解析樣本後重試。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_STALE": "XFA 合成預覽相對凍結結構身分已過期,請重新產生預覽後再確認。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_FAILED": "XFA 合成預覽產生失敗,請檢查樣本或稍後重試。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_UNAVAILABLE": "XFA 合成預覽不可用,請先產生預覽或重新解析樣本。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_CONFIRM_REQUIRES_SYNTHETIC_PREVIEW": "確認視覺綁定須先在合成預覽上完成:請產生合成預覽並攜帶校驗和後再確認。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_PAGE_INCONSISTENT": "XFA 合成預覽頁數或頁框與凍結樣本不一致,已阻斷操作。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_PREVIEW_VALUE_MISMATCH": "XFA 合成回顯與凍結 datasets 不一致,已阻斷操作。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_LEGACY_MAPPINGS_FORBIDDEN": "XFA 模板須使用統一 bindings;舊 header_mappings / line_mapping.fields 須先完成遷移。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_OCR_UNAVAILABLE": "XFA 合成預覽 OCR 不可用,請檢查 OCR 引擎部署後重試;普通 PDF 路徑不受影響。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_XFA_SYNTHETIC_PREVIEW_GATE": "XFA 合成預覽發佈門禁未通過:預覽未就緒、缺少校驗和或視覺綁定未確認。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_PREVIEW_STALE": "版面解析結果已變更,請重新整理樣本並再次預覽複核。",
"SHIPPING.ORDER_DOCUMENT_PROFILE_TEST_NOT_READY": "版面解析仍在準備中,請稍後重新整理狀態。",
"SHIPPING.STP_RETRY_ALREADY_CONFIRMED": "該複核單已確認建單,請改用確認後自動推進重試。",
"SHIPPING.STP_ENQUEUE_FAILED": "自動建單入隊失敗,請稍後重試或聯絡管理員。",
"SHIPPING.STP_NOT_ELIGIBLE": "目前訂單尚未滿足自動建單條件,請先完成校驗與門禁後再重試。",
"SHIPPING.STP_CASE_NO_REQUIRED": "缺少複核單編號,無法執行自動建單。",
"SHIPPING.STP_AUTO_CREATE_FAILED": "自動建單執行失敗,請重試或改用人工確認。",
"SHIPPING.RECONCILE_OPERATION_ID_REQUIRED": "對帳操作缺少 operation_id,請重新整理頁面後再試。",
"SHIPPING.RECONCILE_OPERATION_ID_TOO_LONG": "對帳操作 operation_id 超過 128 字元。",
"SHIPPING.RECONCILE_INVALID_USER_ACTION": "對帳使用者動作不合法,請選擇復用、新建修訂或強制新建。",
"SHIPPING.RECONCILE_INVALID_EXPECTED_VERSION": "expected_case_version 必須是整數。",
"SHIPPING.RECONCILE_IDEMPOTENT_CONFLICT": "同一 operation_id 之請求參數已變更,請產生新的 operation_id 再提交。",
"SHIPPING.RECONCILE_OWNERSHIP_ANOMALY": "任務歸屬關係不明確,請交由人工裁決後再推進。",
"SHIPPING.RECONCILE_FORCE_CREATE_UNAUTHORIZED": "強制新建重複訂單需要管理員或特殊權限。",
"SHIPPING.RECONCILE_LOCK_VISIBILITY_RACE": "對帳鎖行與可見行不一致,請重試。",
"SHIPPING.RETRY_STP_BLOCKED_MANUAL": "目前等待人工裁決,請勿使用技術重試;請透過對帳恢復或裁決重複訂單介面推進。",
"SHIPPING.REVIEW_LLM_DISABLED": "訂單複核 AI 建議功能已關閉,本次未生成建議。請直接人工核對即可。",
"SHIPPING.REVIEW_LLM_PROVIDER_UNAVAILABLE": "AI 服務暫時不可用(未設定 Dify 金鑰或請求失敗)。建議已跳過,請按人工流程複核。",
"SHIPPING.REVIEW_LLM_FIELD_MISMATCH": "AI 回傳的欄位與目前複核欄位不一致。建議已捨棄,請勿採用本次結果。",
"SHIPPING.REVIEW_LLM_VALIDATION_FAILED": "AI 建議未通過證據一致性檢查,無法寫入草稿。可人工輸入正確值後繼續。",
"SHIPPING.REVIEW_LLM_GATE_FIELD_NOT_FOUND": "未在凍結樣板中找到該複核欄位,無法生成 AI 建議。",
"SHIPPING.REVIEW_LLM_GATE_LINE_NOT_FOUND": "明細行遺失,無法為該行生成 AI 建議。請確認行結構後重試。",
"SHIPPING.REVIEW_LLM_GATE_FIELD_VALUE_MISSING": "該欄位缺少原始值,AI 無法基於事實給出建議。請先補齊機器識別或人工輸入。",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_UNAVAILABLE": "未擷取到該欄位的證據來源(Case 95 類斷裂),AI 靜默已阻斷。請先完成識別或重新解析 PDF。",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_INSUFFICIENT": "該行上下文欄位不足 2 筆,無法給出可靠行級建議。請先補足相鄰欄位的識別結果。",
"SHIPPING.REVIEW_LLM_GATE_POLICY_BLOCKED": "該欄位屬於敏感/內部欄位,依安全政策不允許發送給 AI。請直接人工確認。",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_BUILD_FAILED": "建構證據視圖時發生異常,已放棄本次 AI 建議。請重新整理後重試或聯絡管理員。",
"SHIPPING.REVIEW_LLM_GATE_EVIDENCE_TRUNCATED": "目標欄位核心證據超出 Token 預算被截斷,AI 已放棄以避免錯誤結論。請人工複核該欄位。",
"SHIPPING.REVIEW_LLM_GATE_CONTEXT_AMBIGUOUS": "識別結果存在多份來源候選且無法唯一確定主證據,AI 已放棄以避免事實混淆。請先裁決多候選後重試。",
"SHIPPING.REVIEW_LLM_GATE_L4_FORBIDDEN": "整頁級證據僅管理員在顯式授權下可用,一般使用者無法調用。",
"SHIPPING.REVIEW_LLM_L4_FORBIDDEN": "完整 PDF 級證據僅管理員在顯式授權下可用,本次請求已阻斷。"
},
"SHIPPING.REVIEW_INVENTORY_SOURCE_UNRESOLVED": "庫存源尚未唯一確定,不能建立正式訂單。請先完成庫存源複核。",
"SHIPPING_REVIEW_INVENTORY_SOURCE_UNRESOLVED": "庫存源尚未唯一確定,不能建立正式訂單。請先完成庫存源複核。"
"VOUCHER_CHECK_CONFIG_INVALID": "立帳憑證檢核設定無效。",
"VOUCHER_CHECK_INVOICE_REQUIRED": "請提供發票號。",
"VOUCHER_CHECK_INVOICE_NOT_IN_PERIOD": "指定發票不在當前月 ERP 集合中。",
"VOUCHER_CHECK_INVOICE_PATH_INVALID": "發票號含非法路徑字元。",
"VOUCHER_CHECK_SHARE_UNAVAILABLE": "共用磁碟不可用,請檢查掛載與健康標記。",
"VOUCHER_CHECK_ERP_UNAVAILABLE": "ERP(Oracle)不可用,請稍後重試。",
"VOUCHER_CHECK_RUN_NOT_FOUND": "檢核批次或發票狀態不存在。",
"VOUCHER_CHECK_PERSIST_FAILED": "檢核結果寫入失敗。"
}
}
+2 -1
View File
@@ -21,7 +21,8 @@
},
"msg": {
"fillContent": "請填寫反饋內容",
"submitFailed": "提交反饋失敗"
"submitFailed": "提交反饋失敗",
"submitSuccess": "反饋提交成功"
},
"cancel": "取消",
"submitting": "提交中...",
@@ -4,6 +4,13 @@
"downloading": "下載中...",
"tooLarge": "檔案較大,暫不支援線上預覽,請直接點擊上方「下載檔案」取得原始檔案。",
"previewFailed": "預覽失敗:",
"imageCounter": "第 {current} / {total} 張",
"zoomOut": "縮小",
"zoomIn": "放大",
"resetZoom": "重設縮放",
"prevImage": "上一張",
"nextImage": "下一張",
"unsupportedRawPreview": "目前原始檔案暫不支援直接預覽,已阻止瀏覽器自動下載",
"msg": {
"downloadFailed": "下載失敗: {reason}",
"unknownError": "未知錯誤"
+14 -3
View File
@@ -1,4 +1,4 @@
{
{
"kbDifySettings": {
"title": "Dify 設定",
"subtitle": "管理知識庫模組使用的 Dify 連線和預設同步參數。",
@@ -391,8 +391,19 @@
"markdownFailedRetry": "當前文檔清洗失敗,尚未生成 Markdown,請重新清洗後重試",
"markdownProcessing": "當前文檔正在清洗中,暫未生成 Markdown,請稍後再試",
"markdownPendingClean": "當前文檔待清洗,暫未生成 Markdown,請先發起清洗",
"markdownNotGenerated": "當前文檔尚未生成 Markdown"
"markdownNotGenerated": "當前文檔尚未生成 Markdown",
"createGroupFailed": "建立知識庫分組失敗",
"saveDifySettingsFailed": "儲存 Dify 設定失敗",
"executeJobFailed": "執行任務失敗",
"updateDocumentFailed": "更新文件失敗",
"apiNotReady": "知識庫介面暫未就緒,請稍後再試",
"fileTooLarge": "檔案過大,超過目前上傳限制,請聯繫管理員放寬限制後重試",
"uploadPathFileFailed": "上傳路徑檔案失敗",
"markPathFileFailedStatusFailed": "記錄路徑檔案失敗狀態失敗",
"submitPathUploadFailed": "提交路徑上傳任務失敗",
"submitCleanFailed": "提交清洗任務失敗",
"updateGroupFailed": "更新知識庫分組失敗",
"deleteGroupFailed": "刪除知識庫分組失敗"
}
}
}
Loaded 100 of 397 files, more files were not shown because too many files have changed in this diff. Show more