| | |
| | | area: ['1200px', '90%'], |
| | | }); |
| | | } else if (obj.event === 'outKu') { |
| | | $("#PickingArea").val(''); |
| | | outFunction(data.SONo); |
| | | |
| | | //if(data.WareHouseName =="成品库"){ |
| | | outFunction(data.SONo); |
| | | // }else{ |
| | | // outFunction2(data.SONo) |
| | | // } |
| | | |
| | | } else if (obj.event === 'beiLiaoOutKu') { |
| | | if (orderType != "1") { |
| | |
| | | area: ['350px', '285px'], |
| | | btn: ['确定', '取消'], |
| | | yes: function (index, layero) { |
| | | var pa = $('#PickingArea').val(); |
| | | console.log(pa) |
| | | |
| | | if (isChongFu == true) { |
| | | isChongFu = false; |
| | | if (pa == null) { |
| | | layer.msg("请勿重复点击", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | console.log($("#PickingArea").val()) |
| | | if ($("#PickingArea").val() == '') { |
| | | if ($("#PickingArea").val() == '' || $('#PickingArea').val() == null) { |
| | | layer.msg("请选择出库口", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | var param = { |
| | | soNo: soNo, |
| | | //unstackingMode: $('#UnstackWay').val(), |
| | | outMode: pa, |
| | | outMode: $("#PickingArea").val(), |
| | | //loadingAddre: $('#LoadingArea').val() |
| | | }; |
| | | console.log(param); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //不选择出库口的弹窗方法 |
| | | function outFunction2(soNo) { |
| | | layer.confirm('确定当前单据出库吗?', function (index) { |
| | | |
| | | if (isChongFu == true) { |
| | | isChongFu = false; |
| | | |
| | | var param = { |
| | | soNo: soNo, |
| | | }; |
| | | console.log(param); |
| | | sendData(IP + "/DownApi/IssueOutHouse", param, 'get', function (res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 3000 //1秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | isChongFu = true; |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 3000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | isChongFu = true; |
| | | }); |
| | | } |
| | | layer.close(index); |
| | | }); |
| | | } else { |
| | | layer.msg("请勿重复点击", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //选择出库口弹窗方法 |
| | | function beiLiaoOutFunction(soNo) { |