证件类型验证修改

This commit is contained in:
na.guo
2020-08-10 13:45:29 +08:00
parent f49209b7f2
commit accef733be

View File

@@ -667,7 +667,10 @@ export default {
// this.columns = DataDictionary.degree
// break
case '4':
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
this.columns = [
{ id: 0, text: '有' },
{ id: 1, text: '无' }
]
break
case '5':
this.columns = DataDictionary.taxIdentity
@@ -953,7 +956,7 @@ export default {
console.log('证件类型是身份证')
if (this.userInfo.nativeplace != '1') {
return this.$toast('证件类型”为“身份证,国籍必须为中国哦')
return this.$toast('证件类型”为“身份证,国籍必须为中国大陆哦')
}
//校验性别是否与身份证号码位相符
@@ -1110,7 +1113,9 @@ export default {
// 通过国籍判断 证件是否符合要求
// 如果是国籍选择中国大陆
if (this.userInfo.nativeplace == '1') {
console.log('nativeplace', this.userInfo.nativeplace)
if (this.userInfo.nativeplace <= '4') {
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
let obj = {
'1': true,
@@ -1156,7 +1161,7 @@ export default {
}
}
this.infoUpdate()
//this.infoUpdate()
// console.log('success')
} else {
return this.$toast(this.$validator.errors.all()[0])