| | |
| | | {field: 'locNo', title: '货位', align: 'center'}, |
| | | {field: 'prior$', title: '推荐货位', align: 'center', width: 100}, |
| | | {field: 'reduce', title: '数量', align: 'center', width: 80, style: 'font-weight: bold'}, |
| | | {field: 'remQty', title: '余量', align: 'center', width: 80}, |
| | | // {field: 'remQty', title: '余量', align: 'center', width: 80}, |
| | | {field: 'total', title: '总量', align: 'center', width: 80}, |
| | | ]], |
| | | done: function () { |
| | | tableX.merges('stoPreTab', [0,1]); |
| | |
| | | , area: ['400px'] |
| | | , btn: ['库存调拨', '取消'] |
| | | }, function() { |
| | | // todo 库存调拨 |
| | | // 库存调拨 |
| | | stockTransfer(data.number); |
| | | layer.closeAll(); |
| | | }, function() { |
| | | // printPakouts(data.number); |
| | |
| | | shadeClose: true |
| | | , btn: ['库存调拨', '取消'] |
| | | }, function() { |
| | | // todo 库存调拨 |
| | | // 库存调拨 |
| | | layer.closeAll(); |
| | | }, function() { |
| | | // printPakouts(data.number); |
| | | alert(number) |
| | | layer.closeAll(); |
| | | } |
| | | ) |
| | |
| | | // }); |
| | | } |
| | | |
| | | // 库存调拨 |
| | | function stockTransfer(number) { |
| | | |
| | | $.ajax({ |
| | | url: baseUrl + "/work/stock/transfer", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | number: number |
| | | }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | layer.msg(res.msg, {icon: 1}) |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 打印拣货单 |
| | | function printPakouts(docNumber) { |
| | | $.ajax({ |