| | |
| | | <footer> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-xs layui-btn-primary" onclick="reset()">重置</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb" style="margin-left: 20px">组托</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb()" style="margin-left: 20px">组托</button> |
| | | </div> |
| | | </footer> |
| | | </body> |
| | |
| | | |
| | | // 组托 |
| | | function comb() { |
| | | let barcode = $('#code').val(); |
| | | if (isEmpty(barcode)) { |
| | | layer.msg("请输入托盘条码"); |
| | | return; |
| | | } |
| | | let combMats = matData; |
| | | $.ajax({ |
| | | url: baseUrl+"/mobile/comb/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify({ |
| | | barcode: barcode, |
| | | combMats: combMats |
| | | }), |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | asyne: false, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/pda"; |
| | | } else { |
| | | alert(res.msg) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | </script> |
| | | </html> |