@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;

}
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>创客订单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
    <script src="/admin/js/jquery-1.10.1.min.js"></script>
    <style>
        .layui-input-inline {
            width: 175px !important;
        }

        .layui-form-label {
            width: 115px !important;
        }

        .layui-inline {
            margin-right: 0px !important;
        }

        .w100 {
            width: 100px !important;
        }

        .ml50 {
            margin-left: 50px !important;
        }

        tbody .layui-table-cell {
            height: 60px !important;
        }
    </style>
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">平台订单号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="OrderNo" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">渠道订单号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="TradeNo" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">收件人姓名</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="RealName" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">收件人电话</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="Mobile" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">创客编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="UserIdMakerCode" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">创客姓名</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="UserIdRealName" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">仓库编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreIdStoreNo" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">仓库名称</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreIdStoreName" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">仓库联系人</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreContact" placeholder=""
                                autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">仓库归属创客编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreUserIdMakerCode" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">仓库归属创客姓名</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreUserIdRealName" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">快递单号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="ErpCode" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">SN</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="SnNos" placeholder="" autocomplete="off">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">支付时间</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" readonly name="PayDateData" id="PayDate"
                                placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">下单时间</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" readonly name="CreateDateData" id="CreateDate"
                                placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">发货时间</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" readonly name="SendDateData" id="SendDate"
                                placeholder="" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">支付渠道</label>
                        <div class="layui-input-inline">
                            <select id="PayModeSelect" name="PayModeSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="1">支付宝</option>
                                <option value="2">微信</option>
                                <option value="3">账户余额</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">订单状态</label>
                        <div class="layui-input-inline">
                            <select id="StatusSelect" name="StatusSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="-1">已取消</option>
                                <option value="1">待发货</option>
                                <option value="2">已完成</option>
                                <option value="3">已发货</option>
                                <option value="4">已退款</option>
                            </select>
                        </div>
                    </div>
                    @* <div class="layui-inline">
                        <label class="layui-form-label">退款状态</label>
                        <div class="layui-input-inline">
                            <select id="RefundStatusSelect" name="RefundStatusSelect" lay-search="">
                                <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-inline">
                            <select id="DeliveryTypeSelect" name="DeliveryTypeSelect" lay-search="">
                                <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-inline">
                            <select id="SendStatusSelect" name="SendStatusSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="-1">已驳回</option>
                                <option value="0">未发货</option>
                                <option value="1">已发货</option>
                                <option value="2">已退货</option>
                            </select>
                        </div>
                    </div> *@
                    @{
                        Dictionary<string, string> ProductsDic = new MySystem.DictionaryClass().getProductsDic();
                    }
                    <div class="layui-inline">
                        <label class="layui-form-label">产品类型</label>
                        <div class="layui-input-inline">
                            <select id="ProductIdSelect" name="ProductIdSelect" lay-search="">
                                <option value="">全部...</option>
                                @foreach (string key in ProductsDic.Keys)
                                {
                                    <option value="@key">@ProductsDic[key]</option>
                                }
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">仓库类型</label>
                        <div class="layui-input-inline">
                            <select id="StoreTypeSelect" name="StoreTypeSelect" lay-search="">
                                <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-inline">
                            <select id="PayStatusSelect" name="PayStatusSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">未支付</option>
                                <option value="1">支付成功</option>
                                <option value="2">支付失败</option>
                                <option value="3">支付锁定中</option>
                                <option value="4">支付处理中</option>
                            </select>
                        </div>
                    </div> *@
                    @{
                        Dictionary<string, string> TopUserDic = new MySystem.DictionaryClass().getTopUserDic();
                    }
                    <div class="layui-inline">
                        <label class="layui-form-label">顶级创客</label>
                        <div class="layui-input-inline">
                            <select id="TopUserId" name="TopUserId" lay-search="">
                                <option value="">全部...</option>
                                @foreach (string key in TopUserDic.Keys)
                                {
                                    <option value="@key">@TopUserDic[key]</option>
                                }
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline ml50">
                        <button class="layui-btn" lay-submit lay-filter="LAY-list-front-search">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
                        </button>
                        <button class="layui-btn" lay-submit lay-filter="LAY-list-front-searchall">
                            <i class="layui-icon layui-icon-list layuiadmin-button-btn"></i>全部
                        </button>
                        @if (RightInfo.Contains("," + right + "_export,"))
                        {
                            <button class="layui-btn" data-type="ExportsExcel"><i
                                    class="layui-icon layui-icon-export layuiadmin-button-btn"></i>导出</button>
                        }
                    </div>
                </div>
            </div>

            <div class="layui-card-body">
                <blockquote class="layui-elem-quote layui-text">
                    支付成功总金额(元)：<span style="color: #f00;" id="SuccessAmount">0.00</span>　|　支付失败总金额(元)：<span
                        style="color: #f00;" id="FailAmount">0.00</span>
                </blockquote>
                <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
                <script type="text/html" id="table-list-tools">
                    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="detail"><i class="layui-icon layui-icon-read"></i>详情</a>
                    @if (RightInfo.Contains("," + right + "_send,"))
                    {
                        @Html.Raw("{{#if (d.Status == 1){ }}")
                            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="send"><i class="layui-icon layui-icon-edit"></i>发货</a>
                        @("{{#} }}")
                    }
                    @if (RightInfo.Contains("," + right + "_return,"))
                    {
                        @Html.Raw("{{#if (d.RefundStatus == 0 && d.PayStatus == 1 && d.Sort == 0 && d.TotalPrice > 0){ }}")
                            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="return"><i class="layui-icon layui-icon-edit"></i>退款</a>
                        @("{{#} }}")
                    }
                    @*<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="prize100"><i class="layui-icon layui-icon-edit"></i>查看推荐奖</a>*@
                </script>
            </div>
        </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script src="/layuiadmin/modules_main/Orders_Admin.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
    <script>

    </script>
</body>

</html>