This commit is contained in:
2023-03-08 18:37:22 +08:00
parent 8a26caa449
commit c9a4ec6445
2 changed files with 25 additions and 1 deletions

View File

@@ -48,9 +48,17 @@ public class StorageCellServiceImpl implements StorageCellService {
@Override
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
String storage_code = MapUtil.getStr(whereJson, "storage_code");
String parent_storage_code = MapUtil.getStr(whereJson, "parent_storage_code");
String address = MapUtil.getStr(whereJson, "address");
String where = "";
if (StrUtil.isNotEmpty(storage_code)) {
where = " and storage_code like '%" + storage_code + "%'";
where += " and storage_code like '%" + storage_code + "%'";
}
if (StrUtil.isNotEmpty(parent_storage_code)) {
where += " and parent_storage_code like '%" + parent_storage_code + "%'";
}
if (StrUtil.isNotEmpty(address)) {
where += " and address like '%" + address + "%'";
}
WQLObject wo = WQLObject.getWQLObject("acs_storage_cell");
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1 = 1 " + where, "update_time desc");

View File

@@ -12,6 +12,22 @@
style="width: 200px;"
class="filter-item"
/>
<el-input
v-model="query.parent_storage_code"
size="small"
clearable
placeholder="输入父级货位编码"
style="width: 200px;"
class="filter-item"
/>
<el-input
v-model="query.address"
size="small"
clearable
placeholder="输入agv站点"
style="width: 200px;"
class="filter-item"
/>
<rrOperation />
</div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->