自动化立体仓库 - WMS系统
zwl
4 天以前 632bde0f32999a2b319b706e23d90bc1b5dd8cc2
src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -118,6 +118,9 @@
<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>
@@ -152,7 +155,8 @@
        ];
        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;
    }
@@ -242,6 +246,27 @@
            }
        });
        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();