|
@@ -998,6 +998,9 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
button.BtnShare = true
|
|
button.BtnShare = true
|
|
button.BtnRemarkEdit = true
|
|
button.BtnRemarkEdit = true
|
|
button.BtnRemarkView = true
|
|
button.BtnRemarkView = true
|
|
|
|
+ if sellerId != sysUserId {
|
|
|
|
+ button.BtnModifySeller = false
|
|
|
|
+ }
|
|
} else if productStatus == utils.COMPANY_STATUS_TRY_OUT {
|
|
} else if productStatus == utils.COMPANY_STATUS_TRY_OUT {
|
|
button.BtnEdit = true
|
|
button.BtnEdit = true
|
|
button.BtnDelete = true
|
|
button.BtnDelete = true
|
|
@@ -1008,11 +1011,17 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
|
|
button.BtnModifySeller = true
|
|
button.BtnModifySeller = true
|
|
button.BtnRemarkEdit = true
|
|
button.BtnRemarkEdit = true
|
|
button.BtnRemarkView = true
|
|
button.BtnRemarkView = true
|
|
|
|
+ if sellerId != sysUserId {
|
|
|
|
+ button.BtnModifySeller = false
|
|
|
|
+ }
|
|
} else if productStatus == utils.COMPANY_STATUS_FREEZE {
|
|
} else if productStatus == utils.COMPANY_STATUS_FREEZE {
|
|
button.BtnThaw = true
|
|
button.BtnThaw = true
|
|
button.BtnModifySeller = true
|
|
button.BtnModifySeller = true
|
|
button.BtnRemarkEdit = true
|
|
button.BtnRemarkEdit = true
|
|
button.BtnRemarkView = true
|
|
button.BtnRemarkView = true
|
|
|
|
+ if sellerId != sysUserId {
|
|
|
|
+ button.BtnModifySeller = false
|
|
|
|
+ }
|
|
} else if productStatus == utils.COMPANY_STATUS_LOSE {
|
|
} else if productStatus == utils.COMPANY_STATUS_LOSE {
|
|
button.BtnApplyReceive = true
|
|
button.BtnApplyReceive = true
|
|
} else {
|
|
} else {
|