This commit is contained in:
xman 2025-06-28 19:18:55 +08:00
parent a64640247b
commit 871a8c396c
3 changed files with 4 additions and 4 deletions

View File

@ -358,7 +358,7 @@ class Ajax extends Backend
$to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count(); $to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count();
} }
//待跟进 //待跟进
$to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count(); $to_follow = OrderDispatch::where('follow',0)->dispatcherauth($this->auth)->count();
// return [ // return [
// 'order/index' => $to_dispatch, // 'order/index' => $to_dispatch,

View File

@ -70,7 +70,7 @@ class Index extends Backend
$to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count(); $to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count();
} }
//待跟进 //待跟进
$to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count(); $to_follow = OrderDispatch::where('follow',0)->dispatcherauth($this->auth)->count();
//左侧菜单 //左侧菜单
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([ list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([

View File

@ -72,8 +72,8 @@ class Dispatch2 extends Backend
$list = $this->model $list = $this->model
->with(['orderb','lastRecord']) ->with(['orderb','lastRecord'])
->auth($this->auth) //->auth($this->auth)
// ->dispatcherauth($this->auth) ->dispatcherauth($this->auth)
->where($where) ->where($where)
->order($sort, $order) ->order($sort, $order)
->paginate($limit); ->paginate($limit);