| | |
| | | |
| | | // 检索事件 |
| | | form.on('submit(search)', function (data) { |
| | | if (data.field.loc_no === "") { |
| | | inputTip($("#searchLocNo")); |
| | | layer.msg("请输入库位号"); |
| | | return; |
| | | } |
| | | http.post(baseUrl + "/locDetl/list/auth", {loc_no: data.field.loc_no,limit: 1000}, function (res) { |
| | | matCodeData = []; |
| | | let data = res.data.records; |
| | |
| | | |
| | | // 重置事件 |
| | | form.on('submit(reset)', function (data) { |
| | | |
| | | clearFormVal($('#search-box')); |
| | | matCodeData = []; |
| | | tableReload(); |
| | | }); |
| | | |
| | | function tableReload() { |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 搜索框空值提示 |
| | | function inputTip(el) { |
| | | el.css("border-color", "red"); |
| | | setTimeout(function () { |
| | | el.css("border-color", "#b8b8b8"); |
| | | }, 2000); |
| | | } |
| | |
| | | for (var i=0;i<data.length;i++){ |
| | | data[i]["count"] = parent.initCountVal; |
| | | } |
| | | |
| | | |
| | | parent.matCodeData.push.apply(parent.matCodeData, data); |
| | | parent.tableIns.reload({data: parent.matCodeData}); |
| | | parent.layer.close(parent.matCodeLayerIdx); |
| | |
| | | <div id="search-box" class="layui-form layui-card-header"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="loc_no" placeholder="库位号" autocomplete="off"> |
| | | <input id="searchLocNo" class="layui-input" type="text" name="loc_no" placeholder="库位号" autocomplete="off" style="height: 45px;border-color: #b8b8b8"> |
| | | </div> |
| | | </div> |
| | | <!-- 待添加 --> |