mrzhssss
2021-12-16 04e6352d22eb928700d606bdf4e40e0eb2cfe61b
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;
@@ -129,14 +137,16 @@
            }
            var locDetls = [];
            locData.forEach(function(elem) {
                locDetls.push({locNo: elem.locNo, matnr: elem.matnr, count: elem.anfme});
                if (elem.anfme > 0) {
                    locDetls.push({locNo: elem.locNo, matnr: elem.matnr, count: elem.anfme});
                }
            });
            let param = {
                outSite: staNo,
                locDetls: locDetls,
                fbillNo: orderData.fbillNo,
            }
            // 调用出库接口
            $.ajax({
                url: baseUrl+"/plate/outStock/start",
                headers: {'token': localStorage.getItem('token')},
@@ -146,6 +156,7 @@
                success: function (res) {
                    if (res.code === 200){
                        parent.closeDetail(res.msg);
                        parent.tableReload();
                    } else if (res.code === 403){
                        top.location.href = baseUrl+"/";
                    } else {