diff --git a/src/views/ebiz/saleFlowProImprove/Beneficiary.vue b/src/views/ebiz/saleFlowProImprove/Beneficiary.vue
index c0de111d7..dfb0dabee 100644
--- a/src/views/ebiz/saleFlowProImprove/Beneficiary.vue
+++ b/src/views/ebiz/saleFlowProImprove/Beneficiary.vue
@@ -14,7 +14,7 @@
- -
+
-
受益人 {{ index + 1 }}
@@ -80,7 +80,14 @@ export default {
localStorage.setItem('salePageFlag', this.salePageFlag)
}
if (Array.isArray(res.orderDTO.insuredDTOs[0].bnfDTOs)) {
- Object.assign(this.beneficiaries, res.orderDTO.insuredDTOs[0].bnfDTOs)
+ // 当内部有多个指定受益人时, 需要手动添加 bid , 防止后面删除掉的指定受益人时出现出错
+ // 万恶的 vue for 循环
+ for (const bnf of res.orderDTO.insuredDTOs[0].bnfDTOs) {
+ bnf.bid = this.generateRandomId()
+ // 什么,为什么在这加个这玩意?看到证件截至日期不对就是你的不对了~😄
+ bnf.effectiveDateType = bnf.effectiveDateType === 'true'
+ this.beneficiaries.push(bnf)
+ }
} else {
localStorage.beneficiaryInfo = []
}