inventoryTransactionReport.html 3.5 KB
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-info">
            <form id="inventory-form">
                <div class="select-list">
                    <ul>

                        <li>
                            储货库区:
                            <select name="zoneCode" th:with="zone=${@zone.getCode()}">
                                <option value="">所有</option>
                                <option th:each="e : ${zone}" th:text="${e['name']}" th:value="${e['code']}"></option>
                            </select>
                        </li>

                        <li>
                            物料编码:<input type="text" name="materialCode"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('inventory-form')"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                            <!--<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="general:inventoryHeader:export"><i class="fa fa-download"></i>&nbsp;导出</a>-->
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="col-sm-12 select-info">
            <table id="bootstrap-table" data-mobile-responsive="true"
                   class="table table-bordered table-hover text-nowrap"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "inventory/inventoryTransactionReport";

    $(function () {
        var options = {
            url: prefix + "/inventoryTransactionReport",
            modalName: "SKU热度",
            sortName: "materialCode",
            sortOrder: "desc",
            search: false,
            pagination: false,   // 是否显示分页(*)
            // showColumns: true, //列选择
            showExport: true, //导出
            pageNumber: 1,                                      // 初始化加载第一页,默认第一页
            pageSize: 10000,
            sidePagination: "server",// 每页的记录行数(*)
            columns: [
                {
                    checkbox: true
                },
                {
                    field: 'materialCode',
                    title: '物料编码'
                },
                {
                    field: 'materialName',
                    title: '物料名称'
                },
                {
                    field: 'zs',
                    title: '出入库次数'
                },
                {
                    field: 'rk',
                    title: '入库次数'
                },
                {
                    field: 'ck',
                    title: '出库次数'
                }
                // {
                //     field: 'created',
                //     title: '交易时间',
                //     sortable: true,
                //     visible: false
                // },

            ]
        };
        $.table.init(options);

    });


</script>
</body>
</html>