| | |
| | | if (!update) { |
| | | throw new CoolException("修改托盘资料档失败"); |
| | | } |
| | | LocDetl locDetl = locDetlService.getLocDetl(node.getId(), comb.getMatnr()); |
| | | if (locDetl == null) { |
| | | // 更新货位库存明细 |
| | | LocDetl locDetl = new LocDetl(); |
| | | locDetl = new LocDetl(); |
| | | locDetl.setLocNo(node.getName()); |
| | | locDetl.setNodeId(node.getId()); |
| | | locDetl.setZpallet(param.getZpallet()); |
| | |
| | | if (!insert) { |
| | | throw new CoolException("新增库存明细档失败"); |
| | | } |
| | | } else { |
| | | if (!locDetlService.incrementStock(node.getId(), comb.getMatnr(), comb.getAnfme())) { |
| | | throw new CoolException("新增库存明细档失败"); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | page: true, |
| | | cellMinWidth: 100, |
| | | // ,width: admin.screen() > 1 ? 892 : '' |
| | | height: 332, |
| | | height: 432, |
| | | cols: [[ |
| | | {field: 'title', title: '商品', align: 'center'}, |
| | | {field: 'anfme', title: '总数量', align: 'center', style: 'font-weight: bold', width: 80}, |