mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 10:56:44 +08:00
修改保费试算payEndYear
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
|
||||
class="ml10"
|
||||
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
|
||||
input-width="100"
|
||||
@@ -65,7 +64,6 @@
|
||||
:max="dutyItem.maxDutyAmt"
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
|
||||
class="ml10 mr10"
|
||||
@focus="focusStep"
|
||||
@blur="blurStep"
|
||||
@@ -204,12 +202,14 @@ export default {
|
||||
//构建提交数据、渲染险种
|
||||
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
||||
this.chooseProducts.map(item => {
|
||||
item.isHidden = true
|
||||
item.calFactorLst.map(i => {
|
||||
if (i.defaultValue) {
|
||||
this.mult = i.defaultValue
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// this.influenceAddRiskCodes
|
||||
|
||||
if (this.chooseProducts[0].influences && this.chooseProducts[0].influences.length > 0) {
|
||||
@@ -249,6 +249,7 @@ export default {
|
||||
},
|
||||
//弹框选择
|
||||
toSelect(index, index1, columns) {
|
||||
console.log(index, index1, columns)
|
||||
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
||||
this.columns = columns
|
||||
},
|
||||
@@ -262,7 +263,9 @@ export default {
|
||||
this.columns = []
|
||||
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
||||
let currentEle = currentFactor[this.calFactorIndex]
|
||||
|
||||
console.log('value', value)
|
||||
console.log('currentFactor', currentFactor)
|
||||
console.log('currentEle', currentEle)
|
||||
if (currentEle.showContent != value.text) {
|
||||
//通用规则校验
|
||||
if (this.payExceedInsured(currentEle, currentFactor, value.value)) {
|
||||
@@ -610,11 +613,11 @@ export default {
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
let trialInfo = {}
|
||||
item.calFactorLst.forEach(factor => {
|
||||
//type 类型 0为picker 1计步器 2职业等级
|
||||
if (factor.type == 0) {
|
||||
if (factor.hasFlag == '1') {
|
||||
trialInfo[factor.code] = factor[factor.code]
|
||||
trialInfo[factor.code + 'Flag'] = factor[factor.code + 'Flag']
|
||||
// trialInfo[factor.payEndYear] = factor[factor.payEndYear]
|
||||
} else {
|
||||
trialInfo[factor.code] = factor[factor.code]
|
||||
}
|
||||
@@ -643,8 +646,9 @@ export default {
|
||||
})
|
||||
//通用规则1:交费方式为一次交情,无交费期限
|
||||
if (trialInfo['payIntv'] == '0') {
|
||||
trialInfo['payEndYear'] = '1'
|
||||
trialInfo['payEndYear'] = '1000'
|
||||
trialInfo['payEndYearFlag'] = 'Y'
|
||||
trialInfo['insuYearFlag'] = 'Y'
|
||||
}
|
||||
//责任险参数构建
|
||||
// if (trialInfo.duty) {
|
||||
@@ -705,9 +709,18 @@ export default {
|
||||
console.log(value)
|
||||
this.mult = value
|
||||
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
||||
this.getTrial()
|
||||
if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
currentEle.defaultValue = currentEle.rules[productIndex].defaultValue
|
||||
Dialog.alert({
|
||||
message: `输入不能超过${Number(currentEle.limit) * 10000}的倍数`
|
||||
}).then(() => {
|
||||
// on close
|
||||
})
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
||||
this.getTrial()
|
||||
}
|
||||
},
|
||||
//下一步
|
||||
async nextStep() {
|
||||
|
||||
Reference in New Issue
Block a user