mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 10:36:43 +08:00
Compare commits
4 Commits
hotfix【202
...
feature/GF
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91cd83e6bf | ||
|
|
8ea217567c | ||
|
|
bf27870fe0 | ||
|
|
1d5bacedf4 |
@@ -3777,6 +3777,22 @@ export default {
|
||||
{
|
||||
code: "GFRS_M0073__cashValue",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "currentBonus_L",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "currentBonus_M",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "riskAC_L",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "riskAC_M",
|
||||
label: "元"
|
||||
}
|
||||
],
|
||||
// 卡单与短期险重新投保选择职业类别时,两个模块职业类型数据的排序不同,创建这个数据字典,用于在选择职业类别时,作为一个参数传入组件,
|
||||
|
||||
@@ -2404,10 +2404,24 @@ export default {
|
||||
},
|
||||
//保额份数变化
|
||||
stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
|
||||
let currentEle =
|
||||
localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'
|
||||
? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex]
|
||||
: this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||
let currentEle = ''
|
||||
let params = this.getParams()
|
||||
if(localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'){
|
||||
// params[productIndex].payEndYear == '1000' 交费期间为一次性交清
|
||||
this.chooseProducts[productIndex].productTrialYearDTOS.forEach(item=>{
|
||||
if(params.trialInfos[productIndex].payEndYear == '1000') {
|
||||
if(item.yearWay == '一次性交清'){
|
||||
currentEle = item
|
||||
}
|
||||
} else {
|
||||
if(item.yearWay == params.trialInfos[productIndex].payEndYear){
|
||||
currentEle = item
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||
}
|
||||
//改动原因:孝心保产品有对年龄的特殊要求
|
||||
//添加判断,是否是孝心保产品
|
||||
let showHint = this.chooseProducts[productIndex].hint
|
||||
@@ -2449,7 +2463,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||
} else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|
||||
}
|
||||
else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|
||||
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
|
||||
console.log('defalutValue==', defalutValue)
|
||||
console.log("currentEle['amt']==", currentEle['amt'])
|
||||
@@ -2492,7 +2507,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||
} else if (productCode == 'GFRS_M0040') {
|
||||
}
|
||||
else if (productCode == 'GFRS_M0040') {
|
||||
// 惠企保保额限制
|
||||
//被保险人年龄如果在41-60区间
|
||||
if (this.saleInsuredPersonInfo.insuredAge >= 41) {
|
||||
@@ -2529,7 +2545,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||
} else if (productCode == 'GFRS_M0046') {
|
||||
}
|
||||
else if (productCode == 'GFRS_M0046') {
|
||||
//被保险人年龄如果在50-65区间
|
||||
if(this.branchTypeVal == 'Z'){ //中介渠道规则
|
||||
if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||
@@ -2604,7 +2621,8 @@ export default {
|
||||
}
|
||||
}
|
||||
// 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
|
||||
} else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
|
||||
}
|
||||
else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
|
||||
if (Number(defalutValue) < Number(min)) {
|
||||
if (riskFactor.yearWay == "一次性交清") {
|
||||
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||
@@ -2618,7 +2636,8 @@ export default {
|
||||
currentEle['amt'] = Number(defalutValue) * Number(riskFactor.moneyUnit)
|
||||
this.getTrial()
|
||||
}
|
||||
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
|
||||
}
|
||||
else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
|
||||
if (Number(defalutValue) < Number(min)) {
|
||||
if (riskFactor.yearWay == "一次性交清") {
|
||||
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||
@@ -2639,7 +2658,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//其他产品按照原先的逻辑判断
|
||||
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') {
|
||||
}
|
||||
else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') {
|
||||
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
||||
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
||||
this.nextStepFlag = true
|
||||
@@ -2654,7 +2674,8 @@ export default {
|
||||
this.getTrial()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
||||
this.$toast(showHint)
|
||||
this.nextStepFlag = true
|
||||
|
||||
@@ -199,7 +199,11 @@
|
||||
<div class="text-left" style="width: 75%;">
|
||||
<span>{{ moneyItem.contentLabel }}</span>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<div class="text-right" v-if="moneyItem.content == 'currentBonus_M'">
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormat2 }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
<div class="text-right" v-else>
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormatNo }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
@@ -395,6 +399,13 @@ export default {
|
||||
numFormat(str) {
|
||||
return str.replace(/\.00/, '')
|
||||
},
|
||||
numFormat2(str) {
|
||||
if (str) {
|
||||
return Number(str.replace(/,/g, '')).toFixed(2)
|
||||
} else {
|
||||
return '-'
|
||||
}
|
||||
},
|
||||
numFormatNo(str) {
|
||||
if (str) {
|
||||
return Number(str.replace(/,/g, '')).toFixed(0)
|
||||
|
||||
Reference in New Issue
Block a user