zwxi 1 year ago
parent
commit
6f4e455774
2 changed files with 4 additions and 3 deletions
  1. 2 0
      controllers/company.go
  2. 2 3
      services/company.go

+ 2 - 0
controllers/company.go

@@ -377,6 +377,8 @@ func (this *CompanyController) SearchList() {
 			//如果已经是共享客户了,取消共享按钮全都显示,和修改销售权限一样
 			btnItem.BtnShare = true
 		}
+		// 客户搜索页不要共享客户按钮
+		btnItem.BtnShare = false
 		//如果是权益客户,操作者又是权益管理员,那么就对他进行展示研选详情按钮
 		if strings.Contains(item.CompanyType, utils.COMPANY_CLASSIFY_RAI) && sysUser.RoleName == utils.ROLE_TYPE_RAI_PRODUCT {
 			btnItem.IsResearchShow = true

+ 2 - 3
services/company.go

@@ -1192,13 +1192,12 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
 				button.BtnView = true                             //查看详情权限
 				if productStatus == utils.COMPANY_STATUS_FORMAL { //正式
 					button.BtnModifySeller = true
-					button.BtnShare = true
+					//button.BtnShare = true
 					button.BtnRemarkView = true
 				} else if productStatus == utils.COMPANY_STATUS_TRY_OUT { //试用
 					button.BtnModifySeller = true
 					button.BtnRemarkView = true
-					// CRM14.7.2 权益管理员可以设置试用客户为共享 
-					button.BtnShare = true
+					//button.BtnShare = true
 				} else if productStatus == utils.COMPANY_STATUS_FREEZE { //冻结
 					button.BtnModifySeller = true
 					button.BtnRemarkView = true