| | |
| | | <body> |
| | | <!-- 头部 --> |
| | | <header> |
| | | <div class="layui-input-inline"> |
| | | <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 class="layui-input-inline" style="margin-top: 5px"> |
| | | <label class="layui-form-label">单号</label> |
| | | <input class="layui-input" id="billNo" oninput="find(this)" placeholder="扫码 / 输入" autocomplete="off" style="width: 75%; height: 40px; margin-right: 0;"> |
| | | <label class="layui-form-label"> 单号</label> |
| | | <input class="layui-input" id="billNo" oninput="find(this)" placeholder="扫码 / 输入" autocomplete="off" style="width: 70%; height: 40px; margin-right: 0;"> |
| | | </div> |
| | | <div class="layui-input-inline"> |
| | | <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> |
| | | </header> |
| | | |
| | |
| | | |
| | | </body> |
| | | <script> |
| | | window.onload = function(){document.getElementById("code").focus();} |
| | | window.onload = function(){document.getElementById("billNo").focus();} |
| | | var tableIns; |
| | | var countLayer; |
| | | layui.use(['table','laydate', 'form'], function() { |
| | |
| | | limit: 500, |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '数量', event: 'modify', style:'cursor: pointer;color: blue', width:50}, |
| | | {field: 'matNo', align: 'center', title: '物料编码'}, |
| | | {field: 'warehouse', align: 'center', title: '生产单号'} |
| | | {field: 'mnemonic', align: 'center', title: '生产单号'}, |
| | | {fixed: 'right', align: 'center', field: 'count', title: '数量', event: 'modify', style:'cursor: pointer;color: blue', width:50}, |
| | | // {field: 'matName', align: 'center', title: '物料名称'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | |
| | | }); |
| | | |
| | | function findCode(el) { |
| | | if (el.value.length === 7) { |
| | | $('#billNo').focus(); |
| | | } |
| | | // if (el.value.length === 7) { |
| | | // $('#code').focus(); |
| | | // } |
| | | } |
| | | |
| | | // 添加表格数据 |
| | |
| | | } |
| | | } |
| | | tableIns.reload({data: matData}); |
| | | $("#comb-btn").focus(); |
| | | // $("#comb-btn").focus(); |
| | | } |
| | | |
| | | |
| | |
| | | tips(res.msg, true) |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | /************************************* 数量 ****************************************/ |