zwxi 11 months ago
parent
commit
f528a708a6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      controllers/company.go

+ 4 - 0
controllers/company.go

@@ -373,6 +373,10 @@ func (this *CompanyController) SearchList() {
 			//根据销售"领取客户"的权限对部分按钮做限制
 			btnItem = services.GetCompanyPermissionButtonByReceiveEnabled(btnItem, receiveEnabled)
 		}
+		if list[i].IsShare == 1 && btnItem.BtnModifySeller == true && roleTypeCode == utils.ROLE_TYPE_CODE_RAI_ADMIN {
+			//如果已经是共享客户了,取消共享按钮全都显示,和修改销售权限一样
+			btnItem.BtnShare = true
+		}
 		//如果是权益客户,操作者又是权益管理员,那么就对他进行展示研选详情按钮
 		if strings.Contains(item.CompanyType, utils.COMPANY_CLASSIFY_RAI) && sysUser.RoleName == utils.ROLE_TYPE_RAI_PRODUCT {
 			btnItem.IsResearchShow = true