Browse Source

feat(退款管理): 新增退款成功状态并优化国际化

- 在中文语言包中添加“退款成功”状态翻译
- 将退款详情页面的驳回理由按钮和弹窗标题替换为国际化翻译
- 在退款管理页面中,将状态筛选条件替换为国际化翻译
- 将精网号验证和长度限制的错误提示替换为国际化翻译
lihuilin/feature-20260121173255-多语言二期2合并
zhangrenyuan 1 month ago
parent
commit
3c299d9926
  1. 1
      src/components/locales/lang/zh-CN.js
  2. 12
      src/views/moneyManage/refundDetail/refundCharge.vue
  3. 4
      src/views/moneyManage/refundDetail/refundService.vue

1
src/components/locales/lang/zh-CN.js

@ -1108,6 +1108,7 @@ export default {
rejected: "已驳回",
inProgress: "进行中",
received: "已到账",
success: "退款成功",
},
unit: "个",
year: "年",

12
src/views/moneyManage/refundDetail/refundCharge.vue

@ -645,13 +645,13 @@ const getMarket = async function () {
const exportExcel = async function () {
const payCurrencySelect = ref('')
const statuses = ref([20, 22, 30, 32, 40, 41]) //
if (searchForm.value.statuses === '审核通过') {
if (searchForm.value.statuses === t('cash.statusList.passed')) {
statuses.value = [30, 40]
} else if (searchForm.value.statuses === '已驳回') {
} else if (searchForm.value.statuses === t('cash.statusList.rejected')) {
statuses.value = [22, 32]
} else if (searchForm.value.statuses === '待审核') {
} else if (searchForm.value.statuses === t('cash.statusList.pending')) {
statuses.value = [20]
} else if (searchForm.value.statuses === '退款成功') {
} else if (searchForm.value.statuses === t('cash.statusList.success')) {
statuses.value = [41]
} else {
statuses.value = [20, 22, 30, 32, 40, 41]
@ -663,13 +663,13 @@ const exportExcel = async function () {
if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) {
ElMessage.error('请输入正确的精网号')
ElMessage.error(t('elmessage.checkJwcodeFormat'))
return
}
}
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
ElMessage.error(t('elmessage.limitJwcodeLength'))
return;
}

4
src/views/moneyManage/refundDetail/refundService.vue

@ -111,7 +111,7 @@
</el-button>
<el-button v-if="[12, 22, 32].includes(scope.row.status)" type="primary" text
@click="showRejectReasonDialog(scope.row)">
查看驳回理由
{{ t('common.viewRejectReason') }}
</el-button>
</div>
</template>
@ -237,7 +237,7 @@
</div>
</el-dialog>
<el-dialog v-model="showRejectReason" title="驳回理由" width="40%" style="background-color: rgb(243,250,254);">
<el-dialog v-model="showRejectReason" :title="t('common.viewRejectReason')" width="40%" style="background-color: rgb(243,250,254);">
<div>{{ rejectReason }}</div>
</el-dialog>
</template>

Loading…
Cancel
Save