mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 05:16:44 +08:00
【优化代理人预授权提示语】agent/funcPerm/check接口给添加传参,是否交叉渠道 1-是 0-否 isCrossChannel
This commit is contained in:
@@ -380,7 +380,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let flagPermission = await riskRules.getProductSellPermissionList(resultData.productCode, this)
|
let flagPermission = await riskRules.getProductSellPermissionList(resultData.productCode, this,this.isCrossChannel)
|
||||||
if (flagPermission.flag && localStorage.isFrom != 'proposal') {
|
if (flagPermission.flag && localStorage.isFrom != 'proposal') {
|
||||||
//校验该代理人是否有该产品的售卖权限
|
//校验该代理人是否有该产品的售卖权限
|
||||||
return this.$toast(flagPermission.resultMessage)
|
return this.$toast(flagPermission.resultMessage)
|
||||||
|
|||||||
@@ -131,12 +131,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
//获取产品售卖权限列表
|
//获取产品售卖权限列表
|
||||||
getProductSellPermissionList(val, that) {
|
getProductSellPermissionList(val, that, isCrossChannel) {
|
||||||
let resultData = {
|
let resultData = {
|
||||||
flag:true,
|
flag:true,
|
||||||
resultMessage:''
|
resultMessage:''
|
||||||
}
|
}
|
||||||
const data = { productCodes: [val] }
|
const data = { productCodes: [val] ,isCrossChannel: isCrossChannel}
|
||||||
if (Object.prototype.toString.call(val) === '[object Array]') data.productCodes = [...val]
|
if (Object.prototype.toString.call(val) === '[object Array]') data.productCodes = [...val]
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
productCheck(data).then(
|
productCheck(data).then(
|
||||||
|
|||||||
Reference in New Issue
Block a user