mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 20:16:44 +08:00
建议书pdf预览页面跳转路由添加参数 并在pdf页面根据路由传递的参数请求相关接口并做属性赋值
This commit is contained in:
@@ -31,7 +31,7 @@ export default {
|
|||||||
this.init()
|
this.init()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
let riskCode = localStorage.pdfShareCode
|
let riskCode = localStorage.pdfShareCode
|
||||||
dataDictionary.riskType.some(item => {
|
dataDictionary.riskType.some(item => {
|
||||||
if (item.code == riskCode) {
|
if (item.code == riskCode) {
|
||||||
@@ -39,6 +39,43 @@ export default {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if(this.$route.query.proposalOrderNo){
|
||||||
|
let params = {
|
||||||
|
proposalInfoDTO: {
|
||||||
|
proposalNo: this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let res = await getDemo(params)
|
||||||
|
if(res.result == 0){
|
||||||
|
let mainRiskNameList = []
|
||||||
|
res.content.orderDTO.insuredDTOs.forEach(item => {
|
||||||
|
item.riskDTOLst.forEach(item01 => {
|
||||||
|
if (item01.isMainRisk == '0') {
|
||||||
|
mainRiskNameList.push(item01.riskName)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
// 一、单个被保险人
|
||||||
|
// 1、1个主险(含附加险)的情况,直接显示“主险产品名称”
|
||||||
|
// 2、有2个及以上主险组合,建议书名称显示“保险产品组合计划”
|
||||||
|
// 二、有多个被保险人
|
||||||
|
// 都显示“家庭保障计划”
|
||||||
|
if(mainRiskNameList.length == 1){
|
||||||
|
if (res.content.orderDTO.insuredDTOs.length > 1) {
|
||||||
|
this.title = '家庭保障计划'
|
||||||
|
} else {
|
||||||
|
this.title = mainRiskNameList[0]
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if (res.content.orderDTO.insuredDTOs.length > 1) {
|
||||||
|
this.title = '家庭保障计划'
|
||||||
|
} else {
|
||||||
|
this.title = '保险产品组合计划'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
weixinShare({
|
weixinShare({
|
||||||
title: this.title,
|
title: this.title,
|
||||||
imgUrl: this.$assetsUrl + 'images/logo.png',
|
imgUrl: this.$assetsUrl + 'images/logo.png',
|
||||||
|
|||||||
@@ -929,7 +929,17 @@ export default {
|
|||||||
},
|
},
|
||||||
//跳转到pdf 进入建议书后 根据建议书编码来查找相应的pdf
|
//跳转到pdf 进入建议书后 根据建议书编码来查找相应的pdf
|
||||||
async goPDF() {
|
async goPDF() {
|
||||||
|
if(this.$route.query.proposalOrderNo){
|
||||||
|
this.$router.push({
|
||||||
|
path: '/proposal/pdf',
|
||||||
|
query: {
|
||||||
|
proposalOrderNo:this.$route.query.proposalOrderNo
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
this.$router.push({ path: '/proposal/pdf' })
|
this.$router.push({ path: '/proposal/pdf' })
|
||||||
|
}
|
||||||
|
|
||||||
// this.$jump({
|
// this.$jump({
|
||||||
// flag: 'h5',
|
// flag: 'h5',
|
||||||
// extra: {
|
// extra: {
|
||||||
|
|||||||
Reference in New Issue
Block a user