diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index 12aebfb9c..81516017c 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -112,7 +112,7 @@ v-validate="'required|mobileLength11|mobileStartWith1|mobile'" maxlength="11" /> - + {{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }} @@ -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('证件类型”为“身份证,国籍必须为中国大陆哦') } //校验性别是否与身份证号码位相符 @@ -1036,6 +1039,19 @@ export default { if (this.userInfo.nativeplace == '1') { 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) { // console.log('证件类型是护照') @@ -1110,12 +1126,14 @@ export default { // 通过国籍判断 证件是否符合要求 // 如果是国籍选择中国大陆 - if (this.userInfo.nativeplace == '1') { + + if (this.userInfo.nativeplace <= '4') { // “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证” let obj = { '1': true, '5': true, - '6': true + '6': true, + '9': true } let idType = this.userInfo.idType // 通过年龄 判断证件是否符合要求 @@ -1156,7 +1174,7 @@ export default { } } - this.infoUpdate() + //this.infoUpdate() // console.log('success') } else { return this.$toast(this.$validator.errors.all()[0]) @@ -1410,6 +1428,7 @@ export default { } } }, + computed: { isShowOthenSalarySource() { if (this.userInfo.salarySource == '4') { diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index 64b49e314..a2834e8b5 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -504,7 +504,7 @@ export default { areaShow: false, //省级联动 homeShow: false, certiexpiredateShow: true, //证件截止日期是否可编辑 - // censusShow: false, //户籍联动 + censusShow: false, //户籍联动 pickerType: undefined, columns: [], valueKey: 'text', @@ -782,7 +782,10 @@ export default { } /*else if (pickerType == '3') { this.columns = DataDictionary.degree } */ else if (pickerType == '4') { - this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }] + this.columns = [ + { id: 0, text: '有' }, + { id: 1, text: '无' } + ] } else if (pickerType == '5') { this.columns = DataDictionary.taxIdentity } /* else if (pickerType == '6') { @@ -1352,6 +1355,19 @@ export default { if (this.userInfo.nativeplace == '1') { 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) { // return this.$toast('护照须大于等于3个字符') @@ -1387,12 +1403,13 @@ export default { // 通过国籍判断 证件是否符合要求 // 如果是国籍选择中国大陆 - if (this.userInfo.nativeplace == '1') { + if (this.userInfo.nativeplace <= '4') { // “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证” let obj = { '1': true, '5': true, - '6': true + '6': true, + '9': true } let idType = this.userInfo.idType // 通过年龄 判断证件是否符合要求