<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('托底账户收支明细列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>交易日期：</label>
                                <input type="text" class="time-input" id="startTime" name="startTime"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" name="endTime"/>
                            </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-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: bootstrap-select-js" />
    <script th:inline="javascript">
        var removeFlag = [[${@permission.hasPermi('per-wallet:remove')}]];
        var prefix = ctx + "manage/com-wallet";

        $(function() {
            var options = {
                url: prefix + "/page-account-base-record",
                columns: [
                {field: 'tradeSerialNo',title: '交易流水号'},
                {field: 'reference',title: '交易参考号'},
                {field: 'tranDate',title: '交易日期'},
                {field: 'tranTime',title: '交易时间'},
                {field: 'tranType',title: '交易类型'},
                {field: 'tradeAmount',title: '交易金额'},
                {field: 'ccy',title: '币种'},
                {field: 'actualBalAmt',title: '交易后余额'},
                {field: 'balType',title: '余额类型'},
                {field: 'crDrMaintInd',title: '借贷标志'},
                {field: 'reverse',title: '冲正标识'},
                {field: 'reversalTranType',title: '冲正交易类型'},
                {field: 'postDate',title: '入账日期'},
                {field: 'tranDesc',title: '交易描述'},
                {field: 'previousBalAmt',title: '上次余额'},
                {field: 'crDrPrevious',title: '上次余额的借贷标志'},
                {field: 'effectDate',title: '生效日期'},
                {field: 'tfrAcctName',title: '对方户名'},
                {field: 'othBankCode',title: '对方行号'},
                {field: 'othBankName',title: '对方行名'},
                {field: 'status',title: '状态'},
                {field: 'statusInfo',title: '状态描述'},
                {field: 'tranCode',title: '交易码'},
                {field: 'tfrAcctType',title: '引用账户类型'},
                {field: 'tfrAcctNo',title: '引用账户号码'}]
            };
            var _n = new Date();
            var initStart = new Date(_n.getTime()-2592000000);
            $('#startTime').val(initStart.format("yyyy-MM-dd"));
            $('#endTime').val(_n.format("yyyy-MM-dd"));
            $.table.init(options);
        });

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