feat(order-delivery-reply): 新增订单交期回复工作台
This commit is contained in:
1 parent
de9db2ea77
commit
49f6a0f222
57 files changed
+6502
-67
No files matched your search
@@ -8,6 +8,7 @@ import { authRoutes } from './auth.routes';
|
||||
import { chatRoutes } from './chat.routes';
|
||||
import { kbRoutes } from './kb.routes';
|
||||
import { workspaceRoutes } from './workspace.routes';
|
||||
import { orderDeliveryReplyEmbedRoute } from './workspace.routes';
|
||||
import { useAuthStore } from '@/features/auth/stores/auth.store';
|
||||
import { DEFAULT_CHAT_AGENT_ID } from '@/shared/constants/routes';
|
||||
|
||||
@@ -21,6 +22,7 @@ export const appRoutes: RouteRecordRaw[] = [
|
||||
},
|
||||
},
|
||||
...authRoutes,
|
||||
orderDeliveryReplyEmbedRoute,
|
||||
...workspaceRoutes,
|
||||
...chatRoutes,
|
||||
...adminRoutes,
|
||||
|
||||
@@ -6,6 +6,15 @@
|
||||
*/
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import { CONTRACT_PAYMENT_ACCESS_PERMISSION } from '@/features/contract-payment/constants';
|
||||
import { ORDER_DELIVERY_REPLY_ACCESS_PERMISSION } from '@/features/order-delivery-reply/constants';
|
||||
|
||||
// 订单交期回复嵌入路由:应用管理 iframe 应用的目标(无工作台布局壳,聊天壳内整页渲染)。
|
||||
export const orderDeliveryReplyEmbedRoute: RouteRecordRaw = {
|
||||
path: '/apps/order-delivery-reply',
|
||||
name: 'app-order-delivery-reply',
|
||||
component: () => import('@/features/order-delivery-reply/views/OrderDeliveryReplyPage.vue'),
|
||||
meta: { title: 'workspace.nav.orderDeliveryReply', requiresFeaturePermission: ORDER_DELIVERY_REPLY_ACCESS_PERMISSION },
|
||||
};
|
||||
|
||||
export const workspaceRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
@@ -90,6 +99,12 @@ export const workspaceRoutes: RouteRecordRaw[] = [
|
||||
component: () => import('@/features/workspace/pages/AccountingVoucherCheckDetailPage.vue'),
|
||||
meta: { title: 'workspace.voucherCheck.detailTitle', requiresAdmin: true },
|
||||
},
|
||||
{
|
||||
path: 'order-delivery-reply',
|
||||
name: 'workspace-order-delivery-reply',
|
||||
component: () => import('@/features/order-delivery-reply/views/OrderDeliveryReplyPage.vue'),
|
||||
meta: { title: 'workspace.nav.orderDeliveryReply', requiresFeaturePermission: ORDER_DELIVERY_REPLY_ACCESS_PERMISSION },
|
||||
},
|
||||
{
|
||||
path: 'contract-payment',
|
||||
name: 'workspace-contract-payment',
|
||||
|
||||
@@ -116,6 +116,28 @@ const { t } = useI18n();
|
||||
<span class="block text-xs leading-5 text-muted">{{ t('admin.user.fields.contractPaymentAccessHint') }}</span>
|
||||
</span>
|
||||
</label>
|
||||
<label class="flex items-start gap-3 rounded-xl border border-default bg-white px-4 py-3">
|
||||
<input
|
||||
v-model="form.feature_permissions['order_delivery_reply.manage']"
|
||||
type="checkbox"
|
||||
class="mt-0.5 h-4 w-4 rounded border-default text-brand-600 focus:ring-brand-500"
|
||||
/>
|
||||
<span class="space-y-1">
|
||||
<span class="block text-sm font-medium text-primary">{{ t('admin.user.fields.orderDeliveryReplyManage') }}</span>
|
||||
<span class="block text-xs leading-5 text-muted">{{ t('admin.user.fields.orderDeliveryReplyManageHint') }}</span>
|
||||
</span>
|
||||
</label>
|
||||
<label class="flex items-start gap-3 rounded-xl border border-default bg-white px-4 py-3">
|
||||
<input
|
||||
v-model="form.feature_permissions['order_delivery_reply.access']"
|
||||
type="checkbox"
|
||||
class="mt-0.5 h-4 w-4 rounded border-default text-brand-600 focus:ring-brand-500"
|
||||
/>
|
||||
<span class="space-y-1">
|
||||
<span class="block text-sm font-medium text-primary">{{ t('admin.user.fields.orderDeliveryReplyAccess') }}</span>
|
||||
<span class="block text-xs leading-5 text-muted">{{ t('admin.user.fields.orderDeliveryReplyAccessHint') }}</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="space-y-1.5">
|
||||
<label class="block text-xs font-semibold text-muted uppercase tracking-wider">
|
||||
|
||||
@@ -205,6 +205,8 @@ export function useUsersAdmin() {
|
||||
phone_number: user.phone_number || '',
|
||||
feature_permissions: {
|
||||
training_hr_manage: Boolean(user.feature_permissions?.training_hr_manage),
|
||||
'order_delivery_reply.manage': Boolean(user.feature_permissions?.['order_delivery_reply.manage']),
|
||||
'order_delivery_reply.access': Boolean(user.feature_permissions?.['order_delivery_reply.access']),
|
||||
'contract_payment.access': Boolean(user.feature_permissions?.['contract_payment.access']),
|
||||
},
|
||||
agent_ids: user.agent_ids || [],
|
||||
|
||||
@@ -15,6 +15,8 @@ export interface UserFormState {
|
||||
phone_number: string;
|
||||
feature_permissions: {
|
||||
training_hr_manage: boolean;
|
||||
'order_delivery_reply.manage': boolean;
|
||||
'order_delivery_reply.access': boolean;
|
||||
'contract_payment.access': boolean;
|
||||
};
|
||||
agent_ids: number[];
|
||||
@@ -54,6 +56,8 @@ export const createEmptyUserForm = (): UserFormState => ({
|
||||
phone_number: '',
|
||||
feature_permissions: {
|
||||
training_hr_manage: false,
|
||||
'order_delivery_reply.manage': false,
|
||||
'order_delivery_reply.access': false,
|
||||
'contract_payment.access': false,
|
||||
},
|
||||
agent_ids: [],
|
||||
|
||||
@@ -48,6 +48,13 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
if (permissionKey === CONTRACT_PAYMENT_ACCESS_PERMISSION) {
|
||||
return user.value?.role === 'admin';
|
||||
}
|
||||
// 订单交期回复两键与后端角色默认对齐(admin 默认开),同样兜底旧会话缺键的场景。
|
||||
if (
|
||||
permissionKey === 'order_delivery_reply.manage' ||
|
||||
permissionKey === 'order_delivery_reply.access'
|
||||
) {
|
||||
return user.value?.role === 'admin';
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
@@ -409,6 +409,7 @@ watch(() => page.currentAgentId, () => {
|
||||
|
||||
@go-workspace="page.goToWorkspace()"
|
||||
|
||||
|
||||
@go-admin="page.goToAdmin"
|
||||
|
||||
@logout="page.handleLogout"
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
/**
|
||||
* 订单交期回复 API 类型与请求封装。
|
||||
* 依赖:统一 requestJson(失败抛 BusinessError);后端 /api/order-delivery-reply。
|
||||
* 逻辑:列表筛选分页、保存批次(单行/联合)、单行与批量通知、手动同步与最近同步状态。
|
||||
*/
|
||||
|
||||
import { requestJson } from '@/shared/api/client';
|
||||
|
||||
/** 已保存的交期批次(计划交期 + 数量 + 可选备注)。 */
|
||||
export interface DeliveryBatch {
|
||||
seq?: number;
|
||||
planned_date: string;
|
||||
qty: string;
|
||||
remark?: string | null;
|
||||
}
|
||||
|
||||
/** 工作台订单行:ERP 快照 + 读时推导的回复状态。 */
|
||||
export interface OrderDeliveryLine {
|
||||
id: number;
|
||||
order_no: string;
|
||||
line_no: number;
|
||||
order_date?: string | null;
|
||||
customer_no?: string | null;
|
||||
customer_short_name?: string | null;
|
||||
customer_full_name?: string | null;
|
||||
salesperson_code?: string | null;
|
||||
salesperson_name?: string | null;
|
||||
dept_code?: string | null;
|
||||
dept_name?: string | null;
|
||||
customer_po?: string | null;
|
||||
part_no?: string | null;
|
||||
part_name?: string | null;
|
||||
spec?: string | null;
|
||||
customer_part_no?: string | null;
|
||||
agreed_date?: string | null;
|
||||
unit?: string | null;
|
||||
qty?: string | null;
|
||||
delivered_qty?: string | null;
|
||||
undelivered_qty?: string | null;
|
||||
status: 'not_replied' | 'partial_replied' | 'replied';
|
||||
locked: boolean;
|
||||
batches: DeliveryBatch[];
|
||||
notified_employee_id?: string | null;
|
||||
notified_user_name?: string | null;
|
||||
notified_at?: string | null;
|
||||
}
|
||||
|
||||
export interface OrderDeliveryListParams {
|
||||
order_no?: string;
|
||||
product_q?: string;
|
||||
customer_q?: string;
|
||||
order_date?: string;
|
||||
status?: '' | 'replied' | 'not_fully_replied';
|
||||
page?: number;
|
||||
page_size?: number;
|
||||
}
|
||||
|
||||
export interface OrderDeliveryListResponse {
|
||||
items: OrderDeliveryLine[];
|
||||
page: number;
|
||||
page_size: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface OrderDeliverySyncRun {
|
||||
id: number;
|
||||
trigger: 'scheduled' | 'manual';
|
||||
status: 'running' | 'success' | 'failed';
|
||||
started_at?: string | null;
|
||||
finished_at?: string | null;
|
||||
line_count: number;
|
||||
error_message?: string | null;
|
||||
}
|
||||
|
||||
/** 批量操作逐行结果:ok=false 带 error 文案;skipped 带 reason(already_locked / no_batches)。 */
|
||||
export interface BatchItemResult {
|
||||
order_no?: string;
|
||||
line_no?: number;
|
||||
ok: boolean;
|
||||
skipped?: boolean;
|
||||
reason?: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface BatchSummary {
|
||||
succeeded: number;
|
||||
failed: number;
|
||||
skipped: number;
|
||||
items: BatchItemResult[];
|
||||
}
|
||||
|
||||
/** 分页查询已同步订单行(erp_missing 行由后端排除)。 */
|
||||
export const listOrderDeliveryLines = (params?: OrderDeliveryListParams) => {
|
||||
const query = new URLSearchParams();
|
||||
if (params?.order_no) query.set('order_no', params.order_no);
|
||||
if (params?.product_q) query.set('product_q', params.product_q);
|
||||
if (params?.customer_q) query.set('customer_q', params.customer_q);
|
||||
if (params?.order_date) query.set('order_date', params.order_date);
|
||||
if (params?.status) query.set('status', params.status);
|
||||
if (params?.page) query.set('page', String(params.page));
|
||||
if (params?.page_size) query.set('page_size', String(params.page_size));
|
||||
const suffix = query.toString() ? `?${query.toString()}` : '';
|
||||
return requestJson<OrderDeliveryListResponse>(`/api/order-delivery-reply/lines${suffix}`);
|
||||
};
|
||||
|
||||
/** 保存单行交期批次(未锁定行整表替换)。 */
|
||||
export const saveOrderDeliveryBatches = (
|
||||
orderNo: string,
|
||||
lineNo: number,
|
||||
batches: { planned_date: string; qty: string | number; remark?: string | null }[],
|
||||
) =>
|
||||
requestJson<{ order_no: string; line_no: number; batches: DeliveryBatch[]; total_qty: string }>(
|
||||
`/api/order-delivery-reply/lines/${encodeURIComponent(orderNo)}/${lineNo}/batches`,
|
||||
{ method: 'PUT', body: JSON.stringify({ batches }) },
|
||||
);
|
||||
|
||||
/** 联合回复:对多行逐行保存批次(只保存,不通知不锁定)。 */
|
||||
export const batchReplyOrderDelivery = (
|
||||
items: { order_no: string; line_no: number; batches: { planned_date: string; qty: string | number; remark?: string | null }[] }[],
|
||||
) =>
|
||||
requestJson<BatchSummary>('/api/order-delivery-reply/batch-reply', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ items }),
|
||||
});
|
||||
|
||||
/** 单行发送通知业务部门(企微),成功后行级锁定。 */
|
||||
export const notifyOrderDeliveryLine = (orderNo: string, lineNo: number) =>
|
||||
requestJson<{ order_no: string; line_no: number; locked: boolean; notified_user_name?: string | null; notified_at?: string | null }>(
|
||||
`/api/order-delivery-reply/lines/${encodeURIComponent(orderNo)}/${lineNo}/notify`,
|
||||
{ method: 'POST' },
|
||||
);
|
||||
|
||||
/** 批量通知勾选行;无批次/已锁定跳过,单行失败不回滚其它行。 */
|
||||
export const notifyOrderDeliveryBatch = (lines: { order_no: string; line_no: number }[]) =>
|
||||
requestJson<BatchSummary>('/api/order-delivery-reply/notify-batch', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ lines }),
|
||||
});
|
||||
|
||||
/** 手动触发 ERP 全量同步(范围与 07:00 排程一致)。 */
|
||||
export const runOrderDeliverySync = () =>
|
||||
requestJson<{ run_id: number | null; status: 'success' | 'skipped'; line_count: number }>(
|
||||
'/api/order-delivery-reply/sync',
|
||||
{ method: 'POST' },
|
||||
);
|
||||
|
||||
/** 最近一次同步运行记录;从未同步过返回 null。 */
|
||||
export const getLatestOrderDeliverySync = () =>
|
||||
requestJson<OrderDeliverySyncRun | null>('/api/order-delivery-reply/sync/latest');
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* features/order-delivery-reply/constants.ts
|
||||
* 用途:订单交期回复域共享常量(功能权限键)。
|
||||
* 依赖:与后端 app/models/user.py._role_default_feature_permissions 的键名一一对应。
|
||||
* 逻辑:manage=生管可写(保存/通知/同步),access=业务只读;manage 命中视为有 access。
|
||||
*/
|
||||
|
||||
export const ORDER_DELIVERY_REPLY_MANAGE_PERMISSION = 'order_delivery_reply.manage';
|
||||
export const ORDER_DELIVERY_REPLY_ACCESS_PERMISSION = 'order_delivery_reply.access';
|
||||
@@ -0,0 +1,569 @@
|
||||
/**
|
||||
* features/order-delivery-reply/views/OrderDeliveryReplyPage.vue
|
||||
* 用途:订单交期回复工作台操作页——筛选分页、单行/联合回复批次、单行/批量通知、手动同步。
|
||||
* 依赖:api/orderDeliveryReply.api(统一 requestJson)、useMessage、auth store(manage/access 权限)。
|
||||
* 逻辑:所有数据只读本地快照;保存与通知是两步(联合回复只保存,批量通知才发送并锁定);
|
||||
* 保存/通知成功后即时刷新列表(需求 §9);仅 access 用户隐藏全部写操作。
|
||||
* 列顺序:客户编号(简称副文案) → 订单日期 → 订单单号:项次 → 产品编号(品名副文案) →
|
||||
* 客户产品编号 → 数量 → 约定交货日 → 交期回复状态 → 交期回复 → 交期回复人员 →
|
||||
* 业务员(部门副文案) → 客户订单 → 规格 → 单位;独立的部门列/品名列已并入合并展示。
|
||||
*/
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useAuthStore } from '@/features/auth/stores/auth.store';
|
||||
import { useMessage } from '@/shared/composables/useMessage';
|
||||
import PaginationBar from '@/shared/components/PaginationBar.vue';
|
||||
import {
|
||||
ORDER_DELIVERY_REPLY_MANAGE_PERMISSION,
|
||||
} from '@/features/order-delivery-reply/constants';
|
||||
import {
|
||||
batchReplyOrderDelivery,
|
||||
getLatestOrderDeliverySync,
|
||||
listOrderDeliveryLines,
|
||||
notifyOrderDeliveryBatch,
|
||||
runOrderDeliverySync,
|
||||
saveOrderDeliveryBatches,
|
||||
type BatchSummary,
|
||||
type OrderDeliveryLine,
|
||||
type OrderDeliverySyncRun,
|
||||
} from '@/features/order-delivery-reply/api/orderDeliveryReply.api';
|
||||
|
||||
const { t } = useI18n();
|
||||
const msg = useMessage();
|
||||
const auth = useAuthStore();
|
||||
|
||||
/** manage 可写(保存/通知/同步);access 或 manage 可看(路由与侧栏已按 access 守卫)。 */
|
||||
const canManage = computed(() => auth.hasFeaturePermission(ORDER_DELIVERY_REPLY_MANAGE_PERMISSION));
|
||||
|
||||
/* ============ 列表查询 ============ */
|
||||
const filters = reactive({ order_no: '', product_q: '', customer_q: '', order_date: '', status: '' as '' | 'replied' | 'not_fully_replied' });
|
||||
const appliedFilters = reactive({ ...filters });
|
||||
const items = ref<OrderDeliveryLine[]>([]);
|
||||
const total = ref(0);
|
||||
const page = ref(1);
|
||||
const pageSize = ref(50);
|
||||
const pageSizeOptions = [20, 50, 100, 200];
|
||||
const loading = ref(false);
|
||||
const latestSync = ref<OrderDeliverySyncRun | null>(null);
|
||||
|
||||
async function loadLines() {
|
||||
loading.value = true;
|
||||
try {
|
||||
const data = await listOrderDeliveryLines({ ...appliedFilters, page: page.value, page_size: pageSize.value });
|
||||
items.value = data.items;
|
||||
total.value = data.total;
|
||||
if (data.page !== page.value) page.value = data.page;
|
||||
} catch (error) {
|
||||
msg.error(error instanceof Error ? error.message : t('workspace.orderDeliveryReply.loadFailed'));
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
async function loadLatestSync() {
|
||||
try {
|
||||
latestSync.value = await getLatestOrderDeliverySync();
|
||||
} catch {
|
||||
latestSync.value = null;
|
||||
}
|
||||
}
|
||||
|
||||
function doSearch() {
|
||||
Object.assign(appliedFilters, filters);
|
||||
page.value = 1;
|
||||
void loadLines();
|
||||
}
|
||||
|
||||
function doReset() {
|
||||
Object.assign(filters, { order_no: '', product_q: '', customer_q: '', order_date: '', status: '' });
|
||||
doSearch();
|
||||
}
|
||||
|
||||
/** 分页条:页码跳转(与管理控制台数据报表同一 PaginationBar 组件)。 */
|
||||
function goToPage(next: number) {
|
||||
if (next === page.value) return;
|
||||
page.value = next;
|
||||
void loadLines();
|
||||
}
|
||||
|
||||
/** 切换每页条数:回到第 1 页并重查。 */
|
||||
function changePageSize(size: number) {
|
||||
if (size === pageSize.value) return;
|
||||
pageSize.value = size;
|
||||
page.value = 1;
|
||||
void loadLines();
|
||||
}
|
||||
|
||||
/** 手动同步(manage):同步执行完成后刷新列表与最近同步时间。 */
|
||||
const syncing = ref(false);
|
||||
async function doSync() {
|
||||
syncing.value = true;
|
||||
try {
|
||||
const result = await runOrderDeliverySync();
|
||||
if (result.status === 'skipped') {
|
||||
msg.warning(t('workspace.orderDeliveryReply.syncSkipped'));
|
||||
} else {
|
||||
msg.success(t('workspace.orderDeliveryReply.syncDone', { count: result.line_count }));
|
||||
}
|
||||
await Promise.all([loadLines(), loadLatestSync()]);
|
||||
} catch (error) {
|
||||
msg.error(error instanceof Error ? error.message : t('workspace.orderDeliveryReply.syncFailedTitle'));
|
||||
} finally {
|
||||
syncing.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============ 勾选(全选仅本页) ============ */
|
||||
const selected = ref<string[]>([]);
|
||||
const expanded = ref<string[]>([]);
|
||||
const lineKey = (line: OrderDeliveryLine) => `${line.order_no}:${line.line_no}`;
|
||||
const selectedLines = computed(() => items.value.filter((line) => selected.value.includes(lineKey(line))));
|
||||
const allChecked = computed(() => items.value.length > 0 && items.value.every((line) => selected.value.includes(lineKey(line))));
|
||||
const someChecked = computed(() => !allChecked.value && items.value.some((line) => selected.value.includes(lineKey(line))));
|
||||
/** 勾选中「已有批次且未锁定」的行才可批量通知(无批次/已锁定会被后端 skipped)。 */
|
||||
const notifiableSelected = computed(() => selectedLines.value.filter((line) => line.batches.length > 0 && !line.locked));
|
||||
|
||||
function toggleLine(line: OrderDeliveryLine, on: boolean) {
|
||||
const key = lineKey(line);
|
||||
selected.value = on ? [...selected.value, key] : selected.value.filter((k) => k !== key);
|
||||
}
|
||||
|
||||
function togglePageAll(on: boolean) {
|
||||
if (on) {
|
||||
const keys = new Set(selected.value);
|
||||
items.value.forEach((line) => keys.add(lineKey(line)));
|
||||
selected.value = [...keys];
|
||||
} else {
|
||||
const pageKeys = new Set(items.value.map(lineKey));
|
||||
selected.value = selected.value.filter((k) => !pageKeys.has(k));
|
||||
}
|
||||
}
|
||||
|
||||
function toggleExpand(key: string) {
|
||||
expanded.value = expanded.value.includes(key)
|
||||
? expanded.value.filter((k) => k !== key)
|
||||
: [...expanded.value, key];
|
||||
}
|
||||
|
||||
/* ============ 派生展示 ============ */
|
||||
const repliedQty = (line: OrderDeliveryLine) =>
|
||||
line.batches.reduce((sum, batch) => sum + Number(batch.qty || 0), 0);
|
||||
const undelivered = (line: OrderDeliveryLine) => Number(line.undelivered_qty || 0);
|
||||
type LineStatus = OrderDeliveryLine['status'];
|
||||
const statusMeta = (status: LineStatus) => {
|
||||
const map: Record<LineStatus, { label: string; cls: string }> = {
|
||||
not_replied: { label: t('workspace.orderDeliveryReply.statusNotReplied'), cls: 'bg-rose-50 text-rose-600' },
|
||||
partial_replied: { label: t('workspace.orderDeliveryReply.statusPartial'), cls: 'bg-orange-50 text-orange-600' },
|
||||
replied: { label: t('workspace.orderDeliveryReply.statusReplied'), cls: 'bg-emerald-50 text-emerald-600' },
|
||||
};
|
||||
return map[status];
|
||||
};
|
||||
|
||||
/* ============ 回复弹窗(单行 / 联合) ============ */
|
||||
interface EditableBatch { planned_date: string; qty: string; remark: string }
|
||||
interface EditableLine { line: OrderDeliveryLine; batches: EditableBatch[] }
|
||||
|
||||
const modalVisible = ref(false);
|
||||
const modalTitle = ref('');
|
||||
const modalLines = ref<EditableLine[]>([]);
|
||||
const quickDate = ref('');
|
||||
const saving = ref(false);
|
||||
|
||||
function openReplyModal(lines: OrderDeliveryLine[], title: string) {
|
||||
modalLines.value = lines.map((line) => ({
|
||||
line,
|
||||
batches: line.batches.map((batch) => ({
|
||||
planned_date: batch.planned_date,
|
||||
qty: String(Number(batch.qty)),
|
||||
remark: batch.remark || '',
|
||||
})),
|
||||
}));
|
||||
// 无批次的行默认给一条空批次,便于快速填写。
|
||||
modalLines.value.forEach((entry) => {
|
||||
if (entry.batches.length === 0) entry.batches.push({ planned_date: '', qty: '', remark: '' });
|
||||
});
|
||||
modalTitle.value = title;
|
||||
quickDate.value = '';
|
||||
modalVisible.value = true;
|
||||
}
|
||||
|
||||
function openSingleReply(line: OrderDeliveryLine) {
|
||||
openReplyModal([line], t('workspace.orderDeliveryReply.modalTitleSingle', { order: line.order_no, item: line.line_no }));
|
||||
}
|
||||
|
||||
function openBatchReply() {
|
||||
const lines = selectedLines.value.filter((line) => !line.locked);
|
||||
if (!lines.length) return;
|
||||
openReplyModal(lines, t('workspace.orderDeliveryReply.modalTitleBatch', { count: lines.length }));
|
||||
}
|
||||
|
||||
function applyQuickDate() {
|
||||
if (!quickDate.value) return;
|
||||
modalLines.value.forEach((entry) => entry.batches.forEach((batch) => { batch.planned_date = quickDate.value; }));
|
||||
}
|
||||
|
||||
/** 拆分合计超出未交数量时仅提醒不拦截(需求 §9)。 */
|
||||
const overQtyEntries = computed(() =>
|
||||
modalLines.value
|
||||
.filter((entry) => entry.batches.some((batch) => batch.planned_date && Number(batch.qty) > 0))
|
||||
.map((entry) => ({
|
||||
entry,
|
||||
total: entry.batches.reduce((sum, batch) => sum + (batch.planned_date && Number(batch.qty) > 0 ? Number(batch.qty) : 0), 0),
|
||||
}))
|
||||
.filter(({ entry, total }) => total > undelivered(entry.line)),
|
||||
);
|
||||
|
||||
async function saveReplies() {
|
||||
const validItems: { order_no: string; line_no: number; batches: { planned_date: string; qty: string; remark: string | null }[] }[] = [];
|
||||
for (const { line, batches } of modalLines.value) {
|
||||
const cleaned = batches
|
||||
.filter((batch) => batch.planned_date && Number(batch.qty) > 0)
|
||||
.map((batch) => ({ planned_date: batch.planned_date, qty: batch.qty, remark: batch.remark.trim() || null }));
|
||||
if (line.locked) continue; // 锁定行不允许再改(后端也会 409)
|
||||
if (!cleaned.length) continue;
|
||||
validItems.push({ order_no: line.order_no, line_no: line.line_no, batches: cleaned });
|
||||
}
|
||||
if (!validItems.length) {
|
||||
msg.warning(t('workspace.orderDeliveryReply.noValidBatches'));
|
||||
return;
|
||||
}
|
||||
saving.value = true;
|
||||
try {
|
||||
const [singleItem] = validItems;
|
||||
if (validItems.length === 1 && singleItem) {
|
||||
// 仅一行时走单行接口;多行必须走批量接口逐行保存(此前误判为 if (singleItem),
|
||||
// 恒为真导致联合回复只保存第一行,批量分支成死代码)。
|
||||
await saveOrderDeliveryBatches(singleItem.order_no, singleItem.line_no, singleItem.batches);
|
||||
msg.success(t('workspace.orderDeliveryReply.saveSingleDone'));
|
||||
} else {
|
||||
const summary: BatchSummary = await batchReplyOrderDelivery(validItems);
|
||||
if (summary.failed > 0) {
|
||||
const failedText = summary.items.filter((item) => !item.ok).map((item) => `${item.order_no}:${item.line_no} ${item.error || ''}`).join(';');
|
||||
msg.warning(t('workspace.orderDeliveryReply.saveBatchPartial', { ok: summary.succeeded, fail: summary.failed, detail: failedText }));
|
||||
} else {
|
||||
msg.success(t('workspace.orderDeliveryReply.saveBatchDone', { ok: summary.succeeded }));
|
||||
}
|
||||
}
|
||||
modalVisible.value = false;
|
||||
selected.value = [];
|
||||
await loadLines(); // 保存或通知后即时刷新(需求 §9)
|
||||
} catch (error) {
|
||||
msg.error(error instanceof Error ? error.message : t('workspace.orderDeliveryReply.saveFailedTitle'));
|
||||
// 行已不在同步范围(erp_missing/被新同步剔除):旧列表过期,自动刷新让该行消失。
|
||||
const message = error instanceof Error ? error.message : '';
|
||||
if (message.includes('LINE_NOT_FOUND') || message.includes('不在同步范围') || message.includes('not found')) {
|
||||
await loadLines();
|
||||
}
|
||||
} finally {
|
||||
saving.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============ 通知 ============ */
|
||||
const notifying = ref(false);
|
||||
|
||||
/** 批量通知:部分成功 warning 汇总,全部失败 error;提示后刷新列表让锁定即时生效。 */
|
||||
async function doNotifyBatch() {
|
||||
const lines = notifiableSelected.value;
|
||||
if (!lines.length) return;
|
||||
const ok = window.confirm(t('workspace.orderDeliveryReply.notifyBatchConfirm', { count: lines.length }));
|
||||
if (!ok) return;
|
||||
notifying.value = true;
|
||||
try {
|
||||
const summary = await notifyOrderDeliveryBatch(lines.map((line) => ({ order_no: line.order_no, line_no: line.line_no })));
|
||||
const failedText = summary.items.filter((item) => !item.ok).map((item) => `${item.order_no}:${item.line_no} ${item.error || ''}`).join(';');
|
||||
if (summary.failed > 0 && summary.succeeded > 0) {
|
||||
msg.warning(t('workspace.orderDeliveryReply.notifyPartial', { ok: summary.succeeded, fail: summary.failed, skip: summary.skipped, detail: failedText }));
|
||||
} else if (summary.failed > 0 && summary.succeeded === 0) {
|
||||
msg.error(t('workspace.orderDeliveryReply.notifyAllFailed', { fail: summary.failed, detail: failedText }));
|
||||
} else {
|
||||
msg.success(t('workspace.orderDeliveryReply.notifyBatchDone', { ok: summary.succeeded, skip: summary.skipped }));
|
||||
}
|
||||
selected.value = [];
|
||||
await loadLines();
|
||||
} catch (error) {
|
||||
msg.error(error instanceof Error ? error.message : t('workspace.orderDeliveryReply.notifyFailedTitle'));
|
||||
} finally {
|
||||
notifying.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============ 同步状态展示 ============ */
|
||||
const latestSyncText = computed(() => {
|
||||
const run = latestSync.value;
|
||||
if (!run) return t('workspace.orderDeliveryReply.syncNever');
|
||||
const time = (run.finished_at || run.started_at || '').replace('T', ' ').slice(0, 19);
|
||||
if (run.status === 'success') return t('workspace.orderDeliveryReply.syncAt', { time });
|
||||
if (run.status === 'running') return t('workspace.orderDeliveryReply.syncRunning');
|
||||
return t('workspace.orderDeliveryReply.syncFailedAt', { time });
|
||||
});
|
||||
const latestSyncFailed = computed(() => latestSync.value?.status === 'failed');
|
||||
|
||||
onMounted(() => {
|
||||
// 企微卡片 jump_path 带 order_no/line_no 直达:自动填入筛选并命中该行。
|
||||
const query = useRoute().query;
|
||||
if (typeof query.order_no === 'string' && query.order_no) {
|
||||
filters.order_no = query.order_no;
|
||||
Object.assign(appliedFilters, filters);
|
||||
}
|
||||
void loadLines();
|
||||
void loadLatestSync();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 全页统一字号:与表头一致(text-xs 12px),根容器设定基准,子元素不再覆写 -->
|
||||
<div class="flex min-h-screen flex-col gap-4 p-6 text-xs">
|
||||
<!-- 页头:标题 + 最近同步 + 手动刷新 -->
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<h1 class="font-bold text-primary">{{ t('workspace.nav.orderDeliveryReply') }}</h1>
|
||||
<span class="rounded-full px-3 py-1 text-xs" :class="latestSyncFailed ? 'bg-rose-50 text-rose-600' : 'bg-blue-50 text-blue-600'">
|
||||
{{ latestSyncText }}
|
||||
</span>
|
||||
<div class="flex-1" />
|
||||
<button v-if="canManage" type="button" class="btn-ghost" :disabled="syncing" @click="doSync">
|
||||
{{ syncing ? t('workspace.orderDeliveryReply.syncing') : t('workspace.orderDeliveryReply.syncNow') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 搜索区 -->
|
||||
<div class="flex flex-wrap items-end gap-4 rounded-2xl border border-default bg-surface px-4 py-4">
|
||||
<label class="flex flex-col gap-1 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.filterOrderNo') }}
|
||||
<input v-model="filters.order_no" class="h-9 min-w-[168px] rounded-lg border border-default px-3 text-primary outline-none focus:border-blue-500" :placeholder="t('workspace.orderDeliveryReply.filterOrderNoPh')" />
|
||||
</label>
|
||||
<label class="flex flex-col gap-1 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.filterProduct') }}
|
||||
<input v-model="filters.product_q" class="h-9 min-w-[200px] rounded-lg border border-default px-3 text-primary outline-none focus:border-blue-500" :placeholder="t('workspace.orderDeliveryReply.filterProductPh')" />
|
||||
</label>
|
||||
<label class="flex flex-col gap-1 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.filterCustomer') }}
|
||||
<input v-model="filters.customer_q" class="h-9 min-w-[150px] rounded-lg border border-default px-3 text-primary outline-none focus:border-blue-500" :placeholder="t('workspace.orderDeliveryReply.filterCustomerPh')" />
|
||||
</label>
|
||||
<label class="flex flex-col gap-1 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.filterOrderDate') }}
|
||||
<input v-model="filters.order_date" type="date" class="h-9 rounded-lg border border-default px-3 text-primary outline-none focus:border-blue-500" />
|
||||
</label>
|
||||
<label class="flex flex-col gap-1 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.filterStatus') }}
|
||||
<!-- 状态筛选选择即生效(无需再点查询);其余条件仍由「查询」统一提交 -->
|
||||
<select v-model="filters.status" class="h-9 min-w-[140px] rounded-lg border border-default bg-white px-3 text-primary outline-none focus:border-blue-500" @change="doSearch">
|
||||
<option value="">{{ t('workspace.orderDeliveryReply.statusAll') }}</option>
|
||||
<option value="replied">{{ t('workspace.orderDeliveryReply.statusReplied') }}</option>
|
||||
<option value="not_fully_replied">{{ t('workspace.orderDeliveryReply.statusNotFully') }}</option>
|
||||
</select>
|
||||
</label>
|
||||
<button type="button" class="btn-primary h-9" @click="doSearch">{{ t('workspace.orderDeliveryReply.search') }}</button>
|
||||
<button type="button" class="btn-ghost h-9" @click="doReset">{{ t('workspace.orderDeliveryReply.reset') }}</button>
|
||||
<div class="flex-1" />
|
||||
<span class="text-xs text-muted">{{ t('workspace.orderDeliveryReply.totalCount', { count: total }) }}</span>
|
||||
</div>
|
||||
|
||||
<!-- 工具栏:全选 + 联合回复 + 批量通知 -->
|
||||
<div class="flex flex-wrap items-center gap-3 rounded-2xl border border-default bg-surface px-4 py-3">
|
||||
<label class="flex items-center gap-2 text-primary">
|
||||
<input type="checkbox" class="h-4 w-4 rounded border-default text-blue-600" :checked="allChecked" :indeterminate.prop="someChecked" @change="togglePageAll(($event.target as HTMLInputElement).checked)" />
|
||||
{{ t('workspace.orderDeliveryReply.selectAll') }}
|
||||
</label>
|
||||
<span class="text-muted">{{ t('workspace.orderDeliveryReply.selectedCount', { count: selectedLines.length }) }}</span>
|
||||
<template v-if="canManage">
|
||||
<button type="button" class="btn-primary h-9" :disabled="selectedLines.length === 0" @click="openBatchReply">
|
||||
{{ t('workspace.orderDeliveryReply.batchReply') }}
|
||||
</button>
|
||||
<button type="button" class="btn-primary h-9" :disabled="notifiableSelected.length === 0 || notifying" @click="doNotifyBatch">
|
||||
{{ t('workspace.orderDeliveryReply.batchNotify') }}
|
||||
</button>
|
||||
</template>
|
||||
<div class="flex-1" />
|
||||
<span class="whitespace-nowrap rounded-full bg-slate-100 px-3 py-1 text-xs text-muted">{{ t('workspace.orderDeliveryReply.toolbarHint') }}</span>
|
||||
</div>
|
||||
|
||||
<!-- 列表 -->
|
||||
<div class="min-h-0 flex-1 overflow-auto rounded-2xl border border-default bg-surface">
|
||||
<table class="w-full border-collapse">
|
||||
<thead class="sticky top-0 z-10 bg-slate-50 text-xs text-muted [&_th]:whitespace-nowrap">
|
||||
<tr>
|
||||
<th class="w-10 px-2 py-2" />
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colCustomer') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colOrderDate') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colOrderLine') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colPartNo') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colCustomerPartNo') }}</th>
|
||||
<th class="px-2 py-2 text-right">{{ t('workspace.orderDeliveryReply.colQty') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colAgreedDate') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colStatus') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colReply') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colReplyPerson') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colSalesperson') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colCustomerPo') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colSpec') }}</th>
|
||||
<th class="px-2 py-2 text-left">{{ t('workspace.orderDeliveryReply.colUnit') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="line in items"
|
||||
:key="lineKey(line)"
|
||||
class="border-t border-default hover:bg-slate-50"
|
||||
:class="selected.includes(lineKey(line)) ? 'bg-blue-50/60' : ''"
|
||||
>
|
||||
<td class="px-2 py-2">
|
||||
<input type="checkbox" class="h-4 w-4 rounded border-default text-blue-600" :checked="selected.includes(lineKey(line))" @change="toggleLine(line, ($event.target as HTMLInputElement).checked)" />
|
||||
</td>
|
||||
<td class="px-2 py-2" :title="line.customer_full_name || line.customer_short_name || ''">
|
||||
<div>{{ line.customer_no || '—' }}</div>
|
||||
<div class="text-xs text-muted">{{ line.customer_short_name || '' }}</div>
|
||||
</td>
|
||||
<td class="whitespace-nowrap px-2 py-2">{{ line.order_date || '—' }}</td>
|
||||
<td class="whitespace-nowrap px-2 py-2 font-mono text-xs">{{ line.order_no }}:{{ line.line_no }}</td>
|
||||
<td class="px-2 py-2" :title="line.part_name || ''">
|
||||
<div class="whitespace-nowrap font-mono text-xs">{{ line.part_no || '—' }}</div>
|
||||
<div class="text-xs text-muted">{{ line.part_name || '' }}</div>
|
||||
</td>
|
||||
<td class="whitespace-nowrap px-2 py-2 font-mono text-xs">{{ line.customer_part_no || '—' }}</td>
|
||||
<td class="px-2 py-2 text-right tabular-nums">{{ line.qty ?? '—' }}</td>
|
||||
<td class="whitespace-nowrap px-2 py-2">{{ line.agreed_date || '—' }}</td>
|
||||
<td class="px-2 py-2">
|
||||
<span class="whitespace-nowrap rounded-full px-2.5 py-0.5 text-xs font-semibold" :class="statusMeta(line.status).cls">
|
||||
{{ statusMeta(line.status).label }}
|
||||
</span>
|
||||
</td>
|
||||
<!-- 交期回复:无批次=回复交期;有批次可展开;锁定=已锁定 -->
|
||||
<td class="px-2 py-2 align-top">
|
||||
<template v-if="line.batches.length === 0">
|
||||
<span class="text-muted">{{ t('workspace.orderDeliveryReply.statusNotReplied') }}</span>
|
||||
<div v-if="canManage" class="mt-1">
|
||||
<button type="button" class="rounded-md border border-blue-200 bg-blue-50 px-2 py-0.5 text-xs text-blue-600" @click="openSingleReply(line)">
|
||||
{{ t('workspace.orderDeliveryReply.replyAction') }}
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="rounded-full border border-default bg-slate-50 px-2 py-0.5 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.batchCount', { count: line.batches.length }) }} ·
|
||||
{{ t('workspace.orderDeliveryReply.repliedOf', { replied: repliedQty(line), remain: undelivered(line) }) }}
|
||||
<span v-if="repliedQty(line) > undelivered(line)" class="ml-1 font-semibold text-orange-500">{{ t('workspace.orderDeliveryReply.overTag') }}</span>
|
||||
</span>
|
||||
<button v-if="line.batches.length > 1" type="button" class="rounded-full border border-default px-2 py-0.5 text-xs text-blue-600" @click="toggleExpand(lineKey(line))">
|
||||
{{ expanded.includes(lineKey(line)) ? t('workspace.orderDeliveryReply.collapse') : t('workspace.orderDeliveryReply.expand', { count: line.batches.length - 1 }) }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt-1 flex flex-col gap-0.5">
|
||||
<div
|
||||
v-for="(batch, idx) in line.batches"
|
||||
:key="batch.seq ?? idx"
|
||||
v-show="expanded.includes(lineKey(line)) || idx === 0"
|
||||
class="rounded border-l-[3px] border-blue-500 bg-blue-50/50 px-2 py-0.5 text-xs text-secondary"
|
||||
>
|
||||
{{ batch.planned_date }} · <b class="text-blue-600">{{ batch.qty }}</b> {{ line.unit }}
|
||||
<i v-if="batch.remark" class="ml-1 not-italic text-muted">{{ batch.remark }}</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-1">
|
||||
<span v-if="line.locked" class="rounded-full bg-emerald-50 px-2.5 py-0.5 text-xs font-semibold text-emerald-600">{{ t('workspace.orderDeliveryReply.lockedTag') }}</span>
|
||||
<button v-else-if="canManage" type="button" class="rounded-md border border-blue-200 bg-blue-50 px-2 py-0.5 text-xs text-blue-600" @click="openSingleReply(line)">
|
||||
{{ t('workspace.orderDeliveryReply.editReplyAction') }}
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</td>
|
||||
<!-- 交期回复人员:锁定行附带已通知对象与时间(原「通知业务部门」列已取消,信息并入此处) -->
|
||||
<td class="px-2 py-2">
|
||||
<template v-if="line.notified_employee_id || line.notified_user_name">
|
||||
<div class="font-mono text-xs">{{ line.notified_employee_id || '' }}</div>
|
||||
<div class="text-xs text-muted">{{ line.notified_user_name || '' }}</div>
|
||||
<div v-if="line.locked" class="text-xs text-emerald-600">
|
||||
{{ t('workspace.orderDeliveryReply.notifiedTag', { name: line.salesperson_name || line.salesperson_code || '' }) }}
|
||||
<span class="text-muted">{{ line.notified_at || '' }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<span v-else class="text-muted">{{ t('workspace.orderDeliveryReply.pendingNotify') }}</span>
|
||||
</td>
|
||||
<!-- 业务员(副文案部门):与客户编号/简称同款合并展示,独立部门列已取消 -->
|
||||
<td class="px-2 py-2" :title="line.salesperson_code || ''">
|
||||
<div class="whitespace-nowrap">{{ line.salesperson_name || line.salesperson_code || '—' }}</div>
|
||||
<div class="text-xs text-muted">{{ line.dept_name || line.dept_code || '' }}</div>
|
||||
</td>
|
||||
<td class="whitespace-nowrap px-2 py-2 font-mono text-xs">{{ line.customer_po || '—' }}</td>
|
||||
<td class="px-2 py-2">{{ line.spec || '—' }}</td>
|
||||
<td class="px-2 py-2">{{ line.unit || '—' }}</td>
|
||||
</tr>
|
||||
<tr v-if="!loading && items.length === 0">
|
||||
<td colspan="15" class="px-4 py-16 text-center text-muted">{{ t('workspace.orderDeliveryReply.empty') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 分页:复用管理控制台-数据报表的 PaginationBar(摘要 + 每页条数 + 页码按钮) -->
|
||||
<PaginationBar
|
||||
class="[&_*]:!text-xs"
|
||||
:page="page"
|
||||
:page-size="pageSize"
|
||||
:total="total"
|
||||
:page-size-options="pageSizeOptions"
|
||||
@update:page="goToPage"
|
||||
@update:page-size="changePageSize"
|
||||
/>
|
||||
|
||||
<!-- 回复弹窗 -->
|
||||
<div v-if="modalVisible" class="fixed inset-0 z-50 flex items-center justify-center bg-slate-900/40" @click.self="modalVisible = false">
|
||||
<div class="flex max-h-[88vh] w-[min(960px,94vw)] flex-col overflow-hidden rounded-2xl bg-white shadow-2xl">
|
||||
<div class="flex items-center gap-3 border-b border-default px-5 py-4">
|
||||
<h3 class="font-bold text-primary">{{ modalTitle }}</h3>
|
||||
<div class="flex-1" />
|
||||
<button type="button" class="text-muted" @click="modalVisible = false">×</button>
|
||||
</div>
|
||||
<div class="flex-1 overflow-auto px-5 py-4">
|
||||
<!-- 快速统一交期 -->
|
||||
<div class="mb-4 flex flex-wrap items-end gap-3 rounded-xl border border-default bg-blue-50/40 px-4 py-3">
|
||||
<label class="flex flex-col gap-1 text-xs text-muted">
|
||||
{{ t('workspace.orderDeliveryReply.quickDate') }}
|
||||
<input v-model="quickDate" type="date" class="h-9 rounded-lg border border-default px-3 text-primary" />
|
||||
</label>
|
||||
<button type="button" class="h-9 rounded-lg border border-default px-3 text-primary" @click="applyQuickDate">
|
||||
{{ t('workspace.orderDeliveryReply.applyQuickDate') }}
|
||||
</button>
|
||||
<span class="text-xs text-muted">{{ t('workspace.orderDeliveryReply.modalHint') }}</span>
|
||||
</div>
|
||||
<!-- 每行批次编辑器 -->
|
||||
<div v-for="entry in modalLines" :key="lineKey(entry.line)" class="mb-4 overflow-hidden rounded-xl border border-default">
|
||||
<div class="flex flex-wrap items-center gap-2 bg-slate-50 px-3 py-2 text-xs">
|
||||
<span class="rounded bg-indigo-50 px-2 py-0.5 font-semibold text-indigo-600">{{ entry.line.order_no }}</span>
|
||||
<span>{{ t('workspace.orderDeliveryReply.itemLabel', { item: entry.line.line_no }) }}</span>
|
||||
<span class="text-muted">{{ entry.line.customer_no }} · {{ entry.line.customer_short_name }}</span>
|
||||
<span class="text-muted">{{ entry.line.part_no }} · {{ entry.line.part_name }}</span>
|
||||
<span class="ml-auto">
|
||||
{{ t('workspace.orderDeliveryReply.undeliveredLabel', { remain: undelivered(entry.line), unit: entry.line.unit || '' }) }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 px-3 py-3">
|
||||
<div v-for="(batch, idx) in entry.batches" :key="idx" class="grid grid-cols-[170px_120px_1fr_36px] items-center gap-2">
|
||||
<input v-model="batch.planned_date" type="date" class="h-9 rounded-lg border border-default px-2 text-primary" />
|
||||
<input v-model="batch.qty" type="number" min="0" :placeholder="t('workspace.orderDeliveryReply.qtyPh')" class="h-9 rounded-lg border border-default px-2 text-primary" />
|
||||
<input v-model="batch.remark" :placeholder="t('workspace.orderDeliveryReply.remarkPh')" class="h-9 rounded-lg border border-default px-2 text-primary" />
|
||||
<button type="button" class="h-9 rounded-lg bg-rose-50 text-rose-600" :title="t('workspace.orderDeliveryReply.removeBatch')" @click="entry.batches.splice(idx, 1)">✕</button>
|
||||
</div>
|
||||
<button type="button" class="w-full rounded-lg border border-dashed border-slate-300 py-2 text-blue-600" @click="entry.batches.push({ planned_date: '', qty: '', remark: '' })">
|
||||
{{ t('workspace.orderDeliveryReply.addBatch') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<p v-if="overQtyEntries.length" class="text-xs text-orange-500">
|
||||
{{ t('workspace.orderDeliveryReply.overWarning', { detail: overQtyEntries.map(({ entry, total }) => `${entry.line.order_no}:${entry.line.line_no} ${total} > ${undelivered(entry.line)}`).join(';') }) }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex justify-end gap-3 border-t border-default bg-slate-50 px-5 py-3">
|
||||
<button type="button" class="btn-ghost" @click="modalVisible = false">{{ t('common.cancel') }}</button>
|
||||
<button type="button" class="btn-primary" :disabled="saving" @click="saveReplies">
|
||||
{{ saving ? t('workspace.orderDeliveryReply.saving') : t('workspace.orderDeliveryReply.saveReply') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -18,6 +18,7 @@ export const WORKSPACE_PATHS = {
|
||||
accountingVoucherCheck: '/workspace/accounting-voucher-check',
|
||||
accountingVoucherCheckDetail: (runId: number | string) => `/workspace/accounting-voucher-check/runs/${runId}`,
|
||||
contractPayment: '/workspace/contract-payment',
|
||||
orderDeliveryReply: '/workspace/order-delivery-reply',
|
||||
contractPaymentReview: '/workspace/contract-payment/review',
|
||||
contractPaymentWeeklyBatches: '/workspace/contract-payment/weekly-batches',
|
||||
contractPaymentDetail: (contractId: number) => `/workspace/contract-payment/contracts/${contractId}`,
|
||||
@@ -37,6 +38,7 @@ export const LEGACY_VIEW_TO_PATH: Record<string, string> = {
|
||||
shipping_notice: WORKSPACE_PATHS.shippingNotice,
|
||||
accounting_voucher_check: WORKSPACE_PATHS.accountingVoucherCheck,
|
||||
contract_payment: WORKSPACE_PATHS.contractPayment,
|
||||
order_delivery_reply: WORKSPACE_PATHS.orderDeliveryReply,
|
||||
history: WORKSPACE_PATHS.history,
|
||||
};
|
||||
|
||||
|
||||
@@ -1197,6 +1197,10 @@
|
||||
"trainingLeanTeamManage": "Lean training team management",
|
||||
"contractPaymentAccess": "Contract payment alert access",
|
||||
"contractPaymentAccessHint": "Allows this user to open the contract payment workbench (ledger, review, weekly batches). Syncing OA, scanning alerts, and sending weekly alerts remain admin-only.",
|
||||
"orderDeliveryReplyManage": "Order Delivery Reply Manage",
|
||||
"orderDeliveryReplyManageHint": "Grants replying delivery batches, sending/batch notifications and manual ERP sync (production planning).",
|
||||
"orderDeliveryReplyAccess": "Order Delivery Reply Access",
|
||||
"orderDeliveryReplyAccessHint": "Grants read-only access to synced orders and replies (business users); managing requires the manage permission.",
|
||||
"password": "Password",
|
||||
"passwordHint": "(leave blank to keep)",
|
||||
"noAgents": "No agents available."
|
||||
@@ -1238,7 +1242,11 @@
|
||||
"delete": "Delete",
|
||||
"viewMembers": "View department members"
|
||||
},
|
||||
"members": { "title": "{name} Members", "count": "{count} members", "empty": "No members" },
|
||||
"members": {
|
||||
"title": "{name} Members",
|
||||
"count": "{count} members",
|
||||
"empty": "No members"
|
||||
},
|
||||
"fields": {
|
||||
"name": "Name",
|
||||
"namePlaceholder": "e.g. IT Department",
|
||||
@@ -1785,7 +1793,12 @@
|
||||
"employeeIdSource": "Employee ID Source",
|
||||
"mobileNormalize": "Normalize mobile number",
|
||||
"publicBaseUrl": "Public HTTPS base (extranet)",
|
||||
"userSelect": "Select user"
|
||||
"userSelect": "Select user",
|
||||
"callbackToken": "Callback Token",
|
||||
"encodingAesKey": "EncodingAESKey",
|
||||
"callbackUrl": "Callback URL",
|
||||
"homepageUrl": "Homepage URL",
|
||||
"trustedDomain": "Trusted Domain"
|
||||
},
|
||||
"bindModes": {
|
||||
"match_rules": "Match automatically",
|
||||
@@ -1898,8 +1911,23 @@
|
||||
"filterName": "Filter by Name/Username",
|
||||
"filterDept": "Filter by Department",
|
||||
"allRoles": "All Roles",
|
||||
"views": { "apps": "By Application", "members": "By Member" },
|
||||
"appHeaders": { "app": "Application", "type": "Type", "authorized": "Authorized", "actions": "Actions", "viewMembers": "View members", "accessHint": "Open member permissions", "memberHint": "Add or remove access to this application", "memberSearch": "Search name, username, employee ID, or department", "addMember": "Grant access", "removeMember": "Remove access", "noMembers": "No matching members" },
|
||||
"views": {
|
||||
"apps": "By Application",
|
||||
"members": "By Member"
|
||||
},
|
||||
"appHeaders": {
|
||||
"app": "Application",
|
||||
"type": "Type",
|
||||
"authorized": "Authorized",
|
||||
"actions": "Actions",
|
||||
"viewMembers": "View members",
|
||||
"accessHint": "Open member permissions",
|
||||
"memberHint": "Add or remove access to this application",
|
||||
"memberSearch": "Search name, username, employee ID, or department",
|
||||
"addMember": "Grant access",
|
||||
"removeMember": "Remove access",
|
||||
"noMembers": "No matching members"
|
||||
},
|
||||
"headers": {
|
||||
"user": "User",
|
||||
"realName": "Real Name",
|
||||
@@ -2045,7 +2073,7 @@
|
||||
"tokens_completion": "Completion Tokens",
|
||||
"total_tokens": "Total Tokens",
|
||||
"latency_ms": "Latency (ms)",
|
||||
"latency": "Latency",
|
||||
"latency": "Latency (ms)",
|
||||
"cost": "Cost",
|
||||
"ip": "IP",
|
||||
"user_agent": "User Agent",
|
||||
@@ -2064,7 +2092,6 @@
|
||||
"source_page": "Source Page",
|
||||
"risk_status": "Risk Status",
|
||||
"risk_score": "Risk Score",
|
||||
"latency": "Latency (ms)",
|
||||
"is_empty_answer": "Empty Answer",
|
||||
"is_system_failure": "System Failure",
|
||||
"feedback_score": "Rating",
|
||||
@@ -4954,11 +4981,177 @@
|
||||
}
|
||||
},
|
||||
"contractPayment": {
|
||||
"title": "Contract Payment Alerts", "subtitle": "Sync OA contract, acceptance, and vendor prepayment requests; notify procurement roles through three escalation rounds.", "sync": "Sync OA data", "forceSync": "Force overwrite OA fields", "forceSyncConfirm": "This will overwrite existing OA data with non-empty fields returned this time and record an audit trail. Continue?", "reparseExisting": "Reparse existing contracts", "reparseExistingConfirm": "This will refresh all existing contract parsing results from archived attachments using the current rules. OA fields will not be synced or overwritten. Continue?", "scanAlerts": "Scan to generate alerts", "jobSubmitted": "Job submitted", "actionFailed": "Action failed", "loadFailed": "Failed to load contracts", "searchPlaceholder": "Search contract number, purchase order, or supplier", "allStatus": "All", "search": "Search", "ledger": "Contract ledger", "items": "items", "empty": "No contract data", "purchaseOrder": "Purchase order", "supplier": "Supplier", "amount": "Contract amount", "deliveryDate": "Delivery due date", "timeline": "Payment plan timeline", "notAvailable": "—", "stats": {"contracts": "Contracts", "pendingParse": "Pending contracts", "readyPlans": "Plans ready", "alerts": "Alert nodes"}, "ledgerFocus": {"due": "Due soon", "dueHint": "within 7 days", "overdue": "Overdue unpaid", "needsCompletion": "Needs completion", "dueThisMonth": "Due this month", "dueThisMonthHint": "this calendar month"}, "status": {"completed": "Completed", "needs_review": "Needs review", "pending": "Pending parse"}, "stateLabel": {"parsed": "Parsed", "needs_review": "Needs review", "pending": "Pending parse", "active": "Active"}, "nodeType": {"prepayment": "Prepayment", "shipment": "Shipment payment", "acceptance": "Acceptance payment", "warranty": "Warranty payment"}, "ruleConfirmed": "Confirmed", "prepaymentRule": "Alerts at 7/14/21 days after contract archival; request status comes from OA vendor prepayment requests.", "shipmentRule": "Alerts 7 days before delivery, on the due date, and 14 days after; request status comes from OA vendor prepayment requests.", "acceptanceRule": "Alerts at 30/40/60 days after acceptance archival; warranty alerts are 7 days before, on, and 14 days after maturity.", "pendingAlerts": "Pending alerts", "processing": "Payment initiated", "dataPending": "Data pending", "paid": "Paid", "amountRatioDate": "Amount / ratio · date", "applicant": "Applicant", "statusLabel": "Status", "contractPrefix": "Contract", "datePending": "Date pending", "statusNormal": "Normal", "statusNeedsCompletion": "Needs completion", "statusOverdue": "Overdue", "statusUpcoming": "Due soon", "statusActive": "In progress", "statusCompleted": "Completed", "totalPrefix": "Total", "contractSupplier": "Contract / supplier", "nextAlert": "Next alert", "triggerBasis": "Trigger basis", "alertDate": "Alert date", "alertFirstRound": "Round 1", "payDate": "Payment date", "processStatus": "Status", "owner": "Procurement owner", "oaData": "OA data", "contractRule": "Contract rule", "ownerDefault": "Procurement owner", "workflowNo": "Workflow number", "contractNoPending": "Contract number pending attachment parsing", "synced": "Synced", "detailSubtitle": "OA data, payment nodes, and WeCom alert records", "backToOverview": "Back to overview", "contractInfo": "OA contract details", "alertHistory": "Alert history", "alertRound": "Alert round {round}", "alertAudit": "Alert delivery record", "alertAuditEmpty": "No alert records", "alertNode": "Payment stage", "alertScheduledAt": "Scheduled date", "alertSentAt": "Sent at", "alertStatus": {"pending": "Pending", "sent": "Sent", "failed": "Failed"}, "roundValue": "Round {round}", "weeklyBatchesTitle": "Weekly Summary Batches", "weeklyBatchesSubtitle": "Review recipient-level payment-alert summaries, Excel attachments, and delivery records.", "weeklySend": "Send alerts", "weeklyBatchSubmitted": "Send alert job submitted", "weeklyBatchesLoadFailed": "Failed to load weekly summary batches", "batchNo": "Batch no.", "weekKey": "Week", "batchStatusLabel": "Delivery status", "batchTotal": "Summary count", "batchExcel": "Excel attachment", "batchSentAt": "Sent at", "weeklyBatchesEmpty": "No weekly summary batches", "weeklyPendingSummary": "{count} pending this week · next send {datetime}", "weeklyPendingCountOnly": "{count} pending this week", "downloadExcel": "Download Excel", "excelDownloadFailed": "Failed to download the alert attachment", "batchStatus": {"pending": "Pending", "sent": "Sent", "failed": "Failed", "processing": "Processing", "resolved": "Alerts stopped"}, "backToLedger": "Back", "detailLoadFailed": "Failed to load contract details", "detailLoading": "Loading contract details…", "detailOverview": "Contract Overview", "detailAttachments": "Original Attachments", "detailPaymentPlan": "Payment Plan", "detailAlertHistory": "Alert History", "archiveDate": "Contract archive date", "archiveDateHint": "This date is when the contract apLine truncated
|
||||
"title": "Contract Payment Alerts",
|
||||
"subtitle": "Sync OA contract, acceptance, and vendor prepayment requests; notify procurement roles through three escalation rounds.",
|
||||
"sync": "Sync OA data",
|
||||
"forceSync": "Force overwrite OA fields",
|
||||
"forceSyncConfirm": "This will overwrite existing OA data with non-empty fields returned this time and record an audit trail. Continue?",
|
||||
"reparseExisting": "Reparse existing contracts",
|
||||
"reparseExistingConfirm": "This will refresh all existing contract parsing results from archived attachments using the current rules. OA fields will not be synced or overwritten. Continue?",
|
||||
"scanAlerts": "Scan to generate alerts",
|
||||
"jobSubmitted": "Job submitted",
|
||||
"actionFailed": "Action failed",
|
||||
"loadFailed": "Failed to load contracts",
|
||||
"searchPlaceholder": "Search contract number, purchase order, or supplier",
|
||||
"allStatus": "All",
|
||||
"search": "Search",
|
||||
"ledger": "Contract ledger",
|
||||
"items": "items",
|
||||
"empty": "No contract data",
|
||||
"purchaseOrder": "Purchase order",
|
||||
"supplier": "Supplier",
|
||||
"amount": "Contract amount",
|
||||
"deliveryDate": "Delivery due date",
|
||||
"timeline": "Payment plan timeline",
|
||||
"notAvailable": "—",
|
||||
"stats": {
|
||||
"contracts": "Contracts",
|
||||
"pendingParse": "Pending contracts",
|
||||
"readyPlans": "Plans ready",
|
||||
"alerts": "Alert nodes"
|
||||
},
|
||||
"ledgerFocus": {
|
||||
"due": "Due soon",
|
||||
"dueHint": "within 7 days",
|
||||
"overdue": "Overdue unpaid",
|
||||
"needsCompletion": "Needs completion",
|
||||
"dueThisMonth": "Due this month",
|
||||
"dueThisMonthHint": "this calendar month"
|
||||
},
|
||||
"status": {
|
||||
"completed": "Completed",
|
||||
"needs_review": "Needs review",
|
||||
"pending": "Pending parse"
|
||||
},
|
||||
"stateLabel": {
|
||||
"parsed": "Parsed",
|
||||
"needs_review": "Needs review",
|
||||
"pending": "Pending parse",
|
||||
"active": "Active"
|
||||
},
|
||||
"nodeType": {
|
||||
"prepayment": "Prepayment",
|
||||
"shipment": "Shipment payment",
|
||||
"acceptance": "Acceptance payment",
|
||||
"warranty": "Warranty payment"
|
||||
},
|
||||
"ruleConfirmed": "Confirmed",
|
||||
"prepaymentRule": "Alerts at 7/14/21 days after contract archival; request status comes from OA vendor prepayment requests.",
|
||||
"shipmentRule": "Alerts 7 days before delivery, on the due date, and 14 days after; request status comes from OA vendor prepayment requests.",
|
||||
"acceptanceRule": "Alerts at 30/40/60 days after acceptance archival; warranty alerts are 7 days before, on, and 14 days after maturity.",
|
||||
"pendingAlerts": "Pending alerts",
|
||||
"processing": "Payment initiated",
|
||||
"dataPending": "Data pending",
|
||||
"paid": "Paid",
|
||||
"amountRatioDate": "Amount / ratio · date",
|
||||
"applicant": "Applicant",
|
||||
"statusLabel": "Status",
|
||||
"contractPrefix": "Contract",
|
||||
"datePending": "Date pending",
|
||||
"statusNormal": "Normal",
|
||||
"statusNeedsCompletion": "Needs completion",
|
||||
"statusOverdue": "Overdue",
|
||||
"statusUpcoming": "Due soon",
|
||||
"statusActive": "In progress",
|
||||
"statusCompleted": "Completed",
|
||||
"totalPrefix": "Total",
|
||||
"contractSupplier": "Contract / supplier",
|
||||
"nextAlert": "Next alert",
|
||||
"triggerBasis": "Trigger basis",
|
||||
"alertDate": "Alert date",
|
||||
"alertFirstRound": "Round 1",
|
||||
"payDate": "Payment date",
|
||||
"processStatus": "Status",
|
||||
"owner": "Procurement owner",
|
||||
"oaData": "OA data",
|
||||
"contractRule": "Contract rule",
|
||||
"ownerDefault": "Procurement owner",
|
||||
"workflowNo": "Workflow number",
|
||||
"contractNoPending": "Contract number pending attachment parsing",
|
||||
"synced": "Synced",
|
||||
"detailSubtitle": "OA data, payment nodes, and WeCom alert records",
|
||||
"backToOverview": "Back to overview",
|
||||
"contractInfo": "OA contract details",
|
||||
"alertHistory": "Alert history",
|
||||
"alertRound": "Alert round {round}",
|
||||
"alertAudit": "Alert delivery record",
|
||||
"alertAuditEmpty": "No alert records",
|
||||
"alertNode": "Payment stage",
|
||||
"alertScheduledAt": "Scheduled date",
|
||||
"alertSentAt": "Sent at",
|
||||
"alertStatus": {
|
||||
"pending": "Pending",
|
||||
"sent": "Sent",
|
||||
"failed": "Failed"
|
||||
},
|
||||
"roundValue": "Round {round}",
|
||||
"weeklyBatchesTitle": "Weekly Summary Batches",
|
||||
"weeklyBatchesSubtitle": "Review recipient-level payment-alert summaries, Excel attachments, and delivery records.",
|
||||
"weeklySend": "Send alerts",
|
||||
"weeklyBatchSubmitted": "Send alert job submitted",
|
||||
"weeklyBatchesLoadFailed": "Failed to load weekly summary batches",
|
||||
"batchNo": "Batch no.",
|
||||
"weekKey": "Week",
|
||||
"batchStatusLabel": "Delivery status",
|
||||
"batchTotal": "Summary count",
|
||||
"batchExcel": "Excel attachment",
|
||||
"batchSentAt": "Sent at",
|
||||
"weeklyBatchesEmpty": "No weekly summary batches",
|
||||
"weeklyPendingSummary": "{count} pending this week · next send {datetime}",
|
||||
"weeklyPendingCountOnly": "{count} pending this week",
|
||||
"downloadExcel": "Download Excel",
|
||||
"excelDownloadFailed": "Failed to download the alert attachment",
|
||||
"batchStatus": {
|
||||
"pending": "Pending",
|
||||
"sent": "Sent",
|
||||
"failed": "Failed",
|
||||
"processing": "Processing",
|
||||
"resolved": "Alerts stopped"
|
||||
},
|
||||
"backToLedger": "Back",
|
||||
"detailLoadFailed": "Failed to load contract details",
|
||||
"detailLoading": "Loading contract details…",
|
||||
"detailOverview": "Contract Overview",
|
||||
"detailAttachments": "Original Attachments",
|
||||
"detailPaymentPlan": "Payment Plan",
|
||||
"detailAlertHistory": "Alert History",
|
||||
"archiveDate": "Contract archive date",
|
||||
"archiveDateHint": "This date is when the contract application form was archived",
|
||||
"parseStatus": "Parsing status",
|
||||
"parseIssueTitle": "Parse issues",
|
||||
"planStatus": "Plan status",
|
||||
"attachmentsEmpty": "No archived original contract attachments",
|
||||
"downloadAttachment": "Download",
|
||||
"attachmentDownloadFailed": "Failed to download contract attachment",
|
||||
"paymentPlanEmpty": "No payment plan to display",
|
||||
"anchorDate": "Date basis",
|
||||
"nodeStatus": {
|
||||
"pending": "Pending",
|
||||
"active": "Active",
|
||||
"paid": "Paid",
|
||||
"processing": "Processing",
|
||||
"resolved": "Alerts stopped",
|
||||
"upcoming": "Due soon",
|
||||
"notStarted": "Not started",
|
||||
"overdue": "Overdue",
|
||||
"review": "Needs review"
|
||||
}
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "Contracts for Confirmation",
|
||||
"subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.",
|
||||
"searchPlaceholder": "Contract number, purchase order, or supplier",
|
||||
"loadFailed": "Failed to load contracts for confirmation",
|
||||
"contractWorkflow": "Contract / workflow number",
|
||||
"reason": "Reason for confirmation",
|
||||
"fallbackIssue": "Parsing result requires manual confirmation",
|
||||
"empty": "No contracts need confirmation"
|
||||
},
|
||||
"contractPaymentReparse": {
|
||||
"action": "Reparse contract original",
|
||||
"success": "Reparsed with attachment “{attachment}”",
|
||||
"failed": "Failed to reparse contract"
|
||||
},
|
||||
"contractPaymentReview": {"title": "Contracts for Confirmation", "subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.", "searchPlaceholder": "Contract number, purchase order, or supplier", "loadFailed": "Failed to load contracts for confirmation", "contractWorkflow": "Contract / workflow number", "reason": "Reason for confirmation", "fallbackIssue": "Parsing result requires manual confirmation", "empty": "No contracts need confirmation"},
|
||||
"contractPaymentReparse": {"action": "Reparse contract original", "success": "Reparsed with attachment “{attachment}”", "failed": "Failed to reparse contract"},
|
||||
"contractPaymentReview": {"title": "Contracts for Confirmation", "subtitle": "Contracts that do not match the equipment procurement synonym title groups, fail payment-ratio validation, or conflict with OA fields are excluded from payment alerts. Download the original contract to verify it.", "searchPlaceholder": "Contract number, purchase order, or supplier", "loadFailed": "Failed to load contracts for confirmation", "contractWorkflow": "Contract / workflow number", "reason": "Reason for confirmation", "fallbackIssue": "Parsing result requires manual confirmation", "empty": "No contracts need confirmation"},
|
||||
"procurementContract": {
|
||||
"title": "Procurement Contract Review",
|
||||
"subtitle": "Manage templates, risk red-line rules, and review history",
|
||||
|
||||
@@ -1,6 +1,20 @@
|
||||
{
|
||||
"generic": "Request failed.",
|
||||
"codes": {
|
||||
"ORDER_DELIVERY_REPLY.FORBIDDEN": "You do not have permission to view order delivery replies. Contact an administrator.",
|
||||
"ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "Order delivery line not found or no longer in sync scope.",
|
||||
"ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "Only platform administrators can grant permissions by department.",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "Please specify the department to grant permissions to.",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "Permission type must be manage or access.",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "Batch reply requires at least one line and at most 200 per request.",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "Batch notify requires at least one line and at most 200 per request.",
|
||||
"ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "The salesperson has no linked account or WeCom binding; notification cannot be sent.",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "WeCom notification failed. The line remains unlocked; please retry later.",
|
||||
"ORDER_DELIVERY_REPLY.LINE_LOCKED": "The delivery schedule of this line is locked after notification and cannot be modified.",
|
||||
"ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "You do not have manage permission for order delivery replies.",
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "Please provide at least one delivery batch.",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "Too many batches for a single line.",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "Invalid batch format. Check the date, quantity, or remark.",
|
||||
"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.",
|
||||
|
||||
@@ -113,7 +113,8 @@
|
||||
"contractPayment": "Contract Payment Alerts",
|
||||
"contractPaymentLedger": "Contract Ledger",
|
||||
"contractPaymentReview": "Contracts for Confirmation",
|
||||
"contractPaymentWeeklyBatches": "Weekly Summary Batches"
|
||||
"contractPaymentWeeklyBatches": "Weekly Summary Batches",
|
||||
"orderDeliveryReply": "Order Delivery Reply"
|
||||
},
|
||||
"kb": {
|
||||
"accessDenied": "Administrator access is required to open the knowledge base."
|
||||
@@ -280,8 +281,8 @@
|
||||
"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",
|
||||
"continueAction": "Continue",
|
||||
"recoveryTargets": "Prerequisite recovery",
|
||||
"actionSubmitted": "Action submitted",
|
||||
"submitting": "Submitting…",
|
||||
"readOnlyUseFooter": "Use the footer action bar to proceed",
|
||||
@@ -846,5 +847,99 @@
|
||||
"notifyExcel": "Excel",
|
||||
"downloadExcel": "Download Excel",
|
||||
"downloadExcelFailed": "Failed to download Excel"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"search": "Search",
|
||||
"reset": "Reset",
|
||||
"saving": "Saving…",
|
||||
"syncNow": "Refresh now",
|
||||
"syncing": "Syncing…",
|
||||
"syncNever": "Never synced",
|
||||
"syncAt": "Last sync: {time}",
|
||||
"syncRunning": "Sync in progress…",
|
||||
"syncFailedAt": "Last sync failed ({time}); list shows the last successful snapshot",
|
||||
"syncDone": "Sync completed, {count} lines",
|
||||
"syncSkipped": "A sync is already running; try again later",
|
||||
"syncFailedTitle": "Sync failed; last snapshot kept",
|
||||
"filterOrderNo": "Order No.",
|
||||
"filterOrderNoPh": "Enter order number",
|
||||
"filterProduct": "Part No. / Name / Customer Part",
|
||||
"filterProductPh": "Part number, name, or customer part number",
|
||||
"filterCustomer": "Customer No. / Short Name",
|
||||
"filterCustomerPh": "Customer number or short name",
|
||||
"filterOrderDate": "Order Date",
|
||||
"filterStatus": "Reply Status",
|
||||
"statusAll": "All",
|
||||
"statusReplied": "Replied",
|
||||
"statusNotFully": "Not fully replied",
|
||||
"statusNotReplied": "Not replied",
|
||||
"statusPartial": "Partially replied",
|
||||
"totalCount": "{count} product lines",
|
||||
"selectAll": "Select all (this page)",
|
||||
"selectedCount": "{count} lines selected",
|
||||
"batchReply": "+ Batch reply",
|
||||
"batchNotify": "Batch notify",
|
||||
"toolbarHint": "Batch reply only saves; click \"Batch notify\" to send and lock.",
|
||||
"colOrderLine": "Order : Item",
|
||||
"colOrderDate": "Order Date",
|
||||
"colCustomer": "Customer",
|
||||
"colSalesperson": "Salesperson",
|
||||
"colDept": "Department",
|
||||
"colCustomerPo": "Customer PO",
|
||||
"colPartNo": "Part No.",
|
||||
"colPartName": "Part Name",
|
||||
"colSpec": "Spec",
|
||||
"colCustomerPartNo": "Customer Part No.",
|
||||
"colAgreedDate": "Agreed Date",
|
||||
"colUnit": "Unit",
|
||||
"colQty": "Qty",
|
||||
"colDelivered": "Delivered",
|
||||
"colUndelivered": "Undelivered",
|
||||
"colStatus": "Reply Status",
|
||||
"colReply": "Delivery Reply",
|
||||
"colNotify": "Notify",
|
||||
"colReplyPerson": "Replied By",
|
||||
"batchCount": "{count} batches",
|
||||
"repliedOf": "replied {replied}/{remain}",
|
||||
"overTag": "OVER",
|
||||
"collapse": "Collapse ▲",
|
||||
"expand": "+{count} more ▾",
|
||||
"lockedTag": "Locked",
|
||||
"replyAction": "Reply",
|
||||
"editReplyAction": "Edit reply",
|
||||
"notifiedTag": "Notified {name}",
|
||||
"replyFirst": "Reply first",
|
||||
"notifyAction": "Send notification",
|
||||
"pendingNotify": "Recorded after notify",
|
||||
"empty": "No matching order lines",
|
||||
"pageInfo": "Page {page} / {pages}",
|
||||
"modalTitleSingle": "Reply · {order} / item {item}",
|
||||
"modalTitleBatch": "Batch reply ({count} lines)",
|
||||
"quickDate": "Quick unified date",
|
||||
"applyQuickDate": "Apply to all",
|
||||
"modalHint": "Fill one date, or split into multiple date+qty batches; over-quantity is allowed with a warning only.",
|
||||
"itemLabel": "Item {item}",
|
||||
"undeliveredLabel": "Undelivered {remain} {unit}",
|
||||
"qtyPh": "Qty",
|
||||
"remarkPh": "Remark (optional)",
|
||||
"removeBatch": "Remove batch",
|
||||
"addBatch": "+ Add batch (date + qty + remark)",
|
||||
"overWarning": "⚠ These lines exceed undelivered qty (savable, warning only): {detail}",
|
||||
"saveReply": "Save reply",
|
||||
"noValidBatches": "Fill a date and quantity for at least one line",
|
||||
"saveSingleDone": "Batches saved (not notified; still editable)",
|
||||
"saveBatchDone": "Saved batches for {ok} lines (not notified)",
|
||||
"saveBatchPartial": "Saved: {ok} ok, {fail} failed: {detail}",
|
||||
"saveFailedTitle": "Save failed",
|
||||
"loadFailed": "Failed to load order lines",
|
||||
"notifyConfirm": "Send to salesperson \"{salesperson}\"?\nYou have order {order}:{item} to fill/confirm/check delivery.\nThe schedule will be locked after sending.",
|
||||
"notifyDone": "Notified and locked: {order}:{item}",
|
||||
"notifyBatchConfirm": "Send notifications for {count} lines; successful lines will be locked. Continue?",
|
||||
"notifyPartial": "Partial success: {ok} ok, {fail} failed, {skip} skipped. Failed: {detail}",
|
||||
"notifyAllFailed": "All failed ({fail} lines): {detail}",
|
||||
"notifyBatchDone": "Notified and locked {ok} lines, skipped {skip}",
|
||||
"notifyFailedTitle": "Notification failed; line not locked",
|
||||
"entryHint": "Query orders, reply delivery, notify sales",
|
||||
"notNotified": "Not notified"
|
||||
}
|
||||
}
|
||||
@@ -1197,6 +1197,10 @@
|
||||
"trainingLeanTeamManage": "จัดการการฝึกอบรม Lean ระดับทีม",
|
||||
"contractPaymentAccess": "สิทธิ์แจ้งเตือนการชำระเงินตามสัญญา",
|
||||
"contractPaymentAccessHint": "เมื่อเปิดแล้ว ผู้ใช้นี้จะเข้าโต๊ะทำงานแจ้งเตือนการชำระเงินตามสัญญา (บัญชีสัญญา รายการรอยืนยัน และชุดสรุปรายสัปดาห์) ได้ การซิงก์ OA สแกนแจ้งเตือน และส่งสรุปรายสัปดาห์ใช้ได้เฉพาะผู้ดูแลระบบ",
|
||||
"orderDeliveryReplyManage": "จัดการการตอบกลับกำหนดส่ง",
|
||||
"orderDeliveryReplyManageHint": "เปิดสิทธิ์บันทึกงวดการส่ง ส่ง/แจ้งเตือนหลายรายการ และซิงค์ ERP ด้วยตนเอง (ฝ่ายวางแผนการผลิต)",
|
||||
"orderDeliveryReplyAccess": "ดูการตอบกลับกำหนดส่ง",
|
||||
"orderDeliveryReplyAccessHint": "เปิดสิทธิ์ดูอย่างอ่านอย่างเดียวสำหรับคำสั่งซื้อที่ซิงค์แล้ว (เจ้าหน้าที่ธุรกิจ)",
|
||||
"password": "รหัสผ่าน",
|
||||
"passwordHint": "(เว้นว่างไว้หากไม่ต้องการเปลี่ยน)",
|
||||
"noAgents": "ไม่มีตัวแทนที่ใช้ได้"
|
||||
@@ -1781,11 +1785,11 @@
|
||||
"firstLoginInputFields": "ฟิลด์ที่ใช้กรอกในครั้งแรก",
|
||||
"employeeIdSource": "แหล่งที่มาของรหัสพนักงาน",
|
||||
"mobileNormalize": "ปรับรูปแบบเบอร์โทรศัพท์",
|
||||
"callbackToken": "Callback Token",
|
||||
"callbackToken": "โทเคนคอลแบ็ก",
|
||||
"encodingAesKey": "EncodingAESKey",
|
||||
"callbackUrl": "Callback URL",
|
||||
"homepageUrl": "Application Homepage URL",
|
||||
"trustedDomain": "Trusted Domain",
|
||||
"callbackUrl": "URL คอลแบ็ก",
|
||||
"homepageUrl": "URL หน้าแรกแอป",
|
||||
"trustedDomain": "โดเมนที่เชื่อถือ",
|
||||
"publicBaseUrl": "Public HTTPS base"
|
||||
},
|
||||
"bindModes": {
|
||||
@@ -1899,8 +1903,23 @@
|
||||
"filterName": "กรองตามชื่อ/ชื่อผู้ใช้",
|
||||
"filterDept": "กรองตามแผนก",
|
||||
"allRoles": "ทุกบทบาท",
|
||||
"views": { "apps": "ตามแอปพลิเคชัน", "members": "ตามสมาชิก" },
|
||||
"appHeaders": { "app": "แอปพลิเคชัน", "type": "ประเภท", "authorized": "ผู้ได้รับอนุญาต", "actions": "การดำเนินการ", "viewMembers": "ดูสมาชิก", "accessHint": "เปิดสิทธิ์ของสมาชิก", "memberHint": "เพิ่มหรือลบสิทธิ์ของแอปนี้", "memberSearch": "ค้นหาชื่อ ชื่อผู้ใช้ รหัสพนักงาน หรือแผนก", "addMember": "มอบสิทธิ์", "removeMember": "ยกเลิกสิทธิ์", "noMembers": "ไม่พบสมาชิกที่ตรงกัน" },
|
||||
"views": {
|
||||
"apps": "ตามแอปพลิเคชัน",
|
||||
"members": "ตามสมาชิก"
|
||||
},
|
||||
"appHeaders": {
|
||||
"app": "แอปพลิเคชัน",
|
||||
"type": "ประเภท",
|
||||
"authorized": "ผู้ได้รับอนุญาต",
|
||||
"actions": "การดำเนินการ",
|
||||
"viewMembers": "ดูสมาชิก",
|
||||
"accessHint": "เปิดสิทธิ์ของสมาชิก",
|
||||
"memberHint": "เพิ่มหรือลบสิทธิ์ของแอปนี้",
|
||||
"memberSearch": "ค้นหาชื่อ ชื่อผู้ใช้ รหัสพนักงาน หรือแผนก",
|
||||
"addMember": "มอบสิทธิ์",
|
||||
"removeMember": "ยกเลิกสิทธิ์",
|
||||
"noMembers": "ไม่พบสมาชิกที่ตรงกัน"
|
||||
},
|
||||
"headers": {
|
||||
"user": "ผู้ใช้",
|
||||
"realName": "ชื่อจริง",
|
||||
@@ -2046,7 +2065,7 @@
|
||||
"tokens_completion": "โทเค็นผลลัพธ์",
|
||||
"total_tokens": "โทเค็นรวม",
|
||||
"latency_ms": "ความหน่วง (ms)",
|
||||
"latency": "ความหน่วง",
|
||||
"latency": "เวลาแฝง (ms)",
|
||||
"cost": "ค่าใช้จ่าย",
|
||||
"ip": "IP",
|
||||
"user_agent": "User Agent",
|
||||
@@ -2062,7 +2081,6 @@
|
||||
"reset_token_expiry": "เวลาหมดอายุโทเค็นรีเซ็ต",
|
||||
"risk_status": "สถานะความเสี่ยง",
|
||||
"risk_score": "คะแนนความเสี่ยง",
|
||||
"latency": "เวลาแฝง (ms)",
|
||||
"is_empty_answer": "คำตอบว่าง",
|
||||
"is_system_failure": "ระบบล้มเหลว",
|
||||
"feedback_score": "คะแนน",
|
||||
@@ -4820,11 +4838,177 @@
|
||||
}
|
||||
},
|
||||
"contractPayment": {
|
||||
"title": "แจ้งเตือนการชำระเงินตามสัญญา", "subtitle": "ซิงก์สัญญา OA การรับมอบ และคำขอเบิกเงินล่วงหน้าของผู้ขาย พร้อมแจ้งเตือน 3 ระดับ", "sync": "ซิงก์ข้อมูล OA", "forceSync": "เขียนทับฟิลด์ OA แบบบังคับ", "forceSyncConfirm": "ระบบจะเขียนทับข้อมูล OA เดิมด้วยฟิลด์ที่ไม่ว่างจาก OA ครั้งนี้และบันทึกการตรวจสอบ ต้องการดำเนินการต่อหรือไม่?", "reparseExisting": "แยกวิเคราะห์สัญญาเดิมทั้งหมดใหม่", "reparseExistingConfirm": "ระบบจะรีเฟรชผลการแยกข้อมูลของสัญญาเดิมทั้งหมดจากไฟล์แนบที่จัดเก็บตามกฎปัจจุบัน โดยจะไม่ซิงก์หรือเขียนทับฟิลด์ OA ต้องการดำเนินการต่อหรือไม่?", "scanAlerts": "สแกนเพื่อสร้างแจ้งเตือน", "jobSubmitted": "ส่งงานแล้ว", "actionFailed": "ดำเนินการไม่สำเร็จ", "loadFailed": "โหลดสัญญาไม่สำเร็จ", "searchPlaceholder": "ค้นหาเลขที่สัญญา ใบสั่งซื้อ หรือผู้ขาย", "allStatus": "ทั้งหมด", "search": "ค้นหา", "ledger": "ทะเบียนสัญญา", "items": "รายการ", "empty": "ไม่มีข้อมูลสัญญา", "purchaseOrder": "ใบสั่งซื้อ", "supplier": "ผู้ขาย", "amount": "มูลค่าสัญญา", "deliveryDate": "กำหนดส่งมอบ", "timeline": "ไทม์ไลน์แผนการชำระเงิน", "notAvailable": "—", "stats": {"contracts": "สัญญา", "pendingParse": "สัญญาที่รอดำเนินการ", "readyPlans": "แผนพร้อมใช้", "alerts": "จุดแจ้งเตือน"}, "ledgerFocus": {"due": "ใกล้ครบกำหนด", "dueHint": "ใน 7 วัน", "overdue": "ค้างชำระเกินกำหนด", "needsCompletion": "รอข้อมูลเพิ่ม", "dueThisMonth": "ถึงกำหนดเดือนนี้", "dueThisMonthHint": "เดือนปฏิทินนี้"}, "status": {"completed": "เสร็จสิ้น", "needs_review": "ต้องตรวจสอบ", "pending": "รอแยกข้อมูล"}, "stateLabel": {"parsed": "แยกข้อมูลแล้ว", "needs_review": "ต้องตรวจสอบ", "pending": "รอแยกข้อมูล", "active": "ใช้งานอยู่"}, "nodeType": {"prepayment": "เงินล่วงหน้า", "shipment": "เงินก่อนส่ง", "acceptance": "เงินรับมอบ", "warranty": "เงินประกัน"}, "ruleConfirmed": "ยืนยันแล้ว", "prepaymentRule": "แจ้งเตือนวันที่ 7/14/21 หลังจัดเก็บสัญญา; สถานะคำขออ้างอิง OA.", "shipmentRule": "แจ้งเตือนก่อนกำหนดส่ง 7 วัน วันครบกำหนด และหลังครบกำหนด 14 วัน; สถานะคำขออ้างอิง OA.", "acceptanceRule": "แจ้งเตือนวันที่ 30/40/60 หลังจัดเก็บใบรับมอบ; เงินประกันแจ้งก่อนครบกำหนด 7 วัน วันครบกำหนด และหลังครบกำหนด 14 วัน.", "pendingAlerts": "แจ้งเตือนที่รอดำเนินการ", "processing": "เริ่มชำระแล้ว", "dataPending": "รอข้อมูล", "paid": "ชำระแล้ว", "amountRatioDate": "จำนวนเงิน / สัดส่วน · วันที่", "applicant": "ผู้ขอ", "statusLabel": "สถานะ", "contractPrefix": "สัญญา", "datePending": "รอระบุวันที่", "statusNormal": "ปกติ", "statusNeedsCompletion": "ต้องเติมข้อมูล", "statusOverdue": "เกินกำหนดชำระ", "statusUpcoming": "ใกล้ถึงกำหนด", "statusActive": "กำลังดำเนินการ", "statusLine truncated
|
||||
"title": "แจ้งเตือนการชำระเงินตามสัญญา",
|
||||
"subtitle": "ซิงก์สัญญา OA การรับมอบ และคำขอเบิกเงินล่วงหน้าของผู้ขาย พร้อมแจ้งเตือน 3 ระดับ",
|
||||
"sync": "ซิงก์ข้อมูล OA",
|
||||
"forceSync": "เขียนทับฟิลด์ OA แบบบังคับ",
|
||||
"forceSyncConfirm": "ระบบจะเขียนทับข้อมูล OA เดิมด้วยฟิลด์ที่ไม่ว่างจาก OA ครั้งนี้และบันทึกการตรวจสอบ ต้องการดำเนินการต่อหรือไม่?",
|
||||
"reparseExisting": "แยกวิเคราะห์สัญญาเดิมทั้งหมดใหม่",
|
||||
"reparseExistingConfirm": "ระบบจะรีเฟรชผลการแยกข้อมูลของสัญญาเดิมทั้งหมดจากไฟล์แนบที่จัดเก็บตามกฎปัจจุบัน โดยจะไม่ซิงก์หรือเขียนทับฟิลด์ OA ต้องการดำเนินการต่อหรือไม่?",
|
||||
"scanAlerts": "สแกนเพื่อสร้างแจ้งเตือน",
|
||||
"jobSubmitted": "ส่งงานแล้ว",
|
||||
"actionFailed": "ดำเนินการไม่สำเร็จ",
|
||||
"loadFailed": "โหลดสัญญาไม่สำเร็จ",
|
||||
"searchPlaceholder": "ค้นหาเลขที่สัญญา ใบสั่งซื้อ หรือผู้ขาย",
|
||||
"allStatus": "ทั้งหมด",
|
||||
"search": "ค้นหา",
|
||||
"ledger": "ทะเบียนสัญญา",
|
||||
"items": "รายการ",
|
||||
"empty": "ไม่มีข้อมูลสัญญา",
|
||||
"purchaseOrder": "ใบสั่งซื้อ",
|
||||
"supplier": "ผู้ขาย",
|
||||
"amount": "มูลค่าสัญญา",
|
||||
"deliveryDate": "กำหนดส่งมอบ",
|
||||
"timeline": "ไทม์ไลน์แผนการชำระเงิน",
|
||||
"notAvailable": "—",
|
||||
"stats": {
|
||||
"contracts": "สัญญา",
|
||||
"pendingParse": "สัญญาที่รอดำเนินการ",
|
||||
"readyPlans": "แผนพร้อมใช้",
|
||||
"alerts": "จุดแจ้งเตือน"
|
||||
},
|
||||
"ledgerFocus": {
|
||||
"due": "ใกล้ครบกำหนด",
|
||||
"dueHint": "ใน 7 วัน",
|
||||
"overdue": "ค้างชำระเกินกำหนด",
|
||||
"needsCompletion": "รอข้อมูลเพิ่ม",
|
||||
"dueThisMonth": "ถึงกำหนดเดือนนี้",
|
||||
"dueThisMonthHint": "เดือนปฏิทินนี้"
|
||||
},
|
||||
"status": {
|
||||
"completed": "เสร็จสิ้น",
|
||||
"needs_review": "ต้องตรวจสอบ",
|
||||
"pending": "รอแยกข้อมูล"
|
||||
},
|
||||
"stateLabel": {
|
||||
"parsed": "แยกข้อมูลแล้ว",
|
||||
"needs_review": "ต้องตรวจสอบ",
|
||||
"pending": "รอแยกข้อมูล",
|
||||
"active": "ใช้งานอยู่"
|
||||
},
|
||||
"nodeType": {
|
||||
"prepayment": "เงินล่วงหน้า",
|
||||
"shipment": "เงินก่อนส่ง",
|
||||
"acceptance": "เงินรับมอบ",
|
||||
"warranty": "เงินประกัน"
|
||||
},
|
||||
"ruleConfirmed": "ยืนยันแล้ว",
|
||||
"prepaymentRule": "แจ้งเตือนวันที่ 7/14/21 หลังจัดเก็บสัญญา; สถานะคำขออ้างอิง OA.",
|
||||
"shipmentRule": "แจ้งเตือนก่อนกำหนดส่ง 7 วัน วันครบกำหนด และหลังครบกำหนด 14 วัน; สถานะคำขออ้างอิง OA.",
|
||||
"acceptanceRule": "แจ้งเตือนวันที่ 30/40/60 หลังจัดเก็บใบรับมอบ; เงินประกันแจ้งก่อนครบกำหนด 7 วัน วันครบกำหนด และหลังครบกำหนด 14 วัน.",
|
||||
"pendingAlerts": "แจ้งเตือนที่รอดำเนินการ",
|
||||
"processing": "เริ่มชำระแล้ว",
|
||||
"dataPending": "รอข้อมูล",
|
||||
"paid": "ชำระแล้ว",
|
||||
"amountRatioDate": "จำนวนเงิน / สัดส่วน · วันที่",
|
||||
"applicant": "ผู้ขอ",
|
||||
"statusLabel": "สถานะ",
|
||||
"contractPrefix": "สัญญา",
|
||||
"datePending": "รอระบุวันที่",
|
||||
"statusNormal": "ปกติ",
|
||||
"statusNeedsCompletion": "ต้องเติมข้อมูล",
|
||||
"statusOverdue": "เกินกำหนดชำระ",
|
||||
"statusUpcoming": "ใกล้ถึงกำหนด",
|
||||
"statusActive": "กำลังดำเนินการ",
|
||||
"statusCompleted": "เสร็จสิ้น",
|
||||
"totalPrefix": "รวม",
|
||||
"contractSupplier": "สัญญา / ผู้ขาย",
|
||||
"nextAlert": "แจ้งเตือนถัดไป",
|
||||
"triggerBasis": "เกณฑ์เริ่ม",
|
||||
"alertDate": "วันที่แจ้งเตือน",
|
||||
"alertFirstRound": "รอบ 1",
|
||||
"payDate": "วันที่ชำระเงิน",
|
||||
"processStatus": "สถานะ",
|
||||
"owner": "ผู้รับผิดชอบจัดซื้อ",
|
||||
"oaData": "ข้อมูล OA",
|
||||
"contractRule": "กฎสัญญา",
|
||||
"ownerDefault": "ผู้รับผิดชอบจัดซื้อ",
|
||||
"workflowNo": "เลขที่เวิร์กโฟลว์",
|
||||
"contractNoPending": "รอแยกเลขที่สัญญาจากไฟล์แนบ",
|
||||
"synced": "ซิงก์แล้ว",
|
||||
"detailSubtitle": "ข้อมูล OA จุดชำระเงิน และประวัติแจ้งเตือน WeCom",
|
||||
"backToOverview": "กลับภาพรวม",
|
||||
"contractInfo": "ข้อมูลสัญญา OA",
|
||||
"alertHistory": "ประวัติแจ้งเตือน",
|
||||
"alertRound": "รอบแจ้งเตือน {round}",
|
||||
"alertAudit": "บันทึกการส่งแจ้งเตือน",
|
||||
"alertAuditEmpty": "ยังไม่มีบันทึกการแจ้งเตือน",
|
||||
"alertNode": "ขั้นตอนการชำระเงิน",
|
||||
"alertScheduledAt": "วันที่กำหนดส่ง",
|
||||
"alertSentAt": "เวลาที่ส่ง",
|
||||
"alertStatus": {
|
||||
"pending": "รอส่ง",
|
||||
"sent": "ส่งแล้ว",
|
||||
"failed": "ส่งไม่สำเร็จ"
|
||||
},
|
||||
"roundValue": "ครั้งที่ {round}",
|
||||
"weeklyBatchesTitle": "ชุดสรุปรายสัปดาห์",
|
||||
"weeklyBatchesSubtitle": "ดูสรุปการแจ้งเตือนการชำระเงินตามผู้รับ ไฟล์ Excel และบันทึกการส่ง",
|
||||
"weeklySend": "ส่งแจ้งเตือน",
|
||||
"weeklyBatchSubmitted": "ส่งงานส่งแจ้งเตือนแล้ว",
|
||||
"weeklyBatchesLoadFailed": "โหลดชุดสรุปรายสัปดาห์ไม่สำเร็จ",
|
||||
"batchNo": "หมายเลขชุด",
|
||||
"weekKey": "สัปดาห์",
|
||||
"batchStatusLabel": "สถานะการส่ง",
|
||||
"batchTotal": "จำนวนสรุป",
|
||||
"batchExcel": "ไฟล์แนบ Excel",
|
||||
"batchSentAt": "เวลาที่ส่ง",
|
||||
"weeklyBatchesEmpty": "ยังไม่มีชุดสรุปรายสัปดาห์",
|
||||
"weeklyPendingSummary": "รอส่ง {count} รายการในสัปดาห์นี้ · ส่งครั้งถัดไป {datetime}",
|
||||
"weeklyPendingCountOnly": "รอส่ง {count} รายการในสัปดาห์นี้",
|
||||
"downloadExcel": "ดาวน์โหลด Excel",
|
||||
"excelDownloadFailed": "ดาวน์โหลดไฟล์แนบการแจ้งเตือนไม่สำเร็จ",
|
||||
"batchStatus": {
|
||||
"pending": "รอส่ง",
|
||||
"sent": "ส่งแล้ว",
|
||||
"failed": "ส่งไม่สำเร็จ",
|
||||
"processing": "กำลังดำเนินการ",
|
||||
"resolved": "หยุดการแจ้งเตือนแล้ว"
|
||||
},
|
||||
"backToLedger": "กลับ",
|
||||
"detailLoadFailed": "โหลดรายละเอียดสัญญาไม่สำเร็จ",
|
||||
"detailLoading": "กำลังโหลดรายละเอียดสัญญา…",
|
||||
"detailOverview": "ภาพรวมสัญญา",
|
||||
"detailAttachments": "ไฟล์แนบต้นฉบับ",
|
||||
"detailPaymentPlan": "แผนการชำระเงิน",
|
||||
"detailAlertHistory": "ประวัติการแจ้งเตือน",
|
||||
"archiveDate": "วันที่จัดเก็บสัญญา",
|
||||
"archiveDateHint": "วันที่นี้คือวันที่เก็บถาวรของแบบฟอร์มคำขอสัญญา",
|
||||
"parseStatus": "สถานะการแยกข้อมูล",
|
||||
"parseIssueTitle": "ปัญหาการแยกข้อมูล",
|
||||
"planStatus": "สถานะแผน",
|
||||
"attachmentsEmpty": "ยังไม่มีไฟล์สัญญาต้นฉบับที่จัดเก็บ",
|
||||
"downloadAttachment": "ดาวน์โหลด",
|
||||
"attachmentDownloadFailed": "ดาวน์โหลดไฟล์แนบสัญญาไม่สำเร็จ",
|
||||
"paymentPlanEmpty": "ไม่มีแผนการชำระเงินที่แสดงได้",
|
||||
"anchorDate": "เกณฑ์วันที่",
|
||||
"nodeStatus": {
|
||||
"pending": "รอดำเนินการ",
|
||||
"active": "กำลังดำเนินการ",
|
||||
"paid": "ชำระแล้ว",
|
||||
"processing": "กำลังประมวลผล",
|
||||
"resolved": "หยุดการแจ้งเตือนแล้ว",
|
||||
"upcoming": "ใกล้ถึงกำหนด",
|
||||
"notStarted": "รอเริ่ม",
|
||||
"overdue": "เกินกำหนดชำระ",
|
||||
"review": "ต้องตรวจสอบ"
|
||||
}
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "สัญญาที่รอยืนยัน",
|
||||
"subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ",
|
||||
"searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ หรือผู้ขาย",
|
||||
"loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ",
|
||||
"contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์",
|
||||
"reason": "เหตุผลที่ต้องยืนยัน",
|
||||
"fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้",
|
||||
"empty": "ไม่มีสัญญาที่รอยืนยัน"
|
||||
},
|
||||
"contractPaymentReparse": {
|
||||
"action": "แยกข้อมูลจากต้นฉบับอีกครั้ง",
|
||||
"success": "แยกข้อมูลใหม่ด้วยไฟล์แนบ “{attachment}” แล้ว",
|
||||
"failed": "แยกข้อมูลสัญญาใหม่ไม่สำเร็จ"
|
||||
},
|
||||
"contractPaymentReview": {"title": "สัญญาที่รอยืนยัน", "subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ", "searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ หรือผู้ขาย", "loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ", "contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์", "reason": "เหตุผลที่ต้องยืนยัน", "fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้", "empty": "ไม่มีสัญญาที่รอยืนยัน"},
|
||||
"contractPaymentReparse": {"action": "แยกข้อมูลจากต้นฉบับอีกครั้ง", "success": "แยกข้อมูลใหม่ด้วยไฟล์แนบ “{attachment}” แล้ว", "failed": "แยกข้อมูลสัญญาใหม่ไม่สำเร็จ"},
|
||||
"contractPaymentReview": {"title": "สัญญาที่รอยืนยัน", "subtitle": "สัญญาที่ไม่ตรงกับกลุ่มหัวข้อคำพ้องของสัญญาจัดซื้ออุปกรณ์ ตรวจสอบสัดส่วนการชำระเงินไม่ผ่าน หรือขัดแย้งกับฟิลด์ OA จะไม่เข้าสู่การแจ้งเตือนการชำระเงิน โปรดดาวน์โหลดต้นฉบับเพื่อตรวจสอบ", "searchPlaceholder": "เลขที่สัญญา ใบสั่งซื้อ หรือผู้ขาย", "loadFailed": "โหลดสัญญาที่รอยืนยันไม่สำเร็จ", "contractWorkflow": "เลขที่สัญญา / เวิร์กโฟลว์", "reason": "เหตุผลที่ต้องยืนยัน", "fallbackIssue": "ผลการแยกข้อมูลต้องยืนยันโดยผู้ใช้", "empty": "ไม่มีสัญญาที่รอยืนยัน"},
|
||||
"procurementContract": {
|
||||
"title": "ตรวจสอบสัญญาจัดซื้อ",
|
||||
"subtitle": "จัดการเทมเพลต กฎเส้นแดงความเสี่ยง และประวัติการตรวจสอบ",
|
||||
|
||||
@@ -1,6 +1,20 @@
|
||||
{
|
||||
"generic": "คำขอล้มเหลว",
|
||||
"codes": {
|
||||
"ORDER_DELIVERY_REPLY.FORBIDDEN": "คุณไม่มีสิทธิ์ดูการตอบกลับกำหนดส่งคำสั่งซื้อ โปรดติดต่อผู้ดูแลระบบ",
|
||||
"ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "ไม่พบรายการคำสั่งซื้อ หรือไม่อยู่ในขอบเขตการซิงค์แล้ว",
|
||||
"ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "เฉพาะผู้ดูแลระบบเท่านั้นที่ออกสิทธิ์ตามแผนกได้",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "โปรดระบุแผนกที่จะออกสิทธิ์",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "ประเภทสิทธิ์ต้องเป็น manage หรือ access",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "การตอบกลับหลายรายการต้องมีอย่างน้อยหนึ่งรายการ และไม่เกิน 200 รายการต่อครั้ง",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "การแจ้งเตือนหลายรายการต้องมีอย่างน้อยหนึ่งรายการ และไม่เกิน 200 รายการต่อครั้ง",
|
||||
"ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "พนักงานขายไม่ได้เชื่อมโยงบัญชีระบบหรือยังไม่ได้ผูก WeCom จึงส่งแจ้งเตือนไม่ได้",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "ส่งแจ้งเตือน WeCom ไม่สำเร็จ รายการยังไม่ถูกล็อก โปรดลองอีกครั้ง",
|
||||
"ORDER_DELIVERY_REPLY.LINE_LOCKED": "กำหนดส่งของรายการนี้ถูกล็อกหลังแจ้งแล้ว ไม่สามารถแก้ไขได้",
|
||||
"ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "คุณไม่มีสิทธิ์ดำเนินการตอบกลับกำหนดส่งคำสั่งซื้อ",
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "กรุณาระบุอย่างน้อยหนึ่งงวดการส่งมอบ",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "จำนวนงวดเกินขีดจำกัดของรายการเดียว",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "รูปแบบงวดไม่ถูกต้อง โปรดตรวจสอบวันที่ จำนวน หรือหมายเหตุ",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "นโยบายการปฏิบัติตามหรือการผูกความสามารถของฟิลด์ไม่ถูกต้อง",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "ไม่พบนโยบายการปฏิบัติตาม",
|
||||
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "นโยบายการปฏิบัติตามถูกแก้ไขโดยผู้ดูแลรายอื่น โปรดรีเฟรชแล้วลองใหม่",
|
||||
|
||||
@@ -104,7 +104,8 @@
|
||||
"contractPayment": "การแจ้งเตือนการชำระเงินตามสัญญา",
|
||||
"contractPaymentLedger": "ทะเบียนสัญญา",
|
||||
"contractPaymentReview": "สัญญาที่รอยืนยัน",
|
||||
"contractPaymentWeeklyBatches": "ชุดสรุปรายสัปดาห์"
|
||||
"contractPaymentWeeklyBatches": "ชุดสรุปรายสัปดาห์",
|
||||
"orderDeliveryReply": "ตอบกลับกำหนดส่งคำสั่งซื้อ"
|
||||
},
|
||||
"receiptReports": {
|
||||
"title": "ไฟล์รับสินค้า",
|
||||
@@ -782,5 +783,99 @@
|
||||
"notifyExcel": "Excel",
|
||||
"downloadExcel": "ดาวน์โหลด Excel",
|
||||
"downloadExcelFailed": "ดาวน์โหลด Excel ไม่สำเร็จ"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"search": "ค้นหา",
|
||||
"reset": "ล้าง",
|
||||
"saving": "กำลังบันทึก…",
|
||||
"syncNow": "รีเฟรชตอนนี้",
|
||||
"syncing": "กำลังซิงค์…",
|
||||
"syncNever": "ยังไม่เคยซิงค์",
|
||||
"syncAt": "ซิงค์ล่าสุด: {time}",
|
||||
"syncRunning": "กำลังซิงค์…",
|
||||
"syncFailedAt": "ซิงค์ล่าสุดล้มเหลว ({time}) รายการเป็นภาพรวมครั้งล่าสุดที่สำเร็จ",
|
||||
"syncDone": "ซิงค์สำเร็จ รวม {count} รายการ",
|
||||
"syncSkipped": "มีการซิงค์กำลังทำงานอยู่ โปรดลองอีกครั้งภายหลัง",
|
||||
"syncFailedTitle": "ซิงค์ล้มเหลว ยังคงภาพรวมเดิมไว้",
|
||||
"filterOrderNo": "เลขที่คำสั่งซื้อ",
|
||||
"filterOrderNoPh": "กรอกเลขที่คำสั่งซื้อ",
|
||||
"filterProduct": "รหัสสินค้า / ชื่อ / รหัสลูกค้า",
|
||||
"filterProductPh": "รหัสสินค้า ชื่อสินค้า หรือรหัสสินค้าของลูกค้า",
|
||||
"filterCustomer": "รหัสลูกค้า / ชื่อย่อ",
|
||||
"filterCustomerPh": "รหัสลูกค้าหรือชื่อย่อ",
|
||||
"filterOrderDate": "วันที่สั่งซื้อ",
|
||||
"filterStatus": "สถานะการตอบกลับ",
|
||||
"statusAll": "ทั้งหมด",
|
||||
"statusReplied": "ตอบกลับแล้ว",
|
||||
"statusNotFully": "ยังตอบไม่ครบ",
|
||||
"statusNotReplied": "ยังไม่ตอบกลับ",
|
||||
"statusPartial": "ตอบบางส่วน",
|
||||
"totalCount": "รวม {count} รายการสินค้า",
|
||||
"selectAll": "เลือกทั้งหมด (หน้านี้)",
|
||||
"selectedCount": "เลือกแล้ว {count} รายการ",
|
||||
"batchReply": "+ ตอบกลับหลายรายการ",
|
||||
"batchNotify": "แจ้งเตือนหลายรายการ",
|
||||
"toolbarHint": "การตอบกลับหลายรายการเป็นเพียงบันทึก ต้องกดแจ้งเตือนจึงจะส่งและล็อก",
|
||||
"colOrderLine": "เลขที่ : รายการ",
|
||||
"colOrderDate": "วันที่สั่งซื้อ",
|
||||
"colCustomer": "ลูกค้า",
|
||||
"colSalesperson": "พนักงานขาย",
|
||||
"colDept": "แผนก",
|
||||
"colCustomerPo": "PO ลูกค้า",
|
||||
"colPartNo": "รหัสสินค้า",
|
||||
"colPartName": "ชื่อสินค้า",
|
||||
"colSpec": "สเปก",
|
||||
"colCustomerPartNo": "รหัสสินค้าลูกค้า",
|
||||
"colAgreedDate": "กำหนดส่งตามข้อตกลง",
|
||||
"colUnit": "หน่วย",
|
||||
"colQty": "จำนวน",
|
||||
"colDelivered": "ส่งแล้ว",
|
||||
"colUndelivered": "ยังไม่ส่ง",
|
||||
"colStatus": "สถานะตอบกลับ",
|
||||
"colReply": "การตอบกลับกำหนดส่ง",
|
||||
"colNotify": "แจ้งเตือน",
|
||||
"colReplyPerson": "ผู้ตอบกลับ",
|
||||
"batchCount": "{count} งวด",
|
||||
"repliedOf": "ตอบแล้ว {replied}/{remain}",
|
||||
"overTag": "เกิน",
|
||||
"collapse": "ย่อ ▲",
|
||||
"expand": "+{count} งวด ▾",
|
||||
"lockedTag": "ล็อกแล้ว",
|
||||
"replyAction": "ตอบกลับ",
|
||||
"editReplyAction": "แก้ไขการตอบกลับ",
|
||||
"notifiedTag": "แจ้งแล้ว {name}",
|
||||
"replyFirst": "กรุณาตอบกลับก่อน",
|
||||
"notifyAction": "ส่งการแจ้งเตือน",
|
||||
"pendingNotify": "บันทึกหลังแจ้งเตือน",
|
||||
"empty": "ไม่พบรายการที่ตรงเงื่อนไข",
|
||||
"pageInfo": "หน้า {page} / {pages}",
|
||||
"modalTitleSingle": "ตอบกลับ · {order} / รายการ {item}",
|
||||
"modalTitleBatch": "ตอบกลับหลายรายการ ({count} รายการ)",
|
||||
"quickDate": "วันที่รวมด่วน",
|
||||
"applyQuickDate": "ใช้กับทั้งหมด",
|
||||
"modalHint": "กรอกวันที่เดียว หรือแยกเป็นหลายงวด (วันที่+จำนวน) ได้ ถ้าเกินจำนวนที่ต้องส่งจะเตือนแต่ไม่ป้องกันการบันทึก",
|
||||
"itemLabel": "รายการ {item}",
|
||||
"undeliveredLabel": "ยังไม่ส่ง {remain} {unit}",
|
||||
"qtyPh": "จำนวน",
|
||||
"remarkPh": "หมายเหตุ (ไม่บังคับ)",
|
||||
"removeBatch": "ลบงวดนี้",
|
||||
"addBatch": "+ เพิ่มงวด (วันที่ + จำนวน + หมายเหตุ)",
|
||||
"overWarning": "⚠ รายการต่อไปนี้รวมเกินจำนวนที่ยังไม่ส่ง (บันทึกได้ เตือนเท่านั้น): {detail}",
|
||||
"saveReply": "บันทึกการตอบกลับ",
|
||||
"noValidBatches": "กรุณากรอกวันที่และจำนวนอย่างน้อยหนึ่งรายการ",
|
||||
"saveSingleDone": "บันทึกงวดแล้ว (ยังไม่แจ้งเตือน แก้ไขได้)",
|
||||
"saveBatchDone": "บันทึก {ok} รายการแล้ว (ยังไม่แจ้งเตือน)",
|
||||
"saveBatchPartial": "บันทึกแล้ว: สำเร็จ {ok} ล้มเหลว {fail}: {detail}",
|
||||
"saveFailedTitle": "บันทึกไม่สำเร็จ",
|
||||
"loadFailed": "โหลดรายการไม่สำเร็จ",
|
||||
"notifyConfirm": "ยืนยันส่งถึงพนักงานขาย \"{salesperson}\"?\nคุณมีคำสั่งซื้อ {order}:{item} ที่ต้องกรอก/ยืนยัน/ตรวจสอบกำหนดส่ง\nหลังส่งแล้วกำหนดส่งจะถูกล็อก",
|
||||
"notifyDone": "แจ้งเตือนและล็อกแล้ว: {order}:{item}",
|
||||
"notifyBatchConfirm": "จะส่งแจ้งเตือน {count} รายการ รายการที่ส่งสำเร็จจะถูกล็อก ดำเนินการต่อ?",
|
||||
"notifyPartial": "สำเร็จบางส่วน: สำเร็จ {ok} ล้มเหลว {fail} ข้าม {skip} รายการ ที่ล้มเหลว: {detail}",
|
||||
"notifyAllFailed": "ล้มเหลวทั้งหมด ({fail} รายการ): {detail}",
|
||||
"notifyBatchDone": "แจ้งเตือนและล็อก {ok} รายการ ข้าม {skip} รายการ",
|
||||
"notifyFailedTitle": "ส่งแจ้งเตือนไม่สำเร็จ รายการยังไม่ถูกล็อก",
|
||||
"entryHint": "ค้นคำสั่งซื้อ ตอบกำหนดส่ง แจ้งพนักงานขาย",
|
||||
"notNotified": "ยังไม่แจ้ง"
|
||||
}
|
||||
}
|
||||
@@ -1331,6 +1331,10 @@
|
||||
"trainingLeanTeamManage": "精益培训班组管理",
|
||||
"contractPaymentAccess": "合同付款预警访问",
|
||||
"contractPaymentAccessHint": "勾选后可进入工作台合同付款预警(台账、待确认、周汇总)。同步 OA、扫描预警和发送预警仅管理员可用。",
|
||||
"orderDeliveryReplyManage": "订单交期回复操作",
|
||||
"orderDeliveryReplyManageHint": "勾选后可回复交期批次、发送/批量通知业务员并手动同步 ERP 订单(生管)。",
|
||||
"orderDeliveryReplyAccess": "订单交期回复查看",
|
||||
"orderDeliveryReplyAccessHint": "勾选后可只读查看已同步订单与回复结果(业务人员);回复与通知需另勾「操作」权限。",
|
||||
"password": "密码",
|
||||
"passwordHint": "(留空表示不修改)",
|
||||
"noAgents": "暂无可用应用"
|
||||
@@ -1372,7 +1376,11 @@
|
||||
"delete": "删除",
|
||||
"viewMembers": "查看部门员工"
|
||||
},
|
||||
"members": { "title": "{name}员工", "count": "共 {count} 人", "empty": "暂无员工" },
|
||||
"members": {
|
||||
"title": "{name}员工",
|
||||
"count": "共 {count} 人",
|
||||
"empty": "暂无员工"
|
||||
},
|
||||
"fields": {
|
||||
"name": "名称",
|
||||
"namePlaceholder": "例如:信息技术部",
|
||||
@@ -1918,7 +1926,12 @@
|
||||
"firstLoginInputFields": "首次登录可输入字段",
|
||||
"employeeIdSource": "工号来源字段",
|
||||
"mobileNormalize": "手机号归一化",
|
||||
"publicBaseUrl": "外网 HTTPS 基地址"
|
||||
"publicBaseUrl": "外网 HTTPS 基地址",
|
||||
"callbackToken": "回调Token",
|
||||
"encodingAesKey": "EncodingAESKey",
|
||||
"callbackUrl": "回调URL",
|
||||
"homepageUrl": "应用主页URL",
|
||||
"trustedDomain": "可信域名"
|
||||
},
|
||||
"bindModes": {
|
||||
"match_rules": "按规则自动匹配",
|
||||
@@ -2031,8 +2044,23 @@
|
||||
"filterName": "筛选 姓名/用户名",
|
||||
"filterDept": "筛选 部门",
|
||||
"allRoles": "所有角色",
|
||||
"views": { "apps": "按应用查看", "members": "按成员查看" },
|
||||
"appHeaders": { "app": "应用", "type": "类型", "authorized": "已授权人数", "actions": "操作", "viewMembers": "查看成员", "accessHint": "点击查看成员权限", "memberHint": "可添加或取消此应用的访问权限", "memberSearch": "搜索姓名、用户名、工号或部门", "addMember": "添加权限", "removeMember": "取消权限", "noMembers": "没有匹配的人员" },
|
||||
"views": {
|
||||
"apps": "按应用查看",
|
||||
"members": "按成员查看"
|
||||
},
|
||||
"appHeaders": {
|
||||
"app": "应用",
|
||||
"type": "类型",
|
||||
"authorized": "已授权人数",
|
||||
"actions": "操作",
|
||||
"viewMembers": "查看成员",
|
||||
"accessHint": "点击查看成员权限",
|
||||
"memberHint": "可添加或取消此应用的访问权限",
|
||||
"memberSearch": "搜索姓名、用户名、工号或部门",
|
||||
"addMember": "添加权限",
|
||||
"removeMember": "取消权限",
|
||||
"noMembers": "没有匹配的人员"
|
||||
},
|
||||
"headers": {
|
||||
"user": "用户",
|
||||
"realName": "真实姓名",
|
||||
@@ -2178,7 +2206,7 @@
|
||||
"tokens_completion": "补全 Token",
|
||||
"total_tokens": "总 Token",
|
||||
"latency_ms": "延迟(毫秒)",
|
||||
"latency": "延迟",
|
||||
"latency": "耗时(毫秒)",
|
||||
"cost": "费用",
|
||||
"ip": "IP",
|
||||
"user_agent": "用户代理",
|
||||
@@ -2194,7 +2222,6 @@
|
||||
"reset_token_expiry": "重置令牌过期时间",
|
||||
"risk_status": "风险状态",
|
||||
"risk_score": "风险分",
|
||||
"latency": "耗时(毫秒)",
|
||||
"is_empty_answer": "空回答",
|
||||
"is_system_failure": "系统失败",
|
||||
"feedback_score": "评分",
|
||||
@@ -4962,19 +4989,165 @@
|
||||
"deliveryDate": "交货期限",
|
||||
"timeline": "付款计划时间线",
|
||||
"notAvailable": "—",
|
||||
"stats": {"contracts": "合同总数", "pendingParse": "待处理合同", "readyPlans": "计划已生成", "alerts": "待预警节点"},
|
||||
"ledgerFocus": {"due": "即将到期", "dueHint": "7日内", "overdue": "逾期未付", "needsCompletion": "待补充", "dueThisMonth": "本月应付", "dueThisMonthHint": "本自然月"},
|
||||
"status": {"completed": "已完成", "needs_review": "待复核", "pending": "待解析"}, "stateLabel": {"parsed": "已解析", "needs_review": "待复核", "pending": "待解析", "active": "已生效"},
|
||||
"nodeType": {"prepayment": "预付款", "shipment": "出货款", "acceptance": "验收款", "warranty": "质保款"},
|
||||
"stats": {
|
||||
"contracts": "合同总数",
|
||||
"pendingParse": "待处理合同",
|
||||
"readyPlans": "计划已生成",
|
||||
"alerts": "待预警节点"
|
||||
},
|
||||
"ledgerFocus": {
|
||||
"due": "即将到期",
|
||||
"dueHint": "7日内",
|
||||
"overdue": "逾期未付",
|
||||
"needsCompletion": "待补充",
|
||||
"dueThisMonth": "本月应付",
|
||||
"dueThisMonthHint": "本自然月"
|
||||
},
|
||||
"status": {
|
||||
"completed": "已完成",
|
||||
"needs_review": "待复核",
|
||||
"pending": "待解析"
|
||||
},
|
||||
"stateLabel": {
|
||||
"parsed": "已解析",
|
||||
"needs_review": "待复核",
|
||||
"pending": "待解析",
|
||||
"active": "已生效"
|
||||
},
|
||||
"nodeType": {
|
||||
"prepayment": "预付款",
|
||||
"shipment": "出货款",
|
||||
"acceptance": "验收款",
|
||||
"warranty": "质保款"
|
||||
},
|
||||
"ruleConfirmed": "已确定",
|
||||
"prepaymentRule": "合同归档后第 7/14/21 天预警;请款以 OA 厂商预付款请款作业为准。",
|
||||
"shipmentRule": "交货期限前 7 天、到期日、到期后 14 天预警;请款以 OA 厂商预付款请款作业为准。",
|
||||
"acceptanceRule": "验收归档后第 30/40/60 天预警;质保款在质保到期前 7 天、到期日、到期后 14 天预警。",
|
||||
"pendingAlerts": "待处理预警", "processing": "已发起付款", "dataPending": "数据待确认", "paid": "已付款", "amountRatioDate": "金额 / 比例 · 日期", "applicant": "申请人", "statusLabel": "状态", "contractPrefix": "合同", "datePending": "待补充日期", "statusNormal": "正常", "statusNeedsCompletion": "待补充", "statusOverdue": "已逾期", "statusUpcoming": "即将到期", "statusActive": "进行中", "statusCompleted": "已完成",
|
||||
"totalPrefix": "共", "contractSupplier": "合同号 / 供应商", "nextAlert": "下一预警", "triggerBasis": "触发依据", "alertDate": "预警日期", "alertFirstRound": "首轮", "payDate": "付款日期", "processStatus": "处理状态", "owner": "采购负责人", "oaData": "OA 数据", "contractRule": "合同规则", "ownerDefault": "采购负责人", "workflowNo": "流程编号", "contractNoPending": "合同号待从附件解析", "synced": "已同步", "detailSubtitle": "OA 数据、付款节点与企业微信提醒记录", "backToOverview": "返回总览", "contractInfo": "OA 合同信息", "alertHistory": "预警记录", "alertRound": "第 {round} 次预警", "alertAudit": "预警发送记录", "alertAuditEmpty": "暂无预警记录", "alertNode": "付款节点", "alertScheduledAt": "计划日期", "alertSentAt": "发送时间", "alertStatus": {"pending": "待发送", "sent": "已发送", "failed": "发送失败"}, "roundValue": "第 {round} 次", "weeklyBatchesTitle": "周汇总批次", "weeklyBatchesSubtitle": "查看按收件人生成的付款预警周汇总、Excel 附件及发送记录。", "weeklySend": "发送预警", "weeklyBatchSubmitted": "发送预警任务已提交", "weeklyBatchesLoadFailed": "加载周汇总批次失败", "batchNo": "批次号", "weekKey": "周次", "batchStatusLabel": "发送状态", "batchTotal": "汇总笔数", "batchExcel": "Excel 附件", "batchSentAt": "发送时间", "weeklyBatchesEmpty": "暂无周汇总批次", "weeklyPendingSummary": "本周待发送 {count} 笔 · 下次发送 {datetime}", "weeklyPendingCountOnly": "本周待发送 {count} 笔", "downloadExcel": "下载 Excel", "excelDownloadFailed": "下载预警附件失败", "batchStatus": {"pending": "待发送", "sent": "已发送", "failed": "发送失败", "processing": "处理中", "resolved": "已停止提醒"}, "backToLedger": "返回", "detailLoadFailed": "加载合同详情失败", "detailLoading": "正在加载合同详情…", "detailOverview": "合同概览", "detailAttachments": "原文附件", "detailPaymentPlan": "付款计划", "detailAlertHistory": "预警记录", "archiveDate": "合同归档日期", "archiveDateHint": "该日期为合同申请单的归档日期", "parseStatus": "解析状态", "parseIssueTitle": "解析提示", "planStatus": "计划状态", "attachmentsEmpty": "暂无已归档的合同原文附件", "downloadAttachment": "下载附件", "attachmentDownloadFailed": "下载合同附件失败", "paymentPlanEmpty": "暂无可展示的付款计划", "anchorDate": "日期依据", "nodeStatus": {"pending": "待处理", "active": "进行中", "paid": "已付", "processing": "处理中", "resolved": "已停止提醒", "upcoming": "即将到期", "notStarted": "待起算", "overdue": "已逾期", "review": "待复核"}, "reparse": "重新解析合同原文", "reparseSuccess": "已使用附件“{attachment}”重新解析", "reparseFailed": "重新解析合同失败", "reviewTitle": "待确认合同", "reviewSubtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "reviewSearchPlaceholder": "合同编号、采购编号或供应商", "reviewLoadFailed": "待确认合同加载失败", "reviewContractWorkflow": "合同号 / 流程编号", "reviewReason": "待确认原因", "reviewFallbackIssue": "解析结果待人工确认", "reviewEmpty": "暂无待确认合同"
|
||||
"pendingAlerts": "待处理预警",
|
||||
"processing": "已发起付款",
|
||||
"dataPending": "数据待确认",
|
||||
"paid": "已付款",
|
||||
"amountRatioDate": "金额 / 比例 · 日期",
|
||||
"applicant": "申请人",
|
||||
"statusLabel": "状态",
|
||||
"contractPrefix": "合同",
|
||||
"datePending": "待补充日期",
|
||||
"statusNormal": "正常",
|
||||
"statusNeedsCompletion": "待补充",
|
||||
"statusOverdue": "已逾期",
|
||||
"statusUpcoming": "即将到期",
|
||||
"statusActive": "进行中",
|
||||
"statusCompleted": "已完成",
|
||||
"totalPrefix": "共",
|
||||
"contractSupplier": "合同号 / 供应商",
|
||||
"nextAlert": "下一预警",
|
||||
"triggerBasis": "触发依据",
|
||||
"alertDate": "预警日期",
|
||||
"alertFirstRound": "首轮",
|
||||
"payDate": "付款日期",
|
||||
"processStatus": "处理状态",
|
||||
"owner": "采购负责人",
|
||||
"oaData": "OA 数据",
|
||||
"contractRule": "合同规则",
|
||||
"ownerDefault": "采购负责人",
|
||||
"workflowNo": "流程编号",
|
||||
"contractNoPending": "合同号待从附件解析",
|
||||
"synced": "已同步",
|
||||
"detailSubtitle": "OA 数据、付款节点与企业微信提醒记录",
|
||||
"backToOverview": "返回总览",
|
||||
"contractInfo": "OA 合同信息",
|
||||
"alertHistory": "预警记录",
|
||||
"alertRound": "第 {round} 次预警",
|
||||
"alertAudit": "预警发送记录",
|
||||
"alertAuditEmpty": "暂无预警记录",
|
||||
"alertNode": "付款节点",
|
||||
"alertScheduledAt": "计划日期",
|
||||
"alertSentAt": "发送时间",
|
||||
"alertStatus": {
|
||||
"pending": "待发送",
|
||||
"sent": "已发送",
|
||||
"failed": "发送失败"
|
||||
},
|
||||
"roundValue": "第 {round} 次",
|
||||
"weeklyBatchesTitle": "周汇总批次",
|
||||
"weeklyBatchesSubtitle": "查看按收件人生成的付款预警周汇总、Excel 附件及发送记录。",
|
||||
"weeklySend": "发送预警",
|
||||
"weeklyBatchSubmitted": "发送预警任务已提交",
|
||||
"weeklyBatchesLoadFailed": "加载周汇总批次失败",
|
||||
"batchNo": "批次号",
|
||||
"weekKey": "周次",
|
||||
"batchStatusLabel": "发送状态",
|
||||
"batchTotal": "汇总笔数",
|
||||
"batchExcel": "Excel 附件",
|
||||
"batchSentAt": "发送时间",
|
||||
"weeklyBatchesEmpty": "暂无周汇总批次",
|
||||
"weeklyPendingSummary": "本周待发送 {count} 笔 · 下次发送 {datetime}",
|
||||
"weeklyPendingCountOnly": "本周待发送 {count} 笔",
|
||||
"downloadExcel": "下载 Excel",
|
||||
"excelDownloadFailed": "下载预警附件失败",
|
||||
"batchStatus": {
|
||||
"pending": "待发送",
|
||||
"sent": "已发送",
|
||||
"failed": "发送失败",
|
||||
"processing": "处理中",
|
||||
"resolved": "已停止提醒"
|
||||
},
|
||||
"backToLedger": "返回",
|
||||
"detailLoadFailed": "加载合同详情失败",
|
||||
"detailLoading": "正在加载合同详情…",
|
||||
"detailOverview": "合同概览",
|
||||
"detailAttachments": "原文附件",
|
||||
"detailPaymentPlan": "付款计划",
|
||||
"detailAlertHistory": "预警记录",
|
||||
"archiveDate": "合同归档日期",
|
||||
"archiveDateHint": "该日期为合同申请单的归档日期",
|
||||
"parseStatus": "解析状态",
|
||||
"parseIssueTitle": "解析提示",
|
||||
"planStatus": "计划状态",
|
||||
"attachmentsEmpty": "暂无已归档的合同原文附件",
|
||||
"downloadAttachment": "下载附件",
|
||||
"attachmentDownloadFailed": "下载合同附件失败",
|
||||
"paymentPlanEmpty": "暂无可展示的付款计划",
|
||||
"anchorDate": "日期依据",
|
||||
"nodeStatus": {
|
||||
"pending": "待处理",
|
||||
"active": "进行中",
|
||||
"paid": "已付",
|
||||
"processing": "处理中",
|
||||
"resolved": "已停止提醒",
|
||||
"upcoming": "即将到期",
|
||||
"notStarted": "待起算",
|
||||
"overdue": "已逾期",
|
||||
"review": "待复核"
|
||||
},
|
||||
"reparse": "重新解析合同原文",
|
||||
"reparseSuccess": "已使用附件“{attachment}”重新解析",
|
||||
"reparseFailed": "重新解析合同失败",
|
||||
"reviewTitle": "待确认合同",
|
||||
"reviewSubtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。",
|
||||
"reviewSearchPlaceholder": "合同编号、采购编号或供应商",
|
||||
"reviewLoadFailed": "待确认合同加载失败",
|
||||
"reviewContractWorkflow": "合同号 / 流程编号",
|
||||
"reviewReason": "待确认原因",
|
||||
"reviewFallbackIssue": "解析结果待人工确认",
|
||||
"reviewEmpty": "暂无待确认合同"
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "待确认合同",
|
||||
"subtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。",
|
||||
"searchPlaceholder": "合同编号、采购编号或供应商",
|
||||
"loadFailed": "待确认合同加载失败",
|
||||
"contractWorkflow": "合同号 / 流程编号",
|
||||
"reason": "待确认原因",
|
||||
"fallbackIssue": "解析结果待人工确认",
|
||||
"empty": "暂无待确认合同"
|
||||
},
|
||||
"contractPaymentReparse": {
|
||||
"action": "重新解析合同原文",
|
||||
"success": "已使用附件“{attachment}”重新解析",
|
||||
"failed": "重新解析合同失败"
|
||||
},
|
||||
"contractPaymentReview": {"title": "待确认合同", "subtitle": "未匹配设备采购合同同义标题组、付款比例校验失败或关键字段冲突的合同不会进入付款预警,请下载原文核对。", "searchPlaceholder": "合同编号、采购编号或供应商", "loadFailed": "待确认合同加载失败", "contractWorkflow": "合同号 / 流程编号", "reason": "待确认原因", "fallbackIssue": "解析结果待人工确认", "empty": "暂无待确认合同"},
|
||||
"contractPaymentReparse": {"action": "重新解析合同原文", "success": "已使用附件“{attachment}”重新解析", "failed": "重新解析合同失败"},
|
||||
"procurementContract": {
|
||||
"title": "采购合同审查",
|
||||
"subtitle": "维护标准合同模板、风险红线规则并查看审查历史",
|
||||
|
||||
@@ -1,6 +1,20 @@
|
||||
{
|
||||
"generic": "请求失败。",
|
||||
"codes": {
|
||||
"ORDER_DELIVERY_REPLY.FORBIDDEN": "无订单交期回复查看权限,请联系管理员开通。",
|
||||
"ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "订单行不存在或已不在同步范围。",
|
||||
"ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "仅平台管理员可按部门批量发放权限。",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "请填写要发放权限的部门。",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "权限类型须为 manage 或 access。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "联合回复至少包含一行,且单次不超过 200 行。",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "批量通知至少包含一行,且单次不超过 200 行。",
|
||||
"ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "订单业务员未关联系统账号或未绑定企微,无法发送通知。",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "企微通知发送失败,该行未锁定,请稍后重试。",
|
||||
"ORDER_DELIVERY_REPLY.LINE_LOCKED": "该订单行交期已通知锁定,不能修改批次。",
|
||||
"ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "无订单交期回复操作权限,仅生管可保存或通知。",
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "请至少填写一条交期批次。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "单行批次数量超过上限。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "批次格式不合法,请检查交期、数量或备注。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "货代履约策略或字段能力绑定无效。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "未找到货代履约策略。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "货代履约策略已被其他管理员修改,请刷新后重试。",
|
||||
|
||||
@@ -113,7 +113,8 @@
|
||||
"contractPayment": "合同付款预警",
|
||||
"contractPaymentLedger": "合同台账",
|
||||
"contractPaymentReview": "待确认合同",
|
||||
"contractPaymentWeeklyBatches": "周汇总批次"
|
||||
"contractPaymentWeeklyBatches": "周汇总批次",
|
||||
"orderDeliveryReply": "订单交期回复"
|
||||
},
|
||||
"kb": {
|
||||
"accessDenied": "需要管理员权限才能访问知识库。"
|
||||
@@ -280,8 +281,8 @@
|
||||
"customerTaskMissing": "缺少任务编号,无法打开客户确认,请刷新后重试",
|
||||
"genericBlocking": "当前步骤需要人工处理",
|
||||
"unknownStep": "当前步骤",
|
||||
"continueAction": "继续处理",
|
||||
"recoveryTargets": "前置恢复",
|
||||
"continueAction": "继续处理",
|
||||
"recoveryTargets": "前置恢复",
|
||||
"actionSubmitted": "操作已提交",
|
||||
"submitting": "提交中…",
|
||||
"readOnlyUseFooter": "请使用底部操作栏继续处理",
|
||||
@@ -780,7 +781,7 @@
|
||||
"casdoorNotMatchedNeedLocalUser": "Casdoor 登录成功,但未匹配到本地账号。请让管理员在本地用户表创建同名 username 或相同 email 的账号。",
|
||||
"localAccountDisabled": "该本地账号已被禁用,请联系管理员启用后再登录。"
|
||||
},
|
||||
"voucherCheck": {
|
||||
"voucherCheck": {
|
||||
"title": "立账凭证检核任务",
|
||||
"subtitle": "每周二增量检核上一个自然月;扫描销售开票附件类型目录后按 invoice 归档,并汇总缺件。",
|
||||
"period": "资料所属期间",
|
||||
@@ -846,5 +847,99 @@
|
||||
"notifyExcel": "Excel",
|
||||
"downloadExcel": "下载 Excel",
|
||||
"downloadExcelFailed": "下载 Excel 失败"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"search": "查询",
|
||||
"reset": "重置",
|
||||
"saving": "保存中…",
|
||||
"syncNow": "手动刷新",
|
||||
"syncing": "同步中…",
|
||||
"syncNever": "尚未同步",
|
||||
"syncAt": "最近同步:{time}",
|
||||
"syncRunning": "同步进行中…",
|
||||
"syncFailedAt": "上次同步失败({time}),列表为上次成功快照",
|
||||
"syncDone": "同步完成,共 {count} 行",
|
||||
"syncSkipped": "已有同步正在进行,请稍后再试",
|
||||
"syncFailedTitle": "同步失败,已保留上次快照",
|
||||
"filterOrderNo": "订单单号",
|
||||
"filterOrderNoPh": "输入订单单号",
|
||||
"filterProduct": "产品编号 / 品名 / 客户料号",
|
||||
"filterProductPh": "产品编号、品名或客户产品编号",
|
||||
"filterCustomer": "客户编号 / 简称",
|
||||
"filterCustomerPh": "客户编号或简称",
|
||||
"filterOrderDate": "订单日期",
|
||||
"filterStatus": "交期回复状态",
|
||||
"statusAll": "全部",
|
||||
"statusReplied": "已回复",
|
||||
"statusNotFully": "未完全回复",
|
||||
"statusNotReplied": "未回复",
|
||||
"statusPartial": "部分回复",
|
||||
"totalCount": "共 {count} 条产品行",
|
||||
"selectAll": "全选(本页)",
|
||||
"selectedCount": "已勾选 {count} 行",
|
||||
"batchReply": "+ 联合回复交期",
|
||||
"batchNotify": "批量通知",
|
||||
"toolbarHint": "联合回复只保存批次;点「批量通知」才发送并锁定。",
|
||||
"colOrderLine": "订单单号:项次",
|
||||
"colOrderDate": "订单日期",
|
||||
"colCustomer": "客户编号",
|
||||
"colSalesperson": "业务员",
|
||||
"colDept": "部门",
|
||||
"colCustomerPo": "客户订单",
|
||||
"colPartNo": "产品编号",
|
||||
"colPartName": "品名",
|
||||
"colSpec": "规格",
|
||||
"colCustomerPartNo": "客户产品编号",
|
||||
"colAgreedDate": "约定交货日",
|
||||
"colUnit": "单位",
|
||||
"colQty": "数量",
|
||||
"colDelivered": "已交数量",
|
||||
"colUndelivered": "未交数量",
|
||||
"colStatus": "交期回复状态",
|
||||
"colReply": "交期回复",
|
||||
"colNotify": "通知业务部门",
|
||||
"colReplyPerson": "交期回复人员",
|
||||
"batchCount": "{count} 批",
|
||||
"repliedOf": "已回复 {replied}/{remain}",
|
||||
"overTag": "超",
|
||||
"collapse": "收起 ▲",
|
||||
"expand": "+{count} 批 ▾",
|
||||
"lockedTag": "交期已锁定",
|
||||
"replyAction": "回复交期",
|
||||
"editReplyAction": "修改回复",
|
||||
"notifiedTag": "已通知 {name}",
|
||||
"replyFirst": "请先回复交期",
|
||||
"notifyAction": "发送通知业务部门",
|
||||
"pendingNotify": "待通知后记录",
|
||||
"empty": "没有符合条件的订单行",
|
||||
"pageInfo": "第 {page} / {pages} 页",
|
||||
"modalTitleSingle": "回复交期 · {order} / 项次 {item}",
|
||||
"modalTitleBatch": "联合回复交期({count} 行)",
|
||||
"quickDate": "快速统一交期",
|
||||
"applyQuickDate": "应用到全部",
|
||||
"modalHint": "可填 1 个交期,或点「增加批次」拆成多个「交期+数量」;允许超额,仅提醒不拦截。",
|
||||
"itemLabel": "项次 {item}",
|
||||
"undeliveredLabel": "未交 {remain} {unit}",
|
||||
"qtyPh": "数量",
|
||||
"remarkPh": "备注(可选)",
|
||||
"removeBatch": "删除本行批次",
|
||||
"addBatch": "+ 增加拆分批次(交期 + 数量 + 备注)",
|
||||
"overWarning": "⚠ 以下行拆分合计超出未交(可保存,仅提醒):{detail}",
|
||||
"saveReply": "保存回复",
|
||||
"noValidBatches": "请至少为一行填写交期和数量",
|
||||
"saveSingleDone": "交期批次已保存(未通知,可继续修改)",
|
||||
"saveBatchDone": "已保存 {ok} 行交期批次(未通知)",
|
||||
"saveBatchPartial": "保存完成:成功 {ok} 行,失败 {fail} 行:{detail}",
|
||||
"saveFailedTitle": "保存失败",
|
||||
"loadFailed": "加载订单行失败",
|
||||
"notifyConfirm": "确认向业务员「{salesperson}」发送?\n您有订单号:项次{order}:{item}的订单需要填写/确认/查看交期。\n发送后交期将锁定。",
|
||||
"notifyDone": "已通知并锁定:{order}:{item}",
|
||||
"notifyBatchConfirm": "将向 {count} 行对应业务员发送交期通知,发送成功的行将锁定。继续?",
|
||||
"notifyPartial": "部分成功:成功 {ok} 行,失败 {fail} 行,跳过 {skip} 行。失败:{detail}",
|
||||
"notifyAllFailed": "全部失败({fail} 行):{detail}",
|
||||
"notifyBatchDone": "已通知并锁定 {ok} 行,跳过 {skip} 行",
|
||||
"notifyFailedTitle": "通知发送失败,该行未锁定",
|
||||
"entryHint": "查单 → 填交期 → 通知业务员",
|
||||
"notNotified": "未通知"
|
||||
}
|
||||
}
|
||||
@@ -1202,6 +1202,10 @@
|
||||
"trainingLeanTeamManage": "精益培訓班組管理",
|
||||
"contractPaymentAccess": "合約付款預警存取",
|
||||
"contractPaymentAccessHint": "勾選後可進入工作臺合約付款預警(臺帳、待確認、週彙總)。同步 OA、掃描預警與發送預警僅管理員可用。",
|
||||
"orderDeliveryReplyManage": "訂單交期回覆操作",
|
||||
"orderDeliveryReplyManageHint": "勾選後可回覆交期批次、發送/批量通知業務員並手動同步 ERP 訂單(生管)。",
|
||||
"orderDeliveryReplyAccess": "訂單交期回覆查看",
|
||||
"orderDeliveryReplyAccessHint": "勾選後可唯讀查看已同步訂單與回覆結果(業務人員);回覆與通知需另勾「操作」權限。",
|
||||
"password": "密碼",
|
||||
"passwordHint": "(留空表示不修改)",
|
||||
"noAgents": "暫無可用應用"
|
||||
@@ -1786,11 +1790,11 @@
|
||||
"firstLoginInputFields": "首次登入可輸入字段",
|
||||
"employeeIdSource": "工號來源字段",
|
||||
"mobileNormalize": "手機號歸一化",
|
||||
"callbackToken": "回調 Token",
|
||||
"callbackToken": "回呼Token",
|
||||
"encodingAesKey": "EncodingAESKey",
|
||||
"callbackUrl": "回調URL",
|
||||
"callbackUrl": "回呼URL",
|
||||
"homepageUrl": "應用主頁URL",
|
||||
"trustedDomain": "可信域名",
|
||||
"trustedDomain": "可信任網域",
|
||||
"publicBaseUrl": "外網 HTTPS 基地址"
|
||||
},
|
||||
"bindModes": {
|
||||
@@ -1904,8 +1908,23 @@
|
||||
"filterName": "篩選 姓名/用戶名",
|
||||
"filterDept": "篩選 部門",
|
||||
"allRoles": "所有角色",
|
||||
"views": { "apps": "按應用查看", "members": "按成員查看" },
|
||||
"appHeaders": { "app": "應用", "type": "類型", "authorized": "已授權人數", "actions": "操作", "viewMembers": "查看成員", "accessHint": "點擊查看成員權限", "memberHint": "可新增或取消此應用的存取權限", "memberSearch": "搜尋姓名、用戶名、工號或部門", "addMember": "新增權限", "removeMember": "取消權限", "noMembers": "沒有符合的成員" },
|
||||
"views": {
|
||||
"apps": "按應用查看",
|
||||
"members": "按成員查看"
|
||||
},
|
||||
"appHeaders": {
|
||||
"app": "應用",
|
||||
"type": "類型",
|
||||
"authorized": "已授權人數",
|
||||
"actions": "操作",
|
||||
"viewMembers": "查看成員",
|
||||
"accessHint": "點擊查看成員權限",
|
||||
"memberHint": "可新增或取消此應用的存取權限",
|
||||
"memberSearch": "搜尋姓名、用戶名、工號或部門",
|
||||
"addMember": "新增權限",
|
||||
"removeMember": "取消權限",
|
||||
"noMembers": "沒有符合的成員"
|
||||
},
|
||||
"headers": {
|
||||
"user": "用戶",
|
||||
"realName": "真實姓名",
|
||||
@@ -2051,7 +2070,7 @@
|
||||
"tokens_completion": "補全 Token",
|
||||
"total_tokens": "總 Token",
|
||||
"latency_ms": "延遲(毫秒)",
|
||||
"latency": "延遲",
|
||||
"latency": "耗時(毫秒)",
|
||||
"cost": "費用",
|
||||
"ip": "IP",
|
||||
"user_agent": "用戶代理",
|
||||
@@ -2067,7 +2086,6 @@
|
||||
"reset_token_expiry": "重置令牌過期時間",
|
||||
"risk_status": "風險狀態",
|
||||
"risk_score": "風險分",
|
||||
"latency": "耗時(毫秒)",
|
||||
"is_empty_answer": "空回答",
|
||||
"is_system_failure": "系統失敗",
|
||||
"feedback_score": "評分",
|
||||
@@ -4825,11 +4843,177 @@
|
||||
}
|
||||
},
|
||||
"contractPayment": {
|
||||
"title": "合約付款預警", "subtitle": "同步 OA 合約、驗收和廠商預付款請款作業,按三輪規則通知採購職位", "sync": "同步 OA 資料", "forceSync": "強制覆蓋 OA 欄位", "forceSyncConfirm": "將以本次 OA 回傳的非空欄位覆蓋既有 OA 資料,並記錄變更稽核。是否繼續?", "reparseExisting": "批量重新解析既有合約", "reparseExistingConfirm": "將使用已歸檔的合約附件依目前規則更新所有既有合約的解析結果,不會同步或覆蓋 OA 欄位。是否繼續?", "scanAlerts": "掃描產生預警", "jobSubmitted": "工作已提交", "actionFailed": "操作失敗", "loadFailed": "載入合約失敗", "searchPlaceholder": "搜尋合約編號、採購單號或供應商", "allStatus": "全部", "search": "查詢", "ledger": "合約台帳", "items": "筆", "empty": "暫無合約資料", "purchaseOrder": "採購單號", "supplier": "供應商", "amount": "合約金額", "deliveryDate": "交貨期限", "timeline": "付款計畫時間線", "notAvailable": "—", "stats": {"contracts": "合約總數", "pendingParse": "待處理合約", "readyPlans": "計畫已產生", "alerts": "待預警節點"}, "ledgerFocus": {"due": "即將到期", "dueHint": "7日內", "overdue": "逾期未付", "needsCompletion": "待補充", "dueThisMonth": "本月應付", "dueThisMonthHint": "本自然月"}, "status": {"completed": "已完成", "needs_review": "待覆核", "pending": "待解析"}, "stateLabel": {"parsed": "已解析", "needs_review": "待複核", "pending": "待解析", "active": "已生效"}, "nodeType": {"prepayment": "預付款", "shipment": "出貨款", "acceptance": "驗收款", "warranty": "質保款"}, "ruleConfirmed": "已確定", "prepaymentRule": "合約歸檔後第 7/14/21 天預警;請款以 OA 廠商預付款請款作業為準。", "shipmentRule": "交貨期限前 7 天、到期日、到期後 14 天預警;請款以 OA 廠商預付款請款作業為準。", "acceptanceRule": "驗收歸檔後第 30/40/60 天預警;質保款在質保到期前 7 天、到期日、到期後 14 天預警。", "pendingAlerts": "待處理預警", "processing": "已發起付款", "dataPending": "資料待確認", "paid": "已付款", "amountRatioDate": "金額 / 比例 · 日期", "applicant": "申請人", "statusLabel": "狀態", "contractPrefix": "合約", "datePending": "待補充日期", "statusNormal": "正常", "statusNeedsCompletion": "待補充", "statusOverdue": "已逾期", "statusUpcoming": "即將到期", "statusActive": "進行中", "statusCompleted": "已完成", "totalPrefix": "共", "contractSupplier": "合約號 / 供應商", "nextAlert": "下一預警", "triggerBasis": "觸發依據", "alertDate": "預警日期", "alertFirstRound": "首輪", "payDate": "付款日期", "processStatus": "處理狀態", "owner": "採購負責人", "oaData": "OA 資料", "contractRule": "合約規則", "ownerDefault": "採購負責人", "workflowNo": "流程編號", "contractNoPending": "合約號待從附件解析", "synced": "已同步", "detailSubtitle": "OA 資料、付款節點與企業微信提醒記錄", "backToOverview": "返回總覽", "contractInfo": "OA 合約資訊", "alertHistory": "預警記錄", "alertRound": "第 {round} 次預警", "alertAudit": "預警發送記錄", "alertAuditEmpty": "暫無預警記錄", "alertNode": "付款節點", "alertScheduledAt": "計畫日期", "alertSentAt": "發送時間", "alertStatus": {"pending": "待發送", "sent": "已發送", "failed": "發送失敗"}, "roundValue": "第 {round} 次", "weeklyBatchesTitle": "週彙總批次", "weeklyBatchesSubtitle": "查看依收件人產生的付款預警週彙總、Excel 附件與發送記錄。", "weeklySend": "傳送預警", "weeklyBatchSubmitted": "發送預警任務已提交", "weeklyBatchesLoadFailed": "載入週彙總批次失敗", "batchNo": "批次號", "weekKey": "週次", "batchStatusLabel": "發送狀態", "batchTotal": "彙總筆數", "batchExcel": "Excel 附件", "batchSentAt": "發送時間", "weeklyBatchesEmpty": "暫無週彙總批次", "weeklyPendingSummary": "本週待發送 {count} 筆 · 下次發送 {datetime}", "weeklyPendingCountOnly": "本週待發送 {count} 筆", "downloadExcel": "下載 Excel", "excelDownloadFailed": "下載預警附件失敗", "batchStatus": {"pending": "待發送", "sent": "已發送", "failed": "發送失敗", "processing": "處理中", "resolved": "已停止提醒"}, "backToLedger": "返回", "detailLoadFailed": "載入合約詳情失敗", "detailLoading": "正在載入合約詳情…", "detailOverview": "合約概覽", "detailAttachments": "原文附件", "detailPaymentPlan": "付款計畫", "detailAlertHistory": "預警記錄", "archiveDate": "合約歸檔日期", "archiveDateHint": "該日期為合約申請單的歸檔日期", "parseStatus": "解析狀態", "parseIssueTitle": "解析提示", "planStatus": "計畫狀態", "attachmentsEmpty": "暫無已歸檔的合約原文附件", "downloadAttachment": "下載Line truncated
|
||||
"title": "合約付款預警",
|
||||
"subtitle": "同步 OA 合約、驗收和廠商預付款請款作業,按三輪規則通知採購職位",
|
||||
"sync": "同步 OA 資料",
|
||||
"forceSync": "強制覆蓋 OA 欄位",
|
||||
"forceSyncConfirm": "將以本次 OA 回傳的非空欄位覆蓋既有 OA 資料,並記錄變更稽核。是否繼續?",
|
||||
"reparseExisting": "批量重新解析既有合約",
|
||||
"reparseExistingConfirm": "將使用已歸檔的合約附件依目前規則更新所有既有合約的解析結果,不會同步或覆蓋 OA 欄位。是否繼續?",
|
||||
"scanAlerts": "掃描產生預警",
|
||||
"jobSubmitted": "工作已提交",
|
||||
"actionFailed": "操作失敗",
|
||||
"loadFailed": "載入合約失敗",
|
||||
"searchPlaceholder": "搜尋合約編號、採購單號或供應商",
|
||||
"allStatus": "全部",
|
||||
"search": "查詢",
|
||||
"ledger": "合約台帳",
|
||||
"items": "筆",
|
||||
"empty": "暫無合約資料",
|
||||
"purchaseOrder": "採購單號",
|
||||
"supplier": "供應商",
|
||||
"amount": "合約金額",
|
||||
"deliveryDate": "交貨期限",
|
||||
"timeline": "付款計畫時間線",
|
||||
"notAvailable": "—",
|
||||
"stats": {
|
||||
"contracts": "合約總數",
|
||||
"pendingParse": "待處理合約",
|
||||
"readyPlans": "計畫已產生",
|
||||
"alerts": "待預警節點"
|
||||
},
|
||||
"ledgerFocus": {
|
||||
"due": "即將到期",
|
||||
"dueHint": "7日內",
|
||||
"overdue": "逾期未付",
|
||||
"needsCompletion": "待補充",
|
||||
"dueThisMonth": "本月應付",
|
||||
"dueThisMonthHint": "本自然月"
|
||||
},
|
||||
"status": {
|
||||
"completed": "已完成",
|
||||
"needs_review": "待覆核",
|
||||
"pending": "待解析"
|
||||
},
|
||||
"stateLabel": {
|
||||
"parsed": "已解析",
|
||||
"needs_review": "待複核",
|
||||
"pending": "待解析",
|
||||
"active": "已生效"
|
||||
},
|
||||
"nodeType": {
|
||||
"prepayment": "預付款",
|
||||
"shipment": "出貨款",
|
||||
"acceptance": "驗收款",
|
||||
"warranty": "質保款"
|
||||
},
|
||||
"ruleConfirmed": "已確定",
|
||||
"prepaymentRule": "合約歸檔後第 7/14/21 天預警;請款以 OA 廠商預付款請款作業為準。",
|
||||
"shipmentRule": "交貨期限前 7 天、到期日、到期後 14 天預警;請款以 OA 廠商預付款請款作業為準。",
|
||||
"acceptanceRule": "驗收歸檔後第 30/40/60 天預警;質保款在質保到期前 7 天、到期日、到期後 14 天預警。",
|
||||
"pendingAlerts": "待處理預警",
|
||||
"processing": "已發起付款",
|
||||
"dataPending": "資料待確認",
|
||||
"paid": "已付款",
|
||||
"amountRatioDate": "金額 / 比例 · 日期",
|
||||
"applicant": "申請人",
|
||||
"statusLabel": "狀態",
|
||||
"contractPrefix": "合約",
|
||||
"datePending": "待補充日期",
|
||||
"statusNormal": "正常",
|
||||
"statusNeedsCompletion": "待補充",
|
||||
"statusOverdue": "已逾期",
|
||||
"statusUpcoming": "即將到期",
|
||||
"statusActive": "進行中",
|
||||
"statusCompleted": "已完成",
|
||||
"totalPrefix": "共",
|
||||
"contractSupplier": "合約號 / 供應商",
|
||||
"nextAlert": "下一預警",
|
||||
"triggerBasis": "觸發依據",
|
||||
"alertDate": "預警日期",
|
||||
"alertFirstRound": "首輪",
|
||||
"payDate": "付款日期",
|
||||
"processStatus": "處理狀態",
|
||||
"owner": "採購負責人",
|
||||
"oaData": "OA 資料",
|
||||
"contractRule": "合約規則",
|
||||
"ownerDefault": "採購負責人",
|
||||
"workflowNo": "流程編號",
|
||||
"contractNoPending": "合約號待從附件解析",
|
||||
"synced": "已同步",
|
||||
"detailSubtitle": "OA 資料、付款節點與企業微信提醒記錄",
|
||||
"backToOverview": "返回總覽",
|
||||
"contractInfo": "OA 合約資訊",
|
||||
"alertHistory": "預警記錄",
|
||||
"alertRound": "第 {round} 次預警",
|
||||
"alertAudit": "預警發送記錄",
|
||||
"alertAuditEmpty": "暫無預警記錄",
|
||||
"alertNode": "付款節點",
|
||||
"alertScheduledAt": "計畫日期",
|
||||
"alertSentAt": "發送時間",
|
||||
"alertStatus": {
|
||||
"pending": "待發送",
|
||||
"sent": "已發送",
|
||||
"failed": "發送失敗"
|
||||
},
|
||||
"roundValue": "第 {round} 次",
|
||||
"weeklyBatchesTitle": "週彙總批次",
|
||||
"weeklyBatchesSubtitle": "查看依收件人產生的付款預警週彙總、Excel 附件與發送記錄。",
|
||||
"weeklySend": "傳送預警",
|
||||
"weeklyBatchSubmitted": "發送預警任務已提交",
|
||||
"weeklyBatchesLoadFailed": "載入週彙總批次失敗",
|
||||
"batchNo": "批次號",
|
||||
"weekKey": "週次",
|
||||
"batchStatusLabel": "發送狀態",
|
||||
"batchTotal": "彙總筆數",
|
||||
"batchExcel": "Excel 附件",
|
||||
"batchSentAt": "發送時間",
|
||||
"weeklyBatchesEmpty": "暫無週彙總批次",
|
||||
"weeklyPendingSummary": "本週待發送 {count} 筆 · 下次發送 {datetime}",
|
||||
"weeklyPendingCountOnly": "本週待發送 {count} 筆",
|
||||
"downloadExcel": "下載 Excel",
|
||||
"excelDownloadFailed": "下載預警附件失敗",
|
||||
"batchStatus": {
|
||||
"pending": "待發送",
|
||||
"sent": "已發送",
|
||||
"failed": "發送失敗",
|
||||
"processing": "處理中",
|
||||
"resolved": "已停止提醒"
|
||||
},
|
||||
"backToLedger": "返回",
|
||||
"detailLoadFailed": "載入合約詳情失敗",
|
||||
"detailLoading": "正在載入合約詳情…",
|
||||
"detailOverview": "合約概覽",
|
||||
"detailAttachments": "原文附件",
|
||||
"detailPaymentPlan": "付款計畫",
|
||||
"detailAlertHistory": "預警記錄",
|
||||
"archiveDate": "合約歸檔日期",
|
||||
"archiveDateHint": "該日期為合約申請單的歸檔日期",
|
||||
"parseStatus": "解析狀態",
|
||||
"parseIssueTitle": "解析提示",
|
||||
"planStatus": "計畫狀態",
|
||||
"attachmentsEmpty": "暫無已歸檔的合約原文附件",
|
||||
"downloadAttachment": "下載附件",
|
||||
"attachmentDownloadFailed": "下載合約附件失敗",
|
||||
"paymentPlanEmpty": "暫無可展示的付款計畫",
|
||||
"anchorDate": "日期依據",
|
||||
"nodeStatus": {
|
||||
"pending": "待處理",
|
||||
"active": "進行中",
|
||||
"paid": "已付",
|
||||
"processing": "處理中",
|
||||
"resolved": "已停止提醒",
|
||||
"upcoming": "即將到期",
|
||||
"notStarted": "待起算",
|
||||
"overdue": "已逾期",
|
||||
"review": "待複核"
|
||||
}
|
||||
},
|
||||
"contractPaymentReview": {
|
||||
"title": "待確認合約",
|
||||
"subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。",
|
||||
"searchPlaceholder": "合約編號、採購單號或供應商",
|
||||
"loadFailed": "待確認合約載入失敗",
|
||||
"contractWorkflow": "合約號 / 流程編號",
|
||||
"reason": "待確認原因",
|
||||
"fallbackIssue": "解析結果待人工確認",
|
||||
"empty": "暫無待確認合約"
|
||||
},
|
||||
"contractPaymentReparse": {
|
||||
"action": "重新解析合約原文",
|
||||
"success": "已使用附件“{attachment}”重新解析",
|
||||
"failed": "重新解析合約失敗"
|
||||
},
|
||||
"contractPaymentReview": {"title": "待確認合約", "subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。", "searchPlaceholder": "合約編號、採購單號或供應商", "loadFailed": "待確認合約載入失敗", "contractWorkflow": "合約號 / 流程編號", "reason": "待確認原因", "fallbackIssue": "解析結果待人工確認", "empty": "暫無待確認合約"},
|
||||
"contractPaymentReparse": {"action": "重新解析合約原文", "success": "已使用附件“{attachment}”重新解析", "failed": "重新解析合約失敗"},
|
||||
"contractPaymentReview": {"title": "待確認合約", "subtitle": "未符合設備採購合約同義標題組、付款比例驗證失敗或關鍵欄位衝突的合約,不會進入付款預警,請下載原文核對。", "searchPlaceholder": "合約編號、採購單號或供應商", "loadFailed": "待確認合約載入失敗", "contractWorkflow": "合約號 / 流程編號", "reason": "待確認原因", "fallbackIssue": "解析結果待人工確認", "empty": "暫無待確認合約"},
|
||||
"procurementContract": {
|
||||
"title": "採購合同審查",
|
||||
"subtitle": "維護標準合同模板、風險紅線規則並查看審查歷史",
|
||||
|
||||
@@ -1,6 +1,20 @@
|
||||
{
|
||||
"generic": "請求失敗。",
|
||||
"codes": {
|
||||
"ORDER_DELIVERY_REPLY.FORBIDDEN": "無訂單交期回覆查看權限,請聯絡管理員開通。",
|
||||
"ORDER_DELIVERY_REPLY.LINE_NOT_FOUND": "訂單行不存在或已不在同步範圍。",
|
||||
"ORDER_DELIVERY_REPLY.ADMIN_REQUIRED": "僅平台管理員可按部門批量發放權限。",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_DEPARTMENT_REQUIRED": "請填寫要發放權限的部門。",
|
||||
"ORDER_DELIVERY_REPLY.GRANT_PERMISSION_INVALID": "權限類型須為 manage 或 access。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_REPLY_EMPTY": "聯合回覆至少包含一行,且單次不超過 200 行。",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_BATCH_EMPTY": "批量通知至少包含一行,且單次不超過 200 行。",
|
||||
"ORDER_DELIVERY_REPLY.SALESPERSON_UNMAPPED": "訂單業務員未關聯系統帳號或未綁定企微,無法發送通知。",
|
||||
"ORDER_DELIVERY_REPLY.NOTIFY_FAILED": "企微通知發送失敗,該行未鎖定,請稍後重試。",
|
||||
"ORDER_DELIVERY_REPLY.LINE_LOCKED": "該訂單行交期已通知鎖定,不能修改批次。",
|
||||
"ORDER_DELIVERY_REPLY.MANAGE_FORBIDDEN": "無訂單交期回覆操作權限,僅生管可儲存或通知。",
|
||||
"ORDER_DELIVERY_REPLY.BATCHES_REQUIRED": "請至少填寫一條交期批次。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_COUNT_EXCEEDED": "單行批次數量超過上限。",
|
||||
"ORDER_DELIVERY_REPLY.BATCH_INVALID": "批次格式不合法,請檢查交期、數量或備註。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_INVALID": "貨代履約策略或欄位能力綁定無效。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "找不到貨代履約策略。",
|
||||
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "貨代履約策略已被其他管理員修改,請重新整理後再試。",
|
||||
|
||||
@@ -113,7 +113,8 @@
|
||||
"contractPayment": "合約付款預警",
|
||||
"contractPaymentLedger": "合約台帳",
|
||||
"contractPaymentReview": "待確認合約",
|
||||
"contractPaymentWeeklyBatches": "週彙總批次"
|
||||
"contractPaymentWeeklyBatches": "週彙總批次",
|
||||
"orderDeliveryReply": "訂單交期回覆"
|
||||
},
|
||||
"kb": {
|
||||
"accessDenied": "需要管理員權限才能存取知識庫。"
|
||||
@@ -280,8 +281,8 @@
|
||||
"customerTaskMissing": "缺少任務編號,無法開啟客戶確認,請重新整理後再試",
|
||||
"genericBlocking": "目前步驟需要人工處理",
|
||||
"unknownStep": "目前步驟",
|
||||
"continueAction": "繼續處理",
|
||||
"recoveryTargets": "前置恢復",
|
||||
"continueAction": "繼續處理",
|
||||
"recoveryTargets": "前置恢復",
|
||||
"actionSubmitted": "操作已提交",
|
||||
"submitting": "提交中…",
|
||||
"readOnlyUseFooter": "請使用底部操作列繼續處理",
|
||||
@@ -846,5 +847,99 @@
|
||||
"notifyExcel": "Excel",
|
||||
"downloadExcel": "下載 Excel",
|
||||
"downloadExcelFailed": "下載 Excel 失敗"
|
||||
},
|
||||
"orderDeliveryReply": {
|
||||
"search": "查詢",
|
||||
"reset": "重置",
|
||||
"saving": "儲存中…",
|
||||
"syncNow": "手動刷新",
|
||||
"syncing": "同步中…",
|
||||
"syncNever": "尚未同步",
|
||||
"syncAt": "最近同步:{time}",
|
||||
"syncRunning": "同步進行中…",
|
||||
"syncFailedAt": "上次同步失敗({time}),列表為上次成功快照",
|
||||
"syncDone": "同步完成,共 {count} 行",
|
||||
"syncSkipped": "已有同步正在進行,請稍後再試",
|
||||
"syncFailedTitle": "同步失敗,已保留上次快照",
|
||||
"filterOrderNo": "訂單單號",
|
||||
"filterOrderNoPh": "輸入訂單單號",
|
||||
"filterProduct": "產品編號 / 品名 / 客戶料號",
|
||||
"filterProductPh": "產品編號、品名或客戶產品編號",
|
||||
"filterCustomer": "客戶編號 / 簡稱",
|
||||
"filterCustomerPh": "客戶編號或簡稱",
|
||||
"filterOrderDate": "訂單日期",
|
||||
"filterStatus": "交期回覆狀態",
|
||||
"statusAll": "全部",
|
||||
"statusReplied": "已回覆",
|
||||
"statusNotFully": "未完全回覆",
|
||||
"statusNotReplied": "未回覆",
|
||||
"statusPartial": "部分回覆",
|
||||
"totalCount": "共 {count} 條產品行",
|
||||
"selectAll": "全選(本頁)",
|
||||
"selectedCount": "已勾選 {count} 行",
|
||||
"batchReply": "+ 聯合回覆交期",
|
||||
"batchNotify": "批量通知",
|
||||
"toolbarHint": "聯合回覆只儲存批次;點「批量通知」才發送並鎖定。",
|
||||
"colOrderLine": "訂單單號:項次",
|
||||
"colOrderDate": "訂單日期",
|
||||
"colCustomer": "客戶編號",
|
||||
"colSalesperson": "業務員",
|
||||
"colDept": "部門",
|
||||
"colCustomerPo": "客戶訂單",
|
||||
"colPartNo": "產品編號",
|
||||
"colPartName": "品名",
|
||||
"colSpec": "規格",
|
||||
"colCustomerPartNo": "客戶產品編號",
|
||||
"colAgreedDate": "約定交貨日",
|
||||
"colUnit": "單位",
|
||||
"colQty": "數量",
|
||||
"colDelivered": "已交數量",
|
||||
"colUndelivered": "未交數量",
|
||||
"colStatus": "交期回覆狀態",
|
||||
"colReply": "交期回覆",
|
||||
"colNotify": "通知業務部門",
|
||||
"colReplyPerson": "交期回覆人員",
|
||||
"batchCount": "{count} 批",
|
||||
"repliedOf": "已回覆 {replied}/{remain}",
|
||||
"overTag": "超",
|
||||
"collapse": "收起 ▲",
|
||||
"expand": "+{count} 批 ▾",
|
||||
"lockedTag": "交期已鎖定",
|
||||
"replyAction": "回覆交期",
|
||||
"editReplyAction": "修改回覆",
|
||||
"notifiedTag": "已通知 {name}",
|
||||
"replyFirst": "請先回覆交期",
|
||||
"notifyAction": "發送通知業務部門",
|
||||
"pendingNotify": "待通知後記錄",
|
||||
"empty": "沒有符合條件的訂單行",
|
||||
"pageInfo": "第 {page} / {pages} 頁",
|
||||
"modalTitleSingle": "回覆交期 · {order} / 項次 {item}",
|
||||
"modalTitleBatch": "聯合回覆交期({count} 行)",
|
||||
"quickDate": "快速統一交期",
|
||||
"applyQuickDate": "應用到全部",
|
||||
"modalHint": "可填 1 個交期,或點「增加批次」拆成多個「交期+數量」;允許超額,僅提醒不攔截。",
|
||||
"itemLabel": "項次 {item}",
|
||||
"undeliveredLabel": "未交 {remain} {unit}",
|
||||
"qtyPh": "數量",
|
||||
"remarkPh": "備註(可選)",
|
||||
"removeBatch": "刪除本行批次",
|
||||
"addBatch": "+ 增加拆分批次(交期 + 數量 + 備註)",
|
||||
"overWarning": "⚠ 以下行拆分合計超出未交(可儲存,僅提醒):{detail}",
|
||||
"saveReply": "儲存回覆",
|
||||
"noValidBatches": "請至少為一行填寫交期和數量",
|
||||
"saveSingleDone": "交期批次已儲存(未通知,可繼續修改)",
|
||||
"saveBatchDone": "已儲存 {ok} 行交期批次(未通知)",
|
||||
"saveBatchPartial": "儲存完成:成功 {ok} 行,失敗 {fail} 行:{detail}",
|
||||
"saveFailedTitle": "儲存失敗",
|
||||
"loadFailed": "載入訂單行失敗",
|
||||
"notifyConfirm": "確認向業務員「{salesperson}」發送?\n您有訂單號:項次{order}:{item}的訂單需要填寫/確認/查看交期。\n發送後交期將鎖定。",
|
||||
"notifyDone": "已通知並鎖定:{order}:{item}",
|
||||
"notifyBatchConfirm": "將向 {count} 行對應業務員發送交期通知,發送成功的行將鎖定。繼續?",
|
||||
"notifyPartial": "部分成功:成功 {ok} 行,失敗 {fail} 行,跳過 {skip} 行。失敗:{detail}",
|
||||
"notifyAllFailed": "全部失敗({fail} 行):{detail}",
|
||||
"notifyBatchDone": "已通知並鎖定 {ok} 行,跳過 {skip} 行",
|
||||
"notifyFailedTitle": "通知發送失敗,該行未鎖定",
|
||||
"entryHint": "查單 → 填交期 → 通知業務員",
|
||||
"notNotified": "未通知"
|
||||
}
|
||||
}
|
||||
@@ -122,6 +122,11 @@ export async function requestJson<T>(url: string, init?: RequestInit): Promise<T
|
||||
const headers = new Headers(init?.headers || {});
|
||||
const authHeaders = getAuthHeaders();
|
||||
Object.entries(authHeaders).forEach(([k, v]) => headers.set(k, v as string));
|
||||
// 带 body 的请求若未显式声明类型,统一补 JSON 头:否则 Flask get_json(silent=True)
|
||||
// 会因 Content-Type 非 JSON 解析出 None,把有效载荷当空 body 处理(如订单交期回复保存被误判 400)。
|
||||
if (init?.body && !headers.has('Content-Type')) {
|
||||
headers.set('Content-Type', 'application/json');
|
||||
}
|
||||
const res = await fetch(url, { ...init, headers });
|
||||
|
||||
let data: any = null;
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
export type FeaturePermissions = {
|
||||
training_hr_manage?: boolean;
|
||||
'contract_payment.access'?: boolean;
|
||||
'order_delivery_reply.manage'?: boolean;
|
||||
'order_delivery_reply.access'?: boolean;
|
||||
[key: string]: boolean | undefined;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user