<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<head>
    <th:block th:include="include :: header('拨号记录')"/>
    <th:block th:include="include :: layout-latest-css"/>
</head>

<body class="gray-bg">

<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="order-goods-form">
<!--                    <input type="hidden" id="orderId" name="orderId" th:value="${orderMaster.id}">-->
                </form>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>

<script th:inline="javascript">

    var prefix = ctx + "order/record";
    var orderId = '[[${orderId}]]';

    $(function () {
        var panehHidden = false;
        if ($(this).width() < 769) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 185});
        // 回到顶部绑定
        if ($.fn.toTop !== undefined) {
            var opt = {
                win: $('.ui-layout-center'),
                doc: $('.ui-layout-center')
            };
            $('#scroll-up').toTop(opt);
        }
        queryOrderCallList();
    });

    function queryOrderCallList() {
        var options = {
            url: prefix + "/list?orderType=01&orderId=" + orderId,
            modalName: "拨号记录",
            search: false,
            showSearch: false,
            showToggle: false,
            showColumns: false,
            showRefresh: false,
            columns: [
                {
                    field: 'id',
                    title: 'id',
                    visible: false
                },
                {
                    field: 'orderId',
                    title: '订单id',
                    visible: false
                },
                {
                    field: 'orderType',
                    title: '单据类型',
                    visible: false
                },
                {
                    field: 'callTime',
                    title: '联系时间'
                }
            ]
        };
        $.table.init(options);
    }

</script>
</body>

</html>