<!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="orderId"/>
                            </li>
                            <li>
                                <label>商户编号：</label>
                                <input type="text" name="merId"/>
                            </li>
                            <li>
                                <label>应用ID：</label>
                                <input type="text" name="appId"/>
                            </li>
                            <li>
                                <label>支付渠道(WECHAT：微信；ALIPAY：支付宝)：</label>
                                <input type="text" name="payChannel"/>
                            </li>
                            <li>
                                <label>渠道编码：</label>
                                <input type="text" name="qudaoCode"/>
                            </li>
                            <li>
                                <label>卖家支付宝用户号：</label>
                                <input type="text" name="sellerId"/>
                            </li>
                            <li>
                                <label>买家支付宝用户号：</label>
                                <input type="text" name="buyerId"/>
                            </li>
                            <li>
                                <label>用户编号：</label>
                                <input type="text" name="userId"/>
                            </li>
                            <li>
                                <label>微信/支付宝支付订单号：</label>
                                <input type="text" name="transactionId"/>
                            </li>
                            <li>
                                <label>支付状态(0：交易成功；1：交易失败)：</label>
                                <input type="text" name="transState"/>
                            </li>
                            <li>
                                <label>随机字符串：</label>
                                <input type="text" name="nonceStr"/>
                            </li>
                            <li>
                                <label>业务结果,微信:SUCCESS/FAIL：</label>
                                <input type="text" name="resultCode"/>
                            </li>
                            <li>
                                <label>是否关注公众账号(Y-关注，N-未关注)：</label>
                                <input type="text" name="isSubscribe"/>
                            </li>
                            <li>
                                <label>订单金额/申请退款金额：</label>
                                <input type="text" name="totalFee"/>
                            </li>
                            <li>
                                <label>应结订单金额/退款金额/实收金额：</label>
                                <input type="text" name="settlementTotalFee"/>
                            </li>
                            <li>
                                <label>现金支付金额/付款金额：</label>
                                <input type="text" name="cashFee"/>
                            </li>
                            <li>
                                <label>集分宝金额：</label>
                                <input type="text" name="pointAmount"/>
                            </li>
                            <li>
                                <label>微信退款单号：</label>
                                <input type="text" name="refundId"/>
                            </li>
                            <li>
                                <label>商户退款单号：</label>
                                <input type="text" name="outRefundNo"/>
                            </li>
                            <li>
                                <label>退款金额：</label>
                                <input type="text" name="refundFee"/>
                            </li>
                            <li>
                                <label>退款入账账户：</label>
                                <input type="text" name="refundRecvAccout"/>
                            </li>
                            <li>
                                <label>退款资金来源：</label>
                                <input type="text" name="refundAccount"/>
                            </li>
                            <li>
                                <label>手机号：</label>
                                <input type="text" name="mobile"/>
                            </li>
                            <li>
                                <label>支付完成时间,格式为yyyyMMddHHmmss：</label>
                                <input type="text" name="transTime"/>
                            </li>
                            <li>
                                <label>统一下单接口返回码，微信：SUCCESS/FAIL：</label>
                                <input type="text" name="returnCode"/>
                            </li>
                            <li>
                                <label>统一下单接口返回码信息：</label>
                                <input type="text" name="returnMsg"/>
                            </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="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="business:payment:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="business:payment:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="business:payment:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="business:payment:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('business:payment:edit')}]];
        var removeFlag = [[${@permission.hasPermi('business:payment:remove')}]];
        var prefix = ctx + "business/payment";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "支付",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'orderId',
                    title: '订单编号'
                },
                {
                    field: 'merId',
                    title: '商户编号'
                },
                {
                    field: 'appId',
                    title: '应用ID'
                },
                {
                    field: 'payType',
                    title: '支付类型'
                },
                {
                    field: 'payChannel',
                    title: '支付渠道(WECHAT：微信；ALIPAY：支付宝)'
                },
                {
                    field: 'qudaoCode',
                    title: '渠道编码'
                },
                {
                    field: 'sellerId',
                    title: '卖家支付宝用户号'
                },
                {
                    field: 'buyerId',
                    title: '买家支付宝用户号'
                },
                {
                    field: 'userId',
                    title: '用户编号'
                },
                {
                    field: 'transactionId',
                    title: '微信/支付宝支付订单号'
                },
                {
                    field: 'transState',
                    title: '支付状态(0：交易成功；1：交易失败)'
                },
                {
                    field: 'nonceStr',
                    title: '随机字符串'
                },
                {
                    field: 'signType',
                    title: '签名类型'
                },
                {
                    field: 'resultCode',
                    title: '业务结果,微信:SUCCESS/FAIL'
                },
                {
                    field: 'isSubscribe',
                    title: '是否关注公众账号(Y-关注，N-未关注)'
                },
                {
                    field: 'tradeType',
                    title: '交易类型'
                },
                {
                    field: 'bankType',
                    title: '付款银行'
                },
                {
                    field: 'totalFee',
                    title: '订单金额/申请退款金额'
                },
                {
                    field: 'settlementTotalFee',
                    title: '应结订单金额/退款金额/实收金额'
                },
                {
                    field: 'cashFee',
                    title: '现金支付金额/付款金额'
                },
                {
                    field: 'pointAmount',
                    title: '集分宝金额'
                },
                {
                    field: 'cashFeeType',
                    title: '现金支付货币类型，默认人民币：CNY'
                },
                {
                    field: 'refundId',
                    title: '微信退款单号'
                },
                {
                    field: 'outRefundNo',
                    title: '商户退款单号'
                },
                {
                    field: 'refundFee',
                    title: '退款金额'
                },
                {
                    field: 'refundRecvAccout',
                    title: '退款入账账户'
                },
                {
                    field: 'refundAccount',
                    title: '退款资金来源'
                },
                {
                    field: 'mobile',
                    title: '手机号'
                },
                {
                    field: 'signStr',
                    title: '签名串'
                },
                {
                    field: 'transTime',
                    title: '支付完成时间,格式为yyyyMMddHHmmss'
                },
                {
                    field: 'returnCode',
                    title: '统一下单接口返回码，微信：SUCCESS/FAIL'
                },
                {
                    field: 'returnMsg',
                    title: '统一下单接口返回码信息'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>