shish преди 3 години
родител
ревизия
834363ebdd

+ 1 - 1
app-ghs/controllers/AdminController.php

@@ -303,7 +303,7 @@ class AdminController extends BaseController
             $lookAllShop = 1;
         }
 
-        //惠雅鲜花员工不能看收入情况
+        //惠雅鲜花员工不能看收入情况
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
             $this->shopAdmin->super = 0;
         }

+ 4 - 4
app-ghs/controllers/AuthController.php

@@ -132,7 +132,7 @@ class AuthController extends PublicController
             $lookAllShop = 1;
         }
 
-        //惠雅鲜花员工不能看收入情况
+        //惠雅鲜花员工不能看收入情况
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
             $shopAdmin->super = 0;
         }
@@ -259,7 +259,7 @@ class AuthController extends PublicController
             $lookAllShop = 1;
         }
 
-        //惠雅鲜花员工不能看收入情况
+        //惠雅鲜花员工不能看收入情况
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
             $shopAdmin->super = 0;
         }
@@ -519,7 +519,7 @@ class AuthController extends PublicController
             $lookAllShop = 1;
         }
 
-        //惠雅鲜花员工不能看收入情况
+        //惠雅鲜花员工不能看收入情况
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
             $shopAdmin->super = 0;
         }
@@ -622,7 +622,7 @@ class AuthController extends PublicController
             $lookAllShop = 1;
         }
 
-        //惠雅鲜花员工不能看收入情况
+        //惠雅鲜花员工不能看收入情况
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
             $shopAdmin->super = 0;
         }

+ 1 - 1
app-ghs/controllers/StatController.php

@@ -24,7 +24,7 @@ class StatController extends BaseController
             util::fail('超管才能查看');
         }
 
-        //惠雅鲜花南城和莞城员工不能看利润表
+        //惠雅鲜花员工不能看利润表
         $shopAdmin = $this->shopAdmin;
         $adminId = $shopAdmin->adminId ?? 0;
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {

+ 1 - 1
app-ghs/controllers/StatKdController.php

@@ -18,7 +18,7 @@ class StatKdController extends BaseController
             util::fail('超管才能查看');
         }
 
-        //惠雅鲜花员工不能看收入情况
+        //惠雅鲜花员工不能看收入情况
         $shopAdmin = $this->shopAdmin;
         $adminId = $shopAdmin->adminId ?? 0;
         if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {

+ 5 - 0
app-hd/controllers/AdminController.php

@@ -74,6 +74,11 @@ class AdminController extends BaseController
         $apiHost = Yii::$app->params['hdHost'];
         $imgUploadApi = $apiHost . '/upload/save-file';
 
+        //惠雅鲜花员工不能看收入情况
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            $shopAdmin->super = 0;
+        }
+
         //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
         util::success([
             'token' => '',

+ 6 - 0
app-hd/controllers/ApplyController.php

@@ -204,6 +204,12 @@ class ApplyController extends BaseController
             noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 注册", '15280215347');
             $apiHost = Yii::$app->params['hdHost'];
             $imgUploadApi = $apiHost . '/upload/save-file';
+
+            //惠雅鲜花员工不能看收入情况
+            if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+                $shopAdmin->super = 0;
+            }
+
             //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
             util::success([
                 'token' => $token,

+ 20 - 0
app-hd/controllers/AuthController.php

@@ -115,6 +115,11 @@ class AuthController extends PublicController
         $apiHost = Yii::$app->params['hdHost'];
         $imgUploadApi = $apiHost . '/upload/save-file';
 
+        //惠雅鲜花员工不能看收入情况
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            $shopAdmin->super = 0;
+        }
+
         //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
         util::success([
             'token' => $token,
@@ -197,6 +202,11 @@ class AuthController extends PublicController
         $apiHost = Yii::$app->params['hdHost'];
         $imgUploadApi = $apiHost . '/upload/save-file';
 
+        //惠雅鲜花员工不能看收入情况
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            $shopAdmin->super = 0;
+        }
+
         //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
         util::success([
             'token' => $token,
@@ -294,6 +304,11 @@ class AuthController extends PublicController
         $apiHost = Yii::$app->params['hdHost'];
         $imgUploadApi = $apiHost . '/upload/save-file';
 
+        //惠雅鲜花员工不能看收入情况
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            $shopAdmin->super = 0;
+        }
+
         //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
         util::success([
             'token' => $token,
@@ -532,6 +547,11 @@ class AuthController extends PublicController
         $apiHost = Yii::$app->params['hdHost'];
         $imgUploadApi = $apiHost . '/upload/save-file';
 
+        //惠雅鲜花员工不能看收入情况
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            $shopAdmin->super = 0;
+        }
+
         //涉及几个登录的地方,需要同步修改,请搜索关键词uni_login_info
         util::success([
             'token' => $token,

+ 7 - 0
app-hd/controllers/ShopController.php

@@ -102,6 +102,13 @@ class ShopController extends BaseController
     //切换门店 lqh 2021.1.31
     public function actionToggleShop()
     {
+        //惠雅鲜花员工不能切换门店
+        $shopAdmin = $this->shopAdmin;
+        $adminId = $shopAdmin->adminId ?? 0;
+        if (in_array($adminId, [2812, 4004, 3539, 3735])) {
+            util::fail('暂无权限');
+        }
+
         $newShopId = Yii::$app->request->post('shopId', 0);
         $newShop = ShopClass::getById($newShopId, true);
         if (empty($newShop)) {

+ 7 - 0
app-hd/controllers/StatController.php

@@ -28,6 +28,13 @@ class StatController extends BaseController
             $where['time'] = ['between', [$period['startTime'], $period['endTime']]];
         }
 
+        //惠雅鲜花员工不能看利润表
+        $shopAdmin = $this->shopAdmin;
+        $adminId = $shopAdmin->adminId ?? 0;
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            util::fail('暂无权限');
+        }
+
         //开单
         $sale = StatSaleClass::getSum($where);
 

+ 8 - 0
app-hd/controllers/StatKdController.php

@@ -20,6 +20,14 @@ class StatKdController extends BaseController
         if (isset($get['shopId']) && !empty($get['shopId'])) {
             $where['shopId'] = $get['shopId'];
         }
+
+        //惠雅鲜花员工不能看利润表
+        $shopAdmin = $this->shopAdmin;
+        $adminId = $shopAdmin->adminId ?? 0;
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004,2812])) {
+            util::fail('暂无权限');
+        }
+
         $searchTime = $get['searchTime'] ?? 'today';
         if (!empty($searchTime)) {
             $startTime = $get['startTime'] ?? '';