| | |
| | | window.onload = function(){document.getElementById("code").focus();} |
| | | |
| | | function findCode(el) { |
| | | if (el.value.length === 7) { |
| | | $('#mat-btn').focus(); |
| | | getMat(); |
| | | } |
| | | // if (el.value.length === 7) { |
| | | // $('#mat-btn').focus(); |
| | | // getMat(); |
| | | // } |
| | | } |
| | | |
| | | var matCodeLayerIdx; |
| | |
| | | // document.getElementById("code").focus(); |
| | | return; |
| | | } |
| | | if (zpallet.length !== 7) { |
| | | tips("条码必须为7位", true); |
| | | return; |
| | | } |
| | | // if (zpallet.length !== 7) { |
| | | // tips("条码必须为7位", true); |
| | | // return; |
| | | // } |
| | | if (matData.length === 0) { |
| | | tips("请提取物料", true); |
| | | return; |
| | |
| | | matData = res.data; |
| | | tableIns.reload({data: res.data}); |
| | | $('#node').focus(); |
| | | } else { |
| | | matData = []; |
| | | tableIns.reload({data: res.data}); |
| | | } |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/pda"; |