Merge branch 'feature/50号文展业改动' into dev

This commit is contained in:
mengxiaolong
2020-10-21 13:45:28 +08:00

View File

@@ -121,7 +121,7 @@
<van-field <van-field
placeholder="请选择" placeholder="请选择"
@click="islistShow = true" @click="islistShow = true"
v-model="userInfo.bankName" v-model="bankName"
label="开户银行" label="开户银行"
name="开户银行" name="开户银行"
v-validate="'required'" v-validate="'required'"
@@ -409,7 +409,6 @@ export default {
sessionId: '', //后台返回的 id sessionId: '', //后台返回的 id
effectiveDateTypeAble: false, //长期按钮是否禁用 effectiveDateTypeAble: false, //长期按钮是否禁用
userInfo: { userInfo: {
mainCode: '',
bankNum: '', bankNum: '',
name: '', //姓名 name: '', //姓名
sex: '0', //性别 sex: '0', //性别
@@ -528,9 +527,9 @@ export default {
}, },
getBank(bank) { getBank(bank) {
//获取银行名称 //获取银行名称
this.userInfo.bankName = bank.bankName ? bank.bankName.trim() : '' this.bankName = bank.bankName ? bank.bankName.trim() : ''
this.code = bank.code ? bank.code.trim() : '' this.code = bank.code ? bank.code.trim() : ''
this.$set(this.userInfo, 'mainCode', bank.code ? bank.code.trim() : '') this.$set(this.userInfo, 'bankName', bank.code ? bank.code.trim() : '')
}, },
//获取推荐人信息 //获取推荐人信息
agentAll() { agentAll() {
@@ -583,11 +582,11 @@ export default {
}, },
// 点击下一步 // 点击下一步
nextStep() { nextStep() {
if (this.userInfo.bankCode.trim() && this.bankCode.trim() && this.userInfo.bankCode !== this.bankCode) {
return this.$toast('两次输入的银行卡号不一致!')
}
this.$validator.validate().then(valid => { this.$validator.validate().then(valid => {
if (valid == true) { if (valid == true) {
if (this.userInfo.bankCode !== this.bankCode) {
return this.$toast('两次输入的银行卡号不一致!')
}
if (this.userInfo.idType == '1') { if (this.userInfo.idType == '1') {
//身份证 //身份证
if (!idNoCheck.isIdno(this.userInfo.idNo)) { if (!idNoCheck.isIdno(this.userInfo.idNo)) {
@@ -614,7 +613,6 @@ export default {
if (this.userInfo.name != this.userInfo.accountName) { if (this.userInfo.name != this.userInfo.accountName) {
return this.$toast('姓名与开户名要一致') return this.$toast('姓名与开户名要一致')
} }
this.userInfo.bankName = getBankCode(this.bankList, this.bankName)
if ( if (
//学历为初中、小学、其他、文盲阻断入司 //学历为初中、小学、其他、文盲阻断入司
Number(this.userInfo.degree) == 13 || Number(this.userInfo.degree) == 13 ||