From 7cbb967ee1f553cf319b63ae7cdd8806be472201 Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Fri, 28 Nov 2025 17:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=AE=8C=E6=88=90=E9=87=91?= =?UTF-8?q?=E5=B8=81=E9=80=80=E6=AC=BE=E5=92=8C=E9=87=91=E5=B8=81=E6=B6=88?= =?UTF-8?q?=E8=80=97=E7=9A=84=E4=B8=AD=E6=96=87=E8=AF=AD=E8=A8=80=E5=8C=85?= =?UTF-8?q?=E5=BB=BA=E7=AB=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/locales/lang/zh-CN.js | 118 ++++++++++++++++++- src/views/consume/gold/addCoinConsume.vue | 167 ++++++++++++++------------- src/views/consume/gold/coinConsume.vue | 5 +- src/views/consume/gold/coinConsumeDetail.vue | 127 ++++++++++---------- src/views/refund/gold/addCoinRefund.vue | 138 +++++++++++----------- src/views/refund/gold/coinRefund.vue | 5 +- src/views/refund/gold/coinRefundDetail.vue | 114 +++++++++--------- 7 files changed, 406 insertions(+), 268 deletions(-) diff --git a/src/components/locales/lang/zh-CN.js b/src/components/locales/lang/zh-CN.js index 8944b14..aaebf9a 100644 --- a/src/components/locales/lang/zh-CN.js +++ b/src/components/locales/lang/zh-CN.js @@ -1,7 +1,7 @@ import { UploadFilled } from "@element-plus/icons-vue"; export default { - // 通用组 + // 通用组 (筛选,按钮,币种计量) common: { // 筛选 jwcode: '精网号', @@ -16,9 +16,13 @@ export default { refundTypePlaceholder: '请选择退款类型', market: '所属地区', marketPlaceholder: '请选择所属地区', + consumePlatform: '消耗平台', + consumePlatformPlaceholder: '请选择消耗平台', rechargePlatform: '充值平台', rechargePlatformPlaceholder: '请选择充值平台', + consumeTime: '消耗时间', rechargeTime: '充值时间', + refundTime: '退款时间', submitTime: '提交时间', auditTime: '审核时间', startTime: '起始时间', @@ -34,9 +38,16 @@ export default { reject: '驳回', cancel: '取消', confirm: '确认', + submit: '提交', confrimRecharge: '确认充值', + // 按钮组-日期 + today: '今', + yesterday: '昨', + last7Days: '近7天', // 币种计量单位类型 rechargeSGD: '充值新币', + consumeSGD: '消耗新币', + refundGoldCoin: '退款金币总数', totalGoldCoin: '总金币数', permanentGold: '永久金币', freeGold: '免费金币', @@ -44,6 +55,7 @@ export default { SGD: '新币', goldCoin: '金币', 条: '条', + 个: '个', goldBean: '金豆', // 对话框标题 will: '将要', @@ -53,28 +65,49 @@ export default { // 通用 addSuccess: '添加成功', searchSuccess: '查询成功', + requestFailed: '请求失败', jwcodeError: '精网号错误', + addFailedUnknown: '添加失败,未知错误', + addFailed: '添加失败,请检查网络连接或联系管理员', + queryFailed: '查询失败,请检查网络连接或精网号是否正确', + refundTypeError: '退款类型数据格式错误,请联系管理员', + confirmRefund: '确认退款?', // 校验精网号,充值等输入 checkInputContent: '请检查输入内容', permanentAndFreeNoZero: '永久金币和免费金币不能同时为0', checkRate: '请选择币种名称', checkMoney: '请输入充值金额', + checkJwcode: '请输入精网号', + checkGoodsName: '请选择商品', checkUserInfo: '请先查询用户信息', checkActivity: '请输入活动名称', checkPermanentGold: '请输入永久金币数', checkFreeGold: '请输入免费金币数', + checkTaskGold: '请输入任务金币数', checkNumber: '请输入有效的数字', checkPayModel: '请选择付款方式', checkPayTime: '请选择交款时间', + checkQueryParams: '请检查查询参数', + checkRefundType: '请选择退款类型', + checkRefundGoods: '请选择退款商品', + checkOrderNo: '请输入订单号', // 校验提示(error) noEmptyJwcode: '精网号不能为空', + noEmptySumGold: '消耗金币总数不能为空', noUser: '用户不存在', + noOrder: '未查询到相关订单', + noTotalGoldZero: '总金币数不能为0', + noNegativeNumber: '不能输入负数', limitDigitJwcode: '精网号只能包含数字', limitNoSpecialChar: '不能包含特殊符号或负数', + limitNegativeNumber: '消耗金币总数不能为负数', + limitExceeded: '消耗金币总数超过可用金币总和', limitSix: '整数位数不能超过6位', limitTwoDecimal: '小数位数不能超过两位', limitZero: '输入金额不能小于0', + limitPositiveNumber: '请输入大于0的正数(可包含最多两位小数)', limitJwcodeNine: '精网号必须为数字且不超过九位', + limitBalance: '所填金额大于该类金币余额', // 图片上传 onlyUploadJPGPNG: '只能上传 JPG/PNG 图片!', limitImageSize: '图片大小不能超过 1MB!', @@ -111,19 +144,30 @@ export default { name: '姓名', jwcode: '精网号', market: '所属地区', + orderNo: '订单号', + goodsName: '商品名称', + refundType: '退款类型', + refundModel: '退款方式', + refundModelAll: '全部退款', + refundModelPart: '部分退款', + refundGoldCoin: '退款金币总数', activity: '活动名称', rateName: '货币名称', rechargeAmount: '充值金额', permanentGold: '永久金币', freeGold: '免费金币', + taskGold: '任务金币', rechargePlatform: '充值平台', + consumePlatform: '消耗平台', + consumeTotalGold: '消耗金币总数', payModel: '支付方式', remark: '备注', orderStatus: '订单状态', submitter: '提交人', rechargeTime: '充值时间', + consumeTime: '消耗时间', + refundTime: '退款时间', }, - // 通用导出字段组 common_export: { exportList: '导出列表', @@ -142,10 +186,23 @@ export default { activityPlaceholder: '请输入活动名称', permanentGold: '永久金币', freeGold: '免费金币', + taskGold: '任务金币', rechargeAmount: '充值金额', currencyName: '货币名称', + goodsName: '商品名称', + goodsNamePlaceholder: '请选择商品', payModel: '收款方式', + refundType: '退款类型', + refundTypePlaceholder: '请选择退款类型', + orderNo: '订单号', + orderNoPlaceholder: '请选择订单号', + refundModel: '退款方式', + refundModelAll: '全部退款', + refundModelPart: '部分退款', + refundGoldCoin: '退款金币总数', payModelPlaceholder: '请选择收款方式', + consumeTotalGold: '消耗金币总数', + totalGold: '金币总数', paymentTime: '交款时间', paymentVoucher: '交款凭证', paymentVoucherPlaceholder: '仅支持.jpg .png格式,文件≤1MB', @@ -156,6 +213,7 @@ export default { prompt: '重复充值风险提示', similarRechargeRecords: '检测到该用户近期有相似充值记录', rechargePermanentGold: '充值永久金币', + buy: '购买', operator: '操作人', continueOperation: '是否继续操作', }, @@ -246,6 +304,7 @@ export default { passRecord: '通过该记录!', }, + // 充值组 recharge: { // 金币充值明细 --------------------------------- coinRechargeDetail: '金币充值明细', @@ -271,4 +330,59 @@ export default { other: '其他' }, }, + + // 消耗组 + consume: { + // 金币消耗明细 --------------------------------- + coinConsumeDetail: '金币消耗明细', + // 订单状态 + normal: '正常', + refunded: '已退款', + unknown: '未知状态', + // 消费平台选项 + consumePlatforms: { + goldSystem: '金币系统', + HomilyChart: 'HomilyChart', + HomilyLink: 'HomilyLink', + ERP: 'ERP', + other: '其他', + initGold: '初始化金币', + }, + // 新增消耗 + addCoinConsume: '新增消耗', + }, + + //退款组 + refund: { + // 金币退款明细 --------------------------------- + coinRefundDetail: '金币退款明细', + // 订单状态 + normal: '正常', + refunded: '已退款', + unknown: '未知状态', + // 退款方式选项 + refundMethods: { + allRefund: '全部退款', + partialRefund: '部分退款', + }, + // 新增退款 + refundTypeOptions: { + '商品退款': '商品退款', + '金币退款': '金币退款', + }, + addCoinRefund: '新增退款', + // 新增退款的用户表单 + id: '序号', + type: '类型', + recharge: '充值', + consume: '消费', + productName: '商品名称', + orderCode: '订单号', + permanentGold: '永久金币', + freeGold: '免费金币', + taskGold: '任务金币', + isRefund: '允许退款', + no: '否', + yes: '是', + }, } \ No newline at end of file diff --git a/src/views/consume/gold/addCoinConsume.vue b/src/views/consume/gold/addCoinConsume.vue index f27035b..46eadd8 100644 --- a/src/views/consume/gold/addCoinConsume.vue +++ b/src/views/consume/gold/addCoinConsume.vue @@ -1,13 +1,16 @@