投保流程 选择客户后赋值客户信息的新市民身份以及新市民类型字段

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-09-22 17:51:03 +08:00
parent 527a687fee
commit fb15fc8cd4
2 changed files with 14 additions and 6 deletions

View File

@@ -1057,6 +1057,8 @@ export default {
this.userInfo.homeCity = data.homeCity //家庭市
this.userInfo.homeArea = data.homeArea //家庭区
this.userInfo.homeAddress = data.homeAddress //家庭详细地址
this.userInfo.isNewPeopleFlag = data.isNewPeopleFlag //新市民身份
this.userInfo.npType = data.npType //新市民类型
// this.userInfo.homeZip = data.homeZip //家庭邮编
// this.userInfo.homePhone = data.homePhone //家庭电话
// this.userInfo.householdProvince = data.province //户籍省
@@ -1081,9 +1083,11 @@ export default {
async nextStep() {
//表单校验, 成功跳转
let valid = await this.$validator.validate()
if(this.userInfo.isNewPeopleFlag === '' && this.manageComCode == '45'){
this.$toast('新市民身份不能为空')
return false
if(this.manageComCode == '45'){
if(this.userInfo.isNewPeopleFlag !== '0' || this.userInfo.isNewPeopleFlag !== '1'){
this.$toast('新市民身份不能为空')
return false
}
}
// .then(valid => {
if (true === valid) {

View File

@@ -1297,6 +1297,8 @@ export default {
this.userInfo.homeCity = data.homeCity //家庭市
this.userInfo.homeArea = data.homeArea //家庭区
this.userInfo.homeAddress = data.homeAddress //家庭详细地址
this.userInfo.isNewPeopleFlag = data.isNewPeopleFlag //新市民身份
this.userInfo.npType = data.npType //新市民类型
// this.userInfo.homeZip = data.homeZip //家庭邮编
// this.userInfo.homePhone = data.homePhone //家庭电话
// this.userInfo.householdProvince = data.province //户籍省
@@ -1321,9 +1323,11 @@ export default {
//下一步
async nextStep() {
let valid = await this.$validator.validate()
if(this.userInfo.isNewPeopleFlag === '' && this.manageComCode == '45'){
this.$toast('新市民身份不能为空')
return false
if(this.manageComCode == '45'){
if(this.userInfo.isNewPeopleFlag !== '0' || this.userInfo.isNewPeopleFlag !== '1'){
this.$toast('新市民身份不能为空')
return false
}
}
// .then(valid => {
if (true === valid) {