diff --git a/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue b/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue index 7d7f01c68..661df20da 100644 --- a/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue +++ b/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue @@ -1280,13 +1280,7 @@ export default { chooseCustomer(data) { console.log('data :>> ', data) this.customerShowPicker = false - this.$jump({ - flag: 'navigation', - extra: { - title: '投保人信息', - hiddenRight: '1' - } - }) + let { customerName, customerSex } = data this.userInfo.name = customerName //用户名 this.userInfo.sex = String(customerSex) //性别 @@ -1295,7 +1289,7 @@ export default { this.userInfo.idType = data.customerIdType //证件类型 this.userInfo.idNo = data.customerIdNumber //证件类别 this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期 - if (data.idEffectEndDate == '9999-12-31') { + if (data.idEffectEndDate === '9999-12-31') { this.userInfo.effectiveDateType = true //是否长期 } else { this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期 @@ -1342,7 +1336,7 @@ export default { // if (data.companyProvince.length) { // this.areaName = getAreaName([{ code: data.companyProvince }, { code: data.companyCity }, { code: data.companyArea }]) //单位地址 // } - if (data.homeProvince.length) { + if (Array.isArray(data.homeProvince) && data.homeProvince.length) { this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //联系地址 } // 计算年龄 @@ -1951,8 +1945,8 @@ export default { taskID, () => { return this.nextStep() - } - // ['saveApplicant_uploadImage'] + }, + ['saveApplicant_uploadImage'] ) } }, diff --git a/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue b/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue index 0349ef608..49d1b19c9 100644 --- a/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue +++ b/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue @@ -742,10 +742,6 @@ export default { this.userInfo.certiexpiredate = year + '-' + this.userInfo.birthday.substr(5, 5) } } - - setTimeout(() => { - this.canTrial = true - }, 1000) } //------------------------专为惠企写死--begin---------------// if (res.orderDTO.insuredDTOs[0] && res.orderDTO.insuredDTOs[0].riskDTOLst) { @@ -2184,7 +2180,8 @@ export default { deep: true, immediate: true, async handler() { - if (this.canTrial) this.$emit('msgUpdate') + // 如果信息补全了, 开始计算试算信息 + if (await this.$validator.validate()) this.$emit('msgUpdate') } }, applicant: {