mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 12:16:44 +08:00
增加建议书利益演示档位
This commit is contained in:
@@ -62,7 +62,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 只有万能险且只有建议书才展示 -->
|
||||
<van-field class="pv10" v-if="item.hasPredictTransferPrem === '0'" v-model="item.predictTransferPrem" label="预计转入保费" placeholder="请输入" />
|
||||
<div class="flex justify-content-s pv10 border-bottom prem">
|
||||
<span style="font-weight:bold" v-if="trialList.length > 0 && trialList[index].trialType == 0">
|
||||
首期保费(元):
|
||||
@@ -87,7 +88,6 @@ import { Tag, Icon, Dialog, ActionSheet, Popup, Picker, Stepper, Field } from 'v
|
||||
import { trial } from '@/api/ebiz/common/common'
|
||||
import { saveOrUpdateOrderInfo } from '@/api/ebiz/sale/sale'
|
||||
import { saveProposal } from '@/api/ebiz/proposal/proposal.js'
|
||||
|
||||
export default {
|
||||
name: 'calculatePremium',
|
||||
components: {
|
||||
@@ -155,7 +155,6 @@ export default {
|
||||
})
|
||||
}
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
|
||||
//初始化数据试算
|
||||
this.getTrial()
|
||||
},
|
||||
@@ -586,6 +585,7 @@ export default {
|
||||
async nextStep() {
|
||||
//组装险种提交数据
|
||||
let [mainRiskCode, riskDTOLst] = ['', []]
|
||||
let rollInResult = '' //校验预计转入保费结果
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
if (item.isMainRisk == 0) {
|
||||
mainRiskCode = item.productCode
|
||||
@@ -597,7 +597,14 @@ export default {
|
||||
riskCode: item.productCode,
|
||||
mainRiskCode: mainRiskCode,
|
||||
prem: this.trialList[index] && this.trialList[index].prem,
|
||||
standPrem: this.trialList[index] && this.trialList[index].standPrem
|
||||
standPrem: this.trialList[index] && this.trialList[index].standPrem,
|
||||
predictTransferPrem: item.predictTransferPrem
|
||||
}
|
||||
if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') {
|
||||
//增加万能险 预计转入保费校验
|
||||
rollInResult = this.rollInCheck(item.predictTransferPrem)
|
||||
} else {
|
||||
rollInResult = true
|
||||
}
|
||||
//责任险保存参数构建
|
||||
if (this.trialList[index].duty) {
|
||||
@@ -616,7 +623,10 @@ export default {
|
||||
riskItem = Object.assign(riskItem, this.trialInfos[index])
|
||||
riskDTOLst.push(riskItem)
|
||||
})
|
||||
console.log('riskDTOLst', riskDTOLst)
|
||||
if (!rollInResult) {
|
||||
return
|
||||
}
|
||||
// console.log('riskDTOLst', riskDTOLst)
|
||||
//建议书需要添加全部投保人信息,电投只需要投保人ID
|
||||
let insuredDTOItem = Object.assign(this.saleInsuredPersonInfo, { riskDTOLst: riskDTOLst })
|
||||
let params = {
|
||||
@@ -643,7 +653,6 @@ export default {
|
||||
this.saleInsuredPersonInfo.insuredId = resultData.content.id
|
||||
localStorage.saleInsuredPersonInfo = JSON.stringify(this.saleInsuredPersonInfo)
|
||||
}
|
||||
|
||||
this.$jump({
|
||||
flag: 'goBack',
|
||||
extra: {
|
||||
@@ -659,13 +668,23 @@ export default {
|
||||
} else {
|
||||
this.$toast(resultData.resultMessage)
|
||||
}
|
||||
},
|
||||
rollInCheck(value) {
|
||||
let regExp = /^[1-9]+[0-9]*$/
|
||||
let result = regExp.test(value)
|
||||
if (result) {
|
||||
return true
|
||||
} else {
|
||||
this.$toast.fail('请输入正确的预计转入保费')
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
chooseProducts: {
|
||||
deep: true,
|
||||
handler: function(newVal) {
|
||||
console.log('xin', newVal)
|
||||
// console.log('xin', newVal)
|
||||
this.chooseProducts = newVal
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user