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 | 213 | export const queryWarehouse = (params) => getAction("/config/sysUserWarehouse/queryWarehouse", params); |
214 | 214 | //查询所有仓库 |
215 | 215 | export const getAllWarehouseList = (params) => getAction("/config/warehouse/getAllWarehouseList", params); |
216 | +//查询所有库区 | |
217 | +export const getAllZoneList = (params) => getAction("/config/zone/getAllZoneList", params); | |
216 | 218 | // 中转HTTP请求 |
217 | 219 | export const transitRESTful = { |
218 | 220 | get: (url, parameter) => getAction(getTransitURL(url), parameter), |
... | ... |
ant-design-vue-jeecg/src/views/system/UserList.vue
... | ... | @@ -196,7 +196,7 @@ |
196 | 196 | import UserModal from './modules/UserModal' |
197 | 197 | import PasswordModal from './modules/PasswordModal' |
198 | 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 | 200 | import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
201 | 201 | import SysUserAgentModal from "./modules/SysUserAgentModal"; |
202 | 202 | import JInput from '@/components/jeecg/JInput' |
... | ... | @@ -289,18 +289,17 @@ export default { |
289 | 289 | { |
290 | 290 | title: '所属仓库', |
291 | 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 | 297 | title: '所属库区', |
299 | 298 | align: "center", |
300 | 299 | dataIndex: 'zoneCodes', |
301 | - width: 240, | |
302 | 300 | key: 'zoneCodes', |
303 | - scopedSlots: {customRender: 'zoneCodes'} | |
301 | + scopedSlots: {customRender: 'zoneCodes'}, | |
302 | + width: 200 | |
304 | 303 | }, |
305 | 304 | // { |
306 | 305 | // title: '部门', |
... | ... | @@ -353,7 +352,7 @@ export default { |
353 | 352 | }, |
354 | 353 | methods: { |
355 | 354 | loadFrom() { |
356 | - getZoneList().then((res) => { | |
355 | + getAllZoneList().then((res) => { | |
357 | 356 | if (res.success) { |
358 | 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 | 186 | } |
187 | 187 | |
188 | 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 | 191 | Result<List<Zone>> result = new Result<>(); |
191 | - List<Zone> list = zoneService.getAllZoneList(); | |
192 | + List<Zone> list = zoneService.getAllZoneList(warehouseCode); | |
192 | 193 | result.setResult(list); |
193 | 194 | result.setSuccess(true); |
194 | 195 | return result; |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/zone/service/IZoneService.java
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 | 29 | } |
30 | 30 | |
31 | 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 | 35 | return list(); |
34 | 36 | } |
35 | 37 | } |
... | ... |