接入前端P0页面真实接口

This commit is contained in:
andy
2026-07-08 16:20:06 +08:00
parent 5c5b8e33b0
commit 66a613d6cd
45 changed files with 8719 additions and 0 deletions

14
client/src/i18n/index.ts Normal file
View File

@@ -0,0 +1,14 @@
import { createI18n } from 'vue-i18n'
import enUS from './locales/en-US'
import zhCN from './locales/zh-CN'
export const i18n = createI18n({
legacy: false,
locale: import.meta.env.VITE_DEFAULT_LOCALE ?? 'zh-CN',
fallbackLocale: 'zh-CN',
messages: {
'zh-CN': zhCN,
'en-US': enUS,
},
})

View File

@@ -0,0 +1,155 @@
export default {
app: {
name: 'Hotel OMS',
hotelContext: 'HOTEL-TEST',
theme: 'Theme',
healthUp: 'Backend connected',
healthDown: 'Backend offline',
healthChecking: 'Checking',
},
nav: {
orders: 'Order list',
taskQueue: 'Task queue',
sourceMessages: 'Source messages',
systemStatus: 'System status',
orderDetail: 'Order detail',
taskDetail: 'Task detail',
sourceMessageConversation: 'Email conversation',
},
common: {
loading: 'Loading',
noData: 'No data',
endpointPending: 'Endpoint pending',
endpointMissing: 'Endpoint field pending',
},
workbench: {
title: 'Order workbench',
subtitle: 'Review, filter, and handle Reservation order tasks',
filters: 'Filters',
dateRange: 'Date range',
businessKey: 'Business key / temporary code',
orderStatus: 'Order status',
taskStatus: 'Task status',
taskCardType: 'Task card type',
reset: 'Reset',
tableTitle: 'Orders / tasks',
columns: {
businessKey: 'Business key',
orderStatus: 'Order status',
currentTask: 'Current task',
taskStatus: 'Task status',
updatedAt: 'Last updated',
operation: 'Action',
},
view: 'View',
totalPrefix: 'Total',
totalSuffix: 'task leads',
},
orderList: {
title: 'Order list',
subtitle: 'Review Reservation work by order',
keyword: 'Group Code / Confirmation No.',
tableTitle: 'Order data',
endpointPending: 'The order list endpoint GET /api/reservation/orders is pending backend implementation. No fixture data is shown.',
},
order: {
summary: 'Order summary',
taskQueue: 'Order task queue',
sourceMessage: 'Source message',
businessKeySource: 'Business key source',
updatedAt: 'Last updated',
guestName: 'Guest',
arrivalDate: 'Arrival date',
roomType: 'Room type',
amount: 'Amount',
openTask: 'Handle task',
groupCode: 'Group Code',
confirmationNumber: 'Confirmation No.',
temporaryOrderNo: 'Temporary order no.',
blockCode: 'Block Code',
createdAt: 'Created at',
sourceSummaryPending: 'Source email summary fields for the order task timeline are pending backend support. Open a task for available source details.',
},
taskList: {
title: 'Task list',
subtitle: 'Review Reservation work by task queue',
keyword: 'Order / email keyword',
taskType: 'Task type',
tableTitle: 'Task data',
totalSuffix: 'tasks',
noSourceSubject: 'No source subject',
canProcess: 'Processable',
viewTask: 'View task',
viewOrder: 'View order',
viewConversation: 'View email conversation',
columns: {
task: 'Task',
order: 'Order',
card: 'Task card',
status: 'Status',
source: 'Source email',
queue: 'Queue',
},
},
task: {
title: 'Task card',
fieldContract: 'Field contract',
evidence: 'Evidence',
saveDraft: 'Save draft',
confirm: 'Confirm task',
blocked: 'Blocked',
readOnly: 'Read only',
operaOperations: 'OPERA simulation',
audits: 'Audit timeline',
noOperations: 'OPERA simulation operations are created after confirmation.',
noAudits: 'No audit records yet.',
execute: 'Execute',
retry: 'Retry',
simulateFailure: 'Simulate failure',
fieldNotes: 'Field notes',
emptyValue: 'Empty',
attachments: 'Attachments',
fieldAreaFallback: 'Basic information',
savedLocally: 'Draft saved',
confirmedLocally: 'Task confirmed',
viewOrder: 'View order',
viewConversation: 'View email conversation',
sourceMessageId: 'Source message ID',
sourceSubject: 'Source subject',
sourceSender: 'Sender',
sourceReceivedAt: 'Received at',
sourceSummaryPending: 'Source email summary fields are pending backend support',
},
conversation: {
title: 'Email conversation detail',
subtitle: 'Review all messages in the source email conversation',
endpointPending: 'The email conversation detail endpoint is pending backend implementation. No fixture data is shown.',
},
status: {
TEMPORARY: 'Temporary',
ACTIVE: 'Active',
ENDED: 'Ended',
LOGIC_DELETED: 'Deleted',
PENDING_CONFIRM: 'Pending confirmation',
READY: 'Ready',
EXECUTING: 'Executing',
FAILED: 'Failed',
COMPLETED: 'Completed',
PENDING: 'Pending',
SUCCEEDED: 'Succeeded',
BLOCKED: 'Blocked',
SKIPPED: 'Skipped',
},
cardType: {
NEW_BOOKING: 'New booking',
UPDATE_BOOKING: 'Update booking',
CANCEL_BOOKING: 'Cancel booking',
VOUCHER: 'Voucher',
ROOMING_LIST: 'Rooming list',
AMEND_GROUP_CODE: 'Amend group code',
TRACE_NOTE: 'Trace / notes',
TA_RECORD: 'TA record',
MESSAGE_NOTIFICATION: 'Message notification',
MANUAL_REVIEW: 'Manual review',
},
}

View File

@@ -0,0 +1,155 @@
export default {
app: {
name: 'Hotel OMS',
hotelContext: 'HOTEL-TEST',
theme: '主题',
healthUp: '后端已连接',
healthDown: '后端未连接',
healthChecking: '检查中',
},
nav: {
orders: '订单列表',
taskQueue: '任务队列',
sourceMessages: '消息来源',
systemStatus: '系统状态',
orderDetail: '订单详情',
taskDetail: '任务详情',
sourceMessageConversation: '邮件会话',
},
common: {
loading: '加载中',
noData: '暂无数据',
endpointPending: '接口待接入',
endpointMissing: '接口待补',
},
workbench: {
title: '订单工作台',
subtitle: '查看、筛选和处理 Reservation 订单任务',
filters: '筛选条件',
dateRange: '日期范围',
businessKey: '业务号 / 临时单号',
orderStatus: '订单状态',
taskStatus: '任务状态',
taskCardType: '任务卡类型',
reset: '重置',
tableTitle: '订单 / 任务列表',
columns: {
businessKey: '业务号',
orderStatus: '订单状态',
currentTask: '当前任务',
taskStatus: '任务状态',
updatedAt: '最近更新',
operation: '操作',
},
view: '查看',
totalPrefix: '共',
totalSuffix: '条任务线索',
},
orderList: {
title: '订单列表',
subtitle: '按订单查看 Reservation 处理入口',
keyword: 'Group Code / Confirmation No.',
tableTitle: '订单数据',
endpointPending: '订单列表接口 GET /api/reservation/orders 待后端接入,当前不展示假数据。',
},
order: {
summary: '订单摘要',
taskQueue: '同订单任务队列',
sourceMessage: '来源消息',
businessKeySource: '业务号来源',
updatedAt: '最近更新',
guestName: '客人',
arrivalDate: '入住日期',
roomType: '房型',
amount: '金额',
openTask: '处理任务',
groupCode: 'Group Code',
confirmationNumber: 'Confirmation No.',
temporaryOrderNo: '临时单号',
blockCode: 'Block Code',
createdAt: '创建时间',
sourceSummaryPending: '订单详情任务时间线的来源邮件摘要字段待后端补充;请从具体任务进入后查看。',
},
taskList: {
title: '任务列表',
subtitle: '按任务查看 Reservation 待处理队列',
keyword: '订单 / 邮件关键词',
taskType: '任务类型',
tableTitle: '任务数据',
totalSuffix: '条任务',
noSourceSubject: '暂无来源主题',
canProcess: '可处理',
viewTask: '查看任务',
viewOrder: '查看订单',
viewConversation: '查看邮件会话',
columns: {
task: '任务',
order: '订单',
card: '任务卡',
status: '状态',
source: '来源邮件',
queue: '队列',
},
},
task: {
title: '任务卡',
fieldContract: '字段契约',
evidence: '证据区',
saveDraft: '保存草稿',
confirm: '确认任务',
blocked: '阻塞中',
readOnly: '只读',
operaOperations: 'OPERA 模拟操作',
audits: '审计时间线',
noOperations: '确认任务后生成 OPERA 模拟操作。',
noAudits: '暂无审计记录。',
execute: '执行',
retry: '重试',
simulateFailure: '模拟失败',
fieldNotes: '字段备注',
emptyValue: '未填写',
attachments: '附件',
fieldAreaFallback: '基础信息',
savedLocally: '草稿已保存',
confirmedLocally: '任务已确认',
viewOrder: '查看订单',
viewConversation: '查看邮件会话',
sourceMessageId: '来源消息 ID',
sourceSubject: '来源主题',
sourceSender: '发件人',
sourceReceivedAt: '接收时间',
sourceSummaryPending: '来源邮件摘要字段待后端补充',
},
conversation: {
title: '邮件会话详情',
subtitle: '查看来源邮件所在会话下的全部历史邮件和回复',
endpointPending: '邮件会话详情接口待后端接入,当前不展示假数据。',
},
status: {
TEMPORARY: '临时',
ACTIVE: '有效',
ENDED: '已结束',
LOGIC_DELETED: '已删除',
PENDING_CONFIRM: '待确认',
READY: '待执行',
EXECUTING: '执行中',
FAILED: '失败',
COMPLETED: '已完成',
PENDING: '待执行',
SUCCEEDED: '成功',
BLOCKED: '阻塞',
SKIPPED: '跳过',
},
cardType: {
NEW_BOOKING: '新预订',
UPDATE_BOOKING: '修改预订',
CANCEL_BOOKING: '取消预订',
VOUCHER: '凭证',
ROOMING_LIST: '房表',
AMEND_GROUP_CODE: '修改团队号',
TRACE_NOTE: 'Trace / 备注',
TA_RECORD: '旅行社记录',
MESSAGE_NOTIFICATION: '消息通知',
MANUAL_REVIEW: '人工复核',
},
}