| | |
| | | {{# function GetBtn2(d){ |
| | | var html = ''; |
| | | |
| | | if((d.Status == "0" ||d.Status == "1") && d.Qty > d.AllotQty && d.IsWave == "0"){ |
| | | if(d.AllotQty<d.Qty){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs shoufenClass" lay-event="wan"> |
| | | <i class="layui-icon layui-icon-ok"></i>手动分配 |
| | | </a>`; |
| | | } |
| | | if(d.Status == "0" && d.Origin == "WMS" && d.IsWave == "0"){ |
| | | |
| | | if(d.Status == "0" && d.Origin == "WMS"){ |
| | | html +=`<a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del"> |
| | | <i class="layui-icon layui-icon-delete"></i>删除 |
| | | </a>`; |
| | |
| | | } else if (obj.event === 'check') {//复核 |
| | | // 代码区域 |
| | | layer.confirm('确定复核此单据吗?', function (index) { |
| | | var param = { |
| | | Id: data.Id, |
| | | }; |
| | | sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | doing = true |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { doing = true }); |
| | | } |
| | | }); |
| | | if (isChongFu == true) { |
| | | isChongFu = false; |
| | | var param = { |
| | | Id: data.Id, |
| | | }; |
| | | sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | isChongFu = true; |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { isChongFu = true; }); |
| | | } |
| | | }); |
| | | } else { |
| | | layer.msg("请勿重复点击", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |