diff --git a/src/components/locales/lang/en.js b/src/components/locales/lang/en.js index 71945a3..1382033 100644 --- a/src/components/locales/lang/en.js +++ b/src/components/locales/lang/en.js @@ -1,104 +1,434 @@ + + +// Do not modify the variables in this package arbitrarily!!! + export default { - // Common Group + // Common Group (Filters, Buttons, Units) common: { // Filters - jwcode: 'jwcode', - jwcodePlaceholder: 'Please enter jwcode', + name: 'Name', + jwcode: 'Jwcode', + jwcodePlaceholder: 'Please enter Jwcode', activityName: 'Activity Name', activityNamePlaceholder: 'Please enter activity name', - goodsName: 'Goods Name', - goodsNamePlaceholder: 'Please enter goods name', + goodsName: 'Product Name', + goodsNamePlaceholder: 'Please enter product name', payModel: 'Payment Method', - payModelPlaceholder: 'Please select payment method', + payModelPlaceholder: 'Select a payment method', refundType: 'Refund Type', - refundTypePlaceholder: 'Please select refund type', - market: 'Market', - marketPlaceholder: 'Please select market', + refundTypePlaceholder: 'Select refund type', + market: 'Region', + marketPlaceholder: 'Select region', + consumePlatform: 'Consumption Platform', + consumePlatformPlaceholder: 'Select consumption platform', + rechargePlatform: 'Recharge Platform', + rechargePlatformPlaceholder: 'Select recharge platform', + payPlatform: 'Platform', + payPlatformPlaceholder: 'Select platform', + updateType: 'Update Type', + updateTypePlaceholder: 'Select update type', + consumeTime: 'Consumption Time', + rechargeTime: 'Recharge Time', + refundTime: 'Refund Time', + updateTime: 'Update Time', submitTime: 'Submit Time', auditTime: 'Audit Time', startTime: 'Start Time', to: 'To', endTime: 'End Time', - // Button Group + // Buttons search: 'Search', + exportExcel: 'Export Excel', + viewExportList: 'View Export List', reset: 'Reset', edit: 'Edit', - pass: 'Pass', + pass: 'Approve', reject: 'Reject', cancel: 'Cancel', confirm: 'Confirm', + submit: 'Submit', + confrimRecharge: 'Confirm Recharge', + + // Buttons - Date + today: 'Today', + yesterday: 'Yesterday', + last7Days: 'Last 7 Days', - // Currency Types + // Units + rechargeSGD: 'Recharge (SGD)', + consumeSGD: 'Consumption (SGD)', + refundGoldCoin: 'Total Refunded Gold Coins', + totalGoldCoin: 'Total Gold Coins', + netGoldChange: 'Net Gold Coin Change', + netGoldChangeTip: + 'The current total shows the net change in gold coins within the selected range (Total Recharged - Total Consumed + Total Refunded)', + permanentGold: 'Permanent Gold Coins', + freeGold: 'Free Gold Coins', + taskGold: 'Task Gold Coins', SGD: 'SGD', - goldCoin: '', // Gold Coin label intentionally empty - // 对话框标题 - will: 'Will', + goldCoin: '', + 条: 'items', + 个: '', + goldBean: '', + + // Dialog Titles + will: 'Action Notice', + }, + + // Message Group + elmessage: { + // Common + addSuccess: 'Added successfully', + searchSuccess: 'Search completed', + requestFailed: 'Request failed', + jwcodeError: 'Invalid Jwcode', + addFailedUnknown: 'Add failed due to an unknown error', + addFailed: 'Add failed. Please check your network or contact the administrator', + queryFailed: 'Query failed. Please check your network or Jwcode', + refundTypeError: 'Refund type format error. Please contact the administrator', + getTotalFailed: 'Failed to obtain summary data. Please try again later', + payPlatformError: 'Platform data format error. Please contact the administrator', + confirmRefund: 'Confirm refund?', + + // Validation + checkInputContent: 'Please verify the input content', + permanentAndFreeNoZero: 'Permanent and free gold coins cannot both be 0', + checkRate: 'Please select a currency', + checkMoney: 'Please enter the recharge amount', + checkJwcode: 'Please enter Jwcode', + checkGoodsName: 'Please select a product', + checkUserInfo: 'Please query user information first', + checkActivity: 'Please enter activity name', + checkPermanentGold: 'Please enter permanent gold coin amount', + checkFreeGold: 'Please enter free gold coin amount', + checkTaskGold: 'Please enter task gold coin amount', + checkNumber: 'Please enter a valid number', + checkPayModel: 'Please select a payment method', + checkPayTime: 'Please select a payment time', + checkQueryParams: 'Please check query parameters', + checkRefundType: 'Please select a refund type', + checkRefundGoods: 'Please select a refund product', + checkOrderNo: 'Please enter the order number', + + // Validation Error + noEmptyJwcode: 'Jwcode cannot be empty', + noEmptySumGold: 'Total consumed gold coins cannot be empty', + noUser: 'User does not exist', + noOrder: 'No related order found', + noTotalGoldZero: 'Total gold coins cannot be 0', + noNegativeNumber: 'Negative numbers are not allowed', + limitDigitJwcode: 'Jwcode may only contain digits', + limitNoSpecialChar: 'Cannot contain special characters or negative numbers', + limitNegativeNumber: 'Consumed gold coins cannot be negative', + limitExceeded: 'Consumed gold coins exceed the available balance', + limitSix: 'Integer part cannot exceed 6 digits', + limitTwoDecimal: 'Decimal part cannot exceed 2 digits', + limitZero: 'Amount cannot be less than 0', + limitPositiveNumber: 'Enter a positive number greater than 0 (up to 2 decimals)', + limitJwcodeNine: 'Jwcode must be numeric and up to 9 digits', + limitBalance: 'Entered amount exceeds available balance', + + // Image Upload + onlyUploadJPGPNG: 'Only JPG/PNG images are allowed', + limitImageSize: 'Image size cannot exceed 1MB', + uploadSuccess: 'Upload successful', + UploadFailed: 'Upload failed', + + // Audit + noPermission: 'No permission', + checkJwcodeFormat: 'Please check the Jwcode format', + rejectReasonPlaceholder: 'Please enter a rejection reason', + rejectSuccess: 'Rejected successfully', + rejectFailed: 'Rejection failed', + operationFailed: 'Operation failed', + approveSuccess: 'Approved successfully', + approveFailed: 'Approval failed', + activityFormatError: 'Activity data format error. Please contact the administrator', + rechargeFormatError: 'Recharge method format error. Please contact the administrator', + getRechargeError: 'Failed to obtain recharge methods. Please try again later', + + // Export + exportSuccess: 'Export successful', + exportFailed: 'Export failed. Please try again later', + getExportListError: 'Failed to retrieve export list. Please try again later', + exportingInProgress: 'File is being generated. Please try again later', + + // Export Status + pendingExecution: 'Pending', + executing: 'In Progress', + executed: 'Completed', + errorExecution: 'Error', + unknownStatus: 'Unknown', + }, + + // Common List Fields + common_list: { + id: 'No.', + name: 'Name', + jwcode: 'Jwcode', + market: 'Region', + sumGold: 'Total Gold Coins', + payPlatform: 'Platform', + type: 'Update Type', + orderNo: 'Order No.', + goodsName: 'Product Name', + refundType: 'Refund Type', + refundModel: 'Refund Method', + refundModelAll: 'Full Refund', + refundModelPart: 'Partial Refund', + refundGoldCoin: 'Refunded Gold Coins', + activity: 'Activity Name', + rateName: 'Currency', + rechargeAmount: 'Recharge Amount', + Gold: 'Gold Coin Quantity', + freeGold6Month: 'Free Gold (Exp. June)', + freeGold12Month: 'Free Gold (Exp. Dec)', + permanentGold: 'Permanent Gold Coins', + freeGold: 'Free Gold Coins', + taskGold: 'Task Gold Coins', + rechargePlatform: 'Recharge Platform', + consumePlatform: 'Consumption Platform', + consumeTotalGold: 'Total Consumed Gold Coins', + payModel: 'Payment Method', + remark: 'Remark', + orderStatus: 'Order Status', + submitter: 'Submitter', + rechargeTime: 'Recharge Time', + consumeTime: 'Consumption Time', + refundTime: 'Refund Time', + updateTime: 'Update Time', + }, + + // Common Export Fields + common_export: { + exportList: 'Export List', + fileName: 'File Name', + status: 'Status', + createTime: 'Created At', + operation: 'Operation', + download: 'Download', + close: 'Close', + }, + + // Add Form Fields + common_add: { + jwcode: 'Jwcode', + activity: 'Activity Name', + activityPlaceholder: 'Please enter activity name', + permanentGold: 'Permanent Gold Coins', + freeGold: 'Free Gold Coins', + taskGold: 'Task Gold Coins', + rechargeAmount: 'Recharge Amount', + currencyName: 'Currency', + goodsName: 'Product Name', + goodsNamePlaceholder: 'Select product', + payModel: 'Collection Method', + refundType: 'Refund Type', + refundTypePlaceholder: 'Select refund type', + orderNo: 'Order No.', + orderNoPlaceholder: 'Select order number', + refundModel: 'Refund Method', + refundModelAll: 'Full Refund', + refundModelPart: 'Partial Refund', + refundGoldCoin: 'Refunded Gold Coins', + payModelPlaceholder: 'Select collection method', + consumeTotalGold: 'Total Consumed Gold Coins', + totalGold: 'Total Gold Coins', + paymentTime: 'Payment Time', + paymentVoucher: 'Payment Voucher', + paymentVoucherPlaceholder: 'JPG/PNG only, ≤1MB', + remark: 'Remark', + + // Confirm Form + operationConfirm: 'Operation Confirmation', + userInfo: 'User Information', + prompt: 'Duplicate Recharge Warning', + similarRechargeRecords: 'Recent similar recharge records were detected for this user', + rechargePermanentGold: 'Permanent Gold Coin Recharge', + buy: 'Purchase', + operator: 'Operator', + continueOperation: 'Proceed with this action?', + }, + + // Add Form User Info + common_add_user: { + customerInfo: 'Customer Information', + name: 'Name', + currentGoldCoinTotal: 'Current Gold Coin Total', + permanentGold: 'Permanent Gold Coins', + freeGold: 'Free Gold Coins', + taskGold: 'Task Gold Coins', + jwcode: 'Jwcode', + consumptionTimes: 'Consumption Count', + onlyStatisticsDataAfter20250101: 'Statistics only include data after 2025-01-01', + store: 'Store', }, // Audit Group - audit: { - // Audit Common + audit: { refundTypeOptions: { '商品退款': 'Product Refund', - '金币退款': 'Gold Refund', + '金币退款': 'Gold Coin Refund', }, - waitAudit: 'Pending Audit', + waitAudit: 'Pending', passed: 'Approved', rejected: 'Rejected', - permanentGold: 'Permanent', - freeGold: 'Free', - taskGold: 'Task', + permanentGold: 'Permanent Gold Coins', + freeGold: 'Free Gold Coins', + taskGold: 'Task Gold Coins', - // Audit Common - List Fields - id: 'ID', + id: 'No.', name: 'Name', - jwcode: 'JW Code', - market: 'Market', + jwcode: 'Jwcode', + market: 'Region', activityName: 'Activity Name', - currencyName: 'Currency Name', + currencyName: 'Currency', rechargeAmount: 'Recharge Amount', - note: 'Note', + note: 'Remark', payModel: 'Payment Method', paymentVoucher: 'Payment Voucher', submitter: 'Submitter', auditor: 'Auditor', - rejectReason: 'Reject Reason', - rejectReasonPlaceholder: 'Please enter reject reason', + rejectReason: 'Rejection Reason', + rejectReasonPlaceholder: 'Enter rejection reason', paymentTime: 'Payment Time', submitTime: 'Submit Time', auditTime: 'Audit Time', operation: 'Operation', - // Supplement Fields for Refund Audit - orderCode: 'Order Number', + orderCode: 'Order No.', refundType: 'Refund Type', refundModel: 'Refund Method', allRefund: 'Full Refund', partialRefund: 'Partial Refund', - refundGoods: 'Refund Goods', + refundGoods: 'Refund Product', + + permanentBean: 'Paid Gold Beans', + freeBean: 'Free Gold Beans', + + rechargeAudit: 'Recharge Audit', + rechargeSGD: 'Recharge (SGD)', + totalGold: 'Total Gold Coins', - // Gold Recharge Audit ------------------------ - rechargeAudit: 'Recharge Audit', - rechargeSGD: 'Recharge SGD', - totalGold: 'Total Gold', - // 添加支付方式翻译 payMethods: { bankTransfer: 'Bank Transfer', cash: 'Cash', check: 'Check', card: 'Card Payment', - grabpay: 'Grabpay', - nets: 'Nets', + grabpay: 'GrabPay', + nets: 'NETS', paypal: 'PayPal', - stripe: 'Stripe - Link Payment', - ipay88: 'Ipay88 - Link Payment', - paymentAsia: 'PaymentAsia - Link Payment', - other: 'Other' + stripe: 'Stripe (Link)', + ipay88: 'iPay88 (Link)', + paymentAsia: 'PaymentAsia (Link)', + other: 'Other', }, - // Gold Refund Audit -------------------------- refundAudit: 'Refund Audit', - refundTotalGold: 'Total Refund', + refundTotalGold: 'Total Refunded Gold Coins', + + totalNum: 'Total Items', + totalBean: 'Total Gold Beans', + + rejectRecord: 'Reject This Record', + passRecord: 'Approve This Record', + }, + + // Recharge Group + recharge: { + coinRechargeDetail: 'Gold Coin Recharge Details', + + normal: 'Normal', + refunded: 'Refunded', + unknown: 'Unknown', + + addCoinRecharge: 'New Recharge', + + payMethods: { + bankTransfer: 'Bank Transfer', + cash: 'Cash', + check: 'Check', + card: 'Card Payment', + grabpay: 'GrabPay', + nets: 'NETS', + paypal: 'PayPal', + stripe: 'Stripe (Link)', + ipay88: 'iPay88 (Link)', + paymentAsia: 'PaymentAsia (Link)', + other: 'Other', + }, + }, + + // Consume Group + consume: { + coinConsumeDetail: 'Gold Coin Consumption Details', + + normal: 'Normal', + refunded: 'Refunded', + unknown: 'Unknown', + + consumePlatforms: { + goldSystem: 'Gold System', + HomilyChart: 'HomilyChart', + HomilyLink: 'HomilyLink', + ERP: 'ERP', + other: 'Other', + initGold: 'Gold Initialization', + }, + + addCoinConsume: 'New Consumption', + }, + + // Refund Group + refund: { + coinRefundDetail: 'Gold Coin Refund Details', + + normal: 'Normal', + refunded: 'Refunded', + unknown: 'Unknown', + + refundMethods: { + allRefund: 'Full Refund', + partialRefund: 'Partial Refund', + }, + + refundTypeOptions: { + '商品退款': 'Product Refund', + '金币退款': 'Gold Coin Refund', + }, + + addCoinRefund: 'New Refund', + + id: 'No.', + type: 'Type', + recharge: 'Recharge', + consume: 'Consumption', + productName: 'Product Name', + orderCode: 'Order No.', + permanentGold: 'Permanent Gold Coins', + freeGold: 'Free Gold Coins', + taskGold: 'Task Gold Coins', + isRefund: 'Refund Allowed', + no: 'No', + yes: 'Yes', + }, + + // Client Count Group + clientCount: { + clientCountBalance: 'Gold Coin Balance', + + clientCountDetail: 'Gold Coin Details', + + recharge: 'Recharge', + consume: 'Consumption', + refund: 'Refund', + other: 'Other', + + type: { + recharge: 'Recharge', + consume: 'Consumption', + refund: 'Refund', + }, }, } diff --git a/src/components/locales/lang/zh-CN.js b/src/components/locales/lang/zh-CN.js index 48a9fc9..48f70a0 100644 --- a/src/components/locales/lang/zh-CN.js +++ b/src/components/locales/lang/zh-CN.js @@ -1,4 +1,4 @@ -import { UploadFilled } from "@element-plus/icons-vue"; + // 包里的变量不可随意更改!!! diff --git a/src/util/request.js b/src/util/request.js index 5871979..87db043 100644 --- a/src/util/request.js +++ b/src/util/request.js @@ -2,7 +2,7 @@ import axios from 'axios' // 创建axios实例 const service = axios.create({ baseURL: import.meta.env.VITE_API_BASE,//.env.development - timeout: 20000, // 20秒超时 + timeout: 60000, // 60秒超时 headers: { 'Content-Type': 'application/json' }, diff --git a/src/views/consume/gold/addCoinConsume.vue b/src/views/consume/gold/addCoinConsume.vue index 46eadd8..7e0e185 100644 --- a/src/views/consume/gold/addCoinConsume.vue +++ b/src/views/consume/gold/addCoinConsume.vue @@ -535,7 +535,7 @@ onMounted(async function () {