mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 04:56:44 +08:00
责任组联动功能代码逻辑编写
This commit is contained in:
@@ -136,7 +136,7 @@
|
|||||||
:max="dutyItem.maxDutyAmt"
|
:max="dutyItem.maxDutyAmt"
|
||||||
:show-plus="false"
|
:show-plus="false"
|
||||||
:show-minus="false"
|
:show-minus="false"
|
||||||
:disabled="item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')"
|
:disabled="item.productCode == 'GFRS_M0088' || item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')"
|
||||||
class="ml10 mr10"
|
class="ml10 mr10"
|
||||||
@focus="focusStep"
|
@focus="focusStep"
|
||||||
@blur="blurStep(dutyItem, index,item.productCode)"
|
@blur="blurStep(dutyItem, index,item.productCode)"
|
||||||
@@ -798,7 +798,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(item,'123231321321')
|
|
||||||
let payEndYearVal
|
let payEndYearVal
|
||||||
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
|
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
|
||||||
item.calFactorLst.map((i) => {
|
item.calFactorLst.map((i) => {
|
||||||
@@ -871,7 +870,6 @@
|
|||||||
//初始化数据试算
|
//初始化数据试算
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
})
|
})
|
||||||
console.log(this.trialList, '')
|
|
||||||
// 判断是否 含有 后台配置js验证函数
|
// 判断是否 含有 后台配置js验证函数
|
||||||
if (localStorage.ruleExpression) {
|
if (localStorage.ruleExpression) {
|
||||||
let ruleExpression = JSON.parse(localStorage.ruleExpression)
|
let ruleExpression = JSON.parse(localStorage.ruleExpression)
|
||||||
@@ -1215,6 +1213,30 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (validateRiskCode === 'GFRS_M0088'){
|
||||||
|
if(dutyItem.duty == '411200' || dutyItem.duty == '411206' || dutyItem.duty == '411207'){
|
||||||
|
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules.forEach((i) => {
|
||||||
|
if(i.duty == '411200' || i.duty == '411206' || i.duty == '411207'){
|
||||||
|
i.necess = dutyItem.necess
|
||||||
|
} else {
|
||||||
|
if(dutyItem.necess){
|
||||||
|
i.necess = !dutyItem.necess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if(dutyItem.duty == '411200_GBC' || dutyItem.duty == '411206_GBC' || dutyItem.duty == '411207_GBC'){
|
||||||
|
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules.forEach((i) => {
|
||||||
|
if(i.duty == '411200_GBC' || i.duty == '411206_GBC' || i.duty == '411207_GBC'){
|
||||||
|
i.necess = dutyItem.necess
|
||||||
|
} else {
|
||||||
|
if(dutyItem.necess){
|
||||||
|
i.necess = !dutyItem.necess
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
this.valiAndSend(dutyItem, productIndex)
|
this.valiAndSend(dutyItem, productIndex)
|
||||||
},
|
},
|
||||||
valiAndSend(dutyItem, productIndex) {
|
valiAndSend(dutyItem, productIndex) {
|
||||||
@@ -1289,7 +1311,6 @@
|
|||||||
const rule = dutdutyGFRS_M0070RulesyRules[duty]
|
const rule = dutdutyGFRS_M0070RulesyRules[duty]
|
||||||
const mutiple = rule.mutiple || DUTY_DEFAULT_MIN
|
const mutiple = rule.mutiple || DUTY_DEFAULT_MIN
|
||||||
const min = rule.min || DUTY_DEFAULT_MIN
|
const min = rule.min || DUTY_DEFAULT_MIN
|
||||||
console.log(rule.min,'rule.min')
|
|
||||||
if (!value || value < min || value % mutiple !== 0) {
|
if (!value || value < min || value % mutiple !== 0) {
|
||||||
this.$toast(rule.msg)
|
this.$toast(rule.msg)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
@@ -1565,7 +1586,6 @@
|
|||||||
},
|
},
|
||||||
trialBeforeRule() {
|
trialBeforeRule() {
|
||||||
let that = this
|
let that = this
|
||||||
console.log('走试算前规则')
|
|
||||||
// 针对于国富人寿附加两全保险附加险(GFRS_A0011),缴费期间期间要等于主险的缴费期间
|
// 针对于国富人寿附加两全保险附加险(GFRS_A0011),缴费期间期间要等于主险的缴费期间
|
||||||
let mainRiskInfo = this.getMainRiskInfo()
|
let mainRiskInfo = this.getMainRiskInfo()
|
||||||
this.chooseProducts.forEach((item) => {
|
this.chooseProducts.forEach((item) => {
|
||||||
@@ -2492,10 +2512,6 @@
|
|||||||
}
|
}
|
||||||
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') {
|
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
|
||||||
console.log('defalutValue==', defalutValue)
|
|
||||||
console.log("currentEle['amt']==", currentEle['amt'])
|
|
||||||
console.log('riskFactor.rules', riskFactor.rules)
|
|
||||||
console.log('this.saleInsuredPersonInfo.insuredAge ', this.saleInsuredPersonInfo.insuredAge)
|
|
||||||
//被保险人年龄如果在50-65区间
|
//被保险人年龄如果在50-65区间
|
||||||
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||||
//使用rules规则里的第二条控制保额份数
|
//使用rules规则里的第二条控制保额份数
|
||||||
@@ -2769,9 +2785,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
|
||||||
// defalutValue = value
|
|
||||||
console.log('进来几次')
|
|
||||||
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
||||||
},
|
},
|
||||||
//下一步
|
//下一步
|
||||||
@@ -2925,8 +2938,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log(riskItem)
|
|
||||||
riskItem = Object.assign(riskItem, this.trialInfos[index])
|
riskItem = Object.assign(riskItem, this.trialInfos[index])
|
||||||
riskDTOLst.push(riskItem)
|
riskDTOLst.push(riskItem)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user