Commit 6fb44f724a4b359f669a8a68aaad690018708cc2

Authored by 李泰瑜
1 parent 6ea51483

库位监控改成根据库区筛选

ant-design-vue-jeecg/src/api/api.js
@@ -104,7 +104,7 @@ export const getZoneList = (params) => getAction('/config/zone/getZoneList', par @@ -104,7 +104,7 @@ export const getZoneList = (params) => getAction('/config/zone/getZoneList', par
104 //获取容器类型列表 104 //获取容器类型列表
105 export const getContainerTypeList = (params) => getAction('/config/containerType/getContainerTypeList', params); 105 export const getContainerTypeList = (params) => getAction('/config/containerType/getContainerTypeList', params);
106 //获取库位类型列表 106 //获取库位类型列表
107 -export const getLocationTypeList = (params) => getAction('/config/locationType/getLocationTypeList', params); 107 +export const getLocationTypeList = (params) => getAction('/config/zone/getZoneList', params);
108 //获取库位类高度列表 108 //获取库位类高度列表
109 export const getLocationHighList = (params) => postAction('/config/locationHigh/getLocationHighList', params); 109 export const getLocationHighList = (params) => postAction('/config/locationHigh/getLocationHighList', params);
110 //获取货主列表 110 //获取货主列表
ant-design-vue-jeecg/src/views/system/monitor/locationStatus.vue
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 @change="refresh" 14 @change="refresh"
15 style="width: 200px"> 15 style="width: 200px">
16 <a-select-option selected="0" id="zoneCode" v-for="item in locationTypeList" :key="item.name" 16 <a-select-option selected="0" id="zoneCode" v-for="item in locationTypeList" :key="item.name"
17 - :value="item.code">{{ item.name }} 17 + :value="item.locationTypeCode">{{ item.name }}
18 </a-select-option> 18 </a-select-option>
19 </a-select> 19 </a-select>
20 </li> 20 </li>
@@ -189,7 +189,7 @@ export default { @@ -189,7 +189,7 @@ export default {
189 if (res.success) { 189 if (res.success) {
190 this.locationTypeList = res.result; 190 this.locationTypeList = res.result;
191 if (this.locationTypeList.length > 0) { 191 if (this.locationTypeList.length > 0) {
192 - this.zoneCode = this.locationTypeList[0].code; 192 + this.zoneCode = this.locationTypeList[0].locationTypeCode;
193 let _this = this; 193 let _this = this;
194 this.resetAjax(this.zoneCode); 194 this.resetAjax(this.zoneCode);
195 } 195 }
@@ -228,7 +228,6 @@ export default { @@ -228,7 +228,6 @@ export default {
228 $("#editable-num").append("<option value='" + i + "'>" + i + "</option>") 228 $("#editable-num").append("<option value='" + i + "'>" + i + "</option>")
229 } 229 }
230 } 230 }
231 - alert($("#editable-select").val())  
232 231
233 let type = $("#zoneCode").val(); 232 let type = $("#zoneCode").val();
234 this.resetAjax(this.zoneCode); 233 this.resetAjax(this.zoneCode);
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/locationMonitor/controller/LocationMonitorController.java
@@ -92,7 +92,7 @@ public class LocationMonitorController { @@ -92,7 +92,7 @@ public class LocationMonitorController {
92 HuahengJwtUtil.setWarehouseCode(locationLambdaQueryWrapper, Location.class, req); 92 HuahengJwtUtil.setWarehouseCode(locationLambdaQueryWrapper, Location.class, req);
93 locationLambdaQueryWrapper.eq(StringUtils.isNotEmpty(row), Location::getRow, row).eq(StringUtils.isNotEmpty(line), Location::getIcolumn, line) 93 locationLambdaQueryWrapper.eq(StringUtils.isNotEmpty(row), Location::getRow, row).eq(StringUtils.isNotEmpty(line), Location::getIcolumn, line)
94 .eq(StringUtils.isNotEmpty(layer), Location::getLayer, layer).eq(StringUtils.isNotEmpty(grid), Location::getGrid, grid) 94 .eq(StringUtils.isNotEmpty(layer), Location::getLayer, layer).eq(StringUtils.isNotEmpty(grid), Location::getGrid, grid)
95 - .eq(StringUtils.isNotEmpty(type), Location::getZoneCode, type); 95 + .eq(StringUtils.isNotEmpty(type), Location::getLocationTypeCode, type);
96 List<Location> locations = locationService.list(locationLambdaQueryWrapper); 96 List<Location> locations = locationService.list(locationLambdaQueryWrapper);
97 List<Location> locationList = new ArrayList<>(); 97 List<Location> locationList = new ArrayList<>();
98 98