@using MySystem.Models;
@{Orders editData = ViewBag.data as Orders;}
@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;
    List<Dictionary<string, object>> ProductList = ViewBag.ProductList as List<Dictionary<string, object>>;
}
<!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">
    <script src="/admin/js/jquery-1.10.1.min.js"></script>
    <script src="/admin/js/LAreaData2.js"></script>
    <style>
        .layui-form-label{
            width: 155px !important;
        }
    </style>
</head>
<body>

    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">        
        <div class="layui-card">
          <div class="layui-card-body">
            <div class="layui-tab" lay-filter="mytabbar">
                <div class="layui-tab-content mt20">
                    <div class="layui-tab-item layui-show">
                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>订单信息</legend>
                        </fieldset>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">创客编号</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.MakerCode
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">创客姓名</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.RealName
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">收件人姓名</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.RealName
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">收件人联系电话</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.Mobile
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">收货地址</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @(editData.Areas+editData.Address)
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">订单金额(元)</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.TotalPrice
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">订单号</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.OrderNo
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">支付状态</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.PayStatus
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">渠道交易流水号</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.TradeNo
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">渠道返回实际金额(元)</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.ChannelAmount
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">支付渠道编号</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.PayModeCode
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">支付渠道名称</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.PayMode
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">渠道返回编码</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.ReturnCode
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">渠道返回信息</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.ReturnMsg
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">支付时间</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.PayDate
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">发货状态</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.SendStatus
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">快递单号</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.ErpCode
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">快递名称</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.ErpName
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">提货类型</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @ViewBag.DeliveryType
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">订单备注</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.Remark
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">SN明细</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @editData.SnNos
                                </div>
                            </div>
                        </div>
                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>订单商品</legend>
                        </fieldset>
                        @foreach(Dictionary<string, object> item in ProductList)
                        {
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">商品编号</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["ProductCode"]
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">商品名称</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["ProductName"]
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">商品数量</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["ProductCount"]
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">商品单价(元)</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["ProductPrice"]
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">商品简介</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["SeoKeyword"]
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">备注</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["SeoDescription"]
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">商品小图</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    <img src="@item["ProductPhoto"]" width="180" />
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">商品规格</label>
                                <div class="layui-input-inline" style="padding-top: 8px;">
                                    @item["NormDetail"]
                                </div>
                            </div>
                        </div>
                        }
                    </div>

                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <input type="button" lay-submit lay-filter="LAY-list-front-submit" id="LAY-list-front-submit" value="确认">
            </div>
          </div>
        </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script src="/other/oss/upload-min@(MySystem.OssHelper.Instance.OssStatus ? "-oss" : "").js"></script>
    <script src="/other/mybjq/kindeditor-min.js"></script>
    <script src="/other/mybjq/lang/zh_CN.js"></script>
    <script>
        
        
        //编辑器
        KindEditor.ready(function (K) {
            
        });

        var ids = "";
        function getChildren(obj) {
            $.each(obj, function (index, value) {
                var id = obj[index].id;
                ids += id + ",";
                var children = obj[index].children;
                if (children) {
                    getChildren(children);
                }
            });
        }

        var tree;
        var element;
        var upload;
        layui.config({
            base: '/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
            var $ = layui.$
                , form = layui.form
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate
                , croppers = layui.croppers
                , transfer = layui.transfer
                , util = layui.util;
            tree = layui.tree;
            element = layui.element;
            upload = layui.upload;
        
            //Hash地址的定位
            var layid = location.hash.replace(/^#test=/, '');
            element.tabChange('test', layid);
            element.on('tab(test)', function (elem) {
                location.hash = 'test=' + $(this).attr('lay-id');
            });
    
            //日期
            

            //上传文件
            

            //穿梭框
            

            //TreeView，比如权限管理
            

            //省市区
            
        })

    </script>
</body>
</html>