自动化立体仓库 - WMS系统
zjj
2023-09-09 99e4035bdb26ff8f5cf0e6bb911f1cdb3a2dd290
src/main/webapp/static/js/orderCheck/orderCheck.js
@@ -137,8 +137,6 @@
                            {field: 'realAnfme', title: '真实数量',style: 'color: blue;font-weight: bold', edit: true},
                            {field: 'diffAnfme', title: '差异数量', style: 'font-weight: bold'},
                            {field: 'type$', title: '状态'},
                            {field: 'owner$', title: '货主'},
                            {field: 'payment$', title: '货物状态'},
                            {align: 'center', title: '操作', toolbar: '#formSSXMTableBar3', minWidth: 80, width: 80, fixed: 'right'}
                        ]],
                        request: {
@@ -168,6 +166,8 @@
            });
        }else if (layEvent === 'wrkTrace'){
            showWrkTrace(data.id);
        }else if (layEvent === 'printExcel'){
            printExcel(data);
        }
    });
    //单据明细表 审核按钮
@@ -262,8 +262,6 @@
                        {field: 'matnr', title: '商品编码', width: 160},
                        {field: 'maktx', title: '商品名称', width: 160},
                        {field: 'locNo', title: '库位号'},
                        {field: 'owner$', title: '货主'},
                        {field: 'payment$', title: '货物状态'},
                        {field: 'anfme', title: '库存数量'},
                        {field: 'realAnfme', title: '真实数量'},
                        {field: 'diffAnfme', title: '差异数量', style: 'font-weight: bold'},
@@ -419,7 +417,7 @@
                                json.data = selectList;
                                console.log(json);
                                if ( tp == 2 || tp == ''){
                                if ( tp == 3 || tp == ''){
                                    $.ajax({
                                        url: baseUrl+"/orderCheck/create/auth",
                                        headers: {'token': localStorage.getItem('token')},
@@ -428,6 +426,7 @@
                                        method: 'POST',
                                        async: false,
                                        success: function (res) {
                                            xxDataList = []
                                            if (res.code === 200){
                                                for (var i =0;i<res.data.length;i++){
                                                    xxDataList.push(res.data[i]);
@@ -442,7 +441,7 @@
                                            }
                                        }
                                    })
                                }else if (tp == 3){
                                }else if (tp == 2){
                                    $.ajax({
                                        url: baseUrl+"/orderCheck/create/loc/auth",
                                        headers: {'token': localStorage.getItem('token')},
@@ -764,5 +763,17 @@
        console.log(obj.data)
    })
    function printExcel(data){
        layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
           // window.open("http://localhost:8082/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo);
            layer.closeAll();
            layer.load(1, {shade: [0.1,'#fff']});
           // location.href = "http://192.168.4.121:8082/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo;
            location.href = "http://10.114.97.100:8080/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo;
            layer.closeAll('loading');
        });
    }
});