<!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" name="keyword" placeholder="请输入账户名称"/>
                        </li>
                        <li>
                            <label>资金流向：</label>
                            <select name="fundFlowType">
                                <option value="">所有</option>
                                <option value="1">支出</option>
                                <option value="2">收入</option>
                            </select>
                        </li>
                        <li>
                            <label>交易类型：</label>
                            <select name="bankTradeType" th:with="type=${@dict.getType('bankTradeType')}">
                                <option value="">所有</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </li>
                    </ul>
                    <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" />
<th:block th:include="include :: jquery-cxselect-js" />
<script th:inline="javascript">
    var removeFlag = [[${@permission.hasPermi('per-wallet:remove')}]];
    var prefix = ctx + "manage/com-wallet";

    $(function() {
        var options = {
            url: prefix + "/page-com-wallet-reconciliation-list",
            columns: [
                {field: 'tradeSerialNo', title: '交易流水号'},
                {field: 'bankTradeTypeGS', title: '交易类型'},
                {field: 'tradeStatus', title: '交易状态'},
                {field: 'tradeStartTime', title: '创建时间'},
                {field: 'tradeAmount', title: '交易金额'},
                {field: 'expendAccountName', title: '出账方户名'},
                {field: 'expendAccountNo', title: '出账方账号'},
                {field: 'expendBank', title: '出账方银行'},
                {field: 'incomeAccountName', title: '入账方户名'},
                {field: 'incomeAccountNo', title: '入账方账号'},
                {field: 'incomeBank', title: '入账方银行'},
                {field: 'incomeCerNo', title: '入账方证件号'},
                {field: 'remark', 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>