[FIX]入司学历阻断条件

This commit is contained in:
yuweiqi
2020-03-04 15:34:58 +08:00
parent c0f6254fb3
commit 3f1317a299
2 changed files with 22 additions and 12 deletions

View File

@@ -1355,45 +1355,49 @@ export default {
//入司文化程度 //入司文化程度
rsdegree: [ rsdegree: [
{ {
id: 9, id: 2,
text: '硕士' text: '硕士'
}, },
{ {
id: 8, id: 3,
text: '本科' text: '本科'
}, },
{ {
id: 7, id: 4,
text: '大专' text: '大专'
}, },
{ {
id: 4, id: 5,
text: '高中' text: '高中'
}, },
{ {
id: 3, id: 6,
text: '初中' text: '初中'
}, },
{ {
id: 5, id: 7,
text: '中专' text: '中专'
}, },
{ {
id: 2, id: 8,
text: '小学' text: '小学'
}, },
{ {
id: 0, id: 12,
text: '其他' text: '其他'
}, },
{ {
id: 1, id: 13,
text: '文盲' text: '文盲'
}, },
{ {
id: 6, id: 14,
text: '中技' text: '中技'
}, },
{
id: 12,
text: '其他'
},
{ {
id: 10, id: 10,
text: '博士' text: '博士'

View File

@@ -105,7 +105,7 @@
label="所学专业" label="所学专业"
name="所学专业" name="所学专业"
placeholder="请输入" placeholder="请输入"
v-validate="Number(userInfo.degree) >= 7 ? 'required' : ''" v-validate="Number(userInfo.degree) >= 10 || Number(userInfo.degree) <= 4 ? 'required' : ''"
clearable clearable
/> />
<!-- <van-field v-model="userInfo.discipline" label="所学专业" name="所学专业" placeholder="请输入" v-validate="'required'" required clearable /> --> <!-- <van-field v-model="userInfo.discipline" label="所学专业" name="所学专业" placeholder="请输入" v-validate="'required'" required clearable /> -->
@@ -527,7 +527,13 @@ export default {
if (this.userInfo.bankName == '工商银行') { if (this.userInfo.bankName == '工商银行') {
this.userInfo.bankName = '102' this.userInfo.bankName = '102'
} }
if (Number(this.userInfo.degree) < 4) { if (
//学历为初中、小学、其他、文盲阻断入司
Number(this.userInfo.degree) == 13 ||
Number(this.userInfo.degree) == 12 ||
Number(this.userInfo.degree) == 8 ||
Number(this.userInfo.degree) == 6
) {
return this.$toast('学历不符合入司条件') return this.$toast('学历不符合入司条件')
} }
console.log('this.userInfo.bankName', this.userInfo.bankName) console.log('this.userInfo.bankName', this.userInfo.bankName)