作者 刘朕
1 个管道 的构建 通过 耗费 47 秒

后台业务员列表新增购买人id搜索

... ... @@ -16,6 +16,9 @@ class SalesmanorderController extends AdminBaseController{
$where = [
'indent_type' => 2
];
if(!empty($param['user_id'])){
$where['uid'] = $param['user_id'];
}
if(!empty($param['keyword'])){
$where['order_number|name|phone'] = ['like','%'.trim($param['keyword']).'%'];
}
... ... @@ -68,6 +71,7 @@ class SalesmanorderController extends AdminBaseController{
'高二' => '高二',
'高三' => '高三'
];
$this->assign('user_id', isset($param['user_id']) ? trim($param['user_id']) : '');
$this->assign('keyword', isset($param['keyword']) ? trim($param['keyword']) : '');
$this->assign('state', isset($param['state']) ? $param['state'] : '');
$this->assign('uid', isset($param['uid']) ? $param['uid'] : '');
... ...
... ... @@ -12,8 +12,11 @@
<li class="active"><a href="#">业务员订单列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('Salesmanorder/sale_order_list')}">
购买人:
<input type="text" class="form-control" name="user_id" style="width: 140px;"
value="{$user_id|default=''}" placeholder="请输入购买人id">
关键字:
<input type="text" class="form-control" name="keyword" style="width: 200px;"
<input type="text" class="form-control" name="keyword" style="width: 270px;"
value="{$keyword|default=''}" placeholder="请输入订单号/姓名/手机号">
订单状态:
<select name="state" class="form-control">
... ...