Commit 504dcba3c450d1a35ab14ce09baa59b76373d2bb
Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4.git
into develop Conflicts: huaheng-wms-core/src/main/resources/application.yml
Showing
5 changed files
with
16 additions
and
12 deletions
ant-design-vue-jeecg/src/api/api.js
@@ -213,6 +213,8 @@ export const handleDoubleIn = (params) => postAction('/task/taskHeader/handleDou | @@ -213,6 +213,8 @@ export const handleDoubleIn = (params) => postAction('/task/taskHeader/handleDou | ||
213 | export const queryWarehouse = (params) => getAction("/config/sysUserWarehouse/queryWarehouse", params); | 213 | export const queryWarehouse = (params) => getAction("/config/sysUserWarehouse/queryWarehouse", params); |
214 | //查询所有仓库 | 214 | //查询所有仓库 |
215 | export const getAllWarehouseList = (params) => getAction("/config/warehouse/getAllWarehouseList", params); | 215 | export const getAllWarehouseList = (params) => getAction("/config/warehouse/getAllWarehouseList", params); |
216 | +//查询所有库区 | ||
217 | +export const getAllZoneList = (params) => getAction("/config/zone/getAllZoneList", params); | ||
216 | // 中转HTTP请求 | 218 | // 中转HTTP请求 |
217 | export const transitRESTful = { | 219 | export const transitRESTful = { |
218 | get: (url, parameter) => getAction(getTransitURL(url), parameter), | 220 | get: (url, parameter) => getAction(getTransitURL(url), parameter), |
ant-design-vue-jeecg/src/views/system/UserList.vue
@@ -196,7 +196,7 @@ | @@ -196,7 +196,7 @@ | ||
196 | import UserModal from './modules/UserModal' | 196 | import UserModal from './modules/UserModal' |
197 | import PasswordModal from './modules/PasswordModal' | 197 | import PasswordModal from './modules/PasswordModal' |
198 | import {putAction, getFileAccessHttpUrl} from '@/api/manage'; | 198 | import {putAction, getFileAccessHttpUrl} from '@/api/manage'; |
199 | -import {frozenBatch, getAllWarehouseList, queryall, getZoneList} from '@/api/api' | 199 | +import {frozenBatch, getAllWarehouseList, queryall, getZoneList, getAllZoneList} from '@/api/api' |
200 | import {JeecgListMixin} from '@/mixins/JeecgListMixin' | 200 | import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
201 | import SysUserAgentModal from "./modules/SysUserAgentModal"; | 201 | import SysUserAgentModal from "./modules/SysUserAgentModal"; |
202 | import JInput from '@/components/jeecg/JInput' | 202 | import JInput from '@/components/jeecg/JInput' |
@@ -289,18 +289,17 @@ export default { | @@ -289,18 +289,17 @@ export default { | ||
289 | { | 289 | { |
290 | title: '所属仓库', | 290 | title: '所属仓库', |
291 | align: "center", | 291 | align: "center", |
292 | - dataIndex: 'selectedWarehouses', | ||
293 | - width: 240, | ||
294 | - key: 'selectedWarehouses', | ||
295 | - scopedSlots: {customRender: 'selectedWarehouses'} | 292 | + dataIndex: 'selectedWarehouses', key: 'selectedWarehouses', |
293 | + scopedSlots: {customRender: 'selectedWarehouses'}, | ||
294 | + width: 200 | ||
296 | }, | 295 | }, |
297 | { | 296 | { |
298 | title: '所属库区', | 297 | title: '所属库区', |
299 | align: "center", | 298 | align: "center", |
300 | dataIndex: 'zoneCodes', | 299 | dataIndex: 'zoneCodes', |
301 | - width: 240, | ||
302 | key: 'zoneCodes', | 300 | key: 'zoneCodes', |
303 | - scopedSlots: {customRender: 'zoneCodes'} | 301 | + scopedSlots: {customRender: 'zoneCodes'}, |
302 | + width: 200 | ||
304 | }, | 303 | }, |
305 | // { | 304 | // { |
306 | // title: '部门', | 305 | // title: '部门', |
@@ -353,7 +352,7 @@ export default { | @@ -353,7 +352,7 @@ export default { | ||
353 | }, | 352 | }, |
354 | methods: { | 353 | methods: { |
355 | loadFrom() { | 354 | loadFrom() { |
356 | - getZoneList().then((res) => { | 355 | + getAllZoneList().then((res) => { |
357 | if (res.success) { | 356 | if (res.success) { |
358 | this.zoneList = res.result | 357 | this.zoneList = res.result |
359 | } | 358 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/zone/controller/ZoneController.java
@@ -186,9 +186,10 @@ public class ZoneController extends JeecgController<Zone, IZoneService> { | @@ -186,9 +186,10 @@ public class ZoneController extends JeecgController<Zone, IZoneService> { | ||
186 | } | 186 | } |
187 | 187 | ||
188 | @RequestMapping(value = "/getAllZoneList", method = RequestMethod.GET) | 188 | @RequestMapping(value = "/getAllZoneList", method = RequestMethod.GET) |
189 | - public Result<List<Zone>> getAllZoneList() { | 189 | + public Result<List<Zone>> getAllZoneList(HttpServletRequest req) { |
190 | + String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | ||
190 | Result<List<Zone>> result = new Result<>(); | 191 | Result<List<Zone>> result = new Result<>(); |
191 | - List<Zone> list = zoneService.getAllZoneList(); | 192 | + List<Zone> list = zoneService.getAllZoneList(warehouseCode); |
192 | result.setResult(list); | 193 | result.setResult(list); |
193 | result.setSuccess(true); | 194 | result.setSuccess(true); |
194 | return result; | 195 | return result; |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/zone/service/IZoneService.java
@@ -16,5 +16,5 @@ public interface IZoneService extends IService<Zone> { | @@ -16,5 +16,5 @@ public interface IZoneService extends IService<Zone> { | ||
16 | 16 | ||
17 | Zone getZoneByCode(String zoneCode, String wareohuseCode); | 17 | Zone getZoneByCode(String zoneCode, String wareohuseCode); |
18 | 18 | ||
19 | - public List<Zone> getAllZoneList(); | 19 | + List<Zone> getAllZoneList(String wareohuseCode); |
20 | } | 20 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/zone/service/impl/ZoneServiceImpl.java
@@ -29,7 +29,9 @@ public class ZoneServiceImpl extends ServiceImpl<ZoneMapper, Zone> implements IZ | @@ -29,7 +29,9 @@ public class ZoneServiceImpl extends ServiceImpl<ZoneMapper, Zone> implements IZ | ||
29 | } | 29 | } |
30 | 30 | ||
31 | @Override | 31 | @Override |
32 | - public List<Zone> getAllZoneList() { | 32 | + public List<Zone> getAllZoneList(String wareohuseCode) { |
33 | + LambdaQueryWrapper<Zone> zoneLambdaQueryWrapper = Wrappers.lambdaQuery(); | ||
34 | + zoneLambdaQueryWrapper.eq(Zone::getWarehouseCode, wareohuseCode); | ||
33 | return list(); | 35 | return list(); |
34 | } | 36 | } |
35 | } | 37 | } |