From 2a3c0e4877a08368bbb43ff72b401c5c8ea334f7 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期六, 09 九月 2023 16:09:05 +0800 Subject: [PATCH] #库位、库存冻结 --- src/main/webapp/static/js/orderCheck/orderCheck.js | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/static/js/orderCheck/orderCheck.js b/src/main/webapp/static/js/orderCheck/orderCheck.js index c27b889..f474642 100644 --- a/src/main/webapp/static/js/orderCheck/orderCheck.js +++ b/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'); + }); + } + }); -- Gitblit v1.9.1