setter
parent
ae7c467ada
commit
ca49c9319f
|
@ -123,6 +123,14 @@ class Order extends Base
|
|||
$whereMap[] = ['coding', '=', $searchParams['coding']];
|
||||
}
|
||||
|
||||
|
||||
if (isset($searchParams['contacts']) && !empty($searchParams['contacts'])) {
|
||||
$whereMap[] = ['contacts', 'like', "%".$searchParams['contacts']."%"];
|
||||
}
|
||||
if (isset($searchParams['phone']) && !empty($searchParams['phone'])) {
|
||||
$whereMap[] = ['phone', 'like', "%".$searchParams['phone']."%"];
|
||||
}
|
||||
|
||||
$res = OrderModel::findList($whereMap, [], $page, $size, function ($q) {
|
||||
return $q->with(['account']);
|
||||
}, $order);
|
||||
|
|
|
@ -54,6 +54,20 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">联系人</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" class="layui-input" name="contacts" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">手机号</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" class="layui-input" name="phone" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
<button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue