From 5d2d9dbe286f6e079232e68d30bbd0530ccecaef Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期五, 28 八月 2020 17:59:57 +0800 Subject: [PATCH] #v2.0 --- src/main/webapp/static/js/pakStore/emptyOut.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/emptyOut.js b/src/main/webapp/static/js/pakStore/emptyOut.js index 2f026ce..9b95c8e 100644 --- a/src/main/webapp/static/js/pakStore/emptyOut.js +++ b/src/main/webapp/static/js/pakStore/emptyOut.js @@ -9,10 +9,10 @@ // 鑾峰彇鍑哄簱鍙� function getOutBound(){ $.ajax({ - url: baseUrl+"/available/take/site", + url: baseUrl+"/available/empty/take/site", headers: {'token': localStorage.getItem('token')}, method: 'POST', - asymc: false, + async: false, success: function (res) { if (res.code === 200){ var tpl = $("#takeSiteSelectTemplate").html(); @@ -36,6 +36,8 @@ url: baseUrl+'/locMast/list/auth', page: true, limit: 16, + limits: [16, 30, 50, 100, 200, 500], + where: {loc_sts: "D"}, even: true, toolbar: '#toolbar', defaultToolbar: ['filter'], @@ -43,7 +45,7 @@ cols: [[ {type: 'checkbox', fixed: 'left'} ,{field: 'locNo', align: 'center',title: '搴撲綅鍙�',sort:true} - ,{field: 'locType$', align: 'center',title: '搴撲綅鐘舵��',width:200} + ,{field: 'locSts$', align: 'center',title: '搴撲綅鐘舵��',width:200} // ,{field: 'whsType$', align: 'center',title: '搴撲綅绫诲瀷'} ,{field: 'crnNo', align: 'center',title: '鍫嗗灈鏈哄彿'} ,{field: 'row1', align: 'center',title: '鎺�'} @@ -97,8 +99,9 @@ switch (obj.event) { case 'outbound': var staNo = $("#staNoSelect").val(); - if (staNo === ""){ + if (staNo === "" || staNo === null){ layer.msg("璇烽�夋嫨鍑哄簱鍙�"); + return; } var locNos = []; data.forEach(function(elem) { -- Gitblit v1.9.1