自动化立体仓库 - WMS系统
#
Junjie
昨天 48cf45216c825ef7379986b7cf98b136768bcb4e
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -582,9 +582,9 @@
        if (param.getBarcode().length() != 8) {
            throw new CoolException("条码长度不是8位===>>" + param.getBarcode());
        }
//        if (param.getCombMats().size() > 1) {
//            throw new CoolException("不允许混料===>>" + param.getBarcode());
//        }
        if (param.getCombMats().size() > 1) {
            throw new CoolException("不允许混料===>>" + param.getBarcode());
        }
        int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet", param.getBarcode()));
        int countWrk = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("zpallet", param.getBarcode()));
@@ -659,6 +659,17 @@
                }
                if (order.getSettle() > 2) {
                    throw new CoolException("单据编号已作业完成");
                }
                List<WaitPakin> waitPakinList = waitPakinService.selectList(new EntityWrapper<WaitPakin>()
                        .eq("matnr", elem.getMatnr())
                        .eq("batch", elem.getBatch())
                        .eq("order_no", elem.getOrderNo())
                        .eq("anfme", elem.getAnfme())
                        .eq("standby1", elem.getStandby1())
                );
                if (!waitPakinList.isEmpty()) {
                    throw new CoolException("该订单物料已经组托!");
                }
                // 订单明细数量校验
@@ -1303,6 +1314,12 @@
    @Override
    public void toAllOut(PalletToAllOutParam param, Long userId) {
        String barcodeSize = param.getBarcode().substring(0, 2);
        String newBarcodeSize = param.getNewBarcode().substring(0, 2);
        if (!barcodeSize.equals(newBarcodeSize)) {
            throw new CoolException("托盘尺寸不一致");
        }
        WrkMast wrkMast = wrkMastService.selectByBarcode(param.getBarcode());
        if (wrkMast == null) {
            throw new CoolException("工作档不存在");