idleLocation.html 2.47 KB
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="container-div">
    <div class="col-sm-12 select-info">
        <form id="formId">
            <div class="select-list">
                <ul>
                    <li>
                        <label>巷道:</label>
                        <input type="text" name="roadway"/>
                    </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()"><i
                                class="fa fa-refresh"></i>&nbsp;重置</a>
                    </li>
                </ul>
            </div>
        </form>
    </div>

    <div class="col-sm-12 select-info table-striped">
        <table id="bootstrap-table" data-mobile-responsive="true"></table>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "config/location"
    $(function () {
        var options = {
            url: prefix + "/getIdleLocation",
            modalName: "空闲库位数量",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '参数主键',
                    visible: false
                },
                {
                    field: 'roadway',
                    title: '巷道'
                },
                // {
                //     field: 'irow',
                //     title: '第几行'
                // },
                {
                    field: 'allCount',
                    // title: '空库库位(去除每个巷道预留的8个高库位和8个低库位)'
                    title: '剩余空库库位'
                },
                {
                    field: 'lowCount',
                    title: '低库位数量'
                },
                {
                    field: 'middleCount',
                    title: '中库位数量'
                },
                {
                    field: 'highCount',
                    title: '高库位数量'
                },

            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>