|
@@ -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
|