| | |
| | | var initCountVal = 0; |
| | | var initAnfmeVal = "-"; |
| | | var removeBtn = true; |
| | | var matCodeData = []; |
| | | var currLocNo; |
| | | layui.use(['table','laydate', 'form'], function() { |
| | |
| | | } |
| | | layer.confirm('确定调整'+currLocNo+'库位的明细吗?', {shadeClose: true}, function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/full/store/put/start", |
| | | url: baseUrl+"/locDdetl/adjust/start", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify({ |
| | | devpNo: $('#putSiteSelect').val(), |
| | | locNo: currLocNo, |
| | | list: matCodeData |
| | | }), |
| | | contentType:'application/json;charset=UTF-8', |
| | |
| | | async: false, |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | layer.msg("入库启动成功,目标库位:" + res.data); |
| | | matCodeData = []; |
| | | tableIns.reload({data: matCodeData,done:function (res) { limit(); getInBound();}}); |
| | | layer.msg(currLocNo + res.msg); |
| | | reset(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | |
| | | anfme: data[i].anfme, |
| | | matNo: data[i].matnr, |
| | | matName: data[i].maktx, |
| | | |
| | | barcode: data[i].zpallet, |
| | | str1: data[i].altme, |
| | | str2: data[i].bname, |
| | | removeBtn: false |
| | | }) |
| | | } |
| | | locTips(true, locNo); |
| | |
| | | |
| | | // 重置事件 |
| | | form.on('submit(reset)', function (data) { |
| | | reset(); |
| | | }); |
| | | |
| | | function reset() { |
| | | clearFormVal($('#search-box')); |
| | | matCodeData = []; |
| | | tableReload(); |
| | | locTips(false); |
| | | }); |
| | | } |
| | | |
| | | // 重载表格 |
| | | function tableReload() { |
| | |
| | | if (isNaN(count)) { |
| | | layer.msg("请输入数字"); |
| | | } else { |
| | | if (count > 0) { |
| | | if (count >= 0) { |
| | | for (var i=0;i<matCodeData.length;i++){ |
| | | if (matCodeData[i]["matNo"] === matNo){ |
| | | matCodeData[i]["count"] = count; |