From 73a6f7d44ed7a9e683c6485c09614abf0d0a9e5d Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Wed, 24 Aug 2022 11:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/IvtQueryServiceImpl.java | 32 +++++++++++++++++-- .../nl/wms/statistics/wql/Qivt_query_01.wql | 5 +-- .../views/wms/statistics/hpcQuery/index.vue | 10 ++++-- .../wms/statistics/ioStorQuery/index.vue | 2 +- .../views/wms/statistics/ivtQuery/index.vue | 27 ++++++++-------- .../wms/statistics/ledgerQuery/index.vue | 2 +- .../wms/statistics/outStorQuery/index.vue | 2 +- .../wms/statistics/phySicalQuery/index.vue | 2 +- .../wms/statistics/powderOrderQuery/index.vue | 2 +- .../powderProductionQuery/index.vue | 2 +- .../statistics/productionDayQuery/index.vue | 2 +- .../wms/statistics/rawUatWcQuery/index.vue | 2 +- .../wms/statistics/sendReceiveQuery/index.vue | 2 +- .../wms/statistics/stifleQuery/index.vue | 2 +- 14 files changed, 63 insertions(+), 31 deletions(-) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/service/impl/IvtQueryServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/service/impl/IvtQueryServiceImpl.java index 43cd249f..d150cf89 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/service/impl/IvtQueryServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/service/impl/IvtQueryServiceImpl.java @@ -30,7 +30,6 @@ public class IvtQueryServiceImpl implements IvtQueryService { HashMap map = new HashMap(); map.put("flag", "1"); map.put("stor_id", MapUtil.getStr(whereJson,"stor_id")); - map.put("sect_id", MapUtil.getStr(whereJson,"sect_id")); map.put("material_name", MapUtil.getStr(whereJson,"material_name")); map.put("material_type_id", MapUtil.getStr(whereJson,"material_type_id")); map.put("storagevehicle_code", MapUtil.getStr(whereJson,"storagevehicle_code")); @@ -51,6 +50,21 @@ public class IvtQueryServiceImpl implements IvtQueryService { String classIds = classstandardService.getAllChildIdStr(class_idStr); map.put("classIds", classIds); } + String sect_id = (String) whereJson.get("sect_id"); + if(StrUtil.isNotEmpty(sect_id)){ + String[] sects = sect_id.substring(1).split(","); + StringBuilder sb = new StringBuilder(); + if(sects != null){ + for(int i=0;i< sects.length;i++){ + sb.append(",'" + sects[i] + "'"); + } + } + if(sb.length()>0){ + String str = sb.toString(); + str = "(" + str.substring(1) + ")"; + map.put("sects",str); + } + } JSONObject json = WQL.getWO("Qivt_query_01").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ivt.instorage_time desc"); return json; } @@ -74,7 +88,6 @@ public class IvtQueryServiceImpl implements IvtQueryService { HashMap map = new HashMap(); map.put("flag", "1"); map.put("stor_id", MapUtil.getStr(whereJson,"stor_id")); - map.put("sect_id", MapUtil.getStr(whereJson,"sect_id")); map.put("material_name", MapUtil.getStr(whereJson,"material_name")); map.put("material_type_id", MapUtil.getStr(whereJson,"material_type_id")); map.put("storagevehicle_code", MapUtil.getStr(whereJson,"storagevehicle_code")); @@ -95,6 +108,21 @@ public class IvtQueryServiceImpl implements IvtQueryService { String classIds = classstandardService.getAllChildIdStr(class_idStr); map.put("classIds", classIds); } + String sect_id = (String) whereJson.get("sect_id"); + if(StrUtil.isNotEmpty(sect_id)){ + String[] sects = sect_id.substring(1).split(","); + StringBuilder sb = new StringBuilder(); + if(sects != null){ + for(int i=0;i< sects.length;i++){ + sb.append(",'" + sects[i] + "'"); + } + } + if(sb.length()>0){ + String str = sb.toString(); + str = "(" + str.substring(1) + ")"; + map.put("sects",str); + } + } JSONArray rows = WQL.getWO("Qivt_query_01").addParamMap(map).process().getResultJSONArray(0); List> list = new ArrayList<>(); for (int i = 0; i < rows.size(); i++) { diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/wql/Qivt_query_01.wql b/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/wql/Qivt_query_01.wql index 5b28253c..0e4b451d 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/wql/Qivt_query_01.wql +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/statistics/wql/Qivt_query_01.wql @@ -27,6 +27,7 @@ 输入.bucketunique TYPEAS s_string 输入.material_model TYPEAS s_string 输入.classIds TYPEAS f_string + 输入.sects TYPEAS f_string [临时表] @@ -108,8 +109,8 @@ OPTION 输入.stor_id <> "" struct.stor_id = 输入.stor_id ENDOPTION - OPTION 输入.sect_id <> "" - struct.sect_id = 输入.sect_id + OPTION 输入.sects <> "" + struct.sect_id in 输入.sects ENDOPTION OPTION 输入.material_name <> "" ( me.material_name like "%" 输入.material_name "%" or me.material_code like "%" 输入.material_name "%" ) diff --git a/mes/qd/src/views/wms/statistics/hpcQuery/index.vue b/mes/qd/src/views/wms/statistics/hpcQuery/index.vue index 4c14f840..b7bfce75 100644 --- a/mes/qd/src/views/wms/statistics/hpcQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/hpcQuery/index.vue @@ -53,8 +53,8 @@ v-loading="crud.loading" :data="crud.data" size="mini" - height="420" - style="width: 100%;" + :max-height="420" + style="width: 100%;background: transparent;overflow:auto;" @selection-change="crud.selectionChangeHandler" > @@ -63,7 +63,8 @@ - + + @@ -131,4 +132,7 @@ export default { diff --git a/mes/qd/src/views/wms/statistics/ioStorQuery/index.vue b/mes/qd/src/views/wms/statistics/ioStorQuery/index.vue index d3eb6270..8b048cbb 100644 --- a/mes/qd/src/views/wms/statistics/ioStorQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/ioStorQuery/index.vue @@ -188,7 +188,7 @@ v-loading="crud.loading" size="mini" :data="crud.data" - height="420" + :max-height="420" style="width: 100%;" :highlight-current-row="true" @selection-change="crud.selectionChangeHandler" diff --git a/mes/qd/src/views/wms/statistics/ivtQuery/index.vue b/mes/qd/src/views/wms/statistics/ivtQuery/index.vue index 99ae1a3b..1c237a31 100644 --- a/mes/qd/src/views/wms/statistics/ivtQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/ivtQuery/index.vue @@ -15,8 +15,9 @@ @@ -138,7 +139,6 @@ class="filter-item" type="success" icon="el-icon-check" - :disabled="downdtl_flag" size="mini" @click="downdtl" > @@ -151,7 +151,7 @@ ref="table" v-loading="crud.loading" :data="crud.data" - height="420" + :max-height="420" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler" @@ -168,9 +168,9 @@ - + - + @@ -185,7 +185,7 @@ - + @@ -259,17 +259,16 @@ export default { return true }, sectQueryChange(val) { - if (val.length === 1) { - this.query.stor_id = val[0] - this.query.sect_id = '' - } + debugger if (val.length === 0) { this.query.sect_id = '' this.query.stor_id = '' - } - if (val.length === 2) { - this.query.stor_id = val[0] - this.query.sect_id = val[1] + } else { + this.query.stor_id = val[0][0] + this.query.sect_id = '' + for (var i = 0; i < val.length; i++) { + this.query.sect_id = this.query.sect_id + ',' + val[i][1] + } } this.crud.toQuery() }, diff --git a/mes/qd/src/views/wms/statistics/ledgerQuery/index.vue b/mes/qd/src/views/wms/statistics/ledgerQuery/index.vue index af913cd4..3a98f9f9 100644 --- a/mes/qd/src/views/wms/statistics/ledgerQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/ledgerQuery/index.vue @@ -57,7 +57,7 @@ ref="table" v-loading="crud.loading" :data="crud.data" - height="420" + :max-height="420" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler" diff --git a/mes/qd/src/views/wms/statistics/outStorQuery/index.vue b/mes/qd/src/views/wms/statistics/outStorQuery/index.vue index e7e8e4d3..b9e9de46 100644 --- a/mes/qd/src/views/wms/statistics/outStorQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/outStorQuery/index.vue @@ -101,7 +101,7 @@ ref="table" v-loading="crud.loading" size="mini" - height="420" + :max-height="420" :data="crud.data" style="width: 100%;" :highlight-current-row="true" diff --git a/mes/qd/src/views/wms/statistics/phySicalQuery/index.vue b/mes/qd/src/views/wms/statistics/phySicalQuery/index.vue index 33fda071..9307c811 100644 --- a/mes/qd/src/views/wms/statistics/phySicalQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/phySicalQuery/index.vue @@ -119,7 +119,7 @@ ref="table" v-loading="crud.loading" :data="crud.data" - height="420" + :max-height="420" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler" diff --git a/mes/qd/src/views/wms/statistics/powderOrderQuery/index.vue b/mes/qd/src/views/wms/statistics/powderOrderQuery/index.vue index 42237354..d9213d63 100644 --- a/mes/qd/src/views/wms/statistics/powderOrderQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/powderOrderQuery/index.vue @@ -68,7 +68,7 @@ diff --git a/mes/qd/src/views/wms/statistics/productionDayQuery/index.vue b/mes/qd/src/views/wms/statistics/productionDayQuery/index.vue index 0f4d701e..fea34ac3 100644 --- a/mes/qd/src/views/wms/statistics/productionDayQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/productionDayQuery/index.vue @@ -63,7 +63,7 @@ v-loading="crud.loading" :data="crud.data" size="mini" - height="420" + :max-height="420" style="width: 100%;" @selection-change="crud.selectionChangeHandler" > diff --git a/mes/qd/src/views/wms/statistics/rawUatWcQuery/index.vue b/mes/qd/src/views/wms/statistics/rawUatWcQuery/index.vue index 6a898090..a2d93419 100644 --- a/mes/qd/src/views/wms/statistics/rawUatWcQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/rawUatWcQuery/index.vue @@ -92,7 +92,7 @@ v-loading="crud.loading" :data="crud.data" size="mini" - height="420" + :max-height="420" style="width: 100%;" @selection-change="crud.selectionChangeHandler" > diff --git a/mes/qd/src/views/wms/statistics/sendReceiveQuery/index.vue b/mes/qd/src/views/wms/statistics/sendReceiveQuery/index.vue index 211c1857..d8d8d35e 100644 --- a/mes/qd/src/views/wms/statistics/sendReceiveQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/sendReceiveQuery/index.vue @@ -81,7 +81,7 @@ - diff --git a/mes/qd/src/views/wms/statistics/stifleQuery/index.vue b/mes/qd/src/views/wms/statistics/stifleQuery/index.vue index 6b39caf8..3e07e7f9 100644 --- a/mes/qd/src/views/wms/statistics/stifleQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/stifleQuery/index.vue @@ -52,7 +52,7 @@ ref="table" v-loading="crud.loading" :data="crud.data" - height="420" + :max-height="420" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler"