From 54c7fd7abd92d722f42c1998de62c9f669d3535e Mon Sep 17 00:00:00 2001 From: hz Date: Thu, 27 Nov 2025 15:02:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(beneficiary):=20=E4=BF=AE=E5=A4=8D=E5=8F=97?= =?UTF-8?q?=E7=9B=8A=E4=BA=BA=E6=8F=90=E4=BA=A4=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除重复的份额累加逻辑 - 优化重复添加校验方式并增强判断条件 - 移除无用参数并调整方法调用 - 注入被保人信息并优化数据获取逻辑 - 增强受益份额校验函数支持下一步验证 - 完善婚姻状态过滤器容错处理 - 调整法定受益人数据结构传递方式 --- .../saleFlowProImprove/AddBeneficiaryInfo.vue | 7 +-- .../ebiz/saleFlowProImprove/Beneficiary.vue | 59 ++++++++----------- .../ebiz/saleFlowProImprove/InsuredPerson.vue | 4 +- 3 files changed, 32 insertions(+), 38 deletions(-) diff --git a/src/views/ebiz/saleFlowProImprove/AddBeneficiaryInfo.vue b/src/views/ebiz/saleFlowProImprove/AddBeneficiaryInfo.vue index 421c9b4a4..757299790 100644 --- a/src/views/ebiz/saleFlowProImprove/AddBeneficiaryInfo.vue +++ b/src/views/ebiz/saleFlowProImprove/AddBeneficiaryInfo.vue @@ -1185,7 +1185,6 @@ export default { beneficiaries.forEach(item => { ratio += parseInt(item.bnfLot) }) - ratio += parseInt(this.userInfo.bnfLot) if (ratio > 100) { this.$toast('受益份额有误,请重新输入~') return false @@ -1193,10 +1192,10 @@ export default { if (this.userInfo.idNo != '') { // 受益人不能重复添加 (证件号码为基准) - let isDbAdd = beneficiaries.some(item => { + let isDbAdd = beneficiaries.filter(item => { return item.idNo == this.userInfo.idNo }) - if (isDbAdd) { + if (isDbAdd && isDbAdd.length > 1) { this.$toast('受益人不支持重复添加') return false } @@ -1381,7 +1380,7 @@ export default { day = day.toString().padStart(2, '0') return `${year}-${month}-${day}` }, - getRelatedData(val, from) { + getRelatedData(val) { if (this.userInfo.idType != '1' && this.userInfo.idType != '2') { return } diff --git a/src/views/ebiz/saleFlowProImprove/Beneficiary.vue b/src/views/ebiz/saleFlowProImprove/Beneficiary.vue index ca4ba80a0..c0de111d7 100644 --- a/src/views/ebiz/saleFlowProImprove/Beneficiary.vue +++ b/src/views/ebiz/saleFlowProImprove/Beneficiary.vue @@ -39,11 +39,10 @@