From ab746e04a079ba979f7caaa2535ffb57ffc9766f Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期五, 26 五月 2023 15:53:03 +0800 Subject: [PATCH] 地图切换楼层 --- src/main/webapp/views/pakStore/locDetlQuery.html | 66 +++++++++----------------------- 1 files changed, 19 insertions(+), 47 deletions(-) diff --git a/src/main/webapp/views/pakStore/locDetlQuery.html b/src/main/webapp/views/pakStore/locDetlQuery.html index 56a2355..6babd7e 100644 --- a/src/main/webapp/views/pakStore/locDetlQuery.html +++ b/src/main/webapp/views/pakStore/locDetlQuery.html @@ -61,6 +61,21 @@ <input class="layui-input" type="text" name="maktx" placeholder="鐗╂枡鎻忚堪" autocomplete="off"> </div> </div> + <div class="layui-inline"> + <div class="layui-input-inline"> + <input class="layui-input" type="text" name="specs" placeholder="鐗╂枡瑙勬牸" autocomplete="off"> + </div> + </div> + <div class="layui-inline"> + <div class="layui-input-inline"> + <input class="layui-input" type="text" name="zpallet" placeholder="鎵樼洏鐮�" autocomplete="off"> + </div> + </div> + <div class="layui-inline"> + <div class="layui-input-inline"> + <input class="layui-input" type="text" name="manu" placeholder="瀹㈡埛淇℃伅" autocomplete="off"> + </div> + </div> <!-- 鏃ユ湡鑼冨洿 --> <div class="layui-inline" style="width: 300px"> <div class="layui-input-inline"> @@ -70,7 +85,6 @@ <!-- 寰呮坊鍔� --> <div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block"> <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">鎼滅储</button> - <button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">閲嶇疆</button> </div> </div> </fieldset> @@ -94,11 +108,10 @@ </body> <script> - var pageCurr; function getCol() { var cols = [ {type: 'checkbox'} - ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'} + ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�', width: 85} ]; cols.push.apply(cols, detlCols); cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true} @@ -122,7 +135,8 @@ headers: {token: localStorage.getItem('token')}, url: baseUrl+'/stock/out/list/auth', page: true, - limit: 10, + limits: [16, 30, 50, 100, 200, 500], + limit: 16, even: true, toolbar: '#toolbar', cellMinWidth: 50, @@ -146,15 +160,6 @@ if (res.code === 403) { top.location.href = baseUrl+"/"; } - pageCurr=curr; - form.on('checkbox(tableCheckbox)', function (data) { - var _index = $(data.elem).attr('table-index')||0; - if(data.elem.checked){ - res.data[_index][data.value] = 'Y'; - }else{ - res.data[_index][data.value] = 'N'; - } - }); } }); @@ -175,14 +180,6 @@ // 鎼滅储鏍忔悳绱簨浠� form.on('submit(search)', function (data) { - pageCurr = 1; - tableReload(); - }); - - // 鎼滅储鏍忛噸缃簨浠� - form.on('submit(reset)', function (data) { - pageCurr = 1; - clearFormVal($('#search-box')); tableReload(); }); @@ -193,39 +190,14 @@ }); }) - function tableReload(child) { + function tableReload() { var searchData = {}; $.each($('#search-box [name]').serializeArray(), function() { searchData[this.name] = this.value; }); locDetlTableIns.reload({ where: searchData, - page: { - curr: pageCurr - }, - done: function (res, curr, count) { - if (res.code === 403) { - top.location.href = baseUrl+"/"; - } - pageCurr=curr; - if (res.data.length === 0 && count !== 0) { - locDetlTableIns.reload({ - where: searchData, - page: { - curr: pageCurr-1 - } - }); - pageCurr -= 1; - } - } }); - } - - function clearFormVal(el) { - $(':input', el) - .val('') - .removeAttr('checked') - .removeAttr('selected'); } </script> </html> -- Gitblit v1.9.1