王佳豪
2021-07-13 34cf0264825200331a4abc5120b603ac7f2690cc
发货通知允许捡料出库
2个文件已修改
23 ■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/OutStockServiceImpl.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pakStore/outStockDetail.html 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/OutStockServiceImpl.java
@@ -170,6 +170,13 @@
            }
            // 生成工作档明细
            for (LocDetlDto detlDto : dto.getLocDetlDtos()) {
                // 如果为捡料出库需要判断托盘码是否为空
                if (ioType == 103) {
                    String zpallet = detlDto.getLocDetl().getZpallet();
                    if (Cools.isEmpty(zpallet)) {
                        throw new CoolException("拣料出库必须含有托盘码");
                    }
                }
                // 出库时,数量为0的直接忽略
                if (detlDto.getCount()==null || detlDto.getCount() <= 0.0D) {continue;}
                WrkDetl wrkDetl = new WrkDetl();
src/main/webapp/views/pakStore/outStockDetail.html
@@ -44,21 +44,29 @@
    var orderData = parent.getOrderData();
    var locData = [];
    var form;
    var table;
    function getCol() {
        var cols = [
            {field: '', align: 'center', title: '', width: 50, type: 'numbers'}
            , {field: 'locNo$', align: 'center', title: '库位号'}
            , {field: 'matnr', align: 'center',title: '物料编码'}
            ,{field: 'maktx', align: 'center',title: '物料名称', width: 500}
            ,{field: 'lgnum', align: 'center',title: '规格'}
            ,{field: 'type', align: 'center',title: '物料类别'}
            ,{field: 'mnemonic', align: 'center',title: '生产单号'}
            ,{field: 'supplier', align: 'center',title: '通知单号'}
            ,{field: 'anfme', align: 'center',title: '数量', edit: 'text', style: 'color: blue; font-weight: bold'}
            // ,{field: 'altme', align: 'center',title: '单位'}
            ,{field: 'zpallet', align: 'center',title: '托盘条码'}
        ];
        cols.push.apply(cols, detlCols);
        cols.push({field: 'modiUser$', align: 'center', title: '修改人员', hide: true}
            , {field: 'modiTime$', align: 'center', title: '修改时间', hide: true})
        return cols;
    }
    layui.use(['table', 'laydate', 'form'], function () {
        var table = layui.table;
        table = layui.table;
        var $ = layui.jquery;
        var layer = layui.layer;
        var layDate = layui.laydate;
@@ -136,7 +144,7 @@
                locDetls: locDetls,
                fbillNo: orderData.fbillNo,
            }
            // 调用出库接口
            $.ajax({
                url: baseUrl+"/plate/outStock/start",
                headers: {'token': localStorage.getItem('token')},