|
@@ -23,38 +23,33 @@
|
|
|
</template>
|
|
</template>
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
<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" :label="$t('banksign.bankchannel')" name="channel_code" is-link >
|
|
|
<template #input>
|
|
<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>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
- <Field v-if="sign.ismix === 1" :label="$t('banksign.banktype')" name="method_type" is-link>
|
|
|
|
|
|
|
+ <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 && channel_code != 'mypay'" 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 && channel_code != 'mypay'" 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 && channel_code != 'mypay'" :label="$t('banksign.banktype')" name="method_type" is-link >
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<app-select v-model="method_type" :options="methodTypes" @confirm="onMethodTypeChange" />
|
|
<app-select v-model="method_type" :options="methodTypes" @confirm="onMethodTypeChange" />
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
- <Field v-if="sign.ismix === 1 && channel_banks.length != 0" :label="$t('banksign.bankname1')"
|
|
|
|
|
|
|
+ <Field v-if="sign.ismix === 1 && channel_code != 'mypay' && channel_banks.length != 0" :label="$t('banksign.bankname1')"
|
|
|
:placeholder="$t('banksign.Pleaseselectyourbank')" name="bank_code" v-model="hyBankName"
|
|
:placeholder="$t('banksign.Pleaseselectyourbank')" name="bank_code" v-model="hyBankName"
|
|
|
@click-input="showSelect = true" :rules="formRules.hyBankName" is-link />
|
|
@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 && channel_code === 'mypay' " name="bank" :label="$t('banksign.bankname1')" maxlength="30" v-model.trim="onboard.bank_name" :placeholder="$t('common.placeholder')"
|
|
|
|
|
+ :rules="formRules.bank_name" />
|
|
|
|
|
+ <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('common.placeholder')"
|
|
|
|
|
+ :rules="formRules.bank_account" />
|
|
|
|
|
+ <Field v-if="sign.ismix === 1 && channel_code === 'mypay' " name="bankbranch" :label="$t('banksign.branchbankname')" maxlength="30" v-model.trim="onboard.bankbranch" :placeholder="$t('common.placeholder')"
|
|
|
|
|
+ :rules="formRules.bankbranch" />
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
<CellGroup v-if="msg_317">
|
|
<CellGroup v-if="msg_317">
|
|
|
<Cell :title="$t('common.tips')">
|
|
<Cell :title="$t('common.tips')">
|
|
@@ -210,6 +205,14 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
hyBankName: [{
|
|
hyBankName: [{
|
|
|
message: t('banksign.Pleaseselectyourbank'),
|
|
message: t('banksign.Pleaseselectyourbank'),
|
|
|
required: true
|
|
required: true
|
|
|
|
|
+ }],
|
|
|
|
|
+ bankbranch: [{
|
|
|
|
|
+ message: t('banksign.Pleaseenterbranchbankname'),
|
|
|
|
|
+ required: true
|
|
|
|
|
+ }],
|
|
|
|
|
+ bank_name: [{
|
|
|
|
|
+ message: t('common.pleaseenter'),
|
|
|
|
|
+ required: true
|
|
|
}]
|
|
}]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -256,13 +259,20 @@ const formSubmit = () => {
|
|
|
|
|
|
|
|
const receiver: { [key: string]: unknown } = Object.create({})
|
|
const receiver: { [key: string]: unknown } = Object.create({})
|
|
|
receiver['bank_account'] = onboard.bank_account
|
|
receiver['bank_account'] = onboard.bank_account
|
|
|
- receiver['cert_no'] = onboard.cert_no
|
|
|
|
|
- receiver['phone_number'] = onboard.phone_number
|
|
|
|
|
receiver['name'] = sign.value.bankaccountname
|
|
receiver['name'] = sign.value.bankaccountname
|
|
|
receiver['receiver_type'] = onboard.receiver_type
|
|
receiver['receiver_type'] = onboard.receiver_type
|
|
|
|
|
+ // mypay 不需要这些
|
|
|
|
|
+ if (channel_code.value != 'mypay') {
|
|
|
|
|
+ receiver['cert_no'] = onboard.cert_no
|
|
|
|
|
+ receiver['phone_number'] = onboard.phone_number
|
|
|
|
|
+ }
|
|
|
|
|
+ if (channel_code.value === 'mypay') {
|
|
|
|
|
+ receiver['bank_branch'] = onboard.bankbranch
|
|
|
|
|
+ receiver['bank'] = onboard.bank_name
|
|
|
|
|
+ }
|
|
|
hybrid['receiver_onboard'] = receiver
|
|
hybrid['receiver_onboard'] = receiver
|
|
|
-
|
|
|
|
|
obj['hybrid'] = hybrid
|
|
obj['hybrid'] = hybrid
|
|
|
|
|
+ console.log(hybrid)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
fullloading((hideLoading) => {
|
|
fullloading((hideLoading) => {
|