修改商品搜索

This commit is contained in:
邹景立 2022-05-15 13:47:53 +08:00
parent cfd759816e
commit 831a852b4c
2 changed files with 2 additions and 8 deletions

View File

@ -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();
}

View File

@ -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>