【关于个险渠道协同产品专区系统开发需求的申请】如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品

This commit is contained in:
liyuetong
2022-01-14 17:25:07 +08:00
parent 20c718ef2a
commit e3d20636b0
4 changed files with 36 additions and 14 deletions

View File

@@ -200,12 +200,20 @@ export default {
}
this.list = resultData.content.mainRiskDTOS
//------------------------专为惠企写死--begin---------------//
if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// this.result = this.list.find(v => {
// return v.riskProductCode == 'GFRS_M0040'
// })
// }
// ------------------------专为惠企写死--end---------------//
//如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
if (this.list.length > 0) {
console.log(localStorage.productCodeChooseFromList)
this.result = this.list.find(v => {
return v.riskProductCode == 'GFRS_M0040'
return v.riskProductCode == localStorage.productCodeChooseFromList
})
}
// ------------------------专为惠企写死--end---------------//
if (this.list.length == 0) {
this.$dialog({ message: '暂无可选产品!' }).then(() => {
@@ -258,12 +266,19 @@ export default {
}
this.list = resultData.mainRiskDTOS
//------------------------专为惠企写死--begin---------------//
if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// this.result = this.list.find(v => {
// return v.riskProductCode == 'GFRS_M0040'
// })
// }
// ------------------------专为惠企写死--end---------------//
// 如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
if (this.list.length > 0) {
console.log(localStorage.productCodeChooseFromList)
this.result = this.list.find(v => {
return v.riskProductCode == 'GFRS_M0040'
return v.riskProductCode == localStorage.productCodeChooseFromList
})
}
// ------------------------专为惠企写死--end---------------//
if (this.list.length == 0) {
this.$dialog({ message: '暂无可选产品!' }).then(() => {

View File

@@ -50,7 +50,8 @@ export default {
isCheck: 0, //查看是否有权限
active: 2,
docuList: [], // 产品资料文件
introductImages: [] // 产品特色图片
introductImages: [], // 产品特色图片
itemProductDTOS: [], // 产品信息
}
},
created() {
@@ -83,10 +84,10 @@ export default {
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/product/productDocument'
// url: location.origin + '/#/cooperativeUnit/CooperativeDocument'
// },
// routerInfo: {
// path: `/product/productDocument`
// path: `/cooperativeUnit/CooperativeDocument`
// }
// })
},
@@ -131,6 +132,8 @@ export default {
//校验该代理人是否有该产品的售卖权限
return this.$toast('抱歉,您没有该产品的销售权限!')
}
// 从产品列表进入时存储所选产品的code--如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
localStorage.productCodeChooseFromList = this.itemProductDTOS[0].productCode
// 跳转到投保建议
this.$jump({
flag: 'h5',
@@ -155,6 +158,7 @@ export default {
this.introductImages = res.productShowInfo.introductImages
// 获取产品资料文件
this.docuList = res.productShowInfo.documents
this.itemProductDTOS = res.productShowInfo.itemProductDTOS
}
}
},

View File

@@ -175,10 +175,10 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/product/ProductDetail/${productCode}`
url: location.origin + `/#/cooperativeUnit/cooperativeDetail/${productCode}`
},
routerInfo: {
path: `/product/ProductDetail/${productCode}`
path: `/cooperativeUnit/cooperativeDetail/${productCode}`
}
})
}

View File

@@ -50,7 +50,8 @@ export default {
isCheck: 0, //查看是否有权限
active: 2,
docuList: [], // 产品资料文件
introductImages: [] // 产品特色图片
introductImages: [], // 产品特色图片
itemProductDTOS: [], // 产品信息
}
},
created() {
@@ -131,7 +132,8 @@ export default {
//校验该代理人是否有该产品的售卖权限
return this.$toast('抱歉,您没有该产品的销售权限!')
}
// 跳转到投保建议
// 从产品列表进入时存储所选产品的code--如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
localStorage.productCodeChooseFromList = this.itemProductDTOS[0].productCode // 跳转到投保建议
this.$jump({
flag: 'h5',
extra: {
@@ -155,6 +157,7 @@ export default {
this.introductImages = res.productShowInfo.introductImages
// 获取产品资料文件
this.docuList = res.productShowInfo.documents
this.itemProductDTOS = res.productShowInfo.itemProductDTOS
}
}
},