From 539d9ffc477d28a23a923b41fdeabc8c37c99ce6 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期一, 23 九月 2024 14:43:31 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/picking/picking.js | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/main/webapp/static/js/picking/picking.js b/src/main/webapp/static/js/picking/picking.js index f0f0b3c..ba55339 100644 --- a/src/main/webapp/static/js/picking/picking.js +++ b/src/main/webapp/static/js/picking/picking.js @@ -38,7 +38,8 @@ ,{align: 'center', title: '鏄庣粏', toolbar: '#tbLook', minWidth: 160, width: 160} ,{field: 'status$', align: 'center',title: '鐘舵��'} ,{field: 'custName', align: 'center',title: '瀹㈡埛鍚嶇О', width: 160} - ,{field: 'createTime$', align: 'center',title: '鎿嶄綔鏃堕棿'} + ,{field: 'createTime$', align: 'center',title: '鍒涘缓鏃堕棿'} + ,{field: 'updateTime$', align: 'center',title: '鍑哄簱鏃堕棿'} ,{align: 'center', title: '鎿嶄綔', toolbar: '#operate'} ]], @@ -105,6 +106,9 @@ case "del": doDel(data); break; + case "printExcel": + printExcel(data); + break; case "look": var $a = $(obj.tr).find('a[lay-event="look"]'); var offset = $a.offset(); @@ -124,7 +128,7 @@ id:'lookSSXMTable', elem: '#lookSSXMTable', headers: {token: localStorage.getItem('token')}, - url: baseUrl+'/ManPakOut/list/auth', + url: baseUrl+'/ManPakOut/list/auth1', where: { doc_num: data.doc_num, uuid: data.uuid @@ -142,7 +146,7 @@ // ,{field: 'matnr', align: 'center',title: '鐗╂枡鍙�'} ,{field: 'maktx', align: 'center',title: '鐗屽彿'} ,{field: 'anfme', align: 'center',title: '鏁伴噺'} - ,{field: 'createTime$', align: 'center',title: '鎿嶄綔鏃堕棿'} + ,{field: 'updateTime$', align: 'center',title: '鎿嶄綔鏃堕棿'} ,{field: 'count', align: 'center',title: '瀹屾垚鏁�'} ,{field: 'status$', align: 'center',title: '鐘舵��'} ,{field: 'memo', align: 'center',title: '澶囨敞'} @@ -329,10 +333,9 @@ for (let i = 0; i < res.data.length; i++){ sum += res.data[i].anfme; - console.log("sum:"+res.data.anfme); - } json.anfmeSum = sum; + json.custName = json.data[0].custName; var barcodeUrl = baseUrl + "/ManPakOut/code/auth?type=1¶m=" + res.data[0].docNum; console.log("barcodeUrl:"+barcodeUrl); json.barcodeUrl = barcodeUrl; @@ -393,9 +396,14 @@ }); } - - - + function printExcel(data){ + layer.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){ + layer.closeAll(); + layer.load(1, {shade: [0.1,'#fff']}); + location.href = baseUrl+"/pakout/printExport/auth?orderNo="+data.doc_num; + layer.closeAll('loading'); + }); + } }); -- Gitblit v1.9.1