【优化代理人预授权提示语】agent/funcPerm/check接口给添加传参,是否交叉渠道 1-是 0-否 isCrossChannel

This commit is contained in:
li.yuetong
2022-10-08 14:32:01 +08:00
parent d3cf889110
commit 009b32a919
2 changed files with 3 additions and 3 deletions

View File

@@ -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') {
//校验该代理人是否有该产品的售卖权限
return this.$toast(flagPermission.resultMessage)

View File

@@ -131,12 +131,12 @@ export default {
},
//获取产品售卖权限列表
getProductSellPermissionList(val, that) {
getProductSellPermissionList(val, that, isCrossChannel) {
let resultData = {
flag:true,
resultMessage:''
}
const data = { productCodes: [val] }
const data = { productCodes: [val] ,isCrossChannel: isCrossChannel}
if (Object.prototype.toString.call(val) === '[object Array]') data.productCodes = [...val]
return new Promise((resolve, reject) => {
productCheck(data).then(