<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <!-- 移动设备 viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <jsp:include page="../../common.jsp"/>
    <link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css">
    <script type="text/javascript">
        require("js/merchantOrder/orderRefund.js");
        requireCss("css/ySelect.css");
    </script>
    <%--<script type="text/javascript" src="https://files.cnblogs.com/files/liuchenxing/jquery.table2excel.js"></script>--%>
    <style type="text/css">
        .layui-table th {
            text-align: center;
        }
    </style>
</head>
<body>
<div class="row animated fadeInRight" style="margin: 0;">
    <div class="wrapper wrapper-content mt5 right-content ml5 mr5">
        <div class="toolbar-panel bdd">
            <div class="toolbar-box">
                <div class="toolbar-head clearfix lgraybg pt5 pb10 pl10 bdbd">
                    <!-- 顶部按钮 -->
<%--                    onclick="queryMerchantOrder()"--%>
                    <div class="buttons fl">
                        <a class="layui-btn layui-btn-sm fa fa-search f13"  href="javascript:void(0);"
                           onclick="queryMerchantOrder()"><span>搜索</span></a>
                        <!-- <a class="btn btn-primary fa fa-plus f13 add" href="javascript:void(0);" onclick="initAddMerchantOrder()"><span>添加</span></a>
                        <a class="btn btn-primary fa fa-edit f13" href="javascript:void(0);" onclick="initEditMerchantOrder()"><span>编辑</span></a>
                        <a class="btn btn-primary fa fa-remove f13 delete" href="javascript:void(0);" onclick="initBatchDeleteMerchantOrder()"><span>删除</span></a>-->
                    </div>
                    <div class="tools fr">
                        <a href="javascript:void(0);" class="collapse dblock f14 dgray mr5">
                            <i class="fa-2x fa fa-angle-double-up"></i>
                        </a>
                    </div>
                </div>
            </div>
            <!--搜索条件 -->
            <div class="toolbar-body">

                <form class="layui-form" action="" style="margin-top: 10px">
                    <%--                    <div class="row pt10 pb10 whitebg ml0 mr0">--%>
                    <!-- <span class="dlblock w100 textr">订单号：</span>
                    <span class="bdc pt6 pb6 pl6 pr5 w180 dlblock">
                        <input type="text" placeholder="请输入内容" id="orderNumber">
                    </span>  -->
                    <!-- <span class="dlblock w100 textr">支付方式：</span>
                    <span class="bdc pt6 pb6 pl6 pr5 w180 dlblock">
                        <input type="text" placeholder="请输入内容" id="payTypeCodeList">
                    </span>  -->
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">行业类型：</label>
                            <div class="layui-input-inline">
                                <select name="orderType" id="orderType">
                                    <option value="">请选择支付方式</option>
                                    <option value="1">主扫</option>
                                    <option value="2">被扫</option>
                                    <option value="3">会员充值</option>
                                    <option value="4">POS</option>
                                </select>
                            </div>
                        </div>
                        <%--                        <span class="dlblock w100 textr">订单类型：</span>--%>
                        <%--                        <select class="bdc pt6 pb6 pl6 pr5 w180 dlblock" style="width: 193px" id="orderType">--%>
                        <%--                            <option value="">请选择支付方式</option>--%>
                        <%--                            <option value="1">主扫</option>--%>
                        <%--                            <option value="2">被扫</option>--%>
                        <%--                            <option value="3">会员充值</option>--%>
                        <%--                            <option value="4">POS</option>--%>
                        <%--                        </select>--%>
                        <div class="layui-inline">
                            <label class="layui-form-label">时间：</label>
                            <div class="layui-input-inline">
                                <select name="timeStatus" id="timeStatus">
                                    <option value="">请选择</option>
                                    <option value="1">今天</option>
                                    <option value="2">昨天</option>
                                    <option value="3">一个星期</option>
                                    <option value="4">近一个月</option>
                                    <option value="5">近三个月</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">支付方式：</label>
                            <div class="layui-input-inline">
                                <select name="payTypeCodeList" id="payTypeCodeList" multiple="multiple">
                                    <option value="">请选择</option>
                                    <option value="wechatPay">微信</option>
                                    <option value="aliPay">支付宝</option>
                                    <option value="leshuaPay0">乐刷支付宝支付</option>
                                    <option value="leshuaPay1">乐刷微信支付</option>
                                    <option value="leshuaPay2">乐刷刷卡支付</option>
                                </select>
                            </div>
                        </div>
                        <button type="button" id="gofile1"
                                style="right: 30px;padding: 5px;bottom: 0px;background-color: #ff5e5f;color: #fff;border-radius: 8px;">
                            批量导出
                        </button>
                    </div>
                        <%--						<span class="dlblock w100 textr">支付方式：</span>--%>
                        <%--						<select class="form-control f12 w180 textc payTypeCodeList" id="payTypeCodeList"--%>
                        <%--								multiple="multiple">--%>
                        <%--							<option value="wechatPay">微信</option>--%>
                        <%--							<option value="aliPay">支付宝</option>--%>
                        <%--							<option value="leshuaPay0">乐刷支付宝支付</option>--%>
                        <%--							<option value="leshuaPay1">乐刷微信支付</option>--%>
                        <%--							<option value="leshuaPay2">乐刷刷卡支付</option>--%>
                        <%--						</select>--%>
                        <%--                        <span class="dlblock w100 textr">时间：</span>--%>
                        <%--                        <select class="bdc pt6 pb6 pl6 pr5 w180 dlblock" style="width: 193px" id="timeStatus">--%>
                        <%--                            <option value="">请选择</option>--%>
                        <%--                            <option value="1">今天</option>--%>
                        <%--                            <option value="2">昨天</option>--%>
                        <%--                            <option value="3">一个星期</option>--%>
                        <%--                            <option value="4">近一个月</option>--%>
                        <%--                            <option value="5">近三个月</option>--%>
                        <%--                        </select>--%>

                        <%--  <span class="dlblock w100 textr">员工：</span>
                         <select class="form-control f12 w180 textc staffCodeList" id="staffCodeList" multiple="multiple">
                            <option value="">请选择</option>
                            <c:forEach items="${userAppList }" var="ua">
                            <option value="${ua.userId }">${ua.userName }</option>
                            </c:forEach>
                        </select> --%>

                        <%--  <span class="dlblock w100 textr">门店：</span>
                        <select class="form-control f12 w180 textc storeIdList" id="storeIdList" multiple="multiple">
                             <option value="">请选择</option>
                             <c:forEach items="${merchantStoreList }" var="ms">
                             <option value="${ms.storeId }">${ms.storeName }</option>
                             </c:forEach>
                         </select> --%>
                        <!-- <input type="text" id="storeIdList" placeholder="请输入内容"/> -->
                </form>
            </div>
        </div>
    </div>
    <!-- 表单数据 -->
    <div class="mb20 mt10">
        <div class="whitebg pl10 pr10">
            <table class="layui-table" id="ExTable">
                <thead>
                <tr>
                    <th class="textc">
                        <div class="checker" id="allCheck">
                            <span class=""><input type="checkbox" value=""></span>
                        </div>
                    </th>
                    <th class="textc">序号</th>
                    <th class="textc noExl">id</th>
                    <th class="textc ">订单号</th>
                    <th class="textc ">交易流水号</th>
                    <!-- <th class="textc ">merchantCode</th> -->
                    <th class="textc ">商户简称</th>
                    <th class="textc ">类型</th>
                    <!-- <th class="textc wp15">payTypeCode</th> -->
                    <th class="textc ">支付方式名称</th>
                    <th class="textc ">消费金额</th>
                    <!-- <th class="textc wp15">memberCode</th> -->
                    <!-- <th class="textc ">storeId</th> -->
                    <th class="textc ">交易时间</th>
                    <!-- <th class="textc wp15">staffCode</th> -->
                    <th class="textc ">交易状态</th>
                    <!--  <th class="textc noExl">操作</th>  -->
                </tr>
                </thead>
                <!-- 数据体 -->
                <tbody id="data_content">
                </tbody>
            </table>

            <!-- footer -->
            <div class="clearfix mb10 pb20">
                <div class="layui-tab-item fr">
                    <span class="dlblock vm">当前第<span class="now" id="currPage"></span>页 , </span>
                    <span class="dlblock vm">共<span class="count" id="pageCount"></span>页 </span>
                    <div class="pagination dlblock vm" id="pagination"></div>
                    <span class="dlblock vm ml10">总记录数<span class="now" id="totalCount"></span>条</span>
                </div>
            </div>
            <input type="hidden" id="staffTypeSession" value="${sessionScope.staffTypeSession }">
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    //form表单样式
    layui.use(['layer', 'form', 'table'], function () {
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        form.render();
    });
    $('.payTypeCodeList').ySelect();
    $('.storeIdList').ySelect();
    $('.staffCodeList').ySelect();
    $("#gofile1").on("click", function () {
        window.location.href = ctx + '/merchantOrder/dowOrderRefundExcel';
    });
</script>

</html>

