mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 23:26:44 +08:00
修复桂企保B产品权限问题 --提交人:秦路强
This commit is contained in:
@@ -103,7 +103,7 @@ export default {
|
||||
let path = `/sale/insuredInfo`
|
||||
let flagPermission = true
|
||||
if (this.$route.params.productDetailCode == 'GFRSPRO_M0024' || this.$route.params.productDetailCode == 'GFRSPRO_M0040') {
|
||||
flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0024', this)
|
||||
flagPermission = await riskRules.getProductSellPermissionList(this.$route.params.productDetailCode, this)
|
||||
let specilFlag = '1'
|
||||
path = `${path}?specilFlag=${specilFlag}`
|
||||
} else {
|
||||
|
||||
@@ -281,10 +281,12 @@ export default {
|
||||
return Toast.fail('暂不支持组合产品转投保')
|
||||
}
|
||||
}
|
||||
let permissionRiskCode ;
|
||||
let flag = item.insuredDTOs[0].riskDTOLst.some(v => {
|
||||
permissionRiskCode = v.riskCode;
|
||||
return v.riskCode == 'GFRS_M0024' || v.riskCode == 'GFRS_M0040'
|
||||
})
|
||||
if (flag && (await riskRules.getProductSellPermissionList('GFRS_M0024', this))) {
|
||||
if (flag && (await riskRules.getProductSellPermissionList(permissionRiskCode, this))) {
|
||||
return this.$toast('抱歉,您没有该产品的销售权限!')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user