自动化立体仓库 - WMS系统
#
LSH
2023-12-27 94e4a7598d2ed0bee320174bcd44a3844d59cc0d
src/main/webapp/static/js/orderCheck/orderCheck.js
@@ -168,6 +168,8 @@
            });
        }else if (layEvent === 'wrkTrace'){
            showWrkTrace(data.id);
        }else if (layEvent === 'printExcel'){
            printExcel(data);
        }
    });
    //单据明细表 审核按钮
@@ -419,7 +421,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 +430,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 +445,7 @@
                                            }
                                        }
                                    })
                                }else if (tp == 3){
                                }else if (tp == 2){
                                    $.ajax({
                                        url: baseUrl+"/orderCheck/create/loc/auth",
                                        headers: {'token': localStorage.getItem('token')},
@@ -764,5 +767,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 = baseUrl+"/orderCheck/printExport/auth?orderNo="+data.orderNo;
            layer.closeAll('loading');
        });
    }
});