From b2f6a4df03a96a5efc49524ccf84d356fee72479 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期日, 12 十一月 2023 16:10:22 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/pakStore/stockOut.js | 54 ------------------------------------------------------ 1 files changed, 0 insertions(+), 54 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/stockOut.js b/src/main/webapp/static/js/pakStore/stockOut.js index 96f5e97..5b08de2 100644 --- a/src/main/webapp/static/js/pakStore/stockOut.js +++ b/src/main/webapp/static/js/pakStore/stockOut.js @@ -177,57 +177,3 @@ layer.close(locDetlLayerIdx); } - -// excel瀵煎叆妯℃澘涓嬭浇 -function excelMouldDownload(){ - layer.load(1, {shade: [0.1,'#fff']}); - location.href = baseUrl + "/out/loc/box/excel/import/mould"; - layer.closeAll('loading'); -} - -// excel瀵煎叆 -function importExcel() { - $("#importExcel").trigger("click"); -} -function upload(obj){ - if(!obj.files) { - return; - } - var file = obj.files[0]; - admin.confirm('纭鍚屾 [' + file.name +'] 鏂囦欢鍚楋紵', function (index) { - layer.load(1, {shade: [0.1,'#fff']}); - var url = baseUrl + "/out/loc/box/excel/import/auth"; - var form = new FormData(); - form.append("file", file); - xhr = new XMLHttpRequest(); - xhr.open("post", url, true); //post鏂瑰紡锛寀rl涓烘湇鍔″櫒璇锋眰鍦板潃锛宼rue 璇ュ弬鏁拌瀹氳姹傛槸鍚﹀紓姝ュ鐞嗐�� - xhr.setRequestHeader('token', localStorage.getItem('token')); - xhr.onload = uploadComplete; //璇锋眰瀹屾垚 - xhr.onerror = uploadFailed; //璇锋眰澶辫触 - xhr.onloadend = function () { // // 涓婁紶瀹屾垚閲嶇疆鏂囦欢娴� - layer.closeAll('loading'); - $("#importExcel").val(""); - }; - // xhr.upload.onprogress = progressFunction;//銆愪笂浼犺繘搴﹁皟鐢ㄦ柟娉曞疄鐜般�� - xhr.upload.onloadstart = function(){//涓婁紶寮�濮嬫墽琛屾柟娉� - ot = new Date().getTime(); //璁剧疆涓婁紶寮�濮嬫椂闂� - oloaded = 0;//璁剧疆涓婁紶寮�濮嬫椂锛屼互涓婁紶鐨勬枃浠跺ぇ灏忎负0 - }; - xhr.send(form); - }, function(index){ - $("#importExcel").val(""); - }); -} -function uploadComplete(evt) { - var res = JSON.parse(evt.target.responseText); - if(res.code === 200) { - layer.msg(res.msg, {icon: 1}); - loadTree(""); - } else { - layer.msg(res.msg, {icon: 2}); - } -} -function uploadFailed(evt) { - var res = JSON.parse(evt.target.responseText); - layer.msg(res.msg, {icon: 2}); -} \ No newline at end of file -- Gitblit v1.9.1