|
|
@@ -10,7 +10,8 @@
|
|
|
:placeholder="$t('banksign.wallet.withdraw.pleaseenteroutamount')" />
|
|
|
<div class="form-field__tips">
|
|
|
<label>{{ $t('banksign.wallet.withdraw.availableoutmoney') }}</label>
|
|
|
- <span style="color: #FF0000;">{{ fund.AvailableOutMoney }}</span>
|
|
|
+ <span style="color: #FF0000;">{{ currencyFormat(fund.AvailableOutMoney,
|
|
|
+ accountStore.currentAccount.currencyid) }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</Field>
|
|
|
@@ -22,30 +23,38 @@
|
|
|
</template>
|
|
|
</CellGroup>
|
|
|
<CellGroup>
|
|
|
- <Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankaccountname')" :value="handleNoneValue(sign.bankaccountname)" />
|
|
|
- <Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankname')" :value="handleNoneValue(sign.bankname)" />
|
|
|
- <Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankaccountno')" :value="handleNoneValue(sign.bankaccountno)" />
|
|
|
- <Field v-if="sign.ismix === 1" name="bankaccountname" :label="$t('banksign.wallet.withdraw.bankaccountname')"
|
|
|
- v-model.trim="sign.bankaccountname" @click="showReciver = true" is-link readonly />
|
|
|
- <Field v-if="sign.ismix === 1" type="number" name="phone_number" :label="$t('banksign.mobilephone')" maxlength="30" v-model.trim="onboard.phone_number" :placeholder="$t('banksign.Pleaseenteryourmobilephonenumber')"
|
|
|
- :rules="formRules.phone_number" />
|
|
|
- <Field v-if="sign.ismix === 1" type="number" name="cert_no" :label="$t('banksign.cardno')" maxlength="30" v-model.trim="onboard.cert_no" :placeholder="$t('user.authentication.pleaseenterthecardnum')" :rules="formRules.cert_no" />
|
|
|
- <Field v-if="sign.ismix === 1" :label="$t('banksign.bankchannel')" name="channel_code" is-link >
|
|
|
+ <Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankaccountname')"
|
|
|
+ :value="handleNoneValue(sign.bankaccountname)" />
|
|
|
+ <Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankname')"
|
|
|
+ :value="handleNoneValue(sign.bankname)" />
|
|
|
+ <Cell v-if="sign.ismix === 0" :title="$t('banksign.wallet.withdraw.bankaccountno')"
|
|
|
+ :value="handleNoneValue(sign.bankaccountno)" />
|
|
|
+ <Field v-if="sign.ismix === 1" name="bankaccountname"
|
|
|
+ :label="$t('banksign.wallet.withdraw.bankaccountname')" v-model.trim="sign.bankaccountname"
|
|
|
+ @click="showReciver = true" is-link readonly />
|
|
|
+ <Field v-if="sign.ismix === 1" type="number" name="phone_number" :label="$t('banksign.mobilephone')"
|
|
|
+ maxlength="30" v-model.trim="onboard.phone_number"
|
|
|
+ :placeholder="$t('banksign.Pleaseenteryourmobilephonenumber')" :rules="formRules.phone_number" />
|
|
|
+ <Field v-if="sign.ismix === 1" type="number" name="cert_no" :label="$t('banksign.cardno')"
|
|
|
+ maxlength="30" v-model.trim="onboard.cert_no"
|
|
|
+ :placeholder="$t('user.authentication.pleaseenterthecardnum')" :rules="formRules.cert_no" />
|
|
|
+ <Field v-if="sign.ismix === 1" :label="$t('banksign.bankchannel')" name="channel_code" is-link>
|
|
|
<template #input>
|
|
|
- <app-select v-model="channel_code" :options="hybrids" :optionProps="{ label: 'channel_name', value: 'channel_code' }"
|
|
|
- @confirm="onHibirdChange"/>
|
|
|
+ <app-select v-model="channel_code" :options="hybrids"
|
|
|
+ :optionProps="{ label: 'channel_name', value: 'channel_code' }" @confirm="onHibirdChange" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field v-if="sign.ismix === 1" :label="$t('banksign.banktype')" name="method_type" is-link >
|
|
|
+ <Field v-if="sign.ismix === 1" :label="$t('banksign.banktype')" name="method_type" is-link>
|
|
|
<template #input>
|
|
|
- <app-select v-model="method_type" :options="methodTypes" @confirm="onMethodTypeChange"/>
|
|
|
+ <app-select v-model="method_type" :options="methodTypes" @confirm="onMethodTypeChange" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field v-if="sign.ismix === 1 && channel_banks.length != 0" :label="$t('banksign.bankname1')"
|
|
|
- :placeholder="$t('banksign.Pleaseselectyourbank')" name="bank_code" v-model="hyBankName"
|
|
|
+ <Field v-if="sign.ismix === 1 && channel_banks.length != 0" :label="$t('banksign.bankname1')"
|
|
|
+ :placeholder="$t('banksign.Pleaseselectyourbank')" name="bank_code" v-model="hyBankName"
|
|
|
@click-input="showSelect = true" :rules="formRules.hyBankName" is-link />
|
|
|
- <Field v-if="sign.ismix === 1" type="number" name="bank_account" :label="$t('banksign.bankno')" maxlength="30" v-model.trim="onboard.bank_account" :placeholder="$t('banksign.Pleaseenterbankaccountno')"
|
|
|
- :rules="formRules.bank_account" />
|
|
|
+ <Field v-if="sign.ismix === 1" type="number" name="bank_account" :label="$t('banksign.bankno')"
|
|
|
+ maxlength="30" v-model.trim="onboard.bank_account"
|
|
|
+ :placeholder="$t('banksign.Pleaseenterbankaccountno')" :rules="formRules.bank_account" />
|
|
|
</CellGroup>
|
|
|
<CellGroup v-if="msg_317">
|
|
|
<Cell :title="$t('common.tips')">
|
|
|
@@ -80,16 +89,17 @@
|
|
|
import { reactive, shallowRef, defineAsyncComponent, computed } from 'vue'
|
|
|
import { Form, Field, Cell, CellGroup, FormInstance, Button, FieldRule } from 'vant'
|
|
|
import { fullloading, dialog, } from '@/utils/vant'
|
|
|
+import { currencyFormat } from '@/filters'
|
|
|
import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs, getMethodTypeKeys, useHybridConfigs } from '@/business/bank'
|
|
|
import { getServerTime } from '@/services/api/common'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
-import { useUserStore, i18n } from '@/stores'
|
|
|
+import { useUserStore, useAccountStore, i18n } from '@/stores'
|
|
|
import { handleNoneValue } from '@/filters'
|
|
|
import moment from 'moment'
|
|
|
import AppSelect from '@mobile/components/base/select/index.vue'
|
|
|
|
|
|
const { formData, onSubmit, sign } = useDoWithdraw()
|
|
|
-const { hybrids, channel_code, bank_code, method_type, method_types, channel_banks } = useHybridConfigs(1)
|
|
|
+const { hybrids, channel_code, bank_code, method_type, method_types, channel_banks } = useHybridConfigs(1)
|
|
|
const { configs, cusBank, startTime, endTime } = useDoCusBankExtendConfigs(3)
|
|
|
|
|
|
/// 资金账户信息
|
|
|
@@ -101,7 +111,8 @@ const msg = getSystemParamValue('302')
|
|
|
const msg_317 = getSystemParamValue('317')
|
|
|
const { global: { t } } = i18n
|
|
|
|
|
|
-const userStore = useUserStore()
|
|
|
+const accountStore = useAccountStore()
|
|
|
+const userStore = useUserStore()
|
|
|
const { userinfotype } = userStore.userInfo
|
|
|
|
|
|
const showReciver = shallowRef(false)
|
|
|
@@ -109,7 +120,7 @@ const Reciver = defineAsyncComponent(() => import('./reciver/Index.vue'))
|
|
|
|
|
|
const hyBankName = shallowRef('')
|
|
|
// 弹出客户选择界面
|
|
|
-const showSelect = shallowRef(false)
|
|
|
+const showSelect = shallowRef(false)
|
|
|
// 选择银行
|
|
|
const SelectBank = defineAsyncComponent(() => import('../hybank/Index.vue'))
|
|
|
|