mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 06:56:44 +08:00
fix: 修复添加附加险异常的问题
This commit is contained in:
@@ -327,6 +327,7 @@ export default {
|
||||
}
|
||||
productsData = this.$utils.unrepeatObj(productsData, 'productCode') //产品数组去重,跳转试算页面未成功重复添加同一产品的情况
|
||||
localStorage.chooseProducts = JSON.stringify(productsData)
|
||||
this.$emit('changeProducts', productsData)
|
||||
// this.jumpTo()
|
||||
} else {
|
||||
this.$toast(resultData.resultMessage)
|
||||
|
||||
@@ -390,7 +390,7 @@
|
||||
<van-popup v-model="showAdditionRiskPopup" round position="bottom" class="addtion-risk">
|
||||
<van-picker show-toolbar @confirm="handleSubmitAddAdditionRisk" @cancel="handleSubmitAddAdditionRisk({ submit: false })">
|
||||
<template #columns-top>
|
||||
<addtion-risk-list ref="additionRiskList" :show-next="false" :trial-test="false" />
|
||||
<addtion-risk-list ref="additionRiskList" :show-next="false" :trial-test="false" @changeProducts="handleChoosedProductsChange"/>
|
||||
</template>
|
||||
</van-picker>
|
||||
</van-popup>
|
||||
@@ -592,7 +592,6 @@ export default {
|
||||
// 当组件挂载之后开始创建订单
|
||||
// todo :后续如果不创建订单需要删除订单
|
||||
this.submitOrder()
|
||||
|
||||
this.isFrom = window.localStorage.isFrom
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
@@ -1375,7 +1374,7 @@ export default {
|
||||
currentEle[name + 'Flag'] = value.flag
|
||||
}
|
||||
|
||||
if (!this.passUserInfoCheck)return
|
||||
if (!this.passUserInfoCheck) return
|
||||
|
||||
// this.hiddenPayEndYear(currentEle)
|
||||
//特殊规则:设置豁免险
|
||||
@@ -2680,10 +2679,8 @@ export default {
|
||||
let birthday, sex, occupationCode, occupationName, age
|
||||
if (item.isRemit == '0' && item.remitType == '0') {
|
||||
;[birthday, sex, occupationCode, occupationName, age] = [
|
||||
this.userInfo.birthday,
|
||||
// this.saleInsuredInfo.birthday,
|
||||
this.userInfo.sex,
|
||||
// this.saleInsuredInfo.sex,
|
||||
this.saleInsuredInfo.birthday,
|
||||
this.saleInsuredInfo.sex,
|
||||
this.saleInsuredInfo.occupationCode,
|
||||
this.saleInsuredInfo.occupationName,
|
||||
this.saleInsuredInfo.age ? this.saleInsuredInfo.age : this.saleInsuredInfo.insuredAge
|
||||
@@ -2760,7 +2757,7 @@ export default {
|
||||
},
|
||||
//保额份数变化
|
||||
stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
|
||||
// debugger
|
||||
if (!this.passUserInfoCheck) return
|
||||
let currentEle = ''
|
||||
let params = this.getParams()
|
||||
|
||||
@@ -3495,7 +3492,6 @@ export default {
|
||||
|
||||
// 保存被保人的相关信息
|
||||
this.submitOrder([insuredDTOItem])
|
||||
// debugger
|
||||
this.jumpTo()
|
||||
},
|
||||
//建议书试算记录保存更新--编辑功能
|
||||
@@ -3569,7 +3565,7 @@ export default {
|
||||
const ele = this.$refs.additionRiskList
|
||||
if (submit) {
|
||||
const error = ele.nextStep()
|
||||
if (!error) return
|
||||
if (error) return
|
||||
}
|
||||
ele.result = ''
|
||||
this.showAdditionRiskPopup = false
|
||||
@@ -3599,7 +3595,11 @@ export default {
|
||||
query: { orderNo }
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
handleChoosedProductsChange(){
|
||||
this.chooseProducts = JSON.parse(localStorage.getItem("chooseProducts"))
|
||||
this.selectAddtionRisk()
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
saleInsuredPersonInfo: {
|
||||
@@ -3607,6 +3607,7 @@ export default {
|
||||
handler: function(obj) {
|
||||
const { birthday } = obj
|
||||
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||
console.log(`saleInsuredPersonInfo value change` , this.saleInsuredPersonInfo)
|
||||
if (this.passUserInfoCheck) this.getTrial()
|
||||
}
|
||||
},
|
||||
@@ -3615,7 +3616,8 @@ export default {
|
||||
handler: function(obj) {
|
||||
const { birthday } = obj
|
||||
this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||
if (this.passUserInfoCheck)this.getTrial()
|
||||
console.log(`saleInsuredInfo value change` , this.saleInsuredInfo)
|
||||
if (this.passUserInfoCheck) this.getTrial()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user