Commit d6554ecf by 孙龙

订单列表

parent 99f65a05
Showing with 7 additions and 3 deletions
......@@ -13,7 +13,8 @@ use Dcat\Admin\Layout\Content;
use Dcat\Admin\Layout\Column;
use Dcat\Admin\Layout\Row;
use Dcat\Admin\Admin;
use App\Admin\Renderable\UserTable;
use Dcat\Admin\Models\Administrator;
class OrderController extends AdminController
......@@ -95,8 +96,11 @@ class OrderController extends AdminController
})->datetime()->width(3);
$filter->startWith('company_name')->width(3);
$filter->startWith('scmUser.user_sn',admin_trans('scm-user.fields.user_sn'))->width(3);
$filter->equal('status')->select(admin_trans('order.options.status'))->width(3);
$filter->equal('sales_id',trans('inquiry.fields.sales_name'))->select(CmsUser::pluck('name', 'userId')->toArray())->width(3);
$filter->equal('status')->select([
"1"=>"待审核","2"=>"待付款","4"=>"待发货","8"=>"待收货","10"=>"交易成功","-1"=>"已取消"
])->width(3);
$filter->equal('sales_id',trans('inquiry.fields.sales_name'))->select(CmsUser::pluck('name', 'userId')->where("status",0)->toArray())->width(3);
});
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment