|
|
@@ -2,11 +2,11 @@
|
|
|
<app-view class="g-form bank-wallet-withdraw">
|
|
|
<Form ref="formRef" class="g-form__container" @submit="doWithDrawWarning">
|
|
|
<CellGroup inset v-if="cusBank?.canoutamount === 1">
|
|
|
- <Field class="form-field" type="number" label="收款金额" v-model="formData.Amount"
|
|
|
+ <Field class="form-field" type="number" :label="$t('banksign.wallet.withdraw.outamount')" v-model="formData.Amount"
|
|
|
:rules="formRules.Amount">
|
|
|
<template #input>
|
|
|
<input v-model="formData.Amount" placeholder="请输入" />
|
|
|
- <span class="form-field__tips">可收款额:{{ fund.AvailableOutMoney }}</span>
|
|
|
+ <span class="form-field__tips">{{ $t('banksign.wallet.withdraw.availableoutmoney') }}{{ fund.AvailableOutMoney }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
<Field label="开户银行">
|
|
|
@@ -30,7 +30,7 @@
|
|
|
</template>
|
|
|
</CellGroup>
|
|
|
<div class="tips_time">
|
|
|
- <span class="msg_tips">收款时间:交易日 {{ startTime }} - {{ endTime }}</span>
|
|
|
+ <span class="msg_tips">{{ $t('banksign.wallet.withdraw.time') }} {{ startTime }} - {{ endTime }}</span>
|
|
|
<span class="msg_tips"><br>节假日以通知、公告为准,非交易日请勿操作!</span>
|
|
|
</div>
|
|
|
<CellGroup inset v-if="msg_317">
|
|
|
@@ -63,7 +63,7 @@ import { fullloading, dialog, } from '@/utils/vant'
|
|
|
import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
|
import { getServerTime } from '@/services/api/common'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
-import { useUserStore } from '@/stores'
|
|
|
+import { useUserStore, i18n } from '@/stores'
|
|
|
import moment from 'moment'
|
|
|
|
|
|
const { formData, onSubmit, sign } = useDoWithdraw()
|
|
|
@@ -76,6 +76,7 @@ const { getSystemParamValue } = useUserStore()
|
|
|
const msg = getSystemParamValue('302')
|
|
|
const msg_317 = getSystemParamValue('317')
|
|
|
const userStore = useUserStore()
|
|
|
+const { global: { t }} = i18n
|
|
|
|
|
|
// 表单验证规则
|
|
|
const formRules: { [key: string]: FieldRule[] } = {
|
|
|
@@ -86,9 +87,9 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
if (val <= (fund.value.AvailableOutMoney ?? 0.0) && val > 0.0) {
|
|
|
return true
|
|
|
} else if (fund.value.AvailableOutMoney === 0.0) {
|
|
|
- return '可收款额为0'
|
|
|
+ return t('banksign.wallet.withdraw.theamountavailableis0')
|
|
|
} else {
|
|
|
- return '超过可收款额'
|
|
|
+ return t('banksign.wallet.withdraw.exceedingthepayableamount')
|
|
|
}
|
|
|
}
|
|
|
}]
|
|
|
@@ -108,7 +109,7 @@ const doWithDrawWarning = () => {
|
|
|
} else {
|
|
|
dialog({
|
|
|
title: '提示',
|
|
|
- message: '收款不在时间范围内',
|
|
|
+ message: t('banksign.wallet.withdraw.goldisnotwithinthetimeframe'),
|
|
|
confirmButtonText: '我知道了'
|
|
|
})
|
|
|
}
|