shish hai 8 meses
pai
achega
f1eed16cc0

+ 7 - 1
app-ghs/controllers/GhsController.php

@@ -201,7 +201,7 @@ class GhsController extends BaseController
             }
             //小向花卉采购控制
             if ($this->mainId == 23390) {
-                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043,77951])) {
+                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043, 77951])) {
                     util::fail('没有数据哦,编号35');
                 }
             }
@@ -211,6 +211,12 @@ class GhsController extends BaseController
                     util::fail('暂时无法查看哦,编号6868');
                 }
             }
+            //捷芳鲜花批发,限制不能查看采购权限的人
+            if ($this->mainId == 45354) {
+                if (in_array($this->adminId, [47094, 47130])) {
+                    util::fail('暂时无法查看哦,编号6811');
+                }
+            }
         }
 
         $list = GhsClass::getGhsList($where);

+ 9 - 3
app-ghs/controllers/PurchaseOrderController.php

@@ -437,7 +437,7 @@ class PurchaseOrderController extends BaseController
         if (getenv('YII_ENV') == 'production') {
             //小向花卉采购控制
             if ($this->mainId == 23390) {
-                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4,24043,77951])) {
+                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043, 77951])) {
                     util::fail('你不能采购哦');
                 }
             }
@@ -748,7 +748,7 @@ class PurchaseOrderController extends BaseController
             }
             //小向花卉采购控制
             if ($this->mainId == 23390) {
-                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043,77951])) {
+                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043, 77951])) {
                     util::fail('没有数据哦,编号2292');
                 }
             }
@@ -764,6 +764,12 @@ class PurchaseOrderController extends BaseController
                     util::fail('暂时不能查看哦,编号6818');
                 }
             }
+            //捷芳鲜花批发,限制不能查看采购权限的人
+            if ($mainId == 45354) {
+                if (in_array($adminId, [47094, 47130])) {
+                    util::fail('暂时不能查看哦,编号6822');
+                }
+            }
         }
 
         $data = PurchaseOrderClass::getOrderList($where);
@@ -1125,7 +1131,7 @@ class PurchaseOrderController extends BaseController
                 if (getenv('YII_ENV') == 'production') {
                     //小向花卉采购控制
                     if ($this->mainId == 23390) {
-                        if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4,24043,77951])) {
+                        if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043, 77951])) {
                             util::fail('你不能采购哦');
                         }
                     }