From cc79183af9dda2e2e983ad9915d41f9c3fe2ed11 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期六, 15 七月 2023 15:29:57 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/order/order.js | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js index 1e87b29..0bd403c 100644 --- a/src/main/webapp/static/js/order/order.js +++ b/src/main/webapp/static/js/order/order.js @@ -146,6 +146,7 @@ }) } + // 宸ュ叿鏉$偣鍑讳簨浠� table.on('tool(order)', function (obj) { var data = obj.data; @@ -206,7 +207,7 @@ // {field: 'inQty', title: '宸插叆搴撻噺'}, // {field: 'color', title: '棰滆壊'}, // {field: 'specs', title: '瑙勬牸'}, - // {field: 'weight', title: '閲嶉噺'} + {field: 'weight', title: '閲嶉噺'} ]], request: { pageName: 'curr', @@ -230,6 +231,9 @@ }); } }); + } + else if (layEvent === 'printExcel'){ + printExcel(data); } }); @@ -313,8 +317,8 @@ {type: 'numbers', title: '#'}, {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160}, {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 200}, - {field: 'batch', title: '鎵瑰彿', edit: true}, {field: 'specs', title: '瑙勬牸'}, + {field: 'weight', title: '閲嶉噺', edit: true}, {field: 'anfme', title: '鏁伴噺(淇敼)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, {field: 'owner', title: '璐т富缂栧彿', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, {field: 'payment', title: '璐х墿鐘舵��', style: 'color: blue;font-weight: bold', templet: '#payment'}, @@ -350,6 +354,7 @@ }, size: '' }; + if (!isExpAdd) { $.ajax({ url: baseUrl+"/order/detl/all/auth?orderId=" + expTpe.id, @@ -420,7 +425,7 @@ } } data[obj.field] = obj.value; - insTbSSXM.reload({data: xxDataList}); + insTbSSXM.reloadData({data: xxDataList,scrollPos: true}); }); $('#matAddBtnComment').click(function () { @@ -502,7 +507,11 @@ } }); + + } + + // 鍒犻櫎鍗曟嵁 function doDel(orderId) { @@ -582,5 +591,16 @@ ,range: true }); + function printExcel(data){ + layer.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){ + 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/order/printExport/auth?orderNo="+data.orderNo; + layer.closeAll('loading'); + }); + } + + }); -- Gitblit v1.9.1