| | |
| | | |
| | | if (agvWrkMast.getIoType() == 108 || agvWrkMast.getIoType() == 114) { |
| | | //更新库存明细 |
| | | agvLocDetlService.updateStock(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo()); |
| | | agvLocDetlService.updateStock(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo(), agvWrkMast.getAppeUser()); |
| | | //修改源库位状态为O |
| | | agvLocMastService.updateLocStsByLocNo(agvWrkMast.getSourceLocNo(), "O", "", agvWrkMast.getWhsType().shortValue(), "", (short) 0); |
| | | } else if (agvWrkMast.getIoType() == 109 && !agvWrkMast.getSourceLocNo().substring(0, 2).equals("DB")) { |
| | |
| | | @Repository |
| | | public interface AgvLocDetlMapper extends BaseMapper<AgvLocDetl> { |
| | | |
| | | @Update("update agv_loc_detl set loc_no = '${targetLoc}' ,appe_user = '${userId}' where loc_no = '${sourceLoc}' ") |
| | | void updateStock2(@Param("sourceLoc")String sourceLoc, @Param("targetLoc")String targetLoc, @Param("userId")Long userId); |
| | | |
| | | @Update("update agv_loc_detl set loc_no = '${targetLoc}' where loc_no = '${sourceLoc}' ") |
| | | void updateStock(@Param("sourceLoc")String sourceLoc, @Param("targetLoc")String targetLoc); |
| | | |
| | |
| | | |
| | | public double queryStockAndSetLocDto(String matnr, String batch, String orderNo, List<LocDto> locDtoList, double issued, String csocode, String isoseq, String type); |
| | | |
| | | public void updateStock(String sourceLoc, String targetLoc); |
| | | public void updateStock(String sourceLoc, String targetLoc,Long userId); |
| | | |
| | | Page<AgvLocDetl> getStockStatis(Page<AgvLocDetl> page); |
| | | |
| | |
| | | /* |
| | | 更新库存明细 |
| | | */ |
| | | public void updateStock(String sourceLoc, String targetLoc) { |
| | | public void updateStock(String sourceLoc, String targetLoc,Long userId) { |
| | | if (Cools.isEmpty(userId)){ |
| | | this.baseMapper.updateStock(sourceLoc, targetLoc); |
| | | }else { |
| | | this.baseMapper.updateStock2(sourceLoc, targetLoc, userId); |
| | | } |
| | | } |
| | | |
| | | public Page<AgvLocDetl> getStockStatis(Page<AgvLocDetl> page) { |
| | |
| | | agvLocMastService.updateLocStsByLocNo(agvWrkMast.getLocNo(), "F", agvWrkMast.getBarcode(), agvWrkMast.getWhsType().shortValue()); |
| | | } |
| | | //更新库存明细 |
| | | agvLocDetlService.updateStock(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo()); |
| | | agvLocDetlService.updateStock(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo(),null); |
| | | //修改源库位状态为O |
| | | agvLocMastService.updateLocStsByLocNo(agvWrkMast.getSourceLocNo(), "O", "", null, ""); |
| | | break; |
| | |
| | | case 121: |
| | | agvLocMastService.updateLocStsByLocNo(agvWrkMast.getLocNo(), "F", agvWrkMast.getBarcode(), agvWrkMast.getWhsType().shortValue()); |
| | | //更新库存明细 |
| | | agvLocDetlService.updateStock(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo()); |
| | | agvLocDetlService.updateStock(agvWrkMast.getSourceLocNo(), agvWrkMast.getLocNo(),agvWrkMast.getAppeUser()); |
| | | //修改源库位状态为O |
| | | agvLocMastService.updateLocStsByLocNo(agvWrkMast.getSourceLocNo(), "O", "", agvWrkMast.getWhsType().shortValue(), "", (short) 0); |
| | | break; |
| | |
| | | // ,{field: 'suppCode', align: 'center',title: '货架码', hide: false} |
| | | ,{field: 'matnr', align: 'center',title: '商品编码'} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'batch', align: 'center',title: '批次自由项'} |
| | | ,{field: 'batch', align: 'center',title: '批次自由项', hide: true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称'} |
| | | ,{field: 'order_no', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'three_code', align: 'center',title: '销售订单号'} |
| | |
| | | ,{field: 'price', align: 'center',title: '进项税', hide: true} |
| | | ,{field: 'units', align: 'center',title: '销项税', hide: true} |
| | | ,{field: 'dsDate', align: 'center',title: '启用日期', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '建档人', hide: true} |
| | | ,{field: 'appeUser$', align: 'center',title: '用户'} |
| | | ,{field: 'dInvCreateDatetime', align: 'center',title: '建档日期', hide: true} |
| | | ]; |
| | | //cols.push.apply(cols, detlCols); |
| | |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/report/stayTime.js?v=2" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/report/stayTime.js?v=3" charset="utf-8"></script> |
| | | </body> |
| | | </html> |
| | | |