|
|
@@ -42,12 +42,14 @@
|
|
|
<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')"
|
|
|
+ <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"
|
|
|
@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')"
|
|
|
+ <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('banksign.Pleaseenterbranchbankname')"
|
|
|
+ <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 v-if="msg_317">
|
|
|
@@ -208,6 +210,10 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
bankbranch: [{
|
|
|
message: t('banksign.Pleaseenterbranchbankname'),
|
|
|
required: true
|
|
|
+ }],
|
|
|
+ bank_name: [{
|
|
|
+ message: t('common.pleaseenter'),
|
|
|
+ required: true
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
@@ -263,10 +269,11 @@ const formSubmit = () => {
|
|
|
}
|
|
|
if (channel_code.value === 'mypay') {
|
|
|
receiver['bank_branch'] = onboard.bankbranch
|
|
|
- receiver['bank'] = hyBankName.value
|
|
|
+ receiver['bank'] = onboard.bank_name
|
|
|
}
|
|
|
hybrid['receiver_onboard'] = receiver
|
|
|
obj['hybrid'] = hybrid
|
|
|
+ console.log(hybrid)
|
|
|
}
|
|
|
|
|
|
fullloading((hideLoading) => {
|