Merge branch 'master' of http://121.40.234.130:8899/root/wuHanXinRui
This commit is contained in:
@@ -30,7 +30,6 @@ public class IvtQueryServiceImpl implements IvtQueryService {
|
|||||||
HashMap map = new HashMap();
|
HashMap map = new HashMap();
|
||||||
map.put("flag", "1");
|
map.put("flag", "1");
|
||||||
map.put("stor_id", MapUtil.getStr(whereJson,"stor_id"));
|
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_name", MapUtil.getStr(whereJson,"material_name"));
|
||||||
map.put("material_type_id", MapUtil.getStr(whereJson,"material_type_id"));
|
map.put("material_type_id", MapUtil.getStr(whereJson,"material_type_id"));
|
||||||
map.put("storagevehicle_code", MapUtil.getStr(whereJson,"storagevehicle_code"));
|
map.put("storagevehicle_code", MapUtil.getStr(whereJson,"storagevehicle_code"));
|
||||||
@@ -51,6 +50,21 @@ public class IvtQueryServiceImpl implements IvtQueryService {
|
|||||||
String classIds = classstandardService.getAllChildIdStr(class_idStr);
|
String classIds = classstandardService.getAllChildIdStr(class_idStr);
|
||||||
map.put("classIds", classIds);
|
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");
|
JSONObject json = WQL.getWO("Qivt_query_01").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ivt.instorage_time desc");
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@@ -74,7 +88,6 @@ public class IvtQueryServiceImpl implements IvtQueryService {
|
|||||||
HashMap map = new HashMap();
|
HashMap map = new HashMap();
|
||||||
map.put("flag", "1");
|
map.put("flag", "1");
|
||||||
map.put("stor_id", MapUtil.getStr(whereJson,"stor_id"));
|
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_name", MapUtil.getStr(whereJson,"material_name"));
|
||||||
map.put("material_type_id", MapUtil.getStr(whereJson,"material_type_id"));
|
map.put("material_type_id", MapUtil.getStr(whereJson,"material_type_id"));
|
||||||
map.put("storagevehicle_code", MapUtil.getStr(whereJson,"storagevehicle_code"));
|
map.put("storagevehicle_code", MapUtil.getStr(whereJson,"storagevehicle_code"));
|
||||||
@@ -95,6 +108,21 @@ public class IvtQueryServiceImpl implements IvtQueryService {
|
|||||||
String classIds = classstandardService.getAllChildIdStr(class_idStr);
|
String classIds = classstandardService.getAllChildIdStr(class_idStr);
|
||||||
map.put("classIds", classIds);
|
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);
|
JSONArray rows = WQL.getWO("Qivt_query_01").addParamMap(map).process().getResultJSONArray(0);
|
||||||
List<Map<String, Object>> list = new ArrayList<>();
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
输入.bucketunique TYPEAS s_string
|
输入.bucketunique TYPEAS s_string
|
||||||
输入.material_model TYPEAS s_string
|
输入.material_model TYPEAS s_string
|
||||||
输入.classIds TYPEAS f_string
|
输入.classIds TYPEAS f_string
|
||||||
|
输入.sects TYPEAS f_string
|
||||||
|
|
||||||
|
|
||||||
[临时表]
|
[临时表]
|
||||||
@@ -108,8 +109,8 @@
|
|||||||
OPTION 输入.stor_id <> ""
|
OPTION 输入.stor_id <> ""
|
||||||
struct.stor_id = 输入.stor_id
|
struct.stor_id = 输入.stor_id
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
OPTION 输入.sect_id <> ""
|
OPTION 输入.sects <> ""
|
||||||
struct.sect_id = 输入.sect_id
|
struct.sect_id in 输入.sects
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
OPTION 输入.material_name <> ""
|
OPTION 输入.material_name <> ""
|
||||||
( me.material_name like "%" 输入.material_name "%" or me.material_code like "%" 输入.material_name "%" )
|
( me.material_name like "%" 输入.material_name "%" or me.material_code like "%" 输入.material_name "%" )
|
||||||
|
|||||||
@@ -53,8 +53,8 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
height="420"
|
:max-height="420"
|
||||||
style="width: 100%;"
|
style="width: 100%;background: transparent;overflow:auto;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" label="序号" width="100" align="center" />
|
<el-table-column type="index" label="序号" width="100" align="center" />
|
||||||
@@ -63,7 +63,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -131,4 +132,7 @@ export default {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
|
::-webkit-scrollbar-corner{
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
size="mini"
|
size="mini"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
height="420"
|
:max-height="420"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
|
|||||||
@@ -15,8 +15,9 @@
|
|||||||
<el-cascader
|
<el-cascader
|
||||||
placeholder="所属库区"
|
placeholder="所属库区"
|
||||||
:options="sects"
|
:options="sects"
|
||||||
:props="{ checkStrictly: true }"
|
:props="{ multiple: true }"
|
||||||
clearable
|
clearable
|
||||||
|
collapse-tags
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
@change="sectQueryChange"
|
@change="sectQueryChange"
|
||||||
/>
|
/>
|
||||||
@@ -138,7 +139,6 @@
|
|||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
:disabled="downdtl_flag"
|
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="downdtl"
|
@click="downdtl"
|
||||||
>
|
>
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
height="420"
|
:max-height="420"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
@@ -168,9 +168,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
|
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
|
||||||
<el-table-column prop="material_name" label="物料名称" min-width="120" show-overflow-tooltip />
|
<el-table-column prop="material_name" label="物料名称" min-width="120" show-overflow-tooltip />
|
||||||
<el-table-column prop="material_spec" label="物料规格" show-overflow-tooltip/>
|
<el-table-column prop="material_spec" label="物料规格" show-overflow-tooltip />
|
||||||
<el-table-column prop="material_model" label="型号" />
|
<el-table-column prop="material_model" label="型号" />
|
||||||
<el-table-column prop="pcsn" label="批次" show-overflow-tooltip width="150px"/>
|
<el-table-column prop="pcsn" label="批次" show-overflow-tooltip width="150px" />
|
||||||
<el-table-column prop="quality_scode" label="品质类型" :formatter="format_quality_scode" />
|
<el-table-column prop="quality_scode" label="品质类型" :formatter="format_quality_scode" />
|
||||||
<el-table-column prop="ivt_level" label="库存等级" :formatter="format_ivt_level" />
|
<el-table-column prop="ivt_level" label="库存等级" :formatter="format_ivt_level" />
|
||||||
<el-table-column prop="is_active" label="是否可用" :formatter="format_is_active" />
|
<el-table-column prop="is_active" label="是否可用" :formatter="format_is_active" />
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
</div>
|
</div>
|
||||||
<BucketDialog :dialog-show.sync="bucketDialog" :open-param="openParam"/>
|
<BucketDialog :dialog-show.sync="bucketDialog" :open-param="openParam" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -259,17 +259,16 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
sectQueryChange(val) {
|
sectQueryChange(val) {
|
||||||
if (val.length === 1) {
|
debugger
|
||||||
this.query.stor_id = val[0]
|
|
||||||
this.query.sect_id = ''
|
|
||||||
}
|
|
||||||
if (val.length === 0) {
|
if (val.length === 0) {
|
||||||
this.query.sect_id = ''
|
this.query.sect_id = ''
|
||||||
this.query.stor_id = ''
|
this.query.stor_id = ''
|
||||||
}
|
} else {
|
||||||
if (val.length === 2) {
|
this.query.stor_id = val[0][0]
|
||||||
this.query.stor_id = val[0]
|
this.query.sect_id = ''
|
||||||
this.query.sect_id = val[1]
|
for (var i = 0; i < val.length; i++) {
|
||||||
|
this.query.sect_id = this.query.sect_id + ',' + val[i][1]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
height="420"
|
:max-height="420"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
size="mini"
|
size="mini"
|
||||||
height="420"
|
:max-height="420"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
height="420"
|
:max-height="420"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table
|
<el-table
|
||||||
ref="table"
|
ref="table"
|
||||||
height="420"
|
:max-height="420"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
height="420"
|
:max-height="420"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
height="420"
|
:max-height="420"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
height="420"
|
:max-height="420"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<crudOperation :permission="permission"/>
|
<crudOperation :permission="permission"/>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" show-summary :summary-method="getSum" height="420" v-loading="crud.loading" :data="crud.data" size="mini"
|
<el-table ref="table" show-summary :summary-method="getSum" :max-height="420" v-loading="crud.loading" :data="crud.data" size="mini"
|
||||||
style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||||
<el-table-column prop="class_name" label="物料分类"/>
|
<el-table-column prop="class_name" label="物料分类"/>
|
||||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip/>
|
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip/>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
height="420"
|
:max-height="420"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
|
|||||||
Reference in New Issue
Block a user