diff --git a/web/src/i18n/pages/home/en.ts b/web/src/i18n/pages/home/en.ts index 0319c25..924dc48 100644 --- a/web/src/i18n/pages/home/en.ts +++ b/web/src/i18n/pages/home/en.ts @@ -35,6 +35,147 @@ export default { notifications: { defaultCreator: 'Unknown User', }, + buyerDashboard: { + roleSwitch: { + buyer: 'Buyer Dashboard', + supplier: 'Supplier Dashboard', + }, + kpi: { + totalInquiries: 'Total Completed Inquiries', + pendingInquiries: 'Pending Inquiries', + quoteTimelyRate: 'Quote Timely Rate', + trendUp: '+12% vs last month', + trendFlat: 'Flat', + }, + task: { + title: 'My Tasks', + empty: 'No pending tasks', + table: { + columns: { + inquiryNo: 'Inquiry No.', + method: 'Procurement Method', + name: 'Inquiry Name', + status: 'Status', + deadline: 'Deadline / Remaining', + action: 'Action', + }, + }, + status: { + bidCompare: 'Bid Comparison', + published: 'Published', + negotiation: 'Negotiation', + urgent: 'Urgent', + default: '', + }, + action: { + goBidCompare: 'Go to Compare', + goNegotiate: 'Go to Negotiate', + viewDetail: 'View Details', + }, + }, + deadline: { + bidTime: 'Bid Time:', + quoteDeadline: 'Quote Deadline:', + remaining: 'Remaining:', + bidInProgress: 'Bid in Progress', + ended: 'Ended', + started: 'Started', + expired: 'Expired', + }, + notification: { + title: 'System Notifications', + empty: 'No notifications', + defaultCreator: 'Unknown User', + }, + quickNav: { + title: 'Quick Navigation', + items: { + role: 'Role Management', + dept: 'Department Management', + config: 'System Config', + dictionary: 'Dictionary Management', + areas: 'Area Management', + message: 'Message Center', + }, + }, + chart: { + title: 'Last 30 Days Trend', + legend: { + publishInquiry: 'Inquiries Published', + negotiationComplete: 'Negotiations Complete', + }, + yAxisName: 'Count', + }, + viewAll: 'View All', + more: 'More', + method: { + inquiry: 'Inquiry', + tender: 'Tender', + }, + }, + supplierDashboard: { + kpi: { + totalQuotes: 'Total Quotes', + pendingQuotes: 'Pending Quotes', + wonQuotes: 'Won Quotes', + conversionRate: 'Win Rate', + trendUp: '+8% vs last month', + waiting: 'Awaiting Quote', + winSuccess: 'Won Successfully', + trendFlat: 'Flat', + }, + quoteList: { + title: 'Pending Quote List', + empty: 'No pending quotes', + columns: { + inquiryNo: 'Inquiry No.', + status: 'Status', + method: 'Procurement Method', + deadline: 'Deadline', + action: 'Action', + }, + productName: 'Product Name', + quantity: 'Quantity', + }, + quoteStatus: { + unquoted: 'Unquoted', + quoting: 'Quoting', + quoted: 'Quoted', + }, + quoteAction: { + goQuote: 'Go to Quote', + }, + notification: { + title: 'System Notifications', + empty: 'No notifications', + defaultCreator: 'Unknown User', + }, + quickNav: { + title: 'Quick Navigation', + items: { + role: 'Role Management', + dept: 'Department Management', + config: 'System Config', + dictionary: 'Dictionary Management', + areas: 'Area Management', + message: 'Message Center', + }, + }, + chart: { + title: 'Quote & Win Trend', + legend: { + quotes: 'Quotes', + won: 'Won', + }, + yAxisName: 'Count', + }, + viewAll: 'View All', + more: 'More', + method: { + inquiry: 'Inquiry', + tender: 'Tender', + }, + }, }, }, }, diff --git a/web/src/i18n/pages/home/zh-cn.ts b/web/src/i18n/pages/home/zh-cn.ts index 746adbd..8a53562 100644 --- a/web/src/i18n/pages/home/zh-cn.ts +++ b/web/src/i18n/pages/home/zh-cn.ts @@ -35,6 +35,147 @@ export default { notifications: { defaultCreator: '未知用户', }, + buyerDashboard: { + roleSwitch: { + buyer: '采购方仪表盘', + supplier: '供应商仪表盘', + }, + kpi: { + totalInquiries: '已完成询价单总数', + pendingInquiries: '进行中询价单', + quoteTimelyRate: '供应商报价及时率', + trendUp: '较上月 +12%', + trendFlat: '持平', + }, + task: { + title: '我的待办任务', + empty: '暂无待办任务', + table: { + columns: { + inquiryNo: '询价单号', + method: '采购方式', + name: '询价单名称', + status: '当前状态', + deadline: '截止时间 / 剩余时间', + action: '操作', + }, + }, + status: { + bidCompare: '比价', + published: '发布', + negotiation: '议价', + urgent: '紧急', + default: '', + }, + action: { + goBidCompare: '去比价', + goNegotiate: '去议价', + viewDetail: '查看详情', + }, + }, + deadline: { + bidTime: '投标时间:', + quoteDeadline: '报价截止时间:', + remaining: '剩余:', + bidInProgress: '投标进行中', + ended: '已结束', + started: '已开始', + expired: '已到期', + }, + notification: { + title: '系统通知', + empty: '暂无通知', + defaultCreator: '未知用户', + }, + quickNav: { + title: '快捷入口', + items: { + role: '角色管理', + dept: '部门管理', + config: '系统配置', + dictionary: '字典管理', + areas: '区域管理', + message: '消息中心', + }, + }, + chart: { + title: '近30天业务趋势', + legend: { + publishInquiry: '发布询价', + negotiationComplete: '议价完成', + }, + yAxisName: '单据数量', + }, + viewAll: '查看全部', + more: '更多', + method: { + inquiry: '询价', + tender: '招标', + }, + }, + supplierDashboard: { + kpi: { + totalQuotes: '报价单总数', + pendingQuotes: '待报价', + wonQuotes: '已中标', + conversionRate: '中标率', + trendUp: '较上月 +8%', + waiting: '等待报价', + winSuccess: '中标成功', + trendFlat: '持平', + }, + quoteList: { + title: '待报价清单', + empty: '暂无待报价清单', + columns: { + inquiryNo: '询价单号', + status: '状态', + method: '采购方式', + deadline: '截止时间', + action: '操作', + }, + productName: '产品名称', + quantity: '数量', + }, + quoteStatus: { + unquoted: '未报价', + quoting: '报价中', + quoted: '已报价', + }, + quoteAction: { + goQuote: '去报价', + }, + notification: { + title: '系统通知', + empty: '暂无通知', + defaultCreator: '未知用户', + }, + quickNav: { + title: '快捷入口', + items: { + role: '角色管理', + dept: '部门管理', + config: '系统配置', + dictionary: '字典管理', + areas: '区域管理', + message: '消息中心', + }, + }, + chart: { + title: '报价与中标趋势', + legend: { + quotes: '报价数', + won: '中标数', + }, + yAxisName: '单据数量', + }, + viewAll: '查看全部', + more: '更多', + method: { + inquiry: '询价', + tender: '招标', + }, + }, }, }, }, diff --git a/web/src/i18n/pages/home/zh-tw.ts b/web/src/i18n/pages/home/zh-tw.ts index e69de29..393d918 100644 --- a/web/src/i18n/pages/home/zh-tw.ts +++ b/web/src/i18n/pages/home/zh-tw.ts @@ -0,0 +1,182 @@ +// Define content +export default { + message: { + pages: { + home: { + statCards: { + orderStats: '訂單統計信息', + monthlyPlan: '月度計劃信息', + visitStats: '訪問統計信息', + }, + chart: { + // Line chart (政策补贴额度) + lineTitle: '政策補貼額度', + lineLegendPreOrder: '預購隊列', + lineLegendLatestPrice: '最新成交價', + lineYAxisName: '價格', + month: '月', + // Pie chart (房屋建筑工程) + pieTitle: '房屋建築工程', + pieCategory1: '房屋及結構物', + pieCategory2: '專用設備', + pieCategory3: '通用設備', + pieCategory4: '文物和陳列品', + pieCategory5: '圖書、檔案', + // Bar chart (地热开发利用) + barTitle: '地熱開發利用', + barLegendSupplyTemp: '供溫', + barLegendReturnTemp: '回溫', + barLegendPressure: '壓力值(Mpa)', + barYAxisSupplyReturn: '供回溫度(℃)', + }, + quickNav: { + quickNavTitle: '快捷導航工具', + }, + notifications: { + defaultCreator: '未知用戶', + }, + buyerDashboard: { + roleSwitch: { + buyer: '採購方儀表盤', + supplier: '供應商儀表盤', + }, + kpi: { + totalInquiries: '已完成詢價單總數', + pendingInquiries: '進行中詢價單', + quoteTimelyRate: '供應商報價及時率', + trendUp: '較上月 +12%', + trendFlat: '持平', + }, + task: { + title: '我的待辦任務', + empty: '暫無待辦任務', + table: { + columns: { + inquiryNo: '詢價單號', + method: '採購方式', + name: '詢價單名稱', + status: '當前狀態', + deadline: '截止時間 / 剩餘時間', + action: '操作', + }, + }, + status: { + bidCompare: '比價', + published: '發布', + negotiation: '議價', + urgent: '緊急', + default: '', + }, + action: { + goBidCompare: '去比價', + goNegotiate: '去議價', + viewDetail: '查看詳情', + }, + }, + deadline: { + bidTime: '投標時間:', + quoteDeadline: '報價截止時間:', + remaining: '剩餘:', + bidInProgress: '投標進行中', + ended: '已結束', + started: '已開始', + expired: '已到期', + }, + notification: { + title: '系統通知', + empty: '暫無通知', + defaultCreator: '未知用戶', + }, + quickNav: { + title: '快捷入口', + items: { + role: '角色管理', + dept: '部門管理', + config: '系統配置', + dictionary: '字典管理', + areas: '區域管理', + message: '消息中心', + }, + }, + chart: { + title: '近30天業務趨勢', + legend: { + publishInquiry: '發布詢價', + negotiationComplete: '議價完成', + }, + yAxisName: '單據數量', + }, + viewAll: '查看全部', + more: '更多', + method: { + inquiry: '詢價', + tender: '招標', + }, + }, + supplierDashboard: { + kpi: { + totalQuotes: '報價單總數', + pendingQuotes: '待報價', + wonQuotes: '已中標', + conversionRate: '中標率', + trendUp: '較上月 +8%', + waiting: '等待報價', + winSuccess: '中標成功', + trendFlat: '持平', + }, + quoteList: { + title: '待報價清單', + empty: '暫無待報價清單', + columns: { + inquiryNo: '詢價單號', + status: '狀態', + method: '採購方式', + deadline: '截止時間', + action: '操作', + }, + productName: '產品名稱', + quantity: '數量', + }, + quoteStatus: { + unquoted: '未報價', + quoting: '報價中', + quoted: '已報價', + }, + quoteAction: { + goQuote: '去報價', + }, + notification: { + title: '系統通知', + empty: '暫無通知', + defaultCreator: '未知用戶', + }, + quickNav: { + title: '快捷入口', + items: { + role: '角色管理', + dept: '部門管理', + config: '系統配置', + dictionary: '字典管理', + areas: '區域管理', + message: '消息中心', + }, + }, + chart: { + title: '報價與中標趨勢', + legend: { + quotes: '報價數', + won: '中標數', + }, + yAxisName: '單據數量', + }, + viewAll: '查看全部', + more: '更多', + method: { + inquiry: '詢價', + tender: '招標', + }, + }, + }, + }, + }, +}; diff --git a/web/src/views/pisadmin/dashboard/BuyerDashboard.vue b/web/src/views/pisadmin/dashboard/BuyerDashboard.vue index 10f44a6..5ab98fa 100644 --- a/web/src/views/pisadmin/dashboard/BuyerDashboard.vue +++ b/web/src/views/pisadmin/dashboard/BuyerDashboard.vue @@ -10,20 +10,20 @@
-
已完成询价单总数
+
{{ $t('message.pages.home.buyerDashboard.kpi.totalInquiries') }}
{{ kpi.total_inquiries.toLocaleString() }}
-
较上月 +12%
+
{{ $t('message.pages.home.buyerDashboard.kpi.trendUp') }}
-
进行中询价单
+
{{ $t('message.pages.home.buyerDashboard.kpi.pendingInquiries') }}
{{ kpi.pending_inquiries }}
-
供应商报价及时率
+
{{ $t('message.pages.home.buyerDashboard.kpi.quoteTimelyRate') }}
{{ kpi.quote_timely_rate }}%
-
持平
+
{{ $t('message.pages.home.buyerDashboard.kpi.trendFlat') }}
@@ -33,21 +33,21 @@
- 我的待办任务({{ tasks.length }} {{ $t('message.pages.home.buyerDashboard.task.title') }}({{ tasks.length }})
- 查看全部 + {{ $t('message.pages.home.buyerDashboard.viewAll') }}
- - - - - - + + + + + + @@ -72,7 +72,7 @@ @@ -86,7 +86,7 @@ - +
询价单号采购方式询价单名称当前状态截止时间 / 剩余时间操作{{ $t('message.pages.home.buyerDashboard.task.table.columns.inquiryNo') }}{{ $t('message.pages.home.buyerDashboard.task.table.columns.method') }}{{ $t('message.pages.home.buyerDashboard.task.table.columns.name') }}{{ $t('message.pages.home.buyerDashboard.task.table.columns.status') }}{{ $t('message.pages.home.buyerDashboard.task.table.columns.deadline') }}{{ $t('message.pages.home.buyerDashboard.task.table.columns.action') }}
- 剩余: + {{ $t('message.pages.home.buyerDashboard.deadline.remaining') }} {{ getDeadlineRemainingValue(task) }}
暂无待办任务{{ $t('message.pages.home.buyerDashboard.task.empty') }}
@@ -102,8 +102,8 @@
-
系统通知
- 更多 +
{{ $t('message.pages.home.buyerDashboard.notification.title') }}
+ {{ $t('message.pages.home.buyerDashboard.more') }}
@@ -117,14 +117,14 @@
{{ v.title }}
-
暂无通知
+
{{ $t('message.pages.home.buyerDashboard.notification.empty') }}
-
快捷入口
+
{{ $t('message.pages.home.buyerDashboard.quickNav.title') }}
@@ -141,10 +141,10 @@
-
近30天业务趋势
+
{{ $t('message.pages.home.buyerDashboard.chart.title') }}
- 发布询价 - 议价完成 + {{ $t('message.pages.home.buyerDashboard.chart.legend.publishInquiry') }} + {{ $t('message.pages.home.buyerDashboard.chart.legend.negotiationComplete') }}
@@ -156,6 +156,7 @@