垛型参数更新
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
package org.nl.wms.Cribbing.service.impl;
|
package org.nl.wms.Cribbing.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.nl.exception.BadRequestException;
|
import org.nl.exception.BadRequestException;
|
||||||
@@ -37,9 +38,19 @@ public class CribbinginfoServiceImpl implements CribbinginfoService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
||||||
|
// WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||||
|
// ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1=1", "update_time desc");
|
||||||
|
// final JSONObject json = rb.pageResult();
|
||||||
|
// return json;
|
||||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||||
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1=1", "update_time desc");
|
String name = (String) whereJson.get("name");
|
||||||
|
String sql = "1=1";
|
||||||
|
if (StrUtil.isNotEmpty(name)) {
|
||||||
|
sql = " (material_code like '%" + name + "%' OR material_name like '%" + name + "%')";
|
||||||
|
}
|
||||||
|
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), sql + " and is_delete='0'", "update_time desc");
|
||||||
final JSONObject json = rb.pageResult();
|
final JSONObject json = rb.pageResult();
|
||||||
|
log.info("json:{}", json);
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,26 @@
|
|||||||
<div class="head-container">
|
<div class="head-container">
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
|
<el-input
|
||||||
|
v-model="query.name"
|
||||||
|
size="small"
|
||||||
|
clearable
|
||||||
|
placeholder="输入物料名称或编码"
|
||||||
|
style="width: 200px;"
|
||||||
|
class="filter-item"
|
||||||
|
@keyup.enter.native="crud.toQuery"
|
||||||
|
/>
|
||||||
|
<rrOperation />
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
|
||||||
<el-form-item v-if = "false" label="物料标志">
|
<el-form-item v-if="false" label="物料标志">
|
||||||
<el-input v-model="form.material_id" style="width: 370px;" />
|
<el-input v-model="form.material_id" style="width: 370px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="物料编码">
|
<el-form-item label="物料编码">
|
||||||
<el-input v-model="form.material_code" style="width: 370px;" @focus="getMater"/>
|
<el-input v-model="form.material_code" style="width: 370px;" @focus="getMater" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if = "false" label="物料名称 ">
|
<el-form-item v-if="false" label="物料名称 ">
|
||||||
<el-input v-model="form.material_name" style="width: 370px;" />
|
<el-input v-model="form.material_name" style="width: 370px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产品编号">
|
<el-form-item label="产品编号">
|
||||||
@@ -292,7 +302,7 @@ export default {
|
|||||||
components: { pagination, crudOperation, rrOperation, udOperation, MaterDialog },
|
components: { pagination, crudOperation, rrOperation, udOperation, MaterDialog },
|
||||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({title: '基础垛形参数', url: 'api/cribbinginfo', idField: 'info_id', sort: 'info_id,desc', crudMethod: { ...crudCribbinginfo }})
|
return CRUD({ title: '基础垛形参数', url: 'api/cribbinginfo', idField: 'info_id', sort: 'info_id,desc', crudMethod: { ...crudCribbinginfo }})
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user