shish vor 2 Jahren
Ursprung
Commit
40aec9bfeb
1 geänderte Dateien mit 25 neuen und 1 gelöschten Zeilen
  1. 25 1
      app-ghs/controllers/ConsoleController.php

+ 25 - 1
app-ghs/controllers/ConsoleController.php

@@ -126,6 +126,9 @@ class ConsoleController extends BaseController
     //今日概况 ssh 20220723
     public function actionProfile()
     {
+        $get = Yii::$app->request->get();
+        $version = $get['version'] ?? 1;
+
         //$notice = [['title' => '新上线整单满减功能', 'action' => '查看视频', 'page' => '/admin/book/detail?id=orderReach']];
         $notice = [];
         $mainId = $this->mainId;
@@ -160,7 +163,7 @@ class ConsoleController extends BaseController
             ["name" => "商城", "img" => "ghs/home/shop3.png", "url" => "/admin/home/mall"],
             ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list"],
             ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list"],
-            ["name" => "花材(简)", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list2"],
+            ["name" => "花材(简)", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/simple"],
             ["name" => "改库存", "img" => "ghs/home/kcyjs.png", "url" => "/admin/changePrice/changeStock"],
             ["name" => "外采", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/wcOrder"],
             ["name" => "供货商", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
@@ -176,6 +179,27 @@ class ConsoleController extends BaseController
             ["name" => "盘点", "img" => "ghs/home/pandian.png", "url" => "/pagesStorehouse/inventory/list"],
             ["name" => "损耗", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
         ];
+        if ($version == 2) {
+            $menu = [
+                ["name" => "商城", "img" => "ghs/home/shop3.png", "url" => "/admin/home/mall"],
+                ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list"],
+                ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list2"],
+                ["name" => "改库存", "img" => "ghs/home/kcyjs.png", "url" => "/admin/changePrice/changeStock"],
+                ["name" => "外采", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/wcOrder"],
+                ["name" => "供货商", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
+                ["name" => "采购记录", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
+                ["name" => "调拨入库", "img" => "ghs/home/dbrk.png", "url" => "/pagesStorehouse/allot/allotPut"],
+                ["name" => "调拨出库", "img" => "ghs/home/dbck.png", "url" => "/pagesStorehouse/allot/allotEx"],
+                ["name" => "买花", "img" => "ghs/home/icon_buy_item.png", "url" => "buyGhs"],
+                ["name" => "买花记录", "img" => "ghs/home/icon_buy_record.png", "url" => "buyRecord", 'remindNum' => $cgNum],
+                ["name" => "库存总览", "img" => "ghs/home/kcyjs.png", "url" => "/admin/stat/stock"],
+                ["name" => "支出", "img" => "ghs/home/kcyjs.png", "url" => "/admin/expend/list"],
+                ["name" => "员工", "img" => "ghs/home/yggl.png", "url" => "/admin/staff/list"],
+                ["name" => "库存预警", "img" => "ghs/home/kcyjs.png", "url" => "/admin/item/list?warning=1"],
+                ["name" => "盘点", "img" => "ghs/home/pandian.png", "url" => "/pagesStorehouse/inventory/list"],
+                ["name" => "损耗", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
+            ];
+        }
 
         //查看财务的权限
         $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);