mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 01:36:43 +08:00
新增万能险风险告知页面并添加相关代码逻辑
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="own_content">
|
||||
<ul class="index-bar">
|
||||
<li @click="changePage(Number(index) + 1)" v-for="(item, index) in pageTitle" :key="index" :class="item.tabClass" :id="item.tabClass" v-if="item.show">
|
||||
<li @click="changePage(item.pageNo)" v-for="(item, index) in pageTitle" :key="index" :class="item.tabClass" :id="item.tabClass" v-if="item.show">
|
||||
<!-- 选中 -->
|
||||
<div v-if="item.tabClass" class="flex justify-content-fs align-items-c">
|
||||
<div class="flex flex-direction-colunm align-items-c">
|
||||
@@ -116,6 +116,15 @@ export default {
|
||||
imgCheckedUrl: this.$assetsUrl + 'images/kmh/fxjg1.png',
|
||||
imgNoCheckedUrl: this.$assetsUrl + 'images/kmh/fxjg2.png'
|
||||
},
|
||||
{
|
||||
pageNo: 7.1,
|
||||
pageItem: '风险告知',
|
||||
urlStr: '/sale/universalRiskNotifyingMessage',
|
||||
tabClass: '',
|
||||
show:true,
|
||||
imgCheckedUrl: this.$assetsUrl + 'images/kmh/zhxx.png',
|
||||
imgNoCheckedUrl: this.$assetsUrl + 'images/kmh/zhxx_n.png'
|
||||
},
|
||||
{
|
||||
pageNo: 8,
|
||||
pageItem: '账户信息',
|
||||
@@ -181,6 +190,9 @@ export default {
|
||||
case 7: //跳到风险评估结果页
|
||||
url = `/sale/answerSuccess?edit=1&salePageFlag=${pageIndex}&orderNo=` + this.$route.query.orderNo
|
||||
break
|
||||
case 7.1: //跳到万能险风险告知页面
|
||||
url = `/sale/universalRiskNotifyingMessage?edit=1&salePageFlag=${pageIndex}&orderNo=` + this.$route.query.orderNo
|
||||
break
|
||||
case 8: //跳到账户信息页面
|
||||
url = `/sale/AccountInformation?edit=1&salePageFlag=${pageIndex}&orderNo=` + this.$route.query.orderNo
|
||||
break
|
||||
|
||||
@@ -10,6 +10,7 @@ const addBeneficiaryInfo = () => import('@/views/ebiz/sale/AddBeneficiaryInfo')
|
||||
|
||||
const signatureConfirmation = () => import('@/views/ebiz/sale/SignatureConfirmation')
|
||||
const notifyingMessage = () => import('@/views/ebiz/sale/NotifyingMessage')
|
||||
const universalRiskNotifyingMessage = () => import('@/views/ebiz/sale/universalRiskNotifyingMessage')
|
||||
const answerPage = () => import('@/views/ebiz/sale/answerPage')
|
||||
const answerSuccess = () => import('@/views/ebiz/sale/answerSuccess')
|
||||
const accountInformation = () => import('@/views/ebiz/sale/AccountInformation')
|
||||
@@ -122,6 +123,14 @@ export default [
|
||||
title: '告知信息'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/sale/universalRiskNotifyingMessage',
|
||||
name: 'universalRiskNotifyingMessage',
|
||||
component: universalRiskNotifyingMessage,
|
||||
meta: {
|
||||
title: '风险告知'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/sale/answerPage',
|
||||
name: 'answerPage',
|
||||
|
||||
@@ -517,7 +517,11 @@ export default {
|
||||
url = '/common/selectedProduct?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '40'){//告知信息保存成功, 跳到风险测评--
|
||||
if( order.riskEvaluationDTO.isShowEvaluationPoint == '0'){
|
||||
if(order.universalRiskNotifyDTO && order.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint == '0'){
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
}else{
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
}
|
||||
}else {
|
||||
url = '/sale/answerPage?edit=1&orderNo='+orderNo
|
||||
}
|
||||
@@ -526,9 +530,14 @@ export default {
|
||||
}else if(orderStatus == '44'){//建议书转投保, 跳到投保人
|
||||
url = '/sale/insuredInfo?edit=1&orderNo='+orderNo
|
||||
}else if(orderStatus == '62'){//风险测评保存成功, 跳到账户信息--
|
||||
// url = '/sale/AccountInformation?edit=1'
|
||||
if(order.universalRiskNotifyDTO && order.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint == '0'){
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
}else{
|
||||
url = '/sale/answerSuccess?edit=1&orderNo='+orderNo
|
||||
}
|
||||
}else if(orderStatus == '63'){//风险测评保存成功, 跳到账户信息--
|
||||
url = '/sale/AccountInformation?edit=1&orderNo='+orderNo
|
||||
}
|
||||
// switch (orderStatus) {
|
||||
// case '01': //已签名待客户确认, 跳到签名确认页面
|
||||
// url = '/sale/SignatureConfirmation?edit=1'
|
||||
|
||||
@@ -188,7 +188,8 @@ export default {
|
||||
salePageFlag: '5',
|
||||
// 是否特定医疗险
|
||||
isSpecificMedicalInsurance:false,
|
||||
isShowEvaluationPoint:'0'//默认不跳转到风险测评
|
||||
isShowEvaluationPoint:'0',//默认不跳转到风险测评
|
||||
isUniversalRiskNotifyShowPoint: '0' //默认不跳转到万能险风险告知
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
@@ -198,6 +199,7 @@ export default {
|
||||
if (res.result == 0) {
|
||||
//投被保险人关系
|
||||
this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint
|
||||
this.isUniversalRiskNotifyShowPoint = res.orderDTO.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint
|
||||
// this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint
|
||||
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
|
||||
this.$store.commit( 'updateAnswerType',updateAnswerType )
|
||||
@@ -679,15 +681,27 @@ export default {
|
||||
localStorage.salePageFlag = '6'
|
||||
}
|
||||
if(this.isShowEvaluationPoint == '0'){
|
||||
if(this.isUniversalRiskNotifyShowPoint == '1'){
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/accountInformation',
|
||||
url: location.origin + '/#/sale/universalRiskNotifyingMessage?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/accountInformation'
|
||||
path: '/sale/universalRiskNotifyingMessage?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}else{
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/accountInformation?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/accountInformation?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
@@ -713,7 +727,8 @@ export default {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else if (financeImpart == {}) {
|
||||
}
|
||||
else if (financeImpart == {}) {
|
||||
let data = {
|
||||
orderType: 'IMPART_ORDER',
|
||||
orderDTO: {
|
||||
@@ -734,6 +749,17 @@ export default {
|
||||
saveInformation(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
localStorage.removeItem('changeCard')
|
||||
if(this.isUniversalRiskNotifyShowPoint == '1'){
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/universalRiskNotifyingMessage?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/universalRiskNotifyingMessage?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}else{
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
@@ -743,11 +769,13 @@ export default {
|
||||
path: '/sale/AccountInformation'
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
let data = {
|
||||
orderType: 'IMPART_ORDER',
|
||||
orderDTO: {
|
||||
@@ -769,6 +797,17 @@ export default {
|
||||
if (res.result == '0') {
|
||||
localStorage.removeItem('changeCard')
|
||||
if(this.isShowEvaluationPoint == '0'){
|
||||
if(this.isUniversalRiskNotifyShowPoint == '1'){
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/universalRiskNotifyingMessage?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/universalRiskNotifyingMessage?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}else{
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
@@ -778,6 +817,7 @@ export default {
|
||||
path: '/sale/accountInformation'
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
|
||||
@@ -49,6 +49,7 @@ export default {
|
||||
salePageFlag: '7',
|
||||
riskEvaluationDTO:{
|
||||
},
|
||||
isUniversalRiskNotifyShowPoint: '0' //默认不跳转到万能险风险告知
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -70,6 +71,7 @@ export default {
|
||||
// this.$store.commit('updateAnswerType', updateAnswerType )
|
||||
// localStorage.setItem('updateAnswerType',updateAnswerType)
|
||||
this.riskEvaluationDTO = res.orderDTO.riskEvaluationDTO
|
||||
this.isUniversalRiskNotifyShowPoint = res.orderDTO.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint
|
||||
this.getStatement()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
@@ -172,6 +174,17 @@ export default {
|
||||
},
|
||||
next(){
|
||||
let that = this
|
||||
if(that.isUniversalRiskNotifyShowPoint == '1'){
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/universalRiskNotifyingMessage?orderNo=' + that.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/universalRiskNotifyingMessage?orderNo=' + that.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}else{
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
@@ -181,6 +194,8 @@ export default {
|
||||
path: '/sale/AccountInformation?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user