Cherry 1 gadu atpakaļ
vecāks
revīzija
8e3416a5d4
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      application/admin/controller/Index.php

+ 5 - 0
application/admin/controller/Index.php

@@ -70,6 +70,9 @@ class Index extends Backend
         $order_aftersale_num = (new Aftersale())->canOper()->count();
         $order_aftersale_num = (new Aftersale())->canOper()->count();
         $menu_order_aftersale_num = $order_aftersale_num ? $menu_arr : [];
         $menu_order_aftersale_num = $order_aftersale_num ? $menu_arr : [];
         $menu_shop_order_num = (($order_num + $order_aftersale_num) > 0) ? ['new', 'red', 'badge'] : [];
         $menu_shop_order_num = (($order_num + $order_aftersale_num) > 0) ? ['new', 'red', 'badge'] : [];
+        // 财务管理 - 鱼塘订单明细
+        $dis_order_num = (new \app\admin\model\discount\Order())->where('pay_fail','>',0)->whereOr('yajin_fail','>',0)->count();
+        $menu_dis_order_num = $dis_order_num ? ['new', 'red', 'badge'] : [];
 
 
         //左侧菜单
         //左侧菜单
         list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
         list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
@@ -86,6 +89,8 @@ class Index extends Backend
             'orderf' => $menu_shop_order_num,
             'orderf' => $menu_shop_order_num,
             'shopro/order/order' => $menu_order_num,
             'shopro/order/order' => $menu_order_num,
             'shopro/order/aftersale' => $menu_order_aftersale_num,
             'shopro/order/aftersale' => $menu_order_aftersale_num,
+            'caiwuguanli' => $menu_dis_order_num,
+            'discount/order' => $menu_dis_order_num,
         ], $this->view->site['fixedpage']);
         ], $this->view->site['fixedpage']);
         $action = $this->request->request('action');
         $action = $this->request->request('action');
         if ($this->request->isPost()) {
         if ($this->request->isPost()) {