mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-14 05:26:45 +08:00
【关于个险渠道协同产品专区系统开发需求的申请】如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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}`
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user