|  |  |  | 
|---|
|  |  |  | <div class="layui-input-inline" style="width: 220px;"> | 
|---|
|  |  |  | <select name="PickingArea" id="PickingArea" lay-search> | 
|---|
|  |  |  | <option value=""></option> | 
|---|
|  |  |  | <option value="1">1</option> | 
|---|
|  |  |  | <option value="2">2</option> | 
|---|
|  |  |  | <option value="17">17工位</option> | 
|---|
|  |  |  | <option value="18">18工位</option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | </a>`; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(d.Status == '0' && d.Origin == 'WMS'){ | 
|---|
|  |  |  | if(d.Status == '0'){ | 
|---|
|  |  |  | html += `<a class="layui-btn layui-btn-normal layui-btn-xs uptClass" lay-event="edit"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-edit"></i>编辑 | 
|---|
|  |  |  | </a> | 
|---|
|  |  |  | 
|---|
|  |  |  | </a>`; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if( d.Status == '2' || d.Status == '3'){ | 
|---|
|  |  |  | if( (d.Status == '2' || d.Status == '3')){ | 
|---|
|  |  |  | html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="outKu"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-ok"></i>出库 | 
|---|
|  |  |  | </a>`; | 
|---|
|  |  |  | 
|---|
|  |  |  | { field: 'SONo', title: '出库单号', align: 'center', fixed: 'left', width: 165, "disabled": true }, | 
|---|
|  |  |  | { field: 'Type', title: '单据类型', align: 'center', templet: '#templetType' , width: 120,}, | 
|---|
|  |  |  | { field: 'Status', title: '执行状态', align: 'center', templet: '#templetStatus', width: 90, }, | 
|---|
|  |  |  | { field: 'OrderCode', title: '下发单号', align: 'center', width: 180 }, | 
|---|
|  |  |  | { field: 'LogisticsName', title: '承运商', align: 'center', width: 120, }, | 
|---|
|  |  |  | { field: 'CustomerName', title: '客户名称', align: 'center', width: 120, }, | 
|---|
|  |  |  | { field: 'WareHouseName', title: '仓库', align: 'center', width: 90, }, | 
|---|
|  |  |  | 
|---|
|  |  |  | 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) { | 
|---|