|  |  |  | 
|---|
|  |  |  | <header> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <label class="layui-form-label">条码</label> | 
|---|
|  |  |  | <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" maxlength="8" placeholder="扫码 / 输入" autocomplete="off"> | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | <button id="mat-btn" type="button" class="layui-btn layui-btn-normal" onclick="getMat()"><i class="layui-icon">+</i>提取</button> | 
|---|
|  |  |  | 
|---|
|  |  |  | var matData = []; | 
|---|
|  |  |  | function addTableData(data) { | 
|---|
|  |  |  | if (isEmpty(data.matName)){ | 
|---|
|  |  |  | tips("提取失败"); | 
|---|
|  |  |  | tips("提取失败", true); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | let toPush = true; | 
|---|