<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
</head>
<body style="position: absolute;top: 0;bottom: 0;left: 0;right: 0;">
<input type="hidden" id="org_id" th:value="${onLineUser.orgId}"/>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="padding:0;">
            <div class="layui-form-item border-b">
                <div class="layui-inline">
                    <label class="layui-form-label">订单号</label>
                    <div class="layui-input-block">
                        <input type="text" name="orderNo" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">付款方式</label>
                    <div class="layui-input-block">
                        <select id="channel_code" name="channelCode">
                            <option value="">全部</option>
                            <option value="wxPay">微信支付</option>
                            <option value="aliPay">支付宝支付</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">付款状态</label>
                    <div class="layui-input-block">
                        <select id="pay_status" name="payStatus">
                            <option value="">全部</option>
                            <option value="1">未支付</option>
                            <option value="2">已支付</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">是否退款</label>
                    <div class="layui-input-block">
                        <select id="refund_input" name="refund">
                            <option value="">全部</option>
                            <option value="0">无退款</option>
                            <option value="1">已退款</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">创建时间</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input date-icon" id="create_date" placeholder="请选择"
                               autocomplete="off">
                        <input type="hidden" id="begin_date" name="beginDate"/>
                        <input type="hidden" id="end_date" name="endDate"/>
                    </div>
                </div>
                <div class="layui-inline" style="margin-left: 38px;">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="query">查询</button>
                    <button class="layui-btn  layui-btn-primary" lay-submit lay-filter="reset">重置</button>
                </div>
            </div>

            <!-- 表格+头部按钮 -->
            <div class="layui-card-body" style="padding:0;">
                <div style="padding-bottom: 10px;">
                </div>
                <table id="table_id" lay-filter="table_event"></table>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="table-useradmin-webuser">
        </script>

<!-- 付款状态 -->
<script type="text/html" id="payStatus">
    {{#  if(d.payStatus == 0){ }}
    <span>未付款</span>
    {{#  }else if(d.payStatus == 1){ }}
    <span>付款中</span>
    {{#  }else if(d.payStatus == 2){ }}
    <span>已付款</span>
    {{#  }else { }}
    <span>未知</span>
    {{# } }}
</script>

<!-- 删除状态 -->
<script type="text/html" id="status">
    {{#  if(d.status == -1){ }}
    <span>已删除</span>
    {{#  }else if(d.status == 0){ }}
    <span>正常</span>
    {{# }else { }}
    <span>未知</span>
    {{# } }}
</script>

<!-- 是否退款 -->
<script type="text/html" id="refund">
    {{#  if(d.refund == 0){ }}
    <span>无退款</span>
    {{#  }else if(d.refund == 1){ }}
    <span>已退款</span>
    {{# }else { }}
    <span>未知</span>
    {{# } }}
</script>

<!-- javascript -->
<script th:src="@{'/layui/layui.js'}"></script>
<script>
    layui.config({
        base: '/' //静态资源所在路径
    });
</script>
<script th:src="@{'/js/estate/pay-certificate-manage.js'}"></script>
</body>
</html>
