mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改商品搜索
This commit is contained in:
parent
cfd759816e
commit
831a852b4c
@ -43,7 +43,7 @@ class Goods extends Controller
|
||||
else $this->error("无法加载 {$this->type} 数据列表!");
|
||||
|
||||
// 列表排序并显示
|
||||
$query->like('code,name')->like('marks,cateids', ',');
|
||||
$query->like('code|name#name')->like('marks,cateids', ',');
|
||||
$query->equal('status,vip_entry,truck_type,rebate_type')->order('sort desc,id desc')->page();
|
||||
}
|
||||
|
||||
|
@ -1,15 +1,9 @@
|
||||
<form action="{:sysuri()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
|
||||
<div class="layui-form-item layui-inline">
|
||||
<label class="layui-form-label">商品编号</label>
|
||||
<label class="layui-input-inline">
|
||||
<input class="layui-input" name="code" placeholder="请输入商品编号" value="{$get.code|default=''}">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item layui-inline">
|
||||
<label class="layui-form-label">商品名称</label>
|
||||
<label class="layui-input-inline">
|
||||
<input class="layui-input" name="name" placeholder="请输入商品名称" value="{$get.name|default=''}">
|
||||
<input class="layui-input" name="name" placeholder="请输入编号或名称" value="{$get.name|default=''}">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user