| | |
| | | orderCheck.setDocType(16L); |
| | | orderCheck.setCreateTime(now); |
| | | orderCheck.setUpdateTime(now); |
| | | |
| | | if (!orderCheckService.insert(orderCheck)) { |
| | | throw new CoolException("保存盘点单主档失败"); |
| | | } |
| | |
| | | locCheck.setCreateTime(now); |
| | | locCheck.setUpdateTime(now); |
| | | locCheck.setOrderNo(param.getOrderNo()); |
| | | locCheck.setBatch(manLocDetl.getBatch()); |
| | | if (!locCheckService.insert(locCheck)){ |
| | | return R.error("插入失败"); |
| | | } |
| | |
| | | private String matnr; |
| | | private String maktx; |
| | | private Double realAnfme; |
| | | private String batch; |
| | | } |
| | | |
| | | } |
| | |
| | | EntityWrapper<LocCheck> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("order_no", combParam.getOrderNo()) |
| | | .eq("matnr", detl.getMatnr()) |
| | | .eq("loc_no", detl.getLocNo()); |
| | | .eq("loc_no", detl.getLocNo()) |
| | | .eq("batch",detl.getBatch()); |
| | | LocCheck CheckDetl = locCheckService.selectOne(wrapper); |
| | | if (CheckDetl == null){ |
| | | Date now = new Date(); |
| | |
| | | for (ExamineParam.data list:param.getList()){ |
| | | EntityWrapper<ManLocDetl> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("matnr", list.getMatnr()) |
| | | .eq("loc_no", list.getLocNo()); |
| | | .eq("loc_no", list.getLocNo()) |
| | | .eq("batch", list.getBatch()); |
| | | |
| | | ManLocDetl manLocDetl = manLocDetlService.selectOne(wrapper); |
| | | if (manLocDetl == null){ |
| | |
| | | manLocDetl1.setModiTime(now); |
| | | manLocDetl1.setOrderNo(list.getOrderNo()); |
| | | manLocDetl1.setStockFreeze(1); |
| | | manLocDetl1.setBatch(list.getBatch()); |
| | | |
| | | if (!manLocDetlService.insert(manLocDetl1)){ |
| | | return R.error("插入数据失败"); |
| | |
| | | cols: [[ //工具条明细 |
| | | {type: 'numbers'}, |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'maktx', title: '商品名称'}, |
| | | {field: 'locNo', title: '库位号'}, |
| | | {field: 'batch', title: '批次'}, |
| | | {field: 'anfme', title: '数量'}, |
| | | {field: 'realAnfme', title: '真实数量',style: 'color: blue;font-weight: bold', edit: true}, |
| | | {field: 'diffAnfme', title: '差异数量', style: 'font-weight: bold'}, |