@{
    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="ApplyNo" 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="MakerCode" 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" 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="StoreNo" 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="StoreName" 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="StoreMakerCode" 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="ExpressNo" 
                                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="SwapSnExpand" 
                                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="SendSn" 
                                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="StoreManager" 
                                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="ApplyTimeData" id="ApplyTime"
                            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>
                
                    @{Dictionary<string, string> KqProductBrandDic = new MySystem.DictionaryClass().getKqProductBrandDic();}
                    <div class="layui-inline">
                        <label class="layui-form-label">产品类型</label>
                        <div class="layui-input-inline">
                            <select id="BrandId" name="BrandId" lay-search="">
                                <option value="">全部...</option>
                                @foreach (string key in KqProductBrandDic.Keys)
                                {
                                <option value="@key">@KqProductBrandDic[key]</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="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="DeliveryType" name="DeliveryType" 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="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="StatusSelect" name="StatusSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">待审核</option>
                                <option value="1">申请成功</option>
                                <option value="2">申请失败</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="ExportExcel">
                                <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="ApplyCount">0</span>　|　发货机具数：<span style="color: #f00;" id="SendCount">0</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-form"></i>详情</a>
                    @if (RightInfo.Contains("," + right + "_audit,"))
                    {
                        @* <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="send"><i class="layui-icon layui-icon-edit"></i>审核发货</a> *@
                        @("{{#if (d.Status == 0){ }}")
                        <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 + "_cancel,"))
                    {
                        @* <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="cancel"><i class="layui-icon layui-icon-edit"></i>取消订单</a> *@
                        @("{{#if (d.Status == 0){ }}")
                        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="cancel"><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/MachineApply_Admin.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
    <script>
        
    </script>
</body>
</html>