mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 04:52:52 +08:00
feat: 投保流程信息保存入参优化
This commit is contained in:
@@ -8,18 +8,22 @@
|
||||
<van-tag type="primary" v-if="item.isMainRisk === 0" class="mr5 green" plain>主险</van-tag>
|
||||
<van-tag type="primary" v-else class="mr5 green" plain>附加险</van-tag>
|
||||
<span class="ml5 center fs13 flex1">{{ item.riskName }}</span>
|
||||
<van-tag type="primary" v-if="item.isMainRisk === 0 && item.hasAddtionRisk && isEnterAddtionRisk" plain @click="selectAddtionRisk" class="green mr8">
|
||||
<van-tag type="primary" v-if="item.isMainRisk === 0 && item.hasAddtionRisk && isEnterAddtionRisk" plain
|
||||
@click="selectAddtionRisk" class="green mr8">
|
||||
附
|
||||
</van-tag>
|
||||
<van-icon name="search" size="20" v-if="item.documentDTOS && item.documentDTOS.length > 0" @click="seeDocument(index)" class="green mr5" />
|
||||
<van-icon name="search" size="20" v-if="item.documentDTOS && item.documentDTOS.length > 0"
|
||||
@click="seeDocument(index)" class="green mr5" />
|
||||
<van-icon name="delete" size="22" v-if="item.isMainRisk !== 0" @click="deleteRisk(index, item)" class="green" />
|
||||
</div>
|
||||
<!-- 险种条件 isRemit是否是豁免险:否:1 -->
|
||||
<div v-if="(item.isRemit == 1 && isTrial == '1') || (item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 1)">
|
||||
<div
|
||||
v-if="(item.isRemit == 1 && isTrial == '1') || (item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 1)">
|
||||
<!-- <div v-if="item.isRemit == 1 && isTrial == '1'"> -->
|
||||
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
|
||||
<!--riskFactor.type 1输入框和步进器 0 下拉选 -->
|
||||
<div class="flex justify-content-s pv10 border-bottom" v-if="Number(riskFactor.type) === 1 && item.productCode !== 'GFRS_A0011'">
|
||||
<div class="flex justify-content-s pv10 border-bottom"
|
||||
v-if="Number(riskFactor.type) === 1 && item.productCode !== 'GFRS_A0011'">
|
||||
<div class="flex align-items-c">
|
||||
<span v-if="riskFactor.suffix" class="fs14">{{ riskFactor.name + '(' + riskFactor.suffix + ')' }}</span>
|
||||
<span v-else class="fs14">{{ riskFactor.name }} </span>
|
||||
@@ -53,7 +57,8 @@
|
||||
v-else-if="item.productCode === 'GFRS_A0011' && riskFactor.type == 1 && riskFactor.code === 'amt'"
|
||||
class="flex justify-content-s pv10 border-bottom"
|
||||
>
|
||||
<van-field v-model="riskFactor.defaultValue" readonly :label="riskFactor.name + '(' + riskFactor.suffix + ')'" />
|
||||
<van-field v-model="riskFactor.defaultValue" readonly
|
||||
:label="riskFactor.name + '(' + riskFactor.suffix + ')'" />
|
||||
</div>
|
||||
<!-- //主险的交费期间联动国富人寿附加两全(GFRS_A0011)保险的交费期间 -->
|
||||
<div
|
||||
@@ -84,7 +89,8 @@
|
||||
placeholder="请选择"
|
||||
@click="toSelect(index, riskFactorIndex, riskFactor.columns)"
|
||||
/>
|
||||
<van-field v-if="riskFactor.code === 'payEndYear'" v-model="riskFactor.showContent" readonly :label="riskFactor.name" />
|
||||
<van-field v-if="riskFactor.code === 'payEndYear'" v-model="riskFactor.showContent" readonly
|
||||
:label="riskFactor.name" />
|
||||
</div>
|
||||
<div class="border-bottom renewalWrappser fs14" v-if="riskFactor.type == 4 && !renewalShow(mainRiskCode)">
|
||||
<span>{{ riskFactor.name }}</span>
|
||||
@@ -97,7 +103,8 @@
|
||||
<div class="border-bottom" v-if="riskFactor.type == 3">
|
||||
<div class="pv12 border-bd">{{ riskFactor.name }}</div>
|
||||
<div class="duty">
|
||||
<div class="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
|
||||
<div class="flex justify-content-s border-bd pv10 align-items-c"
|
||||
v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
|
||||
<span
|
||||
v-if="
|
||||
![
|
||||
@@ -115,7 +122,7 @@
|
||||
].includes(item.productCode)
|
||||
"
|
||||
class="fs14 w100"
|
||||
>{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span
|
||||
>{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span
|
||||
>
|
||||
<span v-else class="fs14 w100">{{ dutyItem.dutyName }}</span>
|
||||
<div class="flex relative">
|
||||
@@ -227,7 +234,8 @@
|
||||
<div class="border-bottom" v-if="riskFactor.type == 3">
|
||||
<div class="pv12 border-bd">{{ riskFactor.name }}</div>
|
||||
<div class="duty">
|
||||
<div class="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
|
||||
<div class="flex justify-content-s border-bd pv10 align-items-c"
|
||||
v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
|
||||
<span class="fs14 w100">{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span>
|
||||
<div class="flex relative">
|
||||
<van-stepper
|
||||
@@ -275,15 +283,18 @@
|
||||
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex" class="border-bottom">
|
||||
<div class="flex justify-content-s pv10">
|
||||
<div class="flex">
|
||||
<van-field v-if="riskFactor.type == 0" v-model="riskFactor.showContent" readonly :label="riskFactor.name" />
|
||||
<van-field v-if="riskFactor.type == 1" v-model="riskFactor.defaultValue" readonly :label="riskFactor.name + '(' + riskFactor.suffix + ')'" />
|
||||
<van-field v-if="riskFactor.type == 0" v-model="riskFactor.showContent" readonly
|
||||
:label="riskFactor.name" />
|
||||
<van-field v-if="riskFactor.type == 1" v-model="riskFactor.defaultValue" readonly
|
||||
:label="riskFactor.name + '(' + riskFactor.suffix + ')'" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="riskFactor.type == 3">
|
||||
<div class="pv12 border-bd">{{ riskFactor.name }}</div>
|
||||
<div class="duty">
|
||||
<div class="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
|
||||
<div class="flex justify-content-s border-bd pv10 align-items-c"
|
||||
v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
|
||||
<span class="fs14 w100">{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span>
|
||||
<div class="flex relative">
|
||||
<van-stepper
|
||||
@@ -327,8 +338,10 @@
|
||||
</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" v-if="item.isMainRisk == 0 && isRelated && isFrom != 'proposal'">
|
||||
<van-field class="pv10" v-if="item.hasPredictTransferPrem === '0'" v-model="item.predictTransferPrem"
|
||||
label="预计转入保费" placeholder="请输入" />
|
||||
<div class="flex justify-content-s pv10 border-bottom"
|
||||
v-if="item.isMainRisk == 0 && isRelated && isFrom != 'proposal'">
|
||||
<van-field
|
||||
v-model="policyNo"
|
||||
clearable
|
||||
@@ -362,14 +375,17 @@
|
||||
首期保费(元):
|
||||
</span>
|
||||
<span style="font-weight: bold" v-else>保额(元):</span>
|
||||
<span class="fee red" v-if="trialList && trialList.length > 0">{{ trialList[index].showPrem | moneyFormat }}</span>
|
||||
<span class="fee red" v-if="trialList && trialList.length > 0">{{ trialList[index].showPrem | moneyFormat
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--底部总保费计算-->
|
||||
<div class="bottom-btn bg-white flex">
|
||||
<span> 首期总保费 ¥ {{ firstTermTotalPremium | moneyFormat }} 元 </span>
|
||||
<van-button type="danger" size="large" @click="nextStep" :disabled="nextStepFlag" v-no-more-click="1000">立即投保</van-button>
|
||||
<van-button type="danger" size="large" @click="nextStep" :disabled="nextStepFlag" v-no-more-click="1000">
|
||||
立即投保
|
||||
</van-button>
|
||||
</div>
|
||||
<van-action-sheet v-model="show" cancel-text="取消" :actions="policyInfo" @select="openDocument" />
|
||||
|
||||
@@ -380,7 +396,8 @@
|
||||
|
||||
<!-- 附加险添加窗口 -->
|
||||
<van-popup v-model="showAdditionRiskPopup" round position="bottom" class="addtion-risk">
|
||||
<van-picker show-toolbar @confirm="handleSubmitAddAdditionRisk" @cancel="handleSubmitAddAdditionRisk({ submit: false })">
|
||||
<van-picker show-toolbar @confirm="handleSubmitAddAdditionRisk"
|
||||
@cancel="handleSubmitAddAdditionRisk({ submit: false })">
|
||||
<template #columns-top>
|
||||
<addtion-risk-list ref="additionRiskList" :show-next="false" />
|
||||
</template>
|
||||
@@ -391,12 +408,14 @@
|
||||
<div class="pl20 pr20 mt10">
|
||||
<div class="flex justify-content-s fs12" v-for="(item, index) in verifyResultList" :key="index">
|
||||
<div>
|
||||
<img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/ruleType0' + item.ruleType + '.png')" alt="" />
|
||||
<img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/ruleType0' + item.ruleType + '.png')"
|
||||
alt="" />
|
||||
<span class="v-middle">{{ item.ruleType | ruleTypeFilter }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<!-- <span class="v-middle">{{item.status | approvedFilter}}</span>-->
|
||||
<img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/approved' + item.status + '.png')" alt="" />
|
||||
<img class="w20 h20 p10 v-middle" :src="require('@/assets/images/sale/approved' + item.status + '.png')"
|
||||
alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-content-s align-items-c fs12" v-for="item in riskAmntList">
|
||||
@@ -421,9 +440,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { Tag, Icon, Dialog, ActionSheet, Popup, Picker, Stepper, Field, Checkbox, RadioGroup, Radio } from 'vant'
|
||||
import { saveOrUpdateOrderInfo, getOrderDetail, orderTrial, information } from '@/api/ebiz/sale/sale'
|
||||
import { saveProposal, saveOrUpdateTrialRecordInfo } from '@/api/ebiz/proposal/proposal.js'
|
||||
import { ActionSheet, Checkbox, Dialog, Field, Icon, Picker, Popup, Radio, RadioGroup, Stepper, Tag } from 'vant'
|
||||
import { getOrderDetail, information, orderTrial, saveOrUpdateOrderInfo } from '@/api/ebiz/sale/sale'
|
||||
import { saveOrUpdateTrialRecordInfo, saveProposal } from '@/api/ebiz/proposal/proposal.js'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
import { dutyRules } from './js/dutyRules'
|
||||
@@ -504,7 +523,7 @@ export default {
|
||||
premiumData: [], //试算
|
||||
saleInsuredInfo: {},
|
||||
saleInsuredPersonInfo: {
|
||||
sex: "0"
|
||||
sex: '0'
|
||||
}, //投保人信息
|
||||
trialList: [],
|
||||
popupShow: false,
|
||||
@@ -516,7 +535,7 @@ export default {
|
||||
trialInfos: [],
|
||||
influenceAddRiskCodes: [],
|
||||
influences: [],
|
||||
// todo: 可以到时候改成计算属性,防止出现状态异常的问题
|
||||
// todo: 可以到时候改成计算属性,防止出现状态异常的问题
|
||||
nextStepFlag: false,
|
||||
isRelated: localStorage.isRelated === '0', //关联保单号
|
||||
policyNo: '', // 保单号
|
||||
@@ -570,7 +589,7 @@ export default {
|
||||
mounted() {
|
||||
// 当组件挂载之后开始创建订单
|
||||
// todo :后续如果不创建订单需要删除订单
|
||||
this.createOrder()
|
||||
this.submitOrder()
|
||||
|
||||
this.isFrom = window.localStorage.isFrom
|
||||
this.$jump({
|
||||
@@ -594,6 +613,7 @@ export default {
|
||||
}
|
||||
window.appCallBack = this.appCallBack
|
||||
getAgentInfo({}).then(res => {
|
||||
this.branchType = res.branchType
|
||||
// branchType N1、1代表个险渠道 和 N5、5 代表中介渠道,N代表内勤
|
||||
if (res.branchType === 'N1' || res.branchType == '1') {
|
||||
this.branchTypeVal = 'G'
|
||||
@@ -644,7 +664,8 @@ export default {
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => {
|
||||
})
|
||||
}
|
||||
},
|
||||
renewalShow(productCode) {
|
||||
@@ -678,7 +699,12 @@ export default {
|
||||
item[item.code] = factor[item.code]
|
||||
}
|
||||
}
|
||||
let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'], sex: factor.sex }
|
||||
let itemColumns = {
|
||||
text: factor.showContent,
|
||||
value: factor[item.code],
|
||||
flag: factor[item.code + 'Flag'],
|
||||
sex: factor.sex
|
||||
}
|
||||
if (factor.medical !== undefined) {
|
||||
itemColumns.medical = factor.medical
|
||||
}
|
||||
@@ -725,15 +751,15 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/flow-improve/sale/insuranceApplicationFlow?edit=1&salePageFlag=2&orderNo=' + this.$route.query["orderNo"]
|
||||
url: location.origin + '/#/flow-improve/sale/insuranceApplicationFlow?edit=1&salePageFlag=2&orderNo=' + this.$route.query['orderNo']
|
||||
},
|
||||
routerInfo: {
|
||||
name: 'flowImproveSaleInsuranceApplicationFlow',
|
||||
query: {
|
||||
edit: 1,
|
||||
salePageFlag: 2,
|
||||
orderNo: this.$route.query["orderNo"]
|
||||
}
|
||||
query: {
|
||||
edit: 1,
|
||||
salePageFlag: 2,
|
||||
orderNo: this.$route.query['orderNo']
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -797,38 +823,38 @@ export default {
|
||||
let currentProductInfo =
|
||||
localStorage.isTrial === '1'
|
||||
? {
|
||||
isCrossChannel: this.isCrossChannel,
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
isMainRisk: 0,
|
||||
hint: resultData.hint,
|
||||
riskType: resultData.riskType,
|
||||
riskName: productName,
|
||||
productCode: riskProductCode,
|
||||
mainRiskCode: riskProductCode,
|
||||
documentDTOS: resultData.productTrialInfoDTO.documentDTOS,
|
||||
influences: resultData.productTrialInfoDTO.influences,
|
||||
isRemit: resultData.productTrialInfoDTO.isRemit,
|
||||
hasPredictTransferPrem: resultData.productTrialInfoDTO.hasPredictTransferPrem, //建议书使用 是否展示预计转入保费
|
||||
predictTransferPrem: null //建议书使用 预计转入保费字段
|
||||
}
|
||||
isCrossChannel: this.isCrossChannel,
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
isMainRisk: 0,
|
||||
hint: resultData.hint,
|
||||
riskType: resultData.riskType,
|
||||
riskName: productName,
|
||||
productCode: riskProductCode,
|
||||
mainRiskCode: riskProductCode,
|
||||
documentDTOS: resultData.productTrialInfoDTO.documentDTOS,
|
||||
influences: resultData.productTrialInfoDTO.influences,
|
||||
isRemit: resultData.productTrialInfoDTO.isRemit,
|
||||
hasPredictTransferPrem: resultData.productTrialInfoDTO.hasPredictTransferPrem, //建议书使用 是否展示预计转入保费
|
||||
predictTransferPrem: null //建议书使用 预计转入保费字段
|
||||
}
|
||||
: {
|
||||
isCrossChannel: this.isCrossChannel,
|
||||
productTrialYearDTOS,
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
isMainRisk: 0,
|
||||
hint: resultData.hint,
|
||||
riskType: resultData.riskType,
|
||||
riskName: productName,
|
||||
productCode: riskProductCode,
|
||||
mainRiskCode: riskProductCode,
|
||||
documentDTOS: resultData.productTrialInfoDTO.documentDTOS,
|
||||
influences: resultData.productTrialInfoDTO.influences,
|
||||
isRemit: resultData.productTrialInfoDTO.isRemit,
|
||||
hasPredictTransferPrem: resultData.productTrialInfoDTO.hasPredictTransferPrem, //建议书使用 是否展示预计转入保费
|
||||
predictTransferPrem: null //建议书使用 预计转入保费字段
|
||||
}
|
||||
isCrossChannel: this.isCrossChannel,
|
||||
productTrialYearDTOS,
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
isMainRisk: 0,
|
||||
hint: resultData.hint,
|
||||
riskType: resultData.riskType,
|
||||
riskName: productName,
|
||||
productCode: riskProductCode,
|
||||
mainRiskCode: riskProductCode,
|
||||
documentDTOS: resultData.productTrialInfoDTO.documentDTOS,
|
||||
influences: resultData.productTrialInfoDTO.influences,
|
||||
isRemit: resultData.productTrialInfoDTO.isRemit,
|
||||
hasPredictTransferPrem: resultData.productTrialInfoDTO.hasPredictTransferPrem, //建议书使用 是否展示预计转入保费
|
||||
predictTransferPrem: null //建议书使用 预计转入保费字段
|
||||
}
|
||||
|
||||
//构建险种数组
|
||||
let productsData
|
||||
@@ -1378,7 +1404,7 @@ export default {
|
||||
if (!isChecked) {
|
||||
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex]['necess'] = !this.chooseProducts[productIndex].calFactorLst[
|
||||
calFactorIndex
|
||||
].rules[dutyItemIndex]['necess']
|
||||
].rules[dutyItemIndex]['necess']
|
||||
return false
|
||||
}
|
||||
//嘉和保多责任组合,选中、取消任意一款其他5款也跟着选中、取消
|
||||
@@ -2285,7 +2311,8 @@ export default {
|
||||
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
||||
this.getTrial()
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => {
|
||||
})
|
||||
}
|
||||
},
|
||||
//试算
|
||||
@@ -2563,7 +2590,7 @@ export default {
|
||||
trialInfo['prem'] =
|
||||
this.isTrial == '0'
|
||||
? Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].displayAmount) *
|
||||
Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].moneyUnit)
|
||||
Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].moneyUnit)
|
||||
: Number(factor.displayAmount) * Number(factor.moneyUnit)
|
||||
} else {
|
||||
if (item.isRemit == 0) {
|
||||
@@ -2806,10 +2833,10 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||
this.$toast(
|
||||
'56周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2817,10 +2844,10 @@ export default {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(
|
||||
'56周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2835,10 +2862,10 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||
this.$toast(
|
||||
'0周岁-55周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2846,10 +2873,10 @@ export default {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(
|
||||
'0周岁-55周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2907,10 +2934,10 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||
this.$toast(
|
||||
'51周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2918,10 +2945,10 @@ export default {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(
|
||||
'51周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2936,20 +2963,20 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||
this.$toast(
|
||||
'0周岁-50周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
this.$toast(
|
||||
'0周岁-50周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2968,10 +2995,10 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||
this.$toast(
|
||||
'56周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2979,10 +3006,10 @@ export default {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(
|
||||
'56周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -2997,20 +3024,20 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||
this.$toast(
|
||||
'0周岁-55周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
this.$toast(
|
||||
'0周岁-55周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -3043,10 +3070,10 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||
this.$toast(
|
||||
'51周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[1].maxPrem) * 10000 +
|
||||
'元。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[1].maxPrem) * 10000 +
|
||||
'元。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -3054,12 +3081,12 @@ export default {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(
|
||||
'51周岁-60周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[1].maxPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[1].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[1].maxPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[1].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -3074,22 +3101,22 @@ export default {
|
||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||
this.$toast(
|
||||
'出生满 28 天至 50周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[0].maxPrem) * 10000 +
|
||||
'元。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[0].maxPrem) * 10000 +
|
||||
'元。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
this.$toast(
|
||||
'出生满 28 天至 50周岁最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[0].maxPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
Number(riskFactor.rules[0].minPrem) * 10000 +
|
||||
'元,最高投保金额为' +
|
||||
Number(riskFactor.rules[0].maxPrem) * 10000 +
|
||||
'元。超过最低基本保险金额为' +
|
||||
Number(riskFactor.rules[0].limit) * 10000 +
|
||||
'元整数倍。'
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
@@ -3358,7 +3385,7 @@ export default {
|
||||
orderNo: orderNo,
|
||||
productChannel: this.isCrossChannel
|
||||
},
|
||||
// appntDTO: {},
|
||||
appntDTO: {},
|
||||
insuredDTOs: [insuredDTOItem]
|
||||
}
|
||||
}
|
||||
@@ -3381,7 +3408,19 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
let resultData
|
||||
let resultData /*= new Proxy({}, {
|
||||
set(target, p, newValue, receiver) {
|
||||
Reflect.set(target, p, newValue, receiver)
|
||||
this.$CacheUtils.setLocItem('resultData', newValue)
|
||||
},
|
||||
get(target, p, receiver) {
|
||||
const data = Reflect.get(target, p, receiver)
|
||||
if (!data) {
|
||||
return this.$CacheUtils.getLocItem('resultData')
|
||||
} else return data
|
||||
}
|
||||
})*/
|
||||
|
||||
if (localStorage.isFrom === 'proposal') {
|
||||
// 从建议书进入, 豁免险保费空值特殊处理
|
||||
let prdCodes = ['GFRS_A0001', 'GFRS_A0007']
|
||||
@@ -3421,26 +3460,28 @@ export default {
|
||||
} else if (this.$route.query.proposalOrderNo) {
|
||||
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'goBack',
|
||||
extra: {
|
||||
refresh: '1',
|
||||
index: '-2'
|
||||
},
|
||||
routerInfo: {
|
||||
type: 2,
|
||||
index: -2,
|
||||
path: '/common/selectedProduct' + thismyurl
|
||||
}
|
||||
})
|
||||
// this.$jump({
|
||||
// flag: 'goBack',
|
||||
// extra: {
|
||||
// refresh: '1',
|
||||
// index: '-2'
|
||||
// },
|
||||
// routerInfo: {
|
||||
// type: 2,
|
||||
// index: -2,
|
||||
// path: '/common/selectedProduct' + thismyurl
|
||||
// }
|
||||
// })
|
||||
} else if (localStorage.isFrom === 'proposal') {
|
||||
let proposalOrderNo = this.$CacheUtils.getLocItem('proposalNo') || ''
|
||||
if (resultData.content.id) {
|
||||
this.saleInsuredPersonInfo.insuredId = resultData.content.id
|
||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
||||
}
|
||||
|
||||
//试算记录保存更新--编辑
|
||||
this.saveOrUpdateTrialRecordInfoFunc(resultData.content.riskDTO)
|
||||
|
||||
} else if (isFrom === 'orderTrial' && localStorage.isFrom === 'sale') {
|
||||
this.$toast.clear()
|
||||
this.trialResultsShow = true
|
||||
@@ -3448,7 +3489,11 @@ export default {
|
||||
this.riskAmntList = resultData.content.data.riskAmntList
|
||||
}
|
||||
}
|
||||
this.jumpTo()
|
||||
|
||||
// 保存被保人的相关信息
|
||||
this.submitOrder([insuredDTOItem])
|
||||
// debugger
|
||||
this.jumpTo()
|
||||
},
|
||||
//建议书试算记录保存更新--编辑功能
|
||||
saveOrUpdateTrialRecordInfoFunc(riskDTO) {
|
||||
@@ -3481,15 +3526,15 @@ export default {
|
||||
this.trialResultsShow = true
|
||||
this.verifyResultList = res.content.data.verifyResultList
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#' + url
|
||||
},
|
||||
routerInfo: {
|
||||
path: url
|
||||
}
|
||||
})
|
||||
// this.$jump({
|
||||
// flag: 'h5',
|
||||
// extra: {
|
||||
// url: location.origin + '/#' + url
|
||||
// },
|
||||
// routerInfo: {
|
||||
// path: url
|
||||
// }
|
||||
// })
|
||||
// this.$jump({
|
||||
// flag: 'goBack',
|
||||
// extra: {
|
||||
@@ -3524,24 +3569,30 @@ export default {
|
||||
}
|
||||
this.showAdditionRiskPopup = false
|
||||
},
|
||||
createOrder() {
|
||||
if (this.$route.query.orderNo) return
|
||||
submitOrder(riskDTO = []) {
|
||||
const params = {
|
||||
orderType: 'RISK_ORDER_NEW',
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: '',
|
||||
orderNo: this.$route.query.orderNo || '',
|
||||
productChannel: '0'
|
||||
},
|
||||
insuredDTOs: [
|
||||
{
|
||||
riskDTOLst: []
|
||||
}
|
||||
]
|
||||
appntDTO: {},
|
||||
userModel: {
|
||||
branchType: this.branchType
|
||||
},
|
||||
insuredDTOs: riskDTO
|
||||
}
|
||||
}
|
||||
|
||||
saveOrUpdateOrderInfo(params).then(({ orderNo }) => {
|
||||
this.$router.replace({ name: 'fiProductDetail', params: { productDetailCode: this.$route.params.productDetailCode }, query: { orderNo } })
|
||||
if (riskDTO.length) return
|
||||
|
||||
this.$router.replace({
|
||||
name: 'fiProductDetail',
|
||||
params: { productDetailCode: this.$route.params.productDetailCode },
|
||||
query: { orderNo }
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -3551,7 +3602,7 @@ export default {
|
||||
handler: function(obj) {
|
||||
const { birthday } = obj
|
||||
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||
console.log("当前年龄是 ",this.saleInsuredPersonInfo.insuredAge)
|
||||
console.log('当前年龄是 ', this.saleInsuredPersonInfo.insuredAge)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3562,6 +3613,7 @@ export default {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/deep/ .van-button--danger {
|
||||
border-radius: 0;
|
||||
}
|
||||
@@ -3570,6 +3622,7 @@ export default {
|
||||
border: none !important;
|
||||
border-top: 1px solid #e9332e !important;
|
||||
}
|
||||
|
||||
.renewalWrappser {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -3594,15 +3647,19 @@ export default {
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #dadada;
|
||||
}
|
||||
|
||||
.van-cell {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.prem:last-child {
|
||||
border: none;
|
||||
}
|
||||
/deep/.van-action-sheet__name {
|
||||
|
||||
/deep/ .van-action-sheet__name {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.checkbox-click {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
@@ -3610,10 +3667,12 @@ export default {
|
||||
width: 7.46667vw;
|
||||
height: 7.46667vw;
|
||||
}
|
||||
|
||||
.van-dialog__content {
|
||||
border: 1px solid red;
|
||||
}
|
||||
}
|
||||
|
||||
.addtion-risk /deep/ .van-picker__columns {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user