diff --git a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue index 671c8de26..eba2aca24 100644 --- a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue +++ b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue @@ -390,7 +390,7 @@ @@ -699,12 +699,7 @@ export default { item[item.code] = factor[item.code] } } - let itemColumns = { - text: factor.showContent, - value: factor[item.code], - flag: factor[item.code + 'Flag'], - sex: factor.sex - } + let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'], sex: factor.sex } if (factor.medical !== undefined) { itemColumns.medical = factor.medical } @@ -713,16 +708,17 @@ export default { } else if (item.type == 1) { //按年龄选择 if (productTrialInfoDTO[item.code] != null) { - // productTrialInfoDTO[item.code].forEach((factor) => { - // item = Object.assign(item, factor) - // if ( - // JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) && - // JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge) - // ) { - // // if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age <= Number(factor.maxAge)){ - // item = Object.assign(item, factor) - // } - // }) + productTrialInfoDTO[item.code].forEach(factor => { + item = Object.assign(item, factor) + // todo: 流程缩减 + // if ( + // JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) && + // JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge) + // ) { + // // if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age <= Number(factor.maxAge)){ + // item = Object.assign(item, factor) + // } + }) if (item.code == 'inputPrem') { item['inputPrem'] = Number(item.minPrem) * Number(item.moneyUnit) } else { @@ -2870,7 +2866,7 @@ export default { ) this.nextStepFlag = true } else { - if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) !== 0) { + if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast( '0周岁-55周岁最低基本保险金额为' + @@ -3596,10 +3592,10 @@ export default { }) }) }, - handleChoosedProductsChange(){ - this.chooseProducts = JSON.parse(localStorage.getItem("chooseProducts")) + handleChoosedProductsChange() { + this.chooseProducts = JSON.parse(localStorage.getItem('chooseProducts')) this.selectAddtionRisk() - }, + } }, watch: { saleInsuredPersonInfo: { @@ -3607,7 +3603,7 @@ export default { handler: function(obj) { const { birthday } = obj this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date()) - console.log(`saleInsuredPersonInfo value change` , this.saleInsuredPersonInfo) + console.log(`saleInsuredPersonInfo value change`, this.saleInsuredPersonInfo) if (this.passUserInfoCheck) this.getTrial() } }, @@ -3616,7 +3612,7 @@ export default { handler: function(obj) { const { birthday } = obj this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date()) - console.log(`saleInsuredInfo value change` , this.saleInsuredInfo) + console.log(`saleInsuredInfo value change`, this.saleInsuredInfo) if (this.passUserInfoCheck) this.getTrial() } }