From b4bdefc7ea6eb9567546ef7888c5aaafde89efd6 Mon Sep 17 00:00:00 2001 From: hz Date: Wed, 26 Nov 2025 17:06:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(saleFlowProImprove):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8A=95=E4=BF=9D=E4=BA=BA=E4=BF=A1=E6=81=AF=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=B8=8E=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除页面跳转逻辑,直接填充用户信息 - 修复证件有效期判断条件,使用严格相等运算符 - 增强地址数据处理的安全性,添加数组类型检查 - 恢复注释掉的图片上传任务标识 - 移除延迟设置canTrial标志的定时器逻辑 - 更新监听器触发条件,增加表单验证后再发送更新事件 - 添加试算信息计算前提醒注释说明 --- .../ebiz/saleFlowProImprove/InsuredInfo.vue | 16 +++++----------- .../ebiz/saleFlowProImprove/InsuredPerson.vue | 7 ++----- 2 files changed, 7 insertions(+), 16 deletions(-) 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: {