代码更新
This commit is contained in:
@@ -4,7 +4,6 @@ package org.nl.wms.st.ivt.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateField;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.sf.json.JSONArray;
|
||||
@@ -31,13 +30,7 @@ public class StructIvtServiceImpl implements StructIvtService {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
||||
//QST_structIvt_01
|
||||
String customer = (String)whereJson.get("customer");
|
||||
String pcsn =(String) whereJson.get("pcsn");
|
||||
String searchbar = "";
|
||||
if (StrUtil.isNotEmpty(customer)&& StrUtil.isNotEmpty(pcsn)){
|
||||
searchbar =pcsn+customer;
|
||||
}
|
||||
|
||||
HashMap json = new HashMap<>();
|
||||
json.put("flag", "1");
|
||||
json.put("material_blury", whereJson.get("material_blury"));
|
||||
@@ -47,7 +40,8 @@ public class StructIvtServiceImpl implements StructIvtService {
|
||||
json.put("row_num", whereJson.get("row_num"));
|
||||
json.put("col_num", whereJson.get("col_num"));
|
||||
json.put("layer_num", whereJson.get("layer_num"));
|
||||
json.put("searchbar",searchbar);
|
||||
json.put("formula", whereJson.get("formula"));
|
||||
json.put("pcsn", whereJson.get("pcsn"));
|
||||
JSONObject result = WQL.getWO("QST_structIvt_01").addParamMap(json).pageQuery(WqlUtil.getHttpContext(page), "ivt.instorage_time desc");
|
||||
|
||||
//处理静置结束时间
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
输入.col_num TYPEAS s_string
|
||||
输入.layer_num TYPEAS s_string
|
||||
输入.searchbar TYPEAS s_string
|
||||
输入.pcsn TYPEAS s_string
|
||||
输入.formula TYPEAS s_string
|
||||
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
@@ -94,11 +96,17 @@
|
||||
OPTION 输入.row_num <> ""
|
||||
struct.row_num = 输入.row_num
|
||||
ENDOPTION
|
||||
OPTION 输入.col_num <> ""
|
||||
struct.col_num = 输入.col_num
|
||||
OPTION 输入.formula <> ""
|
||||
labelMst.formula = 输入.formula
|
||||
ENDOPTION
|
||||
OPTION 输入.pcsn <> ""
|
||||
labelMst.pcsn = 输入.pcsn
|
||||
ENDOPTION
|
||||
OPTION 输入.layer_num <> ""
|
||||
struct.layer_num = 输入.layer_num
|
||||
ENDOPTION
|
||||
OPTION 输入.layer_num <> ""
|
||||
struct.layer_num = 输入.layer_num
|
||||
ENDOPTION
|
||||
OPTION 输入.searchbar <> ""
|
||||
ivt.label_code like "%" 输入.searchbar
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="info"
|
||||
@@ -122,7 +122,7 @@
|
||||
@click="sync()"
|
||||
>
|
||||
仓位同步
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog
|
||||
|
||||
@@ -175,8 +175,8 @@ export default {
|
||||
this.hand()
|
||||
},
|
||||
handleChangepcsn(value) {
|
||||
this.query.formula = value[0]
|
||||
this.query.pcsn = value[1]
|
||||
this.query.customer = value
|
||||
this.hand()
|
||||
},
|
||||
hand(value) {
|
||||
|
||||
Reference in New Issue
Block a user