| | |
| | | <!-- 头部 --> |
| | | <header> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label">条码</label> |
| | | <label class="layui-form-label">托盘条码</label> |
| | | <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" oninput="if(value.length>8)value=value.slice(0,8)" placeholder="扫码 / 输入" autocomplete="off"> |
| | | </div> |
| | | <div style="margin: 5px 5px"> |
| | |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'anfme', title: '数量', style:'color: blue', width:50}, |
| | | {field: 'matnr', align: 'center', title: '商品编号'}, |
| | | {field: 'maktx', align: 'center', title: '商品名称'} |
| | | {field: 'maktx', align: 'center', title: '商品名称'}, |
| | | {field: 'specs', align: 'center', title: '规格'}, |
| | | {field: 'unit', align: 'center', title: '单位'}, |
| | | {field: 'barcode', align: 'center', title: '条码'} |
| | | ]], |
| | | done: function (res, curr, anfme) { |
| | | } |
| | |
| | | tips("条码必须为8位", true); |
| | | return; |
| | | } |
| | | if (!barcode.startsWith("5") && |
| | | !barcode.startsWith("6") && |
| | | !barcode.startsWith("7") && |
| | | !barcode.startsWith("8")){ |
| | | tips("托盘条码格式错误", true); |
| | | return; |
| | | } |
| | | if (matData.length === 0) { |
| | | tips("请提取物料", true); |
| | | return; |