| | |
| | | <div class="layui-form"> |
| | | <table class="layui-hide" id="stockOut" lay-filter="stockOut"></table> |
| | | </div> |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="viewPhoto">查看照片</a> |
| | | </script> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'modiUser$', align: 'center',title: '修改人员', hide: true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间'}) |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间'} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:110}) |
| | | return cols; |
| | | } |
| | | |
| | |
| | | } |
| | | }); |
| | | |
| | | table.on('tool(stockOut)', function(obj){ |
| | | if (obj.event !== 'viewPhoto') { |
| | | return; |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl + "/photo/loc/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {locNo: obj.data.locNo}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | showPhotoViewer(layer, res.data); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | layer.msg(res.msg); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | // 搜索栏搜索事件 |
| | | form.on('submit(search)', function (data) { |
| | | tableReload(); |