mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 13:06:43 +08:00
提交保费计算
This commit is contained in:
@@ -29,6 +29,8 @@
|
|||||||
v-model="item.calFactorLst[riskFactorIndex].defaultValue"
|
v-model="item.calFactorLst[riskFactorIndex].defaultValue"
|
||||||
:min="riskFactor.minAmt || riskFactor.minPrem"
|
:min="riskFactor.minAmt || riskFactor.minPrem"
|
||||||
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
||||||
|
:show-plus="false"
|
||||||
|
:show-minus="false"
|
||||||
class="ml10"
|
class="ml10"
|
||||||
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
|
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
|
||||||
input-width="100"
|
input-width="100"
|
||||||
@@ -60,6 +62,8 @@
|
|||||||
v-model="dutyItem.defaultDutyAmt"
|
v-model="dutyItem.defaultDutyAmt"
|
||||||
:min="dutyItem.minDutyAmt"
|
:min="dutyItem.minDutyAmt"
|
||||||
:max="dutyItem.maxDutyAmt"
|
:max="dutyItem.maxDutyAmt"
|
||||||
|
:show-plus="false"
|
||||||
|
:show-minus="false"
|
||||||
class="ml10 mr10"
|
class="ml10 mr10"
|
||||||
@focus="focusStep"
|
@focus="focusStep"
|
||||||
@blur="blurStep"
|
@blur="blurStep"
|
||||||
@@ -165,7 +169,7 @@ export default {
|
|||||||
influenceAddRiskCodes: [],
|
influenceAddRiskCodes: [],
|
||||||
influences: [],
|
influences: [],
|
||||||
nextStepFlag: false,
|
nextStepFlag: false,
|
||||||
isFrom: localStorage.isFrom === 'sale',
|
isFrom: localStorage.isRelated === '0',
|
||||||
policyNo: '', //关联保单号
|
policyNo: '', //关联保单号
|
||||||
// 份数
|
// 份数
|
||||||
mult: ''
|
mult: ''
|
||||||
@@ -198,12 +202,16 @@ export default {
|
|||||||
//构建提交数据、渲染险种
|
//构建提交数据、渲染险种
|
||||||
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
||||||
this.chooseProducts.map(item => {
|
this.chooseProducts.map(item => {
|
||||||
|
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||||
|
item.isHidden = true
|
||||||
|
}
|
||||||
item.calFactorLst.map(i => {
|
item.calFactorLst.map(i => {
|
||||||
if (i.defaultValue) {
|
if (i.defaultValue) {
|
||||||
this.mult = i.defaultValue
|
this.mult = i.defaultValue
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// this.influenceAddRiskCodes
|
// this.influenceAddRiskCodes
|
||||||
|
|
||||||
if (this.chooseProducts[0].influences && this.chooseProducts[0].influences.length > 0) {
|
if (this.chooseProducts[0].influences && this.chooseProducts[0].influences.length > 0) {
|
||||||
@@ -243,6 +251,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//弹框选择
|
//弹框选择
|
||||||
toSelect(index, index1, columns) {
|
toSelect(index, index1, columns) {
|
||||||
|
console.log(index, index1, columns)
|
||||||
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
||||||
this.columns = columns
|
this.columns = columns
|
||||||
},
|
},
|
||||||
@@ -256,7 +265,9 @@ export default {
|
|||||||
this.columns = []
|
this.columns = []
|
||||||
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
||||||
let currentEle = currentFactor[this.calFactorIndex]
|
let currentEle = currentFactor[this.calFactorIndex]
|
||||||
|
console.log('value', value)
|
||||||
|
console.log('currentFactor', currentFactor)
|
||||||
|
console.log('currentEle', currentEle)
|
||||||
if (currentEle.showContent != value.text) {
|
if (currentEle.showContent != value.text) {
|
||||||
//通用规则校验
|
//通用规则校验
|
||||||
if (this.payExceedInsured(currentEle, currentFactor, value.value)) {
|
if (this.payExceedInsured(currentEle, currentFactor, value.value)) {
|
||||||
@@ -604,11 +615,11 @@ export default {
|
|||||||
this.chooseProducts.forEach((item, index) => {
|
this.chooseProducts.forEach((item, index) => {
|
||||||
let trialInfo = {}
|
let trialInfo = {}
|
||||||
item.calFactorLst.forEach(factor => {
|
item.calFactorLst.forEach(factor => {
|
||||||
//type 类型 0为picker 1计步器 2职业等级
|
|
||||||
if (factor.type == 0) {
|
if (factor.type == 0) {
|
||||||
if (factor.hasFlag == '1') {
|
if (factor.hasFlag == '1') {
|
||||||
trialInfo[factor.code] = factor[factor.code]
|
trialInfo[factor.code] = factor[factor.code]
|
||||||
trialInfo[factor.code + 'Flag'] = factor[factor.code + 'Flag']
|
trialInfo[factor.code + 'Flag'] = factor[factor.code + 'Flag']
|
||||||
|
// trialInfo[factor.payEndYear] = factor[factor.payEndYear]
|
||||||
} else {
|
} else {
|
||||||
trialInfo[factor.code] = factor[factor.code]
|
trialInfo[factor.code] = factor[factor.code]
|
||||||
}
|
}
|
||||||
@@ -637,8 +648,9 @@ export default {
|
|||||||
})
|
})
|
||||||
//通用规则1:交费方式为一次交情,无交费期限
|
//通用规则1:交费方式为一次交情,无交费期限
|
||||||
if (trialInfo['payIntv'] == '0') {
|
if (trialInfo['payIntv'] == '0') {
|
||||||
trialInfo['payEndYear'] = '1'
|
trialInfo['payEndYear'] = '1000'
|
||||||
trialInfo['payEndYearFlag'] = 'Y'
|
trialInfo['payEndYearFlag'] = 'Y'
|
||||||
|
trialInfo['insuYearFlag'] = 'Y'
|
||||||
}
|
}
|
||||||
//责任险参数构建
|
//责任险参数构建
|
||||||
// if (trialInfo.duty) {
|
// if (trialInfo.duty) {
|
||||||
@@ -699,9 +711,19 @@ export default {
|
|||||||
console.log(value)
|
console.log(value)
|
||||||
this.mult = value
|
this.mult = value
|
||||||
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||||
this.mainRiskInfluenceAddRisk()
|
if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
currentEle.defaultValue = currentEle.rules[productIndex].defaultValue
|
||||||
this.getTrial()
|
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() {
|
async nextStep() {
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export default {
|
|||||||
let { name, phoneNo, certificateInfoList } = agentResult
|
let { name, phoneNo, certificateInfoList } = agentResult
|
||||||
if (certificateInfoList != null && certificateInfoList != '') {
|
if (certificateInfoList != null && certificateInfoList != '') {
|
||||||
certificateInfoList.forEach(c => {
|
certificateInfoList.forEach(c => {
|
||||||
if (c.certificateType == '1') {
|
if (c.certificateType == '0') {
|
||||||
agent.certificate = c.certificateNo
|
agent.certificate = c.certificateNo
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user