| | |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <div class="form-item"> |
| | | <table style="display: inline"> |
| | | <tr> |
| | | <td> |
| | | <span style="width: 35px; margin-right: 5px">单号</span> |
| | | </td> |
| | | <td style="text-align: left"> |
| | | <input id="supplier" type="text" disabled="disabled"> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <!-- <div class="form-item">--> |
| | | <!-- <table style="display: inline">--> |
| | | <!-- <tr>--> |
| | | <!-- <td>--> |
| | | <!-- <span style="width: 35px; margin-right: 5px">单号</span>--> |
| | | <!-- </td>--> |
| | | <!-- <td style="text-align: left">--> |
| | | <!-- <input id="supplier" type="text" disabled="disabled">--> |
| | | <!-- </td>--> |
| | | <!-- </tr>--> |
| | | <!-- </table>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | <div class="form-item" style="margin-top: 5px"> |
| | | <span style="vertical-align: middle">数量</span> |
| | |
| | | width: 70 |
| | | }, |
| | | {field: 'matNo', align: 'center', title: '产品编码', event: 'modify'}, |
| | | {field: 'matName', align: 'center', title: '产品名称', event: 'modify'} |
| | | {field: 'matName', align: 'center', title: '产品名称', event: 'modify'}, |
| | | {field: 'seqNo', align: 'center', title: '序号', event: 'modify'} |
| | | // {field: 'color', align: 'center', title: '颜色', event: 'modify',} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | |
| | | success: function (layero, index) { |
| | | $('#matNo').val(data.matNo); |
| | | $('#matName').val(data.matName); |
| | | // $('#supplier').val(data.billNo); |
| | | $('#count').val(data.count); |
| | | maxCount = data.count; |
| | | } |
| | |
| | | // 移除物料 |
| | | function remove() { |
| | | var matNo = $('#matNo').val(); |
| | | var supplier = $("#supplier").val() === '' ? null : $("#supplier").val(); |
| | | // var supplier = $("#supplier").val() === '' ? null : $("#supplier").val(); |
| | | for (var j = 0; j < matData.length; j++) { |
| | | if (matNo === matData[j].matNo) { |
| | | matData.splice(j, 1); |
| | |
| | | tableIns.reload({data: matData}); |
| | | } |
| | | |
| | | function test() { |
| | | $.ajax({ |
| | | url: baseUrl+"/erp/update", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | async: false, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | layer.msg("测试功能成功"); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/pda"; |
| | | } else { |
| | | tips(res.msg, true) |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function test() { |
| | | $.ajax({ |
| | | url: baseUrl+"/erp/outUpdate", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | async: false, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | layer.msg("测试功能成功"); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/pda"; |
| | | } else { |
| | | tips(res.msg, true) |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 组托 |
| | | function comb() { |
| | | var barcode = $('#code').val(); |
| | |
| | | return; |
| | | } |
| | | var billNo = $('#billNo').val(); |
| | | debugger |
| | | $.ajax({ |
| | | url: baseUrl + "/mobile/comb/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |