|
@@ -1144,7 +1144,7 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
|
|
|
|
//如果是自己客户,那么拥有查看权限
|
|
|
if hasSellerId {
|
|
|
- if sellerId == sysUserId {
|
|
|
+ if sellerId == sysUserId ||utils.InArrayByStr(shareSellerIdArr, strconv.Itoa(sysUserId)) || shareSellerId == sysUserId {
|
|
|
button.BtnView = true //显示权限、详情
|
|
|
if productStatus == utils.COMPANY_STATUS_FORMAL { //正式
|
|
|
button.BtnUpdate = true
|
|
@@ -1204,7 +1204,7 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
|
button.BtnModifySeller = true
|
|
|
button.BtnRemarkView = true
|
|
|
} else if productStatus == utils.COMPANY_STATUS_LOSE { //流失
|
|
|
- if sellerId == sysUserId || groupId == sysUserGroupId {
|
|
|
+ if sellerId == sysUserId || groupId == sysUserGroupId ||utils.InArrayByStr(shareSellerIdArr, strconv.Itoa(sysUserId)) || shareSellerId == sysUserId {
|
|
|
button.BtnApplyReceive = true
|
|
|
} else {
|
|
|
button.BtnReceive = true
|