| | |
| | | if (layEvent === 'edit') { |
| | | showEditModel(data); |
| | | }else if (layEvent === 'adjust') { |
| | | pakoutPreview(data.id); |
| | | adjustComplete(data.id); |
| | | }else if (layEvent === 'export') { |
| | | export1(data.id); |
| | | }else if (layEvent === 'del') { |
| | |
| | | } |
| | | |
| | | |
| | | function pakoutPreview(id) { |
| | | function adjustComplete(id) { |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl + "/checkOrder/preview/auth", |
| | | url: baseUrl + "/adjustOrder/complete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | orderId: id |
| | |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | |
| | | layer.close(loadIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | insTb.reload({where: null}); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.close(loadIndex); |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |