src/main/java/com/zy/asrs/controller/LocDetlController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/static/js/locDetl/locDetl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/locDetl/locDetl.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/asrs/controller/LocDetlController.java
@@ -13,11 +13,9 @@ import com.core.common.DateUtils; import com.core.common.R; import com.zy.asrs.entity.LocDetl; import com.zy.asrs.entity.ManLocDetl; import com.zy.asrs.entity.Mat; import com.zy.asrs.mapper.LocDetlMapper; import com.zy.asrs.service.LocDetlService; import com.zy.asrs.service.ManLocDetlService; import com.zy.asrs.service.MatService; import com.zy.common.web.BaseController; import org.springframework.beans.factory.annotation.Autowired; @@ -33,7 +31,6 @@ @Autowired private LocDetlService locDetlService; @Autowired private LocDetlMapper locDetlMapper; @Autowired @@ -86,7 +83,7 @@ return R.ok(locDetlService.getStockOut(toPage(curr, limit, param, LocDetl.class))); } @RequestMapping(value = "/error/locDetl/list/auth")// /locDetl/list/auth 接口问题 @RequestMapping(value = "/locDetl/list/auth") @ManagerAuth public R list(@RequestParam(defaultValue = "1")Integer curr, @RequestParam(defaultValue = "10")Integer limit, @@ -116,7 +113,6 @@ // } return R.ok(locDetlService.selectPage(new Page<>(curr, limit), wrapper)); } private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ for (Map.Entry<String, Object> entry : map.entrySet()){ src/main/webapp/static/js/locDetl/locDetl.js
@@ -55,7 +55,7 @@ tableIns = table.render({ elem: '#locDetl', headers: {token: localStorage.getItem('token')}, url: baseUrl+'/manLocDetl/list/auth', url: baseUrl+'/locDetl/list/auth', page: true, limit: 16, limits: [16, 30, 50, 100, 200, 500], @@ -68,7 +68,6 @@ pageSize: 'limit' }, parseData: function (res) { console.log(res) return { 'code': res.code, 'msg': res.msg, @@ -133,7 +132,7 @@ content: 'locDetl_detail.html', success: function(layero, index){ layer.getChildFrame('#data-detail-submit-edit', index).hide(); clearFormVal(layer.getChildFrame('#detail', index)); clearFormVal(layer.getChildFrame('#detail', index)); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); } }); @@ -263,35 +262,35 @@ if (param === undefined) { layer.msg("无数据"); } else { layer.open({ type: 2, title: '库位号详情', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, content: '../locMast/locMast_detail.html', success: function(layero, index){ $.ajax({ url: baseUrl+"/locMast/"+ param +"/auth", headers: {'token': localStorage.getItem('token')}, method: 'GET', success: function (res) { if (res.code === 200){ setFormVal(layer.getChildFrame('#detail', index), res.data, true); top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); layero.find('iframe')[0].contentWindow.layui.form.render('select'); layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); } else if (res.code === 403){ parent.location.href = "/"; }else { layer.msg(res.msg) } } }) } }); layer.open({ type: 2, title: '库位号详情', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, content: '../locMast/locMast_detail.html', success: function(layero, index){ $.ajax({ url: baseUrl+"/locMast/"+ param +"/auth", headers: {'token': localStorage.getItem('token')}, method: 'GET', success: function (res) { if (res.code === 200){ setFormVal(layer.getChildFrame('#detail', index), res.data, true); top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); layero.find('iframe')[0].contentWindow.layui.form.render('select'); layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); } else if (res.code === 403){ parent.location.href = "/"; }else { layer.msg(res.msg) } } }) } }); } break; case 'modiUser': @@ -299,35 +298,35 @@ if (param === undefined) { layer.msg("无数据"); } else { layer.open({ type: 2, title: '修改人员详情', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, content: '../user/user_detail.html', success: function(layero, index){ $.ajax({ url: baseUrl+"/user/"+ param +"/auth", headers: {'token': localStorage.getItem('token')}, method: 'GET', success: function (res) { if (res.code === 200){ setFormVal(layer.getChildFrame('#detail', index), res.data, true); top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); layero.find('iframe')[0].contentWindow.layui.form.render('select'); layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); } else if (res.code === 403){ parent.location.href = "/"; }else { layer.msg(res.msg) } } }) } }); layer.open({ type: 2, title: '修改人员详情', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, content: '../user/user_detail.html', success: function(layero, index){ $.ajax({ url: baseUrl+"/user/"+ param +"/auth", headers: {'token': localStorage.getItem('token')}, method: 'GET', success: function (res) { if (res.code === 200){ setFormVal(layer.getChildFrame('#detail', index), res.data, true); top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); layero.find('iframe')[0].contentWindow.layui.form.render('select'); layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); } else if (res.code === 403){ parent.location.href = "/"; }else { layer.msg(res.msg) } } }) } }); } break; case 'appeUser': @@ -335,35 +334,35 @@ if (param === undefined) { layer.msg("无数据"); } else { layer.open({ type: 2, title: '创建者详情', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, content: '../user/user_detail.html', success: function(layero, index){ $.ajax({ url: baseUrl+"/user/"+ param +"/auth", headers: {'token': localStorage.getItem('token')}, method: 'GET', success: function (res) { if (res.code === 200){ setFormVal(layer.getChildFrame('#detail', index), res.data, true); top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); layero.find('iframe')[0].contentWindow.layui.form.render('select'); layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); } else if (res.code === 403){ parent.location.href = "/"; }else { layer.msg(res.msg) } } }) } }); layer.open({ type: 2, title: '创建者详情', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, content: '../user/user_detail.html', success: function(layero, index){ $.ajax({ url: baseUrl+"/user/"+ param +"/auth", headers: {'token': localStorage.getItem('token')}, method: 'GET', success: function (res) { if (res.code === 200){ setFormVal(layer.getChildFrame('#detail', index), res.data, true); top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); layero.find('iframe')[0].contentWindow.layui.form.render('select'); layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); } else if (res.code === 403){ parent.location.href = "/"; }else { layer.msg(res.msg) } } }) } }); } break; @@ -385,7 +384,6 @@ }); function method(name){ var index = layer.load(1, { shade: [0.5,'#000'] //0.1透明度的背景 }); src/main/webapp/views/locDetl/locDetl.html
@@ -7,114 +7,61 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> <link rel="stylesheet" href="../../static/css/cool.css" media="all"> <link rel="stylesheet" href="../../static/css/tree.css" media="all"> <style> body { color: #595959; background-color: #f5f7f9; } .layui-fluid { padding: 15px; } .layui-form.layui-border-box.layui-table-view { /*margin: 15px 0 35px 0;*/ width: 100%; border-width: 1px; } .layui-form.layui-border-box.layui-table-view { height: calc(100vh - 160px); } .layui-form.layui-border-box.layui-table-view { margin: 0; } #search-box { padding: 30px 30px 10px 0px; margin-left: 0px; } .layui-form.layui-border-box.layui-table-view { height: 100%; } </style> <link rel="stylesheet" href="../../static/css/common.css" media="all"> </head> <body> <div class="layui-fluid"> <!-- 左 --> <div class="layui-row layui-col-space15"> <div class="layui-col-md3"> <div class="layui-card"> <div class="layui-card-body" style="padding: 10px;"> <!-- 树工具栏 --> <div class="layui-form toolbar" id="organizationTreeBar"> <div class="layui-inline" style="max-width: 200px;"> <input id="condition" onkeyup="findData(this)" type="text" class="layui-input" placeholder="请输入关键字" autocomplete="off"> </div> <div class="layui-inline"> <button class="layui-btn icon-btn layui-btn-sm" id="treeReset" style="padding: 0 10px;"> <i class="layui-icon layui-icon-close"></i> </button> </div> </div> <!-- 树 --> <div class="layui-form toolbar" id="organizationTree"></div> </div> </div> </div> <!-- 右 --> <div class="layui-col-md9"> <div class="layui-card"> <div class="layui-card-body" style="padding: 10px;"> <!-- 表格工具栏2 --> <div id="search-box" class="layui-form toolbar" style="padding-top: 5px"> <div class="layui-inline"> <label class="layui-form-label" style="padding: 8px 15px 8px 15px">货位:</label> <div class="layui-input-inline"> <input name="loc_no" class="layui-input" placeholder="输入货位"/> </div> </div> <div class="layui-inline"> <label class="layui-form-label" style="padding: 8px 15px 8px 15px">商品编号:</label> <div class="layui-input-inline"> <input name="matnr" class="layui-input" placeholder="输入商品编号"/> </div> </div> <div class="layui-inline"> <label class="layui-form-label" style="padding: 8px 15px 8px 15px">商品名称:</label> <div class="layui-input-inline"> <input name="maktx" class="layui-input" placeholder="输入商品名称"/> </div> </div> <div class="layui-inline">  <button class="layui-btn icon-btn" lay-filter="search" lay-submit> <i class="layui-icon"></i>搜索 </button> <button class="layui-btn icon-btn" lay-filter="reset" lay-submit> <i class="layui-icon"></i>重置 </button> </div> </div> <table class="layui-hide" id="locDetl" lay-filter="locDetl"></table> </div> </div> <!-- 搜索栏 --> <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"> </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="matnr" placeholder="商品编号" autocomplete="off"> </div> </div> <!-- <div class="layui-inline">--> <!-- <div class="layui-input-inline">--> <!-- <input class="layui-input" type="text" name="row" placeholder="排数" autocomplete="off">--> <!-- </div>--> <!-- </div>--> <div class="layui-inline"> <div class="layui-input-inline"> <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> </div> </div> <!-- 待添加 --> <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> <!-- <button id="unreason" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="unreason">查看异常数据</button>--> </div> </div> <!-- 表格 --> <div class="layui-form"> <table class="layui-hide" id="locDetl" lay-filter="locDetl"></table> </div> <script type="text/html" id="toolbar"> <div class="layui-btn-container"> <!-- <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button>--> <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right;margin-right: -10px">导出</button> <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="margin-top: 10px">导出</button> </div> </script> <script type="text/html" id="locNoTpl"> <span name="locNo" class="layui-badge layui-badge-gray">{{d.locNo}}</span> </script> <script type="text/html" id="operate"> <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">详情</a> <!-- <a class="layui-btn layui-btn-xs btn-edit" lay-event="edit">编辑</a>--> </script> <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> @@ -122,8 +69,8 @@ <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> <script type="text/javascript" src="../../static/js/locDetl/locDetl.js" charset="utf-8"></script> <!--<script type="text/javascript" src="../../static/js/tagTree.js" charset="utf-8"></script>--> <script type="text/javascript" src="../../static/js/nodeTree.js" charset="utf-8"></script> <iframe id="detail-iframe" scrolling="auto" style="display:none;"></iframe> </body> </html>