diff --git a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue index 5a5e6b37e..eea609a45 100644 --- a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue +++ b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue @@ -669,7 +669,7 @@ export default { this.branchTypeVal = 'Y' } }) - this.initPersonInfo() + // this.initPersonInfo() this.init() Array.prototype.min = function() { @@ -702,13 +702,18 @@ export default { const { appntDTO, insuredDTOs } = orderDTO const [insuredPersonInfo] = insuredDTOs - Object.assign(this.saleInsuredInfo, appntDTO) - Object.assign(this.saleInsuredPersonInfo, insuredPersonInfo) - - // this.saleInsuredInfo = { ...this.saleInsuredInfo, ...appntDTO } - // setLocItem('saleInsuredInfo', JSON.stringify(agppntDTO)) - // this.saleInsuredPersonInfo = { ...this.saleInsuredPersonInfo, ...insuredPersonInfo } - // setLocItem('saleInsuredPersonInfo', JSON.stringify(insuredPersonInfo)) + // 如果从产品详情进入, 则不校验一些属性内容, 保留默认值 + const defaultKeys = this.$route.query.source === 'productDetail' ? ['isNewPeopleFlag'] : [] + const applicantIgnoreKeys = [...defaultKeys] + for (const key in appntDTO) { + if (applicantIgnoreKeys.includes(key)) continue + this.saleInsuredInfo[key] = appntDTO[key] + } + const insuredIgnoreKeys = [...defaultKeys] + for (const key in insuredPersonInfo) { + if (insuredIgnoreKeys.includes(key)) continue + this.saleInsuredPersonInfo[key] = insuredPersonInfo[key] + } }) // } }, diff --git a/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue b/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue index c9a5b0964..ad41fefbb 100644 --- a/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue +++ b/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue @@ -120,6 +120,8 @@ right-icon="arrow" @click="toSelect('10')" /> + + {{ userInfo.nativeplace }} --> - + + + + + + + + + - + + + + + + + + + + + + +