diff --git a/src/components/locales/lang/en.js b/src/components/locales/lang/en.js index 02c8876..55cf245 100644 --- a/src/components/locales/lang/en.js +++ b/src/components/locales/lang/en.js @@ -368,6 +368,7 @@ export default { getMarketListFailed: "Get markets failed", getChartDataFailed: "Get chart data failed", renderChartFailed: "Chart render failed", + getRegionFailed: "Failed to get region", // Rate confirmModify: "Confirm modify?", pleaseInputRate: "Enter rate", @@ -399,6 +400,8 @@ export default { noRoleAssigned: "No role assigned", unknownRole: "Unknown role", refundSubmitSuccess: "Refund application submitted successfully", + refundConfirmTitle: "Refund Confirmation", + refundConfirmContent: "Are you sure you want to refund order {orderNo}?", exportError: "Export failed", }, @@ -1066,6 +1069,16 @@ export default { paymentAsia: "PaymentAsia", transfer: "E-Transfer", }, + statusList: { + submitted: "Submitted", + pending: "Pending", + passed: "Passed", + recalled: "Recalled", + refunded: "Refunded", + rejected: "Rejected", + inProgress: "In Progress", + received: "Received", + }, unit: "Unit", year: "Year", month: "Month", diff --git a/src/components/locales/lang/zh-CN.js b/src/components/locales/lang/zh-CN.js index 3010cc6..c6ecbae 100644 --- a/src/components/locales/lang/zh-CN.js +++ b/src/components/locales/lang/zh-CN.js @@ -368,6 +368,7 @@ export default { getMarketListFailed: "获取市场列表失败,请稍后重试", getChartDataFailed: "获取图表数据失败,请稍后重试", renderChartFailed: "图表渲染失败,请稍后重试", + getRegionFailed: "获取地区失败", // 汇率相关 confirmModify: "确认修改?", pleaseInputRate: "请输入汇率比例", @@ -399,6 +400,8 @@ export default { noRoleAssigned: "暂未分配角色", unknownRole: "未知角色", refundSubmitSuccess: "退款申请已提交", + refundConfirmTitle: "退款确认", + refundConfirmContent: "确定要对订单 {orderNo} 进行退款吗?", exportError: "导出失败", }, @@ -1078,6 +1081,16 @@ export default { paymentAsia: "PaymentAsia-链接收款", transfer: "E-Transfer", }, + statusList: { + submitted: "已提交", + pending: "待审核", + passed: "审核通过", + recalled: "已撤回", + refunded: "已退款", + rejected: "已驳回", + inProgress: "进行中", + received: "已到账", + }, unit: "个", year: "年", month: "月", @@ -1178,9 +1191,10 @@ export default { pending: "待审核", passed: "审核通过", recalled: "已撤回", - refunded: "退款", + refunded: "已退款", rejected: "已驳回", inProgress: "进行中", + received: "已到账", }, // 退款执行 pending: "待处理", diff --git a/src/views/moneyManage/financialAccount/performanceAttribution.vue b/src/views/moneyManage/financialAccount/performanceAttribution.vue index 63a18eb..6a5556e 100644 --- a/src/views/moneyManage/financialAccount/performanceAttribution.vue +++ b/src/views/moneyManage/financialAccount/performanceAttribution.vue @@ -30,8 +30,8 @@ const paytypeList = [ const payPlatformOptions = ref([...paytypeList]) const statusOptions = [ - { label: '已到账', value: 4 }, - { label: '已退款', value: 6 } + { label: t('cash.statusList.received'), value: 4 }, + { label: t('cash.statusList.refunded'), value: 6 } ] // 地区树 @@ -103,13 +103,13 @@ const fetchData = async () => { total.value = res.data.total || 0 loading.value = false } else { - ElMessage.error(res.msg || '获取数据失败') + ElMessage.error(res.msg || t('elmessage.getDataFailed')) loading.value = false } } catch (error) { console.error(error) loading.value = false - ElMessage.error('获取数据失败') + ElMessage.error(t('elmessage.getDataFailed')) } } @@ -138,14 +138,12 @@ const handleCurrentChange = (val) => { // 退款操作 const handleRefund = (row) => { - ElMessageBox.confirm(`确定要对订单 ${row.systemTradeNo} 进行退款吗?`, '退款确认', { - confirmButtonText: '确定', - cancelButtonText: '取消', + ElMessageBox.confirm(t('elmessage.refundConfirmContent', { orderNo: row.systemTradeNo }), t('elmessage.refundConfirmTitle'), { + confirmButtonText: t('common.confirm'), + cancelButtonText: t('common.cancel'), type: 'warning' }).then(() => { - - - ElMessage.success('退款申请已提交') + ElMessage.success(t('elmessage.refundSubmitSuccess')) // 刷新列表 fetchData() }).catch(() => {}) @@ -182,7 +180,7 @@ const handleExport = async () => { } catch (error) { console.error(error) - ElMessage.error('导出失败') + ElMessage.error(t('elmessage.exportError')) } } @@ -259,11 +257,11 @@ onMounted(() => {