完成订单重构
This commit is contained in:
parent
0360e5c29a
commit
a03f58bbc9
|
|
@ -3,6 +3,7 @@
|
|||
namespace app\admin\controller;
|
||||
|
||||
use app\admin\model\AdminLog;
|
||||
use app\admin\model\OrderDispatch;
|
||||
use app\common\controller\Backend;
|
||||
use think\Config;
|
||||
use think\Hook;
|
||||
|
|
@ -42,10 +43,13 @@ class Index extends Backend
|
|||
|
||||
$order = new \app\admin\model\Order();
|
||||
$to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count();
|
||||
//待跟进
|
||||
$to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count();
|
||||
|
||||
//左侧菜单
|
||||
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
||||
'order/index' => [$to_dispatch, 'red', 'badge'], //待派单
|
||||
'orders/dispatch2' => [$to_follow, 'yellow', 'badge'], //待跟进
|
||||
], $this->view->site['fixedpage']);
|
||||
$action = $this->request->request('action');
|
||||
if ($this->request->isPost()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user