Browse Source

销账单

shish 8 months ago
parent
commit
b1b7066eb6

+ 8 - 2
app-ghs/controllers/CustomController.php

@@ -213,13 +213,19 @@ class CustomController extends BaseController
             //淘花里小榄店 thl_xl_clear
             if (in_array($this->shopId, [72366])) {
                 if (!in_array($this->adminId, [69792, 55445, 55707, 69792])) {
-                    util::fail('你不能销单那。。');
+                    util::fail('你不能销单那,编号1956');
+                }
+            }
+            //淘花里珠海店
+            if (in_array($this->shopId, [78556])) {
+                if (!in_array($this->adminId, [69132, 75771, 43732, 55734, 47775, 55711, 40678, 75798])) {
+                    util::fail('你不能销单哦,编号88831');
                 }
             }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
                 if (!in_array($this->adminId, [40144, 42912, 42023])) {
-                    util::fail('您不能充值销单哦。');
+                    util::fail('您不能充值销单哦,编号956');
                 }
             }
         } else {

+ 8 - 2
app-ghs/controllers/OrderClearController.php

@@ -132,8 +132,8 @@ class OrderClearController extends BaseController
 
         $staff = $this->shopAdmin;
         if ($staff->finance == 0) {
-            $speShopList = [4608, 17118, 72366];
-            //杭州斗南鲜花、淘花里小榄店、淘花里中山店员工,没有财务权限也要能销单
+            $speShopList = [4608, 17118, 72366, 78556];
+            //杭州斗南鲜花、淘花里小榄店、淘花里中山店、淘花里珠海店,没有财务权限也要能销单
             if (!in_array($this->shopId, $speShopList)) {
                 util::fail('没有财务权限,不能销单哦');
             }
@@ -179,6 +179,12 @@ class OrderClearController extends BaseController
                     util::fail('你不能销单那。。。。');
                 }
             }
+            //淘花里珠海店
+            if (in_array($this->shopId, [78556])) {
+                if (!in_array($this->adminId, [69132, 75771, 43732, 55734, 47775, 55711, 40678, 75798])) {
+                    util::fail('你不能销单,编号00785');
+                }
+            }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
                 if (!in_array($this->adminId, [40144, 42912, 42023])) {

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

@@ -59,6 +59,12 @@ class PurchaseClearController extends BaseController
                     util::fail('你不能销单那。。。');
                 }
             }
+            //淘花里珠海店
+            if (in_array($this->shopId, [78556])) {
+                if (!in_array($this->adminId, [69132, 75771, 43732, 55734, 47775, 55711, 40678, 75798])) {
+                    util::fail('你不能销单,编号6553');
+                }
+            }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
                 if (!in_array($this->adminId, [40144,42912,42023])) {