From 49b7cb625d573fe74522043feaaf30a27bab2986 Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Sun, 14 Dec 2025 16:50:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20=E6=B7=BB=E5=8A=A0=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=94=AF=E6=8C=81=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=80=80=E6=AC=BE=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为退款服务和管理页面添加国际化支持,包括中英文翻译 更新退款申请、审核流程和状态显示的文本 优化表单字段和按钮的多语言处理 添加新的翻译键和对应的文本内容 --- src/components/locales/lang/en.js | 35 +- src/components/locales/lang/zh-CN.js | 35 +- .../moneyManage/refundDetail/refundCharge.vue | 298 ++++++++-------- .../moneyManage/refundDetail/refundFinance.vue | 373 ++++++++++----------- .../moneyManage/refundDetail/refundHeader.vue | 318 ++++++++++-------- .../moneyManage/refundDetail/refundService.vue | 230 +++++++------ 6 files changed, 701 insertions(+), 588 deletions(-) diff --git a/src/components/locales/lang/en.js b/src/components/locales/lang/en.js index 9b51d9c..c3f24e7 100644 --- a/src/components/locales/lang/en.js +++ b/src/components/locales/lang/en.js @@ -109,6 +109,8 @@ export default { uploadHint: "Drag file here or click", pendingFee: "Fee Pending", viewRejectReason: "Reject Reason", + viewProgress: "View Progress", + viewProgress: "View Progress", // Buttons-Date today: "Today", yesterday: "Yesterday", @@ -157,6 +159,9 @@ export default { }, noData: "No Data", all: "All", + unknownSubmitter: "Unknown submitter", + noAuditorRecorded: "No auditor recorded", + noExecutorRecorded: "No executor recorded", }, // Permission Module @@ -224,6 +229,10 @@ export default { checkAccountFormat: "Check OA format", deviceLimitReached: "Device limit reached", noParentRoleMarket: "Parent role has no region", + inputRefundBeansBoth: "Enter refund coin and free coin counts", + limitRefundGoldNotExceedOriginal: "Refund coins cannot exceed original coins", + limitRefundFreeNotExceedOriginal: "Refund free coins cannot exceed original free coins", + refundAmountError: "Refund amount incorrect", roleAddSuccess: "Role {roleName} added", enableSuccess: "Enabled", disableSuccess: "Disabled", @@ -407,11 +416,11 @@ export default { payPlatform: "Platform", type: "Type", orderNo: "Order No.", - number: "Qty", + number: "number", money: "Amount", goodsName: "Product Name", productName: "Product", - productNum: "Qty", + productNum: "productNum", refundType: "Refund Type", refundModel: "Refund Method", refundModelAll: "Full Refund", @@ -422,6 +431,7 @@ export default { refundChannels: "Refund Via", refundVoucher: "Refund IMG", refundSuccess: "Refund Success", + refundReason: "Refund Reason", activity: "Activity", businessBelong: "Region", startTime: "Start Time", @@ -452,8 +462,9 @@ export default { updateTime: "Update Time", receiveTime: "Received Time", rejectTime: "Reject Time", - rejectReason: "Reason", - operation: "Action", + rejectReason: "Reject Reason", + refundReason: "Refund Reason", + operation: "Operation", // Gold Bean permanentBean: "Paid Beans", freeBean: "Free Beans", @@ -505,7 +516,7 @@ export default { fileName: "File Name", status: "Status", createTime: "Created At", - operation: "Action", + operation: "Operation", download: "Download", close: "Close", }, @@ -528,6 +539,8 @@ export default { vietnamesePlaceholder: "Enter Vietnamese", addTranslation: "Add Trans", editTranslation: "Edit Trans", + refundApplyInfo: "Refund Request Info", + originalOrderInfo: "Original Order Info", // User & Role addUserPermission: "Add User Perm", editUserPermission: "Edit User Perm", @@ -567,7 +580,7 @@ export default { goodsName: "Product", productName: "Product", productNamePlaceholder: "Select product", - productNum: "Qty", + productNum: "productNum", productNumPlaceholder: "Enter quantity", numUnit: "Unit", payCurrency: "Pay Currency", @@ -689,7 +702,7 @@ export default { paymentTime: "Pay Time", submitTime: "Submit Time", auditTime: "Audit Time", - operation: "Action", + operation: "Operation", // Refund Audit List orderCode: "Order No.", refundType: "Type", @@ -982,6 +995,13 @@ export default { // Cash Management cash: { + refundProgress: "Refund Progress", + progress: { + areaFinance: "Area Finance", + areaCharge: "Area Manager", + headFinance: "HQ Finance", + executor: "Executor", + }, receiveCashDataTitle: "Note", receiveCashDataContent: "All receipt pages: Default sort by payment time (desc)", @@ -1100,6 +1120,7 @@ export default { taiwanStockPackage: "TW Pack", }, statusList: { + submitted: "Submitted", pending: "Pending", passed: "Passed", recalled: "Recalled", diff --git a/src/components/locales/lang/zh-CN.js b/src/components/locales/lang/zh-CN.js index 97c9d7e..15b9bb8 100644 --- a/src/components/locales/lang/zh-CN.js +++ b/src/components/locales/lang/zh-CN.js @@ -92,6 +92,7 @@ export default { pass: "通过", close: "关闭", reject: "驳回", + rejectInfo: "驳回信息", cancel: "取消", confirm: "确认", submit: "提交", @@ -109,12 +110,14 @@ export default { uploadHint: "将文件拖到此处,或点击上传", pendingFee: "待填写手续费", viewRejectReason: "查看驳回理由", + viewProgress: "查看进度", // 按钮组-日期 today: "今", yesterday: "昨", last7Days: "近7天", // 按钮组-现金管理-审核 pendingAudit: "待审核", + audited: "已审核", passed: "已通过", completed: "已完成", withdrawn: "已撤回", @@ -154,11 +157,12 @@ export default { // 市场 markets: { headquarters: "总部", - } - , - noData: "暂无数据" - , - all: "全部" + }, + noData: "暂无数据", + all: "全部", + unknownSubmitter: "未知提交人", + noAuditorRecorded: "未记录审核人", + noExecutorRecorded: "未记录执行人" }, // 权限模块 @@ -223,6 +227,10 @@ export default { checkAccountFormat: "请检查OA号格式", deviceLimitReached: "设备数量已达上限", noParentRoleMarket: "该上级角色无归属地区", + inputRefundBeansBoth: "请输入退款金币数和免费金币数", + limitRefundGoldNotExceedOriginal: "退款金币数不能大于原金币数", + limitRefundFreeNotExceedOriginal: "退款免费金币数不能大于原免费金币数", + refundAmountError: "退款金额填写有误", roleAddSuccess: "角色{roleName}添加成功", enableSuccess: "启用成功", disableSuccess: "禁用成功", @@ -423,6 +431,7 @@ export default { refundChannels: "退款途径", refundVoucher: "退款截图", refundSuccess: "退款成功", + refundReason: "退款理由", activity: "活动名称", businessBelong: "业绩归属地", startTime: "开始时间", @@ -454,6 +463,7 @@ export default { receiveTime: "到账时间", rejectTime: "驳回时间", rejectReason: "驳回理由", + rejectRemark: "驳回备注", operation: "操作", // 金豆相关 permanentBean: "付费金豆", @@ -531,6 +541,8 @@ export default { vietnamesePlaceholder: "请输入越南文", addTranslation: "新增翻译", editTranslation: "编辑翻译", + refundApplyInfo: "退款申请信息", + originalOrderInfo: "原订单信息", // 用户与角色管理 addUserPermission: "新增用户权限", editUserPermission: "编辑用户权限", @@ -555,6 +567,8 @@ export default { customerNamePlaceholder: "请输入客户姓名", rejectReason: "驳回理由", rejectReasonPlaceholder: "请输入驳回理由", + rejectRemark: "驳回备注", + rejectRemarkPlaceholder: "请输入驳回备注", market: "所属地区", marketPlaceholder: "请输入所属地区", activity: "活动名称", @@ -1009,6 +1023,13 @@ export default { // 现金管理 cash: { + refundProgress: "退款进度", + progress: { + areaFinance: "地区财务", + areaCharge: "地区负责人", + headFinance: "总部财务", + executor: "指定执行人", + }, // 收款管理 receiveCashDataTitle: "数据说明", receiveCashDataContent: "收款的所有页面:订单记录默认按照付款时间降序排列", @@ -1132,11 +1153,13 @@ export default { }, // 审核状态 statusList: { + submitted: "已提交", pending: "待审核", - passed: "已通过", + passed: "审核通过", recalled: "已撤回", refunded: "退款", rejected: "已驳回", + inProgress: "进行中", }, // 执行明细 pending: "待处理", diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue index 865886b..c7703ed 100644 --- a/src/views/moneyManage/refundDetail/refundCharge.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -3,96 +3,96 @@
- 精网号 - + {{ t('common.jwcode') }} +
- 客户姓名 - + {{ t('common.customerName') }} +
- 产品名称 + {{ t('common.productName') }} + :placeholder="t('common.productNamePlaceholder')" clearable />
-
- 所属地区 - + {{ t('common.market') }} +
- 订单状态 - + {{ t('common.orderStatus') }} +
- 付款币种 - + {{ t('common.payCurrency') }} +
- 支付方式 - + {{ t('common.payModel') }} +
- 付款时间 - {{ t('common.payTime') }} +
- 查询 - 导出excel - 查看导出列表 - 重置 + {{ t('common.search') }} + {{ t('common.exportExcel') }} + {{ t('common.viewExportList') }} + {{ t('common.reset') }}
- + - - - - - + + + + + - - - - + + + + - + @@ -104,126 +104,126 @@ style="margin-top: 1vh;"> -
- 退款申请信息 + {{ t('common_add.refundApplyInfo') }}
- 退款方式 + {{ t('common_add.refundModel') }} - - + +
- 永久金币 -  个 + {{ t('common_add.permanentGold') }} +  {{ t('common.个') }}
- 免费金币 -  个 + {{ t('common_add.freeGold') }} +  {{ t('common.个') }}
- 退款理由 + {{ t('common_add.refundReason') }}
- 原订单信息 + {{ t('common_add.originalOrderInfo') }}
- 精网号 + {{ t('common_add.jwcode') }}
- 所属地区 + {{ t('common_add.market') }}
- 产品名称 + {{ t('common_add.productName') }}
- 付款币种 + {{ t('common_add.payCurrency') }}
- 付款金额 + {{ t('common_add.payAmount') }}
- 付款时间 + {{ t('common_add.payTime') }}
- 转账凭证 + {{ t('common_add.transferVoucher') }}
- 无转账凭证 + {{ t('common_add.noTransferVoucher') }}
- 客户姓名 + {{ t('common_add.customerName') }}
- 活动名称 + {{ t('common_add.activity') }}
- 支付方式 + {{ t('common_add.payMethod') }}
- 到账币种 + {{ t('common_add.receiveCurrency') }}
- 到账金额 + {{ t('common_add.receiveAmount') }}
- 到账时间 + {{ t('common_add.receiveTime') }}
- 手续费 + {{ t('common_add.fee') }}
- 提交人 + {{ t('common_add.submitter') }}
- 备注 + {{ t('common_add.remark') }}
- 驳回信息 + {{ t('common.rejectInfo') }}
- 驳回备注 - {{ t('common_add.rejectRemark') }} +
- 驳回 - 通过 + {{ t('common.reject') }} + {{ t('common.pass') }}
- 取消 - 确定 + {{ t('common.cancel') }} + {{ t('common.confirm') }}
- +
- 确定 + {{ t('common.confirm') }}
- + - - + + - + - +