Parcourir la source

Merge branch 'shareSeller_modifyBtn'

zwxi il y a 7 mois
Parent
commit
1960098125
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      services/company.go

+ 9 - 0
services/company.go

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