mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 02:46:45 +08:00
Merge remote-tracking branch 'origin/hotfix/电投-投保人验证修改' into release/0811
This commit is contained in:
@@ -112,7 +112,7 @@
|
|||||||
v-validate="'required|mobileLength11|mobileStartWith1|mobile'"
|
v-validate="'required|mobileLength11|mobileStartWith1|mobile'"
|
||||||
maxlength="11"
|
maxlength="11"
|
||||||
/>
|
/>
|
||||||
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" v-validate="'required'" maxlength="6">
|
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" v-validate="'required'" placeholder="请输入短信验证码" maxlength="6">
|
||||||
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
|
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
|
||||||
{{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }}
|
{{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }}
|
||||||
</van-button>
|
</van-button>
|
||||||
@@ -667,7 +667,10 @@ export default {
|
|||||||
// this.columns = DataDictionary.degree
|
// this.columns = DataDictionary.degree
|
||||||
// break
|
// break
|
||||||
case '4':
|
case '4':
|
||||||
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
|
this.columns = [
|
||||||
|
{ id: 0, text: '有' },
|
||||||
|
{ id: 1, text: '无' }
|
||||||
|
]
|
||||||
break
|
break
|
||||||
case '5':
|
case '5':
|
||||||
this.columns = DataDictionary.taxIdentity
|
this.columns = DataDictionary.taxIdentity
|
||||||
@@ -953,7 +956,7 @@ export default {
|
|||||||
console.log('证件类型是身份证')
|
console.log('证件类型是身份证')
|
||||||
|
|
||||||
if (this.userInfo.nativeplace != '1') {
|
if (this.userInfo.nativeplace != '1') {
|
||||||
return this.$toast('证件类型”为“身份证,国籍必须为中国哦')
|
return this.$toast('证件类型”为“身份证,国籍必须为中国大陆哦')
|
||||||
}
|
}
|
||||||
|
|
||||||
//校验性别是否与身份证号码位相符
|
//校验性别是否与身份证号码位相符
|
||||||
@@ -1036,6 +1039,19 @@ export default {
|
|||||||
if (this.userInfo.nativeplace == '1') {
|
if (this.userInfo.nativeplace == '1') {
|
||||||
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
||||||
}
|
}
|
||||||
|
} else if (this.userInfo.idType == '5') {
|
||||||
|
console.log(this.userInfo.nativeplace, 'nativeplace')
|
||||||
|
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3) {
|
||||||
|
return this.$toast('“证件类型”为“港澳居民来往内地通行证”,“国籍”请选择“中国香港”或“中国澳门”哦~')
|
||||||
|
}
|
||||||
|
} else if (this.userInfo.idType == '6') {
|
||||||
|
if (this.userInfo.nativeplace != 4) {
|
||||||
|
return this.$toast('“证件类型”为“台湾居民来往大陆通行证”,“国籍”请选择“中国台湾”~')
|
||||||
|
}
|
||||||
|
} else if (this.userInfo.idType == '9') {
|
||||||
|
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3 && this.userInfo.nativeplace != 4) {
|
||||||
|
return this.$toast('“证件类型”为“港澳台居民居住证”,“国籍”请选择“中国香港”、“中国澳门”或“中国台湾”~')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// else if (this.userInfo.idType == '4' && this.userInfo.idNo.length < 3) {
|
// else if (this.userInfo.idType == '4' && this.userInfo.idNo.length < 3) {
|
||||||
// console.log('证件类型是护照')
|
// console.log('证件类型是护照')
|
||||||
@@ -1110,12 +1126,14 @@ export default {
|
|||||||
|
|
||||||
// 通过国籍判断 证件是否符合要求
|
// 通过国籍判断 证件是否符合要求
|
||||||
// 如果是国籍选择中国大陆
|
// 如果是国籍选择中国大陆
|
||||||
if (this.userInfo.nativeplace == '1') {
|
|
||||||
|
if (this.userInfo.nativeplace <= '4') {
|
||||||
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
|
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
|
||||||
let obj = {
|
let obj = {
|
||||||
'1': true,
|
'1': true,
|
||||||
'5': true,
|
'5': true,
|
||||||
'6': true
|
'6': true,
|
||||||
|
'9': true
|
||||||
}
|
}
|
||||||
let idType = this.userInfo.idType
|
let idType = this.userInfo.idType
|
||||||
// 通过年龄 判断证件是否符合要求
|
// 通过年龄 判断证件是否符合要求
|
||||||
@@ -1156,7 +1174,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.infoUpdate()
|
//this.infoUpdate()
|
||||||
// console.log('success')
|
// console.log('success')
|
||||||
} else {
|
} else {
|
||||||
return this.$toast(this.$validator.errors.all()[0])
|
return this.$toast(this.$validator.errors.all()[0])
|
||||||
@@ -1410,6 +1428,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
isShowOthenSalarySource() {
|
isShowOthenSalarySource() {
|
||||||
if (this.userInfo.salarySource == '4') {
|
if (this.userInfo.salarySource == '4') {
|
||||||
|
|||||||
@@ -504,7 +504,7 @@ export default {
|
|||||||
areaShow: false, //省级联动
|
areaShow: false, //省级联动
|
||||||
homeShow: false,
|
homeShow: false,
|
||||||
certiexpiredateShow: true, //证件截止日期是否可编辑
|
certiexpiredateShow: true, //证件截止日期是否可编辑
|
||||||
// censusShow: false, //户籍联动
|
censusShow: false, //户籍联动
|
||||||
pickerType: undefined,
|
pickerType: undefined,
|
||||||
columns: [],
|
columns: [],
|
||||||
valueKey: 'text',
|
valueKey: 'text',
|
||||||
@@ -782,7 +782,10 @@ export default {
|
|||||||
} /*else if (pickerType == '3') {
|
} /*else if (pickerType == '3') {
|
||||||
this.columns = DataDictionary.degree
|
this.columns = DataDictionary.degree
|
||||||
} */ else if (pickerType == '4') {
|
} */ else if (pickerType == '4') {
|
||||||
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
|
this.columns = [
|
||||||
|
{ id: 0, text: '有' },
|
||||||
|
{ id: 1, text: '无' }
|
||||||
|
]
|
||||||
} else if (pickerType == '5') {
|
} else if (pickerType == '5') {
|
||||||
this.columns = DataDictionary.taxIdentity
|
this.columns = DataDictionary.taxIdentity
|
||||||
} /* else if (pickerType == '6') {
|
} /* else if (pickerType == '6') {
|
||||||
@@ -1352,6 +1355,19 @@ export default {
|
|||||||
if (this.userInfo.nativeplace == '1') {
|
if (this.userInfo.nativeplace == '1') {
|
||||||
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
||||||
}
|
}
|
||||||
|
} else if (this.userInfo.idType == '5') {
|
||||||
|
console.log(this.userInfo.nativeplace, 'nativeplace')
|
||||||
|
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3) {
|
||||||
|
return this.$toast('“证件类型”为“港澳居民来往内地通行证”,“国籍”请选择“中国香港”或“中国澳门”哦~')
|
||||||
|
}
|
||||||
|
} else if (this.userInfo.idType == '6') {
|
||||||
|
if (this.userInfo.nativeplace != 4) {
|
||||||
|
return this.$toast('“证件类型”为“台湾居民来往大陆通行证”,“国籍”请选择“中国台湾”~')
|
||||||
|
}
|
||||||
|
} else if (this.userInfo.idType == '9') {
|
||||||
|
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3 && this.userInfo.nativeplace != 4) {
|
||||||
|
return this.$toast('“证件类型”为“港澳台居民居住证”,“国籍”请选择“中国香港”、“中国澳门”或“中国台湾”~')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// else if (this.userInfo.idType == '4' && this.userInfo.idNo.length < 3) {
|
// else if (this.userInfo.idType == '4' && this.userInfo.idNo.length < 3) {
|
||||||
// return this.$toast('护照须大于等于3个字符')
|
// return this.$toast('护照须大于等于3个字符')
|
||||||
@@ -1387,12 +1403,13 @@ export default {
|
|||||||
|
|
||||||
// 通过国籍判断 证件是否符合要求
|
// 通过国籍判断 证件是否符合要求
|
||||||
// 如果是国籍选择中国大陆
|
// 如果是国籍选择中国大陆
|
||||||
if (this.userInfo.nativeplace == '1') {
|
if (this.userInfo.nativeplace <= '4') {
|
||||||
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
|
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
|
||||||
let obj = {
|
let obj = {
|
||||||
'1': true,
|
'1': true,
|
||||||
'5': true,
|
'5': true,
|
||||||
'6': true
|
'6': true,
|
||||||
|
'9': true
|
||||||
}
|
}
|
||||||
let idType = this.userInfo.idType
|
let idType = this.userInfo.idType
|
||||||
// 通过年龄 判断证件是否符合要求
|
// 通过年龄 判断证件是否符合要求
|
||||||
|
|||||||
Reference in New Issue
Block a user