Ver código fonte

销单权限管理

shish 1 ano atrás
pai
commit
09a8ee80a4

+ 6 - 0
app-ghs/controllers/CustomController.php

@@ -152,6 +152,12 @@ class CustomController extends BaseController
                     util::fail('只能叶荷和财务操作');
                 }
             }
+            //中山淘花里,销账权限控制,多处请搜索 thl_clear_control
+            if (in_array($this->shopId, [17118])) {
+                if (!in_array($this->adminId, [55494, 55445, 17908])) {
+                    util::fail('你不能销单哈。。');
+                }
+            }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
                 if (!in_array($this->adminId, [40144])) {

+ 6 - 0
app-ghs/controllers/OrderClearController.php

@@ -160,6 +160,12 @@ class OrderClearController extends BaseController
                     util::fail('不能销单。');
                 }
             }
+            //中山淘花里,销账权限控制,多处请搜索 thl_clear_control
+            if (in_array($this->shopId, [17118])) {
+                if (!in_array($this->adminId, [55494, 55445, 17908])) {
+                    util::fail('你不能销单那。。');
+                }
+            }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
                 if (!in_array($this->adminId, [40144])) {

+ 6 - 0
app-ghs/controllers/PurchaseClearController.php

@@ -47,6 +47,12 @@ class PurchaseClearController extends BaseController
                     util::fail('暂无权限');
                 }
             }
+            //中山淘花里,销账权限控制,多处请搜索 thl_clear_control
+            if (in_array($this->shopId, [17118])) {
+                if (!in_array($this->adminId, [55494, 55445, 17908])) {
+                    util::fail('你不能销单!');
+                }
+            }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
                 if (!in_array($this->adminId, [40144])) {