|
@@ -952,6 +952,8 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
|
//button.BtnDelete = true
|
|
|
button.BtnModifySeller = true
|
|
|
button.BtnFreeze = false
|
|
|
+ // CRM14.7.2 权益管理员可以设置试用客户为共享
|
|
|
+ button.BtnShare = true
|
|
|
} else if productStatus == utils.COMPANY_STATUS_FREEZE { //冻结
|
|
|
button.BtnModifySeller = true
|
|
|
} else if productStatus == utils.COMPANY_STATUS_LOSE { //流失
|
|
@@ -1159,6 +1161,8 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
|
button.BtnFreeze = true
|
|
|
button.BtnRemarkEdit = true
|
|
|
button.BtnRemarkView = true
|
|
|
+ // CRM14.7.2 权益管理员可以设置试用客户为共享
|
|
|
+ button.BtnShare = true
|
|
|
} else if productStatus == utils.COMPANY_STATUS_FREEZE { //冻结
|
|
|
button.BtnThaw = true
|
|
|
button.BtnModifySeller = true
|
|
@@ -1192,6 +1196,8 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
|
} else if productStatus == utils.COMPANY_STATUS_TRY_OUT { //试用
|
|
|
button.BtnModifySeller = true
|
|
|
button.BtnRemarkView = true
|
|
|
+ // CRM14.7.2 权益管理员可以设置试用客户为共享
|
|
|
+ button.BtnShare = true
|
|
|
} else if productStatus == utils.COMPANY_STATUS_FREEZE { //冻结
|
|
|
button.BtnModifySeller = true
|
|
|
button.BtnRemarkView = true
|
|
@@ -2370,7 +2376,7 @@ func FilterReadAndContractAuth(chartPermissions, contractPermissions, condition
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-// GetShareCompanyPermissionButton 正式客户共享-权限按钮(目前仅FICC有正式客户共享, 所以不管权益角色)
|
|
|
+// GetShareCompanyPermissionButton 正式客户共享-权限按钮
|
|
|
func GetShareCompanyPermissionButton(roleTypeCode, statuses string, productId int, item *company.CompanyItem, sysUser *system.Admin) (button *company.ButtonPermission) {
|
|
|
statusMap := make(map[int]string)
|
|
|
statusMap[productId] = statuses
|