$name = $this->request->param(‘name’);
//前端代码
<form class="layui-form layui-col-md12 x-so">
<input class="layui-input" placeholder="开始日期" name="start" id="start" value="{$Think.get.start}">
<input class="layui-input" placeholder="截止日期" name="end" id="end" value="{$Think.get.end}">
<input type="text" name="name" placeholder="请输入编号" autocomplete="off" class="layui-input" value="{$Think.get.name}">
<input type="text" name="suppliername" placeholder="请输入供应商名称" autocomplete="off" class="layui-input" value="{$Think.get.suppliername}">
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
<button class="layui-btn layui-btn-warm" type="button" onclick=window.location="/admin/Depot/outboundOrder"><i class="layui-icon"></i></button>
</form>
//后端代码
if($name){
$where[] = ['production_order_number|contract_number','like','%'.$name.'%'];
}
if($customer){
$where[] = ['customer_id','=',$customer];
}
//后端多个筛选
if($name){
$where[] = ['equipment_name|specification_type','like','%'.$name.'%'];
}