|  |  | 
 |  |  | <!-- 头部 --> | 
 |  |  | <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" class="layui-form"> | 
 |  |  | 
 |  |  |     function pakIn() { | 
 |  |  |         var barcode = $('#code').val(); | 
 |  |  |         if (isEmpty(barcode)) { | 
 |  |  |             tips("托盘条码为空", true); | 
 |  |  |             tips("pack码为空", true); | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         if (barcode.length !== 8) { | 
 |  |  |             tips("条码必须为8位", true); | 
 |  |  |             tips("pack码必须为8位", true); | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         if (matData.length === 0) { | 
 |  |  | 
 |  |  |     function emptyPakIn() { | 
 |  |  |         var barcode = $('#code').val(); | 
 |  |  |         if (isEmpty(barcode)) { | 
 |  |  |             tips("托盘条码为空", true); | 
 |  |  |             tips("pack码为空", true); | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         if (barcode.length !== 8) { | 
 |  |  |             tips("条码必须为8位", true); | 
 |  |  |             tips("pack码必须为8位", true); | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         var site = $('#putSiteSelect').val(); |