|  |  |  | 
|---|
|  |  |  | <!-- 头部 --> | 
|---|
|  |  |  | <header> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <label class="layui-form-label">条码</label> | 
|---|
|  |  |  | <label class="layui-form-label">pack码</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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | function comb() { | 
|---|
|  |  |  | let barcode = $('#code').val(); | 
|---|
|  |  |  | if (isEmpty(barcode)) { | 
|---|
|  |  |  | tips("托盘条码为空", true); | 
|---|
|  |  |  | tips("托盘pack码为空", true); | 
|---|
|  |  |  | // document.getElementById("code").focus(); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (barcode.length !== 8) { | 
|---|
|  |  |  | tips("条码必须为8位", true); | 
|---|
|  |  |  | tips("pack码必须为8位", true); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (matData.length === 0) { | 
|---|