Exemple #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"

            ViewData["Title"] = "会员列表";
            Layout            = Model.shopGuid == "all" ? AdminLayout.Pjax(HttpContext) : "~/Pages/FytAdmin/_Layout.cshtml";

#line default
#line hidden
            BeginContext(204, 364, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(568, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3a27e9dbf7184c69a8edf97e2dc24763", async() => {
                BeginContext(585, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(605, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 16 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"

            if (Model.shopList != null)
            {
                foreach (var item in Model.shopList)
                {
#line default
#line hidden
                    BeginContext(808, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(840, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "73f9531db2d24ab6a6320f3586736115", async() => {
                        BeginContext(868, 13, false);
#line 21 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"
                        Write(item.ShopName);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 21 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(890, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 22 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(973, 2126, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common','form'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form =");
            WriteLiteral(@" layui.form;
                form.render('select');
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: '/api/shops/userlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'userName', title: '姓名', sort: true, fixed: 'left' },
                            { field: 'mobile', title: '手机号码' },
                            { field: 'birthday', title: '生日' },
                            { field: 'points', title: '积分数', sort: true  },
                            { field: 'sex', title: '性别', sort: true },
                            { field: 'regDate', title: '注册时间', sort: true  },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                 ");
            WriteLiteral("   id: \'tables\',\r\n                    where: {\r\n                        guid:\"");
            EndContext();
            BeginContext(3100, 14, false);
#line 67 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"
            Write(Model.shopGuid);

#line default
#line hidden
            EndContext();
            BeginContext(3114, 709, true);
            WriteLiteral(@"""
                    }
                });
                table.on('sort(tool)', function (obj) {
                    var e = layer.load(2, { shade: [.05, '#000'] });
                    table.reload('tables', {
                        initSort: obj,
                        page: {
                            curr: 1
                        },
                        where: {
                            field: obj.field,
                            order: obj.type
                        },
                        done: function () {
                            layer.close(e);
                        }
                    });
                });

                var shopGuid = '");
            EndContext();
            BeginContext(3824, 14, false);
#line 87 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"
            Write(Model.shopGuid);

#line default
#line hidden
            EndContext();
            BeginContext(3838, 3639, true);
            WriteLiteral(@"', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    guid: shopGuid
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        if (shopGuid == 'all' || !shopGuid) {
                            os.warning('请选择商家~'); return;
                        }
                        shopGuid = $(""#shops"").val();
                        os.Open('添加会员', '/fytadmin/shop/usermodify?shop=' + shopGuid, '600px', '450px', function () {
                            active.reloa");
            WriteLiteral(@"d();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/shops/deleteuser/', { parm: str }, function (res) {
                                layer.close(loadindex);
                          ");
            WriteLiteral(@"      if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                if (shopGuid != 'all') {
                    $(""#shops"").val(shopGuid);
                    form.render('select');
                }
                table.on('toolbar(tool)', function (obj) {
                    active[obj.event] ? active[obj.event].call(this) : '';
                });
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    shopGuid = $(""#shops"").val();
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(t");
            WriteLiteral(@"ool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑会员', '/fytadmin/shop/usermodify/?guid=' + data.guid, '600px', '450px', function () {
                            active.reload();
                        });
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>

");
            EndContext();
        }
Exemple #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"

            ViewData["Title"] = "返货管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(143, 391, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-col-220 {
            width: 400px;
        }

        .right-col-body {
            left: 400px;
        }
    </style>
    <div class=""layui-col-220"" id=""app"">
        <div class=""layui-nav-title"">返货订单列表   </div>
        <ul class=""fyt-utree"">
            <li v-for=""it in list"" v-cloak :class=""{active: activeName == it.guid}"" ");
            EndContext();
            BeginContext(535, 73, true);
            WriteLiteral("@click=\"selected(it.guid)\">\r\n                <a class=\"layui-elip title\" ");
            EndContext();
            BeginContext(609, 620, true);
            WriteLiteral(@"@click=""getList(it)"">{{it.number}}——{{it.shopName}}</a>
                <a class=""layui-elip sums""><span class=""layui-badge layui-bg-blue"">{{it.counts}}</span></a>
            </li>
        </ul>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <div class=""layui-form list-search"">
                <div class=""layui-inline"">
                    <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
                </div>
                <div class=""layui-inline"">
                    <select id=""shops"" lay-search="""">
                        ");
            EndContext();
            BeginContext(1229, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5b3c9a2ce0cb4232ab2f9a82871e68b8", async() => {
                BeginContext(1246, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1266, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 35 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"

            foreach (var item in Model.shopList)
            {
#line default
#line hidden
                BeginContext(1393, 32, true);
                WriteLiteral("                                ");
                EndContext();
                BeginContext(1425, 50, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1350f45e89ef44eaa8e108f134cafb06", async() => {
                    BeginContext(1453, 13, false);
#line 38 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                    Write(item.ShopName);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 38 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1475, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 39 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
            }


#line default
#line hidden
            BeginContext(1535, 165, true);
            WriteLiteral("                    </select>\r\n                </div>\r\n                <div class=\"layui-inline\">\r\n                    <select id=\"branks\">\r\n                        ");
            EndContext();
            BeginContext(1700, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0c40c461af384a2bb751eeb4b4585ffe", async() => {
                BeginContext(1717, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1737, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 46 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(1864, 32, true);
                WriteLiteral("                                ");
                EndContext();
                BeginContext(1896, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3db46dd14c464ea7adb5d174a89a621f", async() => {
                    BeginContext(1924, 9, false);
#line 49 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 49 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                WriteLiteral(item.Name);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1942, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 50 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
            }


#line default
#line hidden
            BeginContext(2002, 376, true);
            WriteLiteral(@"                    </select>
                </div>
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch"">
                    <i class=""layui-icon layui-icon-search""></i> 搜索
                </button>
            </div>
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(2378, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "34bf28c0116c411fa3d2b29e7826a221", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2451, 3789, true);
            WriteLiteral(@"
    <script>
        var funTool, vm = new Vue({
            el: ""#app"",
            data: {
                list: [],
                curModel: {},
                activeName: '',
                parm: {
                    guid:''
                }
            },
            methods: {
                selected: function (m) {
                    console.log(m);
                    this.activeName = m;
                },
                getList: function (m) {
                    funTool.getGoodsSku(m);
                }              
            }
        });
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'form', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
  ");
            WriteLiteral(@"                  elem: '#tablist',
                    url: '/api/stock/return/goods',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 200, title: '条形码', fixed: 'left' },
                            { field: 'brandName', title: '品牌' },
                            { field: 'styleName', title: '款式' },
                            { field: 'seasonName', width: 150, title: '季节' },
                            { field: 'counts', title: '返货数' },
                            { field: 'summary', title: '返货原因' }
                        ]
                    ],
                    page: true,
                    limit: 20,
                    id: 'tables'
                });

                var orderguid = '', shopGuid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                         ");
            WriteLiteral(@"       page: {
                                    curr: 1
                                },
                                where: {
                                    guid: orderguid,
                                    key: $('#key').val(),
                                    brank: $('#branks').val(),
                                    shopGuid: $(""#shops"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        vm.parm.guid = $(""#shops"").val();
                        active.reload();
                        funTool.orderPage();
                    }                    
                };

                funTool = {
                    getGoodsSku: function (obj) {
                        orderguid = obj.guid;
                        shopGuid = obj.shopGuid;
                        active.reload();
                    },
                    orderPage: function () {
   ");
            WriteLiteral(@"                     os.ajax('api/stock/return/order', vm.parm, function (res) {
                            if (res.statusCode === 200) {
                                vm.list = res.data.items;
                            } else {
                                os.error(res.message);
                            }
                        });
                    }
                }
                //初始化入库单管理
                funTool.orderPage();
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
            });
    </script>
</div>

");
            EndContext();
        }
Exemple #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"

            ViewData["Title"] = "采购管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(156, 1026, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            采购日期:
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
            <button style=""margin-left:40px;"" type=""butto");
            WriteLiteral("n\"");
            EndContext();
            BeginWriteAttribute("class", " class=\"", 1182, "\"", 1256, 3);
            WriteAttributeValue("", 1190, "layui-btn", 1190, 9, true);
            WriteAttributeValue(" ", 1199, "layui-btn-sm", 1200, 13, true);
#line 22 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            WriteAttributeValue("", 1212, Model.Type == 1 ? "" :" layui-btn-disabled", 1212, 44, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1257, 1, true);
            WriteLiteral(" ");
            EndContext();
            BeginContext(1260, 30, false);
#line 22 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            Write(Model.Type == 1 ? "" :"disabled");

#line default
#line hidden
            EndContext();
            BeginContext(1291, 113, true);
            WriteLiteral(" data-type=\"toolStatus\"><i class=\"layui-icon layui-icon-cart\"></i> 入库</button>\r\n            <button type=\"button\"");
            EndContext();
            BeginWriteAttribute("class", " class=\"", 1404, "\"", 1478, 3);
            WriteAttributeValue("", 1412, "layui-btn", 1412, 9, true);
            WriteAttributeValue(" ", 1421, "layui-btn-sm", 1422, 13, true);
#line 23 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            WriteAttributeValue("", 1434, Model.Type == 2 ? "" :" layui-btn-disabled", 1434, 44, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1479, 1, true);
            WriteLiteral(" ");
            EndContext();
            BeginContext(1482, 30, false);
#line 23 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            Write(Model.Type == 2 ? "" :"disabled");

#line default
#line hidden
            EndContext();
            BeginContext(1513, 112, true);
            WriteLiteral(" data-type=\"toolStatus\"><i class=\"layui-icon layui-icon-rmb\"></i> 付款</button>\r\n            <button type=\"button\"");
            EndContext();
            BeginWriteAttribute("class", " class=\"", 1625, "\"", 1699, 3);
            WriteAttributeValue("", 1633, "layui-btn", 1633, 9, true);
            WriteAttributeValue(" ", 1642, "layui-btn-sm", 1643, 13, true);
#line 24 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            WriteAttributeValue("", 1655, Model.Type == 3 ? "" :" layui-btn-disabled", 1655, 44, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1700, 1, true);
            WriteLiteral(" ");
            EndContext();
            BeginContext(1703, 30, false);
#line 24 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            Write(Model.Type == 3 ? "" :"disabled");

#line default
#line hidden
            EndContext();
            BeginContext(1734, 947, true);
            WriteLiteral(@" data-type=""toolStatus""><i class=""layui-icon layui-icon-file-b""></i> 到票</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'form', 'laydate'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form
                ,laydate = layui.laydate;
                form.render('select');
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , range: true
                });
                table.render({
                    elem: '#tablist',
                    url: '/api/purchase/purchaselist?types=");
            EndContext();
            BeginContext(2682, 10, false);
#line 47 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Purchase\Index.cshtml"
            Write(Model.Type);

#line default
#line hidden
            EndContext();
            BeginContext(2692, 5086, true);
            WriteLiteral(@"',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'number',width:200, title: '采购单号', sort: true, fixed: 'left' },
                            { field: 'status', title: '入库状态' },
                            { field: 'supplier', title: '供应商', sort: true },
                            { field: 'addDate', title: '采购日期', sort: true },
                            { field: 'money', title: '订单总金额', sort: true },
                            { field: 'deliverDate', title: '交付日期', sort: true },
                            { field: 'deliverCity', title: '交付地点', sort: true },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: true,
                    id: 'tables'
                });

                var guid = '', active = {
                    reload: function () {
                        table.re");
            WriteLiteral(@"load('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    guid: $(""#branks"").val()
                                }
                            });
                    },
                    toolStatus: function () { 
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要变更的采购单~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        var loadindex = layer.load(1, {
                    ");
            WriteLiteral(@"        shade: [0.1, '#000']
                        });
                        os.ajax('api/purchase/modifystatus/', { parm: str }, function (res) {
                            layer.close(loadindex);
                            if (res.statusCode === 200) {
                                active.reload();
                                os.success('变更成功!');
                            } else {
                                os.error(res.message);
                            }
                        });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        os.Open('添加采购单', '/fytadmin/purchase/modify', '1200px', '700px', function () {
                            active.reload();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
 ");
            WriteLiteral(@"                           , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/goods/delbarcode/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                          ");
            WriteLiteral(@"      } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    os.Open('修改采购单', '/fytadmin/purchase/modify?guid='+data.guid, '1200px', '700px', function () {
                        active.reload();
                    });                    
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>

");
            EndContext();
        }
Exemple #4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\Loss.cshtml"

            ViewData["Title"] = "报损管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(142, 365, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""branks"" lay-search="""">
                    ");
            EndContext();
            BeginContext(507, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "73c66eef39ab4be8846d66330f93520f", async() => {
                BeginContext(524, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(544, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 16 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\Loss.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(659, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(687, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "19af290dcba54898930cf052c415ee6a", async() => {
                    BeginContext(715, 9, false);
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\Loss.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\Loss.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(733, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 20 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\Loss.cshtml"
            }


#line default
#line hidden
            BeginContext(785, 6836, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolOrder""><i class=""layui-icon layui-icon-cart""></i> 打包销售</button>
        </div>
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'form'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
      ");
            WriteLiteral(@"              form = layui.form;
                form.render('select');
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: '/api/goods/loss/list',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 180, title: '条形码', sort: true, fixed: 'left' },
                            { field: 'brankName', title: '品牌', sort: true },
                            { field: 'styleName', title: '款式', sort: true },
                            { field: 'salePrice', title: '价格', sort: true },
                            { field: 'disPrice', title: '折扣价', sort: true },
                            { field: 'stockSum', title: '库存', sort: true },
                            { field: 'saleSum', title: '报损数', sort: true },
                            { field: 'addDate', title: '添加时间', sort: true }
                     ");
            WriteLiteral(@"      // { width: 140, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    id: 'tables',
                    where: {
                        types: 0
                    }
                });
                table.on('sort(tool)', function (obj) {
                    var e = layer.load(2, { shade: [.05, '#000'] });
                    table.reload('tables', {
                        initSort: obj,
                        page: {
                            curr: 1
                        },
                        where: {
                            field: obj.field,
                            order: obj.type,
                            key: $(""#key"").val(),
                            guid: $(""#branks"").val(),
                            types:0
                        },
                        done: function () {
                           ");
            WriteLiteral(@" layer.close(e);
                        }
                    });
                });
                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    guid: $(""#branks"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        os.Open('添加报损', '/fytadmin/goods/lossadd', '750px', '400px', function () {
                            active.reload();
                        });
                    },
                    //打包销售
       ");
            WriteLiteral(@"             toolOrder: function () { 
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要打包的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        os.Open('报损打包销售', '/fytadmin/goods/lossorderadd?sku=' + str, '800px', '400px', function () {
                            active.reload();
                        });
                    }
                };
                table.on('toolbar(tool)', function (obj) {
                    active[obj.event] ? active[obj.event].call(this) : '';
                });
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('");
            WriteLiteral(@"type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        layer.prompt({ title: '请输入恢复的数量', formType: 0, value: data.saleSum }, function (vals, index) {
                            if (isNaN(vals)) { 
                                os.error('输入错误~');
                                return;
                            }
                            if (vals > data.saleSum) {
                                os.error('数量不能大于报损数量~');
                                return;
                            }
                            var loadIndex = layer.load(1, {
                                shade: [0.1, '#fff']
                            });
                            os.ajax('api/goods/modifyloss', { Guid: data.guid, Counts: vals, SkuGuid:data.code }, function (res)");
            WriteLiteral(@" { 
                                layer.close(loadIndex);
                                if (res.statusCode === 200) {
                                    layer.close(index);
                                    active.reload();
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 恢复库存</a>
    </script>
</div>

");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            ViewData["Title"] = "库存盘点";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(147, 561, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <div class=""layui-inline"">
                <select id=""branks"">
                    ");
            EndContext();
            BeginContext(708, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ab8c931acc834631a65af361ad45a987", async() => {
                BeginContext(725, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(745, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 19 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(860, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(888, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "50a1f1387ce441bfb1ec9462e464aa17", async() => {
                    BeginContext(916, 9, false);
#line 22 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 22 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(934, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 23 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
            }


#line default
#line hidden
            BeginContext(986, 4196, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolExport""><i class=""layui-icon layui-icon-component""></i> 导出Excel</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'laydate'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    laydate = layui.laydate;
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , range: true
                });
                table.rend");
            WriteLiteral(@"er({
                    elem: '#tablist',
                    url: '/api/inventory/stock',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code',width:200, title: '条形码', sort: true, fixed: 'left' },
                            { field: 'totalStock', title: '总入库数', sort: true },
                            { field: 'stock', title: '剩余库存', sort: true },
                            { field: 'outStock', title: '出库数', sort: true },
                            { field: 'transfer', title: '调拨', sort: true },
                            { field: 'return', title: '返货', sort: true },
                            { field: 'back', title: '退货', sort: true },
                            { field: 'sale', title: '销售数', sort: true }
                        ]
                    ],
                    page: true,
                    limit: 15,
                    id: 'tables'
                });

  ");
            WriteLiteral(@"              table.on('sort(tool)', function (obj) { //注:tool是工具条事件名,test是table原始容器的属性 lay-filter=""对应的值""
                    console.log(obj.field); //当前排序的字段名
                    console.log(obj.type); //当前排序类型:desc(降序)、asc(升序)、null(空对象,默认排序)
                    var e = layer.load(2, { shade: [.05, '#000']});
                    table.reload('tables', {
                        initSort: obj,
                        page: {
                            curr: 1
                        },
                        loading:true
                        , where: { 
                            key: $(""#key"").val(),
                            time: $(""#times"").val(),
                            guid: $(""#branks"").val(),
                            field: obj.field 
                            , order: obj.type 
                        },
                        done: function () {
                            layer.close(e);
                        }
                    });
                });

");
            WriteLiteral(@"                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    time: $(""#times"").val(),
                                    guid: $(""#branks"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolExport: function () {
                        os.success('正在开发中');
                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[typ");
            WriteLiteral("e].call(this) : \'\';\r\n                });                \r\n            });\r\n    </script>\r\n</div>\r\n\r\n");
            EndContext();
        }
Exemple #6
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"

            ViewData["Title"] = "生日祝福";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(147, 368, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入姓名或手机号码搜索"">
            </div>
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(515, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "72511456bfef4c188fc007098315ea74", async() => {
                BeginContext(532, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(552, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 16 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"

            if (Model.shopList != null)
            {
                foreach (var item in Model.shopList)
                {
#line default
#line hidden
                    BeginContext(755, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(787, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9c7613f0ec224388a65a91d81ad72ab7", async() => {
                        BeginContext(815, 13, false);
#line 21 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"
                        Write(item.ShopName);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 21 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(837, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 22 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(920, 165, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select class=\"layui-input\" id=\"setype\">\r\n                    ");
            EndContext();
            BeginContext(1085, 33, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1907e1f1a6ca4781b4ce57e2faa8c892", async() => {
                BeginContext(1103, 6, true);
                WriteLiteral("--全部--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1118, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1140, 31, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "266bbfdf0bef417fae05439255cab212", async() => {
                BeginContext(1158, 4, true);
                WriteLiteral("今天生日");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1171, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1193, 31, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2cd24f06757d424d9bfb1f5b2d4fdad7", async() => {
                BeginContext(1211, 4, true);
                WriteLiteral("明天生日");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1224, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1246, 31, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6bab93d25e044d1297ce383476efd50c", async() => {
                BeginContext(1264, 4, true);
                WriteLiteral("本周生日");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1277, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1299, 31, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "366fd0e841ac45e798f495e298990784", async() => {
                BeginContext(1317, 4, true);
                WriteLiteral("本月生日");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1330, 2172, true);
            WriteLiteral(@"
                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSsm""><i class=""layui-icon layui-icon-notice""></i> 批量发送短信</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""formatTime"">
        {{formatdate(d.birthday)}}
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common','form'],
");
            WriteLiteral(@"            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
                    elem: '#tablist',
                    url: '/api/shops/userlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'userName', title: '姓名', sort: true, fixed: 'left' },
                            { field: 'mobile', title: '手机号码' },
                            { field: 'points', title: '积分数' },
                            { field: 'birthday', title: '生日', templet: '#formatTime' },
                            { field: 'sex', title: '性别', sort: true },
                            { width: 240, title: '操作', templet: '#tool' }
                        ]
                    ],
    ");
            WriteLiteral("                page: true,\r\n                    id: \'tables\',\r\n                    where: {\r\n                        guid:\"");
            EndContext();
            BeginContext(3503, 14, false);
#line 76 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"
            Write(Model.shopGuid);

#line default
#line hidden
            EndContext();
            BeginContext(3517, 81, true);
            WriteLiteral("\"\r\n                    }\r\n                });\r\n\r\n                var shopGuid = \'");
            EndContext();
            BeginContext(3599, 14, false);
#line 80 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Birthday.cshtml"
            Write(Model.shopGuid);

#line default
#line hidden
            EndContext();
            BeginContext(3613, 4021, true);
            WriteLiteral(@"', active = {
                    reload: function () {
                        if (!shopGuid) { shopGuid = 'all'; }
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    guid: shopGuid,
                                    types: $('#setype').val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        if (shopGuid == 'all' || !shopGuid) {
                            os.warning('请选择商家~'); return;
                        }
                        shopGuid = $(""#shops"").val();
                        os.Open('");
            WriteLiteral(@"添加会员', '/fytadmin/shop/usermodify?shop=' + shopGuid, '600px', '450px', function () {
                            active.reload();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/shops/dele");
            WriteLiteral(@"teuser/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                if (shopGuid != 'all') {
                    $(""#shops"").val(shopGuid);
                    form.render('select');
                }
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    shopGuid = $(""#shops"").val();
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
      ");
            WriteLiteral(@"              var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑会员', '/fytadmin/shop/usermodify/?guid=' + data.guid, '600px', '450px', function () {
                            active.reload();
                        })
                    }
                });
            });

        function formatdate(str) {
            if (str) {
                var date = new Date(str);
                return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
            } else {
                return ""无信息"";
            }
        }
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""sendssm""><i class=""layui-icon layui-icon-notice""></i> 发送短信</a>
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>
");
            EndContext();
        }
Exemple #7
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Default.cshtml"

            ViewData["Title"] = "默认页";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(138, 17575, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        body {
            background-color: #f1f4f5;
        }
    </style>
    <div class=""layui-fluid"" id=""defaultapp"">
        <div class=""layui-row layui-col-space15"">
            <div class=""layui-col-md12 layui-col-lg8"">
                <div class=""layui-row layui-col-space15"">
                    <div class=""layui-col-md6"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">快捷方式</div>
                            <div class=""layui-card-body"">
                                <div class=""layui-carousel layadmin-carousel layadmin-shortcut"" id=""shortcut"" lay-anim="""" lay-indicator=""inside"" lay-arrow=""none"">
                                    <div carousel-item>
                                        <ul class=""layui-row layui-col-space10 layui-this"">
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/goods/barcode");
            WriteLiteral(@"/"">
                                                    <i class=""layui-icon layui-icon-form""></i>
                                                    <cite>条形码</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/purchase/index/1"">
                                                    <i class=""layui-icon layui-icon-cart""></i>
                                                    <cite>采购</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/member/index/"">
                                                    <i class=""layui-icon layui-icon-user""></i>
                                                    <cite>会员</cite>");
            WriteLiteral(@"
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/shop/index/"">
                                                    <i class=""layui-icon layui-icon-chat""></i>
                                                    <cite>加盟商</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/stock/import/"">
                                                    <i class=""layui-icon layui-icon-engine""></i>
                                                    <cite>入库</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col");
            WriteLiteral(@"-xs3"">
                                                <a href=""/fytadmin/stock/export/"">
                                                    <i class=""layui-icon layui-icon-component""></i>
                                                    <cite>出库</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/stock/transfer/"">
                                                    <i class=""layui-icon layui-icon-senior""></i>
                                                    <cite>调拨</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/sale/back/"">
                                                    <i class=""layui-icon l");
            WriteLiteral(@"ayui-icon-refresh-1""></i>
                                                    <cite>退货</cite>
                                                </a>
                                            </li>
                                        </ul>
                                        <ul class=""layui-row layui-col-space10"">
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/sale/return/"">
                                                    <i class=""layui-icon layui-icon-return""></i>
                                                    <cite>返货</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/finance/accounting/"">
                                                    <i class=""layui-icon layui-icon-dollar""></i>
       ");
            WriteLiteral(@"                                             <cite>财务</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/fytadmin/finance/report/"">
                                                    <i class=""layui-icon layui-icon-chart""></i>
                                                    <cite>销售报表</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""javascript:void(0)"">
                                                    <i class=""layui-icon layui-icon-fonts-clear""></i>
                                                    <cite>库存盘点</cite>
                                                </a>
                                            </l");
            WriteLiteral(@"i>
                                            <li class=""layui-col-xs3"">
                                                <a href=""javascript:void(0)"">
                                                    <i class=""layui-icon layui-icon-chat""></i>
                                                    <cite>积分商品</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""javascript:void(0)"">
                                                    <i class=""layui-icon layui-icon-read""></i>
                                                    <cite>积分订单</cite>
                                                </a>
                                            </li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
     ");
            WriteLiteral(@"                   </div>
                    </div>
                    <div class=""layui-col-md6"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">待办事项</div>
                            <div class=""layui-card-body"">
                                <div class=""layui-carousel layadmin-carousel layadmin-backlog"" id=""backlog"" lay-anim="""" lay-indicator=""inside"" lay-arrow=""none"">
                                    <div carousel-item>
                                        <ul class=""layui-row layui-col-space10 layui-this"">
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>待返货处理</h3>
                                                    <p><cite>{{model.returnCount}}</cite></p>
                                                </a>
                                            ");
            WriteLiteral(@"</li>
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>待退货处理</h3>
                                                    <p><cite>{{model.backCount}}</cite></p>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>库存报警数量</h3>
                                                    <p><cite>{{model.stockPoliceCount}}</cite></p>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""l");
            WriteLiteral(@"ayadmin-backlog-body"">
                                                    <h3>今日加入会员</h3>
                                                    <p><cite>{{model.joinUserCount}}</cite></p>
                                                </a>
                                            </li>
                                        </ul>
                                        <ul class=""layui-row layui-col-space10"">
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>积分订单处理</h3>
                                                    <p><cite style=""color: #FF5722;"">0</cite></p>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            <");
            WriteLiteral(@"/div>
                        </div>
                    </div>
                    <div class=""layui-col-md12"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">数据概览</div>
                            <div class=""layui-card-body"">
                                <div id=""base-map"" style=""width: 100%;height:300px;""></div>
                            </div>
                        </div>
                    </div>
                    <div class=""layui-col-md12"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">品牌销售排行榜 Top20</div>
                            <div class=""layui-card-body"">
                                <div id=""brand-top"" style=""width: 100%;height:355px;""></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class=""layui-col-lg4 layui-col-md12"">
         ");
            WriteLiteral(@"       <div class=""layui-card"">
                    <div class=""layui-card-header"">版本信息</div>
                    <div class=""layui-card-body layui-text"" style=""height:210px;"">
                        <table class=""layui-table"">
                            <colgroup>
                                <col width=""100"">
                                <col>
                            </colgroup>
                            <tbody>
                                <tr>
                                    <td>欢迎您</td>
                                    <td>
                                        admins超级管理员
                                    </td>
                                </tr>
                                <tr>
                                    <td>更新时间</td>
                                    <td>上次登录日期:2018/5/4 22:44:53  <a href=""/fytadmin/syslog/index"">查看日志</a></td>
                                </tr>
                                <tr>
                                    <t");
            WriteLiteral(@"d>当前版本</td>
                                    <td>
                                        V1.0.0  pro最后 更新时间:2017-07-20
                                    </td>
                                </tr>
                                <tr>
                                    <td>授权说明</td>
                                    <td>
                                        本系统是北京飞易腾科技有限公司授权予 飞易腾 使用!
                                    </td>
                                </tr>
                                <tr>
                                    <td>求助帮助</td>
                                    <td>
                                        <a href="""" class=""layui-badge layui-bg-blue"">联系客服</a>  <span class=""layui-badge layui-bg-gray"">13511084034</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class=""layui-card"">
 ");
            WriteLiteral(@"                   <div class=""layui-card-header"">销售统计</div>
                    <div class=""layui-card-body"">
                        <div class=""layui-row fyt-counter"">
                            <div class=""layui-col-md4"">
                                <div class=""counter-label"">今日</div>
                                <div class=""counter-number red-600"">{{model.daySaleMoney}}</div>
                            </div>
                            <div class=""layui-col-md4"">
                                <div class=""counter-label"">本周</div>
                                <div class=""counter-number red-600"">{{model.weekSaleMoney}}</div>
                            </div>
                            <div class=""layui-col-md4"">
                                <div class=""counter-label"">本月</div>
                                <div class=""counter-number red-600"">{{model.monthSaleMoney}}</div>
                            </div>
                        </div>
                    </div>
       ");
            WriteLiteral(@"         </div>
                <div class=""layui-card"">
                    <div class=""layui-card-header"">销售统计效果</div>
                    <div class=""layui-card-body layadmin-takerates"">
                        <div class=""layui-progress"" lay-showpercent=""yes"">
                            <h3>转化率(日同比 {{model.dayOnYear}}% <span class=""layui-edge layui-edge-top"" lay-tips=""增长"" lay-offset=""-15""></span>)</h3>
                            <div class=""layui-progress-bar"" :lay-percent=""model.dayOnYear+'%'""><span class=""layui-progress-text"">{{model.dayOnYear}}%</span></div>
                        </div>
                        <div class=""layui-progress"" lay-showpercent=""yes"">
                            <h3>签到率(周同比 {{model.weekOnYear}}% <span class=""layui-edge layui-edge-bottom"" lay-tips=""下降"" lay-offset=""-15""></span>)</h3>
                            <div class=""layui-progress-bar layui-bg-orange"" :lay-percent=""model.weekOnYear+'%'""><span class=""layui-progress-text"">{{model.weekOnYear}}%</span></div>
  ");
            WriteLiteral(@"                      </div>
                        <div class=""layui-progress"" lay-showpercent=""yes"">
                            <h3>签到率(月同比 {{model.monthOnYear}}% <span class=""layui-edge layui-edge-bottom"" lay-tips=""下降"" lay-offset=""-15""></span>)</h3>
                            <div class=""layui-progress-bar layui-bg-orange"" :lay-percent=""model.monthOnYear+'%'""><span class=""layui-progress-text"">{{model.monthOnYear}}%</span></div>
                        </div>
                    </div>
                </div>
                <div class=""layui-card"">
                    <div class=""layui-card-header"">店铺销售排行榜</div>
                    <div class=""layui-card-body fyt-shoptop"">
                        <table class=""layui-table"">
                            <colgroup>
                                <col>
                                <col width=""80"">
                                <col width=""90"">
                                <col width=""150"">
                            </colgroup>
   ");
            WriteLiteral(@"                         <thead>
                                <tr>
                                    <th>加盟商名称</th>
                                    <th>总金额</th>
                                    <th>订单总数</th>
                                    <th>占比</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for=""it in topList"" v-cloak>
                                    <td>{{it.shopName}}</td>
                                    <td>¥{{it.money}}</td>
                                    <td>{{it.counts}}</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" :lay-percent=""it.ratio+'%'""></div>
                                        </div>
                                    </td>
                                </tr>
         ");
            WriteLiteral("                   </tbody>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    ");
            EndContext();
            BeginContext(17713, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5e655d4b3765436ab005cee3779e48b9", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(17786, 6, true);
            WriteLiteral("\r\n    ");
            EndContext();
            BeginContext(17792, 70, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "832aaa99057c453a89bbb051b5cbcd8b", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(17862, 8909, true);
            WriteLiteral(@"
    <script>
        var d_vm = new Vue({
            el: '#defaultapp',
            data: {
                topList:[],
                model: []
            }
        });

        layui.use(['carousel', 'element', 'layer', 'jquery', 'common'], function () {
            var carousel = layui.carousel
                , os = layui.common
                , element = layui.element
                , $ = layui.jquery;
            os.ajax('api/default/backlog', null, function (res) { 
                if (res.statusCode === 200) {
                    d_vm.model = res.data; 
                } else {
                    os.error(res.message);
                }
            });
            carousel.render({
                elem: '#shortcut'
                , width: '100%'
                , autoplay: false
                , arrow: 'none'
                , height: '180px'
                , indicator: 'outside'
            });
            carousel.render({
                elem: '#backlog'
  ");
            WriteLiteral(@"              , width: '100%'
                , autoplay: false
                , arrow: 'none'
                , height: '180px'
                , indicator: 'outside'
            });
            var active = {
                loadTop: function () {
                    os.ajax('api/default/shoptop', null, function (res) {
                        if (res.statusCode === 200) {
                            d_vm.topList = res.data; 
                            d_vm.$nextTick(function () {
                                element.render();
                            });
                        } else {
                            os.error(res.message);
                        }
                    });
                },
                init: function () { 
                    os.ajax('api/default/weeksale', null, function (res) {
                        if (res.statusCode === 200) {
                            baseChart.hideLoading();
                            var money = [], order = [];
");
            WriteLiteral(@"                            $.each(res.data.money, function (i, m) {
                                money.push(m);
                            });
                            $.each(res.data.order, function (i, m) {
                                order.push(m);
                            });
                            baseChart.setOption({
                                series: [
                                    {
                                        name: '订单总数',
                                        type: 'line',
                                        areaStyle: { normal: {} },
                                        data: order
                                    },
                                    {
                                        name: '销售金额',
                                        type: 'line',
                                        areaStyle: { normal: {} },
                                        data: money
                                    }
         ");
            WriteLiteral(@"                       ]
                            });
                        } else {
                            os.error(res.message);
                        }
                    });

                    os.ajax('api/default/brandtop', null, function (res) {
                        if (res.statusCode === 200) {
                            brandChart.hideLoading();
                            var names = [], counts = [];
                            $.each(res.data, function (i, m) {
                                names.push(m.brandName);
                                counts.push(m.counts);
                            });
                            brandChart.setOption({
                                xAxis: {
                                    data: names
                                },
                                series: [
                                    {
                                        data: counts
                                    }
                ");
            WriteLiteral(@"                ]
                            });
                        } else {
                            os.error(res.message);
                        }
                    });
                }
            };
            active.loadTop();
            setTimeout(function () {
                active.init();
            }, 1000);

            
        });
        var baseChart = echarts.init(document.getElementById('base-map'), 'macarons');
        baseChart.showLoading();
        var option = {
            title: {
                //show:false,
                text: '今日销售金额汇总',
                textStyle: {
                    color: '#888',
                    align: 'center',
                    fontSize: 14,
                    fontWeight: '400'
                }
            },
            tooltip: {
                trigger: 'axis'
            },
            toolbox: {
                feature: {
                    magicType: {
                        type: ['line', '");
            WriteLiteral(@"bar', 'stack', 'tiled']
                    },
                    saveAsImage: {}
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    boundaryGap: false,
                    data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ]
        };
        baseChart.setOption(option);

        var dataAxis = ['芳华店', '击', '柱', '子', '或', '者', '两', '指', '在', '触', '屏', '上', '滑', '动', '能', '够', '自', '动', '缩', '放'];
        var data = [220, 182, 191, 234, 290, 330, 310, 123, 442, 321, 90, 149, 210, 122, 133, 334, 198, 123, 125, 220];
        var yMax = 500;
        var dataShadow = [];
        for (var i = 0; i < data.length; i++) {
");
            WriteLiteral(@"
            dataShadow.push(yMax);
        }
        var brandChart = echarts.init(document.getElementById('brand-top'), 'macarons');
        brandChart.showLoading();
        brandChart.setOption({
            title: {
                show: false,
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                data: dataAxis,
                axisLabel: {
                    inside: true,
                    textStyle: {
                        color: '#fff'
                    }
                },
                axisTick: {
                    show: false
                },
                axisLine: {
                    show: false
                },
                z: 10
            },
            yAxis: {
                axisLine: {
                    show: false
                },
                axisTick: {
                ");
            WriteLiteral(@"    show: false
                },
                axisLabel: {
                    textStyle: {
                        color: '#999'
                    }
                }
            },
            tooltip: {
                trigger: 'axis'
            },
            toolbox: {
                feature: {
                    magicType: {
                        type: ['line', 'bar', 'stack', 'tiled']
                    },
                    saveAsImage: {}
                }
            },
            series: [
                {
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            color: new echarts.graphic.LinearGradient(
                                0, 0, 0, 1,
                                [
                                    { offset: 0, color: '#83bff6' },
                                    { offset: 0.5, color: '#188df0' },
                                    { offset: 1, color: '#188df0' }");
            WriteLiteral(@"
                                ]
                            )
                        },
                        emphasis: {
                            color: new echarts.graphic.LinearGradient(
                                0, 0, 0, 1,
                                [
                                    { offset: 0, color: '#2378f7' },
                                    { offset: 0.7, color: '#2378f7' },
                                    { offset: 1, color: '#83bff6' }
                                ]
                            )
                        }
                    },
                    data: data
                }
            ]
        });

    </script>
</div>
");
            EndContext();
        }
Exemple #8
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopBack.cshtml"

            ViewData["Title"] = "报表管理-加盟商退货统计";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(155, 208, true);
            WriteLiteral("<div id=\"container\">\r\n    <div class=\"list-wall\">\r\n        <div class=\"layui-form list-search\">\r\n            <div class=\"layui-inline\">\r\n                <select id=\"shops\" lay-search=\"\">\r\n                    ");
            EndContext();
            BeginContext(363, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "22e422b08a0844ddb75d597714789143", async() => {
                BeginContext(380, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(400, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 13 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopBack.cshtml"

            if (Model.shopList != null)
            {
                foreach (var item in Model.shopList)
                {
#line default
#line hidden
                    BeginContext(603, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(635, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1cea097371f04ccf806628c0f264de07", async() => {
                        BeginContext(663, 13, false);
#line 18 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopBack.cshtml"
                        Write(item.ShopName);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 18 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopBack.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(685, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopBack.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(768, 158, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"years\" lay-search=\"\">\r\n                    ");
            EndContext();
            BeginContext(926, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7cf182ec250747d0aa127bd3cf2dcd6c", async() => {
                BeginContext(947, 4, true);
                WriteLiteral("2018");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(960, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(982, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "de0268436013419582ad2b91a7bf0a63", async() => {
                BeginContext(1003, 4, true);
                WriteLiteral("2019");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1016, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1038, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "438d99fc5ee74ef0888863c7de44f8d4", async() => {
                BeginContext(1059, 4, true);
                WriteLiteral("2020");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1072, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1094, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a5251d9f37bc4bf5a672a1ef19ab72c8", async() => {
                BeginContext(1115, 4, true);
                WriteLiteral("2021");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1128, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1150, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "02adf12dd20f48b4898ef687c11690c9", async() => {
                BeginContext(1171, 4, true);
                WriteLiteral("2022");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1184, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1206, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "86065683c0cc4ed7a2cfdb2b1cedbd38", async() => {
                BeginContext(1227, 4, true);
                WriteLiteral("2023");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1240, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1262, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e3aa8b5557464ace9c3310daf1fefba3", async() => {
                BeginContext(1283, 4, true);
                WriteLiteral("2024");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1296, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1318, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7a797a6b17414760aec4bda07cc4bcfc", async() => {
                BeginContext(1339, 4, true);
                WriteLiteral("2025");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1352, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(1374, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ff84cc56b0104eb79a79507cf8f346b1", async() => {
                BeginContext(1395, 4, true);
                WriteLiteral("2026");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_9.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1408, 3310, true);
            WriteLiteral(@"
                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
    </div>
    <div class=""list-wall"" style=""padding-top:0px;"">
        <table class=""layui-hide"" id=""tablist""></table>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"">
            <h4>加盟商月份退货汇总</h4>
        </div>
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'jquery', 'common', 'form'],
            function () {
                var table = layui.table,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: '/api/Inventory/shopbackrepo");
            WriteLiteral(@"rt',
                    cols: [
                        [
                            { field: 'shopName', width: 240, title: '商家名称', fixed: 'left' },
                            { field: 'januaryMoney', width: 115, title: '一月' },
                            { field: 'fFebruaryMoney', width: 115, title: '二月' },
                            { field: 'marchMoney', width: 115, title: '三月' },
                            { field: 'aprilMoney', width: 115, title: '四月' },
                            { field: 'mayMoney', width: 115, title: '五月' },
                            { field: 'juneMoney', width: 115, title: '六月' },
                            { field: 'julyMoney', width: 115, title: '七月' },
                            { field: 'augustMoney', width: 115, title: '八月' },
                            { field: 'septemberMoney', width: 115, title: '九月' },
                            { field: 'octoberMoney', width: 115, title: '十月' },
                            { field: 'novemberMoney', width: 115, tit");
            WriteLiteral(@"le: '十一月' },
                            { field: 'decemberMoney', width: 115, title: '十二月' },
                        ]
                    ],
                    page: true,
                    id: 'tables',
                    height: 'full-200'
                });
                var key = '', active = {
                    tabLoad: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#shops"").val(),
                                    time: $(""#years"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        key = $(""#years"").val();
                        active.tabLoad();
                    }
                };

                $('");
            WriteLiteral(".list-search .layui-btn\').on(\'click\', function () {\r\n                    var type = $(this).data(\'type\');\r\n                    active[type] ? active[type].call(this) : \'\';\r\n                });\r\n            });\r\n\r\n    </script>\r\n</div>\r\n\r\n");
            EndContext();
        }
Exemple #9
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\BarCode.cshtml"

            ViewData["Title"] = "条形码管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(146, 365, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""branks"" lay-search="""">
                    ");
            EndContext();
            BeginContext(511, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f22d5addc51c4a439fa4e5e0b4fe1f2a", async() => {
                BeginContext(528, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(548, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 16 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\BarCode.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(663, 20, true);
                WriteLiteral("                    ");
                EndContext();
                BeginContext(683, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4599c2737e1444a8ab482f05b5336d72", async() => {
                    BeginContext(711, 9, false);
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\BarCode.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\BarCode.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(729, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 20 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\BarCode.cshtml"
            }


#line default
#line hidden
            BeginContext(781, 5243, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common','form'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;   
              ");
            WriteLiteral(@"  form.render('select');
                table.render({
                    elem: '#tablist',
                    url: '/api/goods/barlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', title: '条形码', sort: true, fixed: 'left' },
                            { field: 'brankName', title: '品牌', sort: true },
                            { field: 'styleName', title: '款式', sort: true },
                            { field: 'salePrice', title: '价格', sort: true },
                            { field: 'disPrice', title: '折扣价', sort: true },
                            { field: 'stockSum', title: '库存', sort: true },
                            { field: 'saleSum', title: '销售数', sort: true },
                            { field: 'addDate', title: '添加时间', sort: true }
                            //{ width: 100, title: '操作', templet: '#tool' }
                        ]
                    ]");
            WriteLiteral(@",
                    page: true,
                    id: 'tables'
                });

                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    guid: $(""#branks"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        os.Open('添加条形码', '/fytadmin/goods/barcodemodify', '750px', '400px', function () {
                            active.reload();
                        });
                    },
                    toolDe");
            WriteLiteral(@"l: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/goods/delbarcode/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reloa");
            WriteLiteral(@"d();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑条形码', '/fytadmin/goods/barcodemodify/?guid=' + data.guid, '750px', '400px', function () {
                            active.reload();
                        })
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a cl");
            WriteLiteral("ass=\"layui-btn layui-btn-primary layui-btn-xs\" lay-event=\"edit\"><i class=\"layui-icon\"></i> 修改</a>\r\n    </script>\r\n</div>\r\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Statistics.cshtml"

            ViewData["Title"] = "注册统计";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(149, 378, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        body {
            background-color: #f1f4f5;
        }

        .list-search {
            background-color: #D9DEE4
        }
    </style>
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <select id=""years"" lay-search="""">
                    ");
            EndContext();
            BeginContext(527, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1ca9c52ae82447dea9f724eb7d7c7743", async() => {
                BeginContext(548, 4, true);
                WriteLiteral("2018");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(561, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(583, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d83c5cc8952942a39ef90ea4a0a3dc15", async() => {
                BeginContext(604, 4, true);
                WriteLiteral("2019");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(617, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(639, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "432319c60334420b9377fbde91c1582a", async() => {
                BeginContext(660, 4, true);
                WriteLiteral("2020");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(673, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(695, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "83939b881e1c49a693dfcd820d1b63f4", async() => {
                BeginContext(716, 4, true);
                WriteLiteral("2021");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(729, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(751, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0188121ebf3648ada924ed38e4fd3634", async() => {
                BeginContext(772, 4, true);
                WriteLiteral("2022");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(785, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(807, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "94f802a341c74eb49f4612784369dee0", async() => {
                BeginContext(828, 4, true);
                WriteLiteral("2023");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(841, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(863, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4995b7555d424acfa2fb2f2eea3703cb", async() => {
                BeginContext(884, 4, true);
                WriteLiteral("2024");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(897, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(919, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7f4e4c0b1c0642a68ed125442328bd68", async() => {
                BeginContext(940, 4, true);
                WriteLiteral("2025");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(953, 22, true);
            WriteLiteral("\r\n                    ");
            EndContext();
            BeginContext(975, 34, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ac0dea501bbb47849ffdf1e79b24473a", async() => {
                BeginContext(996, 4, true);
                WriteLiteral("2026");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1009, 977, true);
            WriteLiteral(@"
                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch"">
                <i class=""layui-icon layui-icon-search""></i> 搜索
            </button>
        </div>
    </div>
    <div class=""layui-col-md12 list-wall"">
        <div class=""layui-card"">
            <div class=""layui-card-header"">每月注册人数统计</div>
            <div class=""layui-card-body"">
                <div id=""base-map"" style=""width: 100%;height:300px;""></div>
            </div>
        </div>
    </div>
    <div class=""layui-col-md12 list-wall"">
        <div class=""layui-card"">
            <div class=""layui-card-header"">性别注册比例</div>
            <div class=""layui-card-body"">
                <div id=""sex-map"" style=""width: 100%;height:300px;""></div>
            </div>
        </div>
    </div>
    <script type=""text/html"" id=""realMoney"">
        {{(d.realMoney-d.backMoney).toFixed(2)}}
    </script>
    ");
            EndContext();
            BeginContext(1986, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "542a772ab3bc4663b4483493d51db436", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2059, 6, true);
            WriteLiteral("\r\n    ");
            EndContext();
            BeginContext(2065, 70, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dff6ac41dabc4f5e914211d9c2dc97c8", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2135, 5688, true);
            WriteLiteral(@"
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['carousel', 'element', 'layer', 'jquery', 'common', 'form'],
            function () {
                var fcarousel = layui.carousel, $ = layui.$, os = layui.common, form = layui.form;
                form.render('select');

                var pos = {
                    init: function () {
                        os.ajax('api/userreport/regreport', { key: $('#years').val() }, function (res) {
                            if (res.statusCode === 200) {
                                baseChart.hideLoading()
                                var datas = [], counts = [];
                                for (var i = 0; i < res.data.length; i++) {
                                    datas.push(res.data[i].months + '月');
                                    counts.push(res.data[i].regCount);
                                }
                                baseChart.setOption({
                            ");
            WriteLiteral(@"        xAxis: {
                                        data: datas
                                    },
                                    series: [
                                        {
                                            name: '注册数',
                                            type: 'line',
                                            stack: '注册数',
                                            areaStyle: { normal: {} },
                                            data: counts
                                        }]
                                });
                            } else {
                                os.error(res.message);
                            }
                        });
                    },
                    sexInit: function () { 
                        os.ajax('api/userreport/sexreport', { key: $('#years').val() }, function (res) {
                            if (res.statusCode === 200) {
                                sexChart.hideLoa");
            WriteLiteral(@"ding()
                                var datas = [], counts = [];
                                for (var i = 0; i < res.data.length; i++) {
                                    datas.push(res.data[i].months + '注册人数');
                                    counts.push({ 'value': res.data[i].regCount,'name':res.data[i].months});
                                }
                                sexChart.setOption({
                                    legend: {
                                        data: datas
                                    },
                                    series: [
                                        {
                                            name: ""注册人数"",
                                            type: ""pie"",
                                            radius: '55%',
                                            center: ['50%', '60%'],
                                            data: counts
                                        }]
                      ");
            WriteLiteral(@"          });
                            } else {
                                os.error(res.message);
                            }
                        });
                    },
                    toolSearch: function () {
                        pos.init();
                    }
                };
                setTimeout(function () {
                    pos.init();
                    pos.sexInit();
                }, 1000);
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    baseChart.showLoading();
                    pos[type] ? pos[type].call(this) : '';
                });
            });
        var baseChart = echarts.init(document.getElementById('base-map'), 'macarons');
        var sexChart = echarts.init(document.getElementById(""sex-map""), 'macarons');
        baseChart.showLoading();
        sexChart.showLoading();
        var option = {
            title: {
         ");
            WriteLiteral(@"       //show:false,
                text: '',
                textStyle: {
                    color: '#888',
                    align: 'center',
                    fontSize: 14,
                    fontWeight: '400'
                }
            },
            tooltip: {
                trigger: 'axis'
            },
            toolbox: {
                feature: {
                    magicType: {
                        type: ['line', 'bar', 'stack', 'tiled']
                    },
                    saveAsImage: {}
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    boundaryGap: false,
                    data: []
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }");
            WriteLiteral(@"
            ],
            series: [
            ]
        };
        baseChart.setOption(option);

        //男女注册比例统计
        var option_sex = {
            tooltip: {
                trigger: 'item',
                formatter: ""{a} <br/>{b} : {c} ({d}%)""
            },
            legend: {
                orient: 'vertical',
                x: 'left',
                data: []
            },
            calculable: true,
            series:
                []
        };
        sexChart.setOption(option_sex);

    </script>
</div>

");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"

            ViewData["Title"] = "报表管理-加盟商库存报表";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(156, 633, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-col-220 {
            width: 388px;
            top: 80px;
            left: 12px;
        }

            .layui-col-220 .layui-nav-title {
                height: 42px;
                line-height: 42px;
            }

        .right-col-body {
            left: 400px;
            top: 60px;
        }

        .fyt-utree {
            overflow: auto;
        }
    </style>
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(789, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6c37e5e78c7c48d0aaf05372749ca53d", async() => {
                BeginContext(806, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(826, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 34 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"

            if (Model.shopList != null)
            {
                foreach (var item in Model.shopList)
                {
#line default
#line hidden
                    BeginContext(1029, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(1061, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "258d4f769ccd430086474dba305d0c47", async() => {
                        BeginContext(1089, 13, false);
#line 39 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                        Write(item.ShopName);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 39 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1111, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 40 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(1194, 145, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"branks\">\r\n                    ");
            EndContext();
            BeginContext(1339, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "730d6d78e5ba41248c8d6861e04af430", async() => {
                BeginContext(1356, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1376, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 48 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"

            if (Model.codeList != null)
            {
                foreach (var item in Model.codeList)
                {
#line default
#line hidden
                    BeginContext(1579, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(1611, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6935fcbef37e407db80f25c92427ee83", async() => {
                        BeginContext(1639, 9, false);
#line 53 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                        Write(item.Name);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 53 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1657, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 54 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(1740, 464, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch"">
                <i class=""layui-icon layui-icon-search""></i> 搜索
            </button>
        </div>
    </div>
    <div class=""layui-col-220"" id=""app"">
        <div class=""layui-nav-title"">加盟商列表   </div>
        <ul class=""fyt-utree"">
            <li v-for=""it in list"" v-cloak :class=""{active: activeName == it.guid}"" ");
            EndContext();
            BeginContext(2205, 73, true);
            WriteLiteral("@click=\"selected(it.guid)\">\r\n                <a class=\"layui-elip title\" ");
            EndContext();
            BeginContext(2279, 519, true);
            WriteLiteral(@"@click=""getList(it)"">{{it.shopName}}</a>
                <a class=""layui-elip sums""><span class=""layui-badge layui-bg-blue"">{{it.stock}}</span></a>
            </li>
        </ul>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"">
            <h4>库存详情</h4>
        </div>
    </script>
    ");
            EndContext();
            BeginContext(2798, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "acaf4bef24104ec9bf8f4fb08f25c1d0", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2871, 3941, true);
            WriteLiteral(@"
    <script>
        var funTool, vm = new Vue({
            el: ""#app"",
            data: {
                list: [],
                curModel: {},
                activeName: '',
                parm: {
                    guid: ''
                }
            },
            methods: {
                selected: function (m) {
                    this.activeName = m;
                },
                getList: function (m) {
                    funTool.getGoodsSku(m);
                }
            }
        });
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'form', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                $(""ul.fyt-utree"").css({ 'height': $(window).height() - 182 });
    ");
            WriteLiteral(@"            table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: '/api/inventory/stockbyshop',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 200, title: '条形码', fixed: 'left' },
                            { field: 'brand', title: '品牌' },
                            { field: 'style', title: '款式' },
                            { field: 'stock', width: 150, title: '库存' },
                            { field: 'sale', title: '销售数' },
                            { field: 'returnSum', title: '返货数' }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    limit: 20,
                    height: 'full-200',
                    id: 'tables'
                });

                var shopGuid = '', active = {
 ");
            WriteLiteral(@"                   reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    brand: $('#branks').val(),
                                    guid: shopGuid,
                                    orderType: 2
                                }
                            });
                    },
                    toolSearch: function () {
                        vm.parm.guid = $(""#shops"").val();
                        shopGuid = $(""#shops"").val();
                        active.reload();
                        funTool.orderPage();
                    }
                };

                funTool = {
                    getGoodsSku: function (obj) {
                        shopGuid = obj.shopGuid;
                        $(""#shops"").val(shopGuid);
    ");
            WriteLiteral(@"                    form.render('select');
                        active.reload();
                    },
                    orderPage: function () {
                        os.ajax('api/inventory/shopstock', vm.parm, function (res) {
                            if (res.statusCode === 200) {
                                vm.list = res.data;
                            } else {
                                os.error(res.message);
                            }
                        });
                    }
                }
                //初始化入库单管理
                funTool.orderPage();
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
            });
    </script>
</div>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Default.cshtml"

            ViewData["Title"] = "默认页";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(138, 20073, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        body {
            background-color: #f1f4f5;
        }
    </style>
    <div class=""layui-fluid"">
        <div class=""layui-row layui-col-space15"">
            <div class=""layui-col-md8"">
                <div class=""layui-row layui-col-space15"">
                    <div class=""layui-col-md6"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">快捷方式</div>
                            <div class=""layui-card-body"">
                                <div class=""layui-carousel layadmin-carousel layadmin-shortcut"" id=""shortcut"" lay-anim="""" lay-indicator=""inside"" lay-arrow=""none"">
                                    <div carousel-item>
                                        <ul class=""layui-row layui-col-space10 layui-this"">
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/layer/list"">
                              ");
            WriteLiteral(@"                      <i class=""layui-icon layui-icon-website""></i>
                                                    <cite>条形码</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/button/"">
                                                    <i class=""layui-icon layui-icon-find-fill""></i>
                                                    <cite>采购</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/progress/"">
                                                    <i class=""layui-icon layui-icon-loading-2""></i>
                                                    <cite>会员</cite>
                                 ");
            WriteLiteral(@"               </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/senior/im/"">
                                                    <i class=""layui-icon layui-icon-chat""></i>
                                                    <cite>加盟商</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/panel/"">
                                                    <i class=""layui-icon layui-icon-read""></i>
                                                    <cite>入库</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                              ");
            WriteLiteral(@"  <a href=""component/badge/"">
                                                    <i class=""layui-icon layui-icon-tree""></i>
                                                    <cite>出库</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/set/system/website"">
                                                    <i class=""layui-icon layui-icon-set""></i>
                                                    <cite>调拨</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/set/user/password"">
                                                    <i class=""layui-icon layui-icon-set""></i>
                                                    <cit");
            WriteLiteral(@"e>退货</cite>
                                                </a>
                                            </li>
                                        </ul>
                                        <ul class=""layui-row layui-col-space10"">
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/layer/list"">
                                                    <i class=""layui-icon layui-icon-website""></i>
                                                    <cite>返货</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/button/"">
                                                    <i class=""layui-icon layui-icon-find-fill""></i>
                                                    <cite>财务</cite>
                               ");
            WriteLiteral(@"                 </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""component/progress/"">
                                                    <i class=""layui-icon layui-icon-loading-2""></i>
                                                    <cite>销售报表</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                                <a href=""/senior/im/"">
                                                    <i class=""layui-icon layui-icon-chat""></i>
                                                    <cite>积分商品</cite>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs3"">
                                 ");
            WriteLiteral(@"               <a href=""component/panel/"">
                                                    <i class=""layui-icon layui-icon-read""></i>
                                                    <cite>积分订单</cite>
                                                </a>
                                            </li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class=""layui-col-md6"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">待办事项</div>
                            <div class=""layui-card-body"">
                                <div class=""layui-carousel layadmin-carousel layadmin-backlog"" id=""backlog"" lay-anim="""" lay-indicator=""inside"" lay-arrow=""none"">
                                    <div carousel-item>
                               ");
            WriteLiteral(@"         <ul class=""layui-row layui-col-space10 layui-this"">
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>待返货处理</h3>
                                                    <p><cite>66</cite></p>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>待退货处理</h3>
                                                    <p><cite>12</cite></p>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs6"">
                                                <a lay-hre");
            WriteLiteral(@"f="""" class=""layadmin-backlog-body"">
                                                    <h3>库存报警数量</h3>
                                                    <p><cite>99</cite></p>
                                                </a>
                                            </li>
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                                                    <h3>今日加入会员</h3>
                                                    <p><cite>20</cite></p>
                                                </a>
                                            </li>
                                        </ul>
                                        <ul class=""layui-row layui-col-space10"">
                                            <li class=""layui-col-xs6"">
                                                <a lay-href="""" class=""layadmin-backlog-body"">
                        ");
            WriteLiteral(@"                            <h3>积分订单处理</h3>
                                                    <p><cite style=""color: #FF5722;"">5</cite></p>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class=""layui-col-md12"">
                        <div class=""layui-card"">
                            <div class=""layui-card-header"">数据概览</div>
                            <div class=""layui-card-body"">
                                <div id=""base-map"" style=""width: 100%;height:300px;""></div>
                            </div>
                        </div>
                    </div>
                    <div class=""layui-col-md12"">
                        <div class=""layui-card"">
                            <");
            WriteLiteral(@"div class=""layui-card-header"">品牌销售排行榜 Top10</div>
                            <div class=""layui-card-body"">
                                <div id=""brand-top"" style=""width: 100%;height:355px;""></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class=""layui-col-md4"">
                <div class=""layui-card"">
                    <div class=""layui-card-header"">版本信息</div>
                    <div class=""layui-card-body layui-text"" style=""height:210px;"">
                        <table class=""layui-table"">
                            <colgroup>
                                <col width=""100"">
                                <col>
                            </colgroup>
                            <tbody>
                                <tr>
                                    <td>欢迎您</td>
                                    <td>
                                        admins超级管理员
      ");
            WriteLiteral(@"                              </td>
                                </tr>
                                <tr>
                                    <td>更新时间</td>
                                    <td>上次登录日期:2018/5/4 22:44:53  <a href=""/fytadmin/syslog/index"">查看日志</a></td>
                                </tr>
                                <tr>
                                    <td>当前版本</td>
                                    <td>
                                        V1.0.0  pro最后 更新时间:2017-07-20
                                    </td>
                                </tr>
                                <tr>
                                    <td>授权说明</td>
                                    <td>
                                        本系统是北京飞易腾科技有限公司授权予 飞易腾 使用!
                                    </td>
                                </tr>
                                <tr>
                                    <td>求助帮助</td>
                                    <td>
          ");
            WriteLiteral(@"                              <a href="""" class=""layui-badge layui-bg-blue"">联系客服</a>  <span class=""layui-badge layui-bg-gray"">13511084034</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class=""layui-card"">
                    <div class=""layui-card-header"">销售统计</div>
                    <div class=""layui-card-body"">
                        <div class=""layui-row fyt-counter"">
                            <div class=""layui-col-md4"">
                                <div class=""counter-label"">今日</div>
                                <div class=""counter-number red-600"">20,186</div>
                            </div>
                            <div class=""layui-col-md4"">
                                <div class=""counter-label"">本周</div>
                                <div class=""counter-number red-600"">20,186</div>
    ");
            WriteLiteral(@"                        </div>
                            <div class=""layui-col-md4"">
                                <div class=""counter-label"">本月</div>
                                <div class=""counter-number red-600"">20,186</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class=""layui-card"">
                    <div class=""layui-card-header"">销售统计效果</div>
                    <div class=""layui-card-body layadmin-takerates"">
                        <div class=""layui-progress"" lay-showpercent=""yes"">
                            <h3>转化率(日同比 28% <span class=""layui-edge layui-edge-top"" lay-tips=""增长"" lay-offset=""-15""></span>)</h3>
                            <div class=""layui-progress-bar"" lay-percent=""65%""><span class=""layui-progress-text"">65%</span></div>
                        </div>
                        <div class=""layui-progress"" lay-showpercent=""yes"">
                            <h3>签到率(周同比 11%");
            WriteLiteral(@" <span class=""layui-edge layui-edge-bottom"" lay-tips=""下降"" lay-offset=""-15""></span>)</h3>
                            <div class=""layui-progress-bar layui-bg-orange"" lay-percent=""32%""><span class=""layui-progress-text"">32%</span></div>
                        </div>
                        <div class=""layui-progress"" lay-showpercent=""yes"">
                            <h3>签到率(月同比 65% <span class=""layui-edge layui-edge-bottom"" lay-tips=""下降"" lay-offset=""-15""></span>)</h3>
                            <div class=""layui-progress-bar layui-bg-orange"" lay-percent=""65%""><span class=""layui-progress-text"">32%</span></div>
                        </div>
                    </div>
                </div>
                <div class=""layui-card"">
                    <div class=""layui-card-header"">店铺销售排行榜</div>
                    <div class=""layui-card-body fyt-shoptop"">
                        <table class=""layui-table"">
                            <colgroup>
                                <col>
              ");
            WriteLiteral(@"                  <col width=""80"">
                                <col width=""90"">
                                <col width=""150"">
                            </colgroup>
                            <thead>
                                <tr>
                                    <th>加盟商名称</th>
                                    <th>总金额</th>
                                    <th>订单总数</th>
                                    <th>占比</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                    <td>¥56412.15</td>
                                    <td>2345</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" lay-percent=""60%""></div>
                  ");
            WriteLiteral(@"                      </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                    <td>¥56412.15</td>
                                    <td>2345</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" lay-percent=""40%""></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                    <td>¥56412.15</td>
                                    <td>2345</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
          ");
            WriteLiteral(@"                                  <div class=""layui-progress-bar"" lay-percent=""35%""></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                    <td>¥56412.15</td>
                                    <td>2345</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" lay-percent=""30%""></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                    <td>¥56412.15</td>
                                    <td>2345</td>
                                   ");
            WriteLiteral(@" <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" lay-percent=""20%""></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                    <td>¥56412.15</td>
                                    <td>2345</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" lay-percent=""16%""></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>秦皇岛店秦皇岛店</td>
                                ");
            WriteLiteral(@"    <td>¥56412.15</td>
                                    <td>2345</td>
                                    <td>
                                        <div class=""layui-progress"" lay-showpercent=""true"">
                                            <div class=""layui-progress-bar"" lay-percent=""5%""></div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(20211, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "26e3fa9c6eea4e7298617b41586d8aa2", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(20284, 6, true);
            WriteLiteral("\r\n    ");
            EndContext();
            BeginContext(20290, 70, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fb72db2f649b441a9add81606c5b5cc7", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(20360, 5926, true);
            WriteLiteral(@"
    <script>
        layui.use(['carousel', 'element'], function () {
            var carousel = layui.carousel;
            carousel.render({
                elem: '#shortcut'
                , width: '100%'
                , autoplay: false
                , arrow: 'none'
                , height: '180px'
                , indicator: 'outside'
            });
            carousel.render({
                elem: '#backlog'
                , width: '100%'
                , autoplay: false
                , arrow: 'none'
                , height: '180px'
                , indicator: 'outside'
            });
        });
        var baseChart = echarts.init(document.getElementById('base-map'), 'macarons');
        var option = {
            title: {
                //show:false,
                text: '今日销售金额汇总',
                textStyle: {
                    color: '#888',
                    align: 'center',
                    fontSize: 14,
                    fontWeight: '400'");
            WriteLiteral(@"
                }
            },
            tooltip: {
                trigger: 'axis'
            },
            toolbox: {
                feature: {
                    magicType: {
                        type: ['line', 'bar', 'stack', 'tiled']
                    },
                    saveAsImage: {}
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    boundaryGap: false,
                    data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '邮件营销',
                    type: 'line',
                    stack: '总量',
                    a");
            WriteLiteral(@"reaStyle: { normal: {} },
                    data: [120, 132, 101, 134, 90, 230, 210]
                },
                {
                    name: '联盟广告',
                    type: 'line',
                    stack: '总量',
                    areaStyle: { normal: {} },
                    data: [220, 182, 191, 234, 290, 330, 310]
                }
            ]
        };
        baseChart.setOption(option);

        var dataAxis = ['芳华店', '击', '柱', '子', '或', '者', '两', '指', '在', '触', '屏', '上', '滑', '动', '能', '够', '自', '动', '缩', '放'];
        var data = [220, 182, 191, 234, 290, 330, 310, 123, 442, 321, 90, 149, 210, 122, 133, 334, 198, 123, 125, 220];
        var yMax = 500;
        var dataShadow = [];
        for (var i = 0; i < data.length; i++) {
            dataShadow.push(yMax);
        }
        var brandChart = echarts.init(document.getElementById('brand-top'), 'macarons');
        brandChart.setOption({
            title: {
                show: false,
            },
     ");
            WriteLiteral(@"       grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                data: dataAxis,
                axisLabel: {
                    inside: true,
                    textStyle: {
                        color: '#fff'
                    }
                },
                axisTick: {
                    show: false
                },
                axisLine: {
                    show: false
                },
                z: 10
            },
            yAxis: {
                axisLine: {
                    show: false
                },
                axisTick: {
                    show: false
                },
                axisLabel: {
                    textStyle: {
                        color: '#999'
                    }
                }
            },
            tooltip: {
                trigger: 'axis'
            },
       ");
            WriteLiteral(@"     toolbox: {
                feature: {
                    magicType: {
                        type: ['line', 'bar', 'stack', 'tiled']
                    },
                    saveAsImage: {}
                }
            },
            series: [
                { // For shadow
                    type: 'bar',
                    itemStyle: {
                        normal: { color: 'rgba(0,0,0,0.05)' }
                    },
                    barGap: '-100%',
                    barCategoryGap: '40%',
                    data: dataShadow,
                    animation: false
                },
                {
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            color: new echarts.graphic.LinearGradient(
                                0, 0, 0, 1,
                                [
                                    { offset: 0, color: '#83bff6' },
                                    { offset: 0.5,");
            WriteLiteral(@" color: '#188df0' },
                                    { offset: 1, color: '#188df0' }
                                ]
                            )
                        },
                        emphasis: {
                            color: new echarts.graphic.LinearGradient(
                                0, 0, 0, 1,
                                [
                                    { offset: 0, color: '#2378f7' },
                                    { offset: 0.7, color: '#2378f7' },
                                    { offset: 1, color: '#83bff6' }
                                ]
                            )
                        }
                    },
                    data: data
                }
            ]
        });

    </script>
</div>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\ReturnLoss.cshtml"

            ViewData["Title"] = "返货报损记录";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(149, 5365, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'form'],
         ");
            WriteLiteral(@"   function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: '/api/stock/returnlosslist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'codeName', width: 220, title: '名称',  fixed: 'left' },
                            { field: 'count', width: 100, title: '数量' },
                            { field: 'summary', title: '描述' },
                            { field: 'addDate', width: 240, title: '添加时间' },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: { limits: [1");
            WriteLiteral(@"0, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    id: 'tables'
                });

                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        os.Open('添加返货报损', '/fytadmin/sale/returnlossmodify', '750px', '400px', function () {
                            active.reload();
                        });
                    },
                    toolDel: function () {
                      ");
            WriteLiteral(@"  var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/stock/delreturnloss/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                               ");
            WriteLiteral(@"     os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                table.on('toolbar(tool)', function (obj) {
                    active[obj.event] ? active[obj.event].call(this) : '';
                });
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑条形码', '/fytadmin/sale/returnlossmodify/?guid=' + data.guid, '750px', '400px', function () {
                            active.reload();
                        })
        ");
            WriteLiteral("            }\r\n                });\r\n            });\r\n    </script>\r\n    <script type=\"text/html\" id=\"tool\">\r\n        <a class=\"layui-btn layui-btn-primary layui-btn-xs\" lay-event=\"edit\"><i class=\"layui-icon\"></i> 修改</a>\r\n    </script>\r\n</div>\r\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\LossOrder.cshtml"

            ViewData["Title"] = "报损打包销售";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(149, 6007, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"" style=""display:none;"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolDel""><i class=""layui-icon layui-icon-delete""></i> 删除</button>
        </div>
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'form'],
            function () {
                var table = layui.table,
                    layer =");
            WriteLiteral(@" layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: '/api/goods/lossorder/list',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'number', width: 180, title: '订单号', fixed: 'left', sort: true, templet: function (res) { return '<a href=""javascript:void(0)""  lay-event=""skuinfo"" style=""color:#409eff"">'+res.number+'</a>'}},
                            { field: 'money', title: '金额', width: 100, sort: true},
                            { field: 'customerName', title: '客户姓名', width: 120 },
                            { field: 'customerMobile', title: '客户联系方式', width: 160 },
                            { field: 'summary', title: '备注' },
           ");
            WriteLiteral(@"                 { field: 'addDate', title: '添加时间', width: 260, sort: true},
                            { width: 140, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    id: 'tables'
                });
                table.on('sort(tool)', function (obj) {
                    var e = layer.load(2, { shade: [.05, '#000'] });
                    table.reload('tables', {
                        initSort: obj,
                        page: {
                            curr: 1
                        },
                        where: {
                            field: obj.field,
                            order: obj.type,
                            key: $(""#key"").val()
                        },
                        done: function () {
                            layer.close(e);
                        }
                    });
              ");
            WriteLiteral(@"  });
                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    //查看商品详细
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                  ");
            WriteLiteral(@"      $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/goods/dellossorder/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });
                    }
                };
                table.on('toolbar(tool)', function (obj) {
 ");
            WriteLiteral(@"                   active[obj.event] ? active[obj.event].call(this) : '';
                });
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'skuinfo') {
                        os.Open('报损打包销售', '/fytadmin/goods/lossorderinfo?guid=' + data.guid, '1000px', '600px', function () { });
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""skuinfo""><i class=""layui-icon layui-icon-list""></i> 查看详情</a>
    </script>
</div>");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Shop\StaffIndex.cshtml"

            ViewData["Title"] = "员工管理";
            Layout            = string.IsNullOrEmpty(Model.shopGuid)?AdminLayout.Pjax(HttpContext): "~/Pages/FytAdmin/_Layout.cshtml";

#line default
#line hidden
            BeginContext(219, 1450, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <div class=""list-wall"">
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'laydate'],
            function () {
                var tab");
            WriteLiteral(@"le = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common
                    , laydate = layui.laydate;
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , range: true
                });
                var urls = '/api/shops/stafflist';
                if ('");
            EndContext();
            BeginContext(1670, 14, false);
#line 39 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Shop\StaffIndex.cshtml"
            Write(Model.shopGuid);

#line default
#line hidden
            EndContext();
            BeginContext(1684, 46, true);
            WriteLiteral("\' != \'\') {\r\n                    urls +=\'?guid=");
            EndContext();
            BeginContext(1731, 14, false);
#line 40 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Shop\StaffIndex.cshtml"
            Write(Model.shopGuid);

#line default
#line hidden
            EndContext();
            BeginContext(1745, 1645, true);
            WriteLiteral(@"'
                }
                table.render({
                    elem: '#tablist',
                    url: urls,
                    cols: [
                        [
                            { field: 'trueName', title: '姓名', sort: true, fixed: 'left' },
                            { field: 'mobile', title: '手机号码' },
                            { field: 'sex', title: '性别' },
                            { field: 'addDate', title: '注册时间', sort: true },
                            { field: 'lastLoginDate', title: '最后登录时间' }
                        ]
                    ],
                    page: true,
                    limit:15,
                    id: 'tables'
                });
                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                  ");
            WriteLiteral(@"              where: {
                                    key: $(""#key"").val(),
                                    time: $(""#times"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
            });
    </script>
</div>
");
            EndContext();
        }
Exemple #16
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"

            ViewData["Title"] = "销售明细";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(142, 942, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-col-220 {
            width: 388px;
            top: 80px;left:12px;
        }
        .layui-col-220 .layui-nav-title{height:42px; line-height:42px;}
        .right-col-body {
            left: 400px;
            top: 60px;
        }
        .layui-card {
            background-color: #eaedf1;
            margin-top: 10px;
            box-shadow: 0 1px 2px 0 rgba(0,0,0,.3);
        }
        .layui-card-header{    border-bottom: 1px solid #D9DEE4;}
        .fyt-table{width:100%;}
        .fyt-table th{width:15%}
    </style>
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(1084, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cafd4992a88a4a209d4f5153fa90b61b", async() => {
                BeginContext(1101, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1121, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 35 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"

            foreach (var item in Model.shopList)
            {
#line default
#line hidden
                BeginContext(1236, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1264, 50, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f0d614960dd6451a9c8fa7ca72e0e450", async() => {
                    BeginContext(1292, 13, false);
#line 38 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"
                    Write(item.ShopName);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 38 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1314, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 39 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"
            }


#line default
#line hidden
            BeginContext(1366, 159, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"branks\" lay-search=\"\">\r\n                    ");
            EndContext();
            BeginContext(1525, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f328b7f5cd7c41c682011552a417870c", async() => {
                BeginContext(1542, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1562, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 46 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(1677, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1705, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dc4d8ae2a1a84c74a08698a00d26bc34", async() => {
                    BeginContext(1733, 9, false);
#line 49 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 49 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1751, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 50 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Index.cshtml"
            }


#line default
#line hidden
            BeginContext(1803, 645, true);
            WriteLiteral(@"                </select>
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
    </div>
    <div class=""layui-col-220"" id=""app"">
        <div class=""layui-nav-title"">销售订单列表   </div>
        <ul class=""fyt-utree"">
            <li v-for=""it in list"" v-cloak :class=""{active: activeName == it.number}"" ");
            EndContext();
            BeginContext(2449, 75, true);
            WriteLiteral("@click=\"selected(it.number)\">\r\n                <a class=\"layui-elip title\" ");
            EndContext();
            BeginContext(2525, 1726, true);
            WriteLiteral(@"@click=""getList(it)"">
                    <span class=""layui-badge layui-bg-cyan"" v-if=""it.saleType==1"">正</span>
                    <span class=""layui-badge layui-bg-cyan"" v-if=""it.saleType==2"">残</span>
                    {{it.number}}——{{it.shopName}}
                </a>
                <a class=""layui-elip sums""><span class=""layui-badge layui-bg-blue"">{{it.counts}}</span></a>
            </li>
        </ul>
    </div>
    <div class=""right-col-body"" id=""orders"">
        <div class=""list-wall"">
            <div class=""layui-card"">
                <div class=""layui-card-header"">订单详情</div>
                <div class=""layui-card-body"">
                    <table class=""fyt-table"">
                        <tr>
                            <th>订单编号:</th>
                            <td>{{curModel.number}}</td>
                            <th>下单时间:</th>
                            <td>{{curModel.addDate}}</td>
                            <th>数量:</th>
                            <td>{{curMode");
            WriteLiteral(@"l.counts}}</td>
                        </tr>
                        <tr>
                            <th>参加活动:</th>
                            <td>{{curModel.activityName}}</td>
                            <th>应收金额:</th>
                            <td><span class=""layui-badge layui-bg-cyan"">{{curModel.money}}</span></td>
                            <th>实收金额:</th>
                            <td><span class=""layui-badge layui-bg-blue"">{{curModel.realMoney}}</span></td>
                        </tr>
                    </table>
                </div>
            </div>
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(4251, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e970e50bf8a44829bda3134b31d9037a", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(4324, 3918, true);
            WriteLiteral(@"
    <script>
        var funTool, vm = new Vue({
            el: ""#app"",
            data: {
                list: [],
                activeName: '',
                parm: {
                    guid: ''
                }
            },
            methods: {
                selected: function (m) {
                    this.activeName = m;
                },
                getList: function (m) {
                    vues.curModel = m;
                    funTool.getGoodsSku(m);
                }
            }
        });
        var vues = new Vue({
            el:""#orders"",
            data: {
                curModel: {
                    money: 0,
                    realMoney:0
                },
            }
        });
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'form', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
               ");
            WriteLiteral(@"     $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
                    elem: '#tablist',
                    url: '/api/sale/goods',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 200, title: '条形码', fixed: 'left' },
                            { field: 'brandName', title: '品牌' },
                            { field: 'styleName', title: '款式' },
                            { field: 'seasonName', width: 150, title: '季节' },
                            { field: 'counts', title: '销售数' }
                        ]
                    ],
                    page: true,
                    limit: 20,
                    id: 'tables'
                });
                

                var orderguid = '', shopGuid = '', active = {
                    reloa");
            WriteLiteral(@"d: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    guid: orderguid,
                                    key: $('#key').val(),
                                    brank: $('#branks').val(),
                                    shopGuid: $(""#shops"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        vm.parm.guid = $(""#shops"").val();
                        active.reload();
                        if (vm.parm.guid != '') {
                            funTool.orderPage();
                        }
                    }
                };

                funTool = {
                    getGoodsSku: function (obj) {
                        orde");
            WriteLiteral(@"rguid = obj.number; 
                        active.reload();
                    },
                    orderPage: function () {
                        os.ajax('api/sale/order', vm.parm, function (res) {
                            if (res.statusCode === 200) {
                                vm.list = res.data.items;
                            } else {
                                os.error(res.message);
                            }
                        });
                    }
                }
                //初始化入库单管理
                funTool.orderPage();
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
            });
    </script>
</div>

");
            EndContext();
        }
Exemple #17
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Shop\ActivityIndex.cshtml"

            ViewData["Title"] = "活动管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(150, 6284, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <div class=""list-wall"">
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container list-search"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'laydate', 'form'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common
                    , laydate = layui.laydate");
            WriteLiteral(@"
                    , form = layui.form;
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , range: true
                });
                var urls = '/api/shops/actlist';
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',
                    url: urls,
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'typeName', title: '活动方式', sort: true, fixed: 'left' },
                            { field: 'methodName', title: '活动类型' },
                            { field: 'countNum', title: '折扣' },
                            { field: 'beginDate', title: '开始时间', sort: true },
                            { field: 'endDate', title: '结束时间' },
                            { field: 'status', title: '活动状态' },
                            { field: 'enable', width: 150,");
            WriteLiteral(@" title: '状态', templet: '#switchTpl' },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    id: 'tables'
                });
                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    time: $(""#times"").val()
                                }
                            });
                    },
                    toolAdd: function () {
                        os.Open('添加活动', '/fytadmin/shop/activitymodify?shop=all', '850px', '450px', function () {
          ");
            WriteLiteral(@"                  active.reload();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/shops/deleteact/', { parm: str }, function (res) {
                                layer.close(loadindex)");
            WriteLiteral(@";
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });
                    },
                    toolSearch: function () {
                        active.reload();
                    }
                };
                table.on('toolbar(tool)', function (obj) {
                    active[obj.event] ? active[obj.event].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑活动', '/fytadmin/shop/activitymodify?shop=all&guid=' + data.guid, '850px', '450px', function () {
                            ");
            WriteLiteral(@"active.reload();
                        });
                    }
                });
                //监听状态操作
                form.on('switch(enableedit)', function (obj) {
                    var index = layer.load(1, {
                        shade: [0.1, '#000']
                    });
                    os.ajax('api/shops/modifyactstatus', { Guid: this.value, Enable: obj.elem.checked }, function (res) {
                        if (res.statusCode === 200) {
                            os.success('状态更改成功~');
                            layer.close(index);
                        } else {
                            os.error(res.message);
                        }
                    });
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
    <script type=""text/html"" id=""switchTpl"">
        <input type=""checkbox"" name=""e");
            WriteLiteral("nable\" value=\"{{d.guid}}\" lay-skin=\"switch\" lay-text=\"ON|OFF\" lay-filter=\"enableedit\" {{ d.enable?\'checked\':\'\'}}>\r\n    </script>\r\n</div>\r\n\r\n");
            EndContext();
        }
Exemple #18
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Finance\Accounting.cshtml"

            ViewData["Title"] = "财务管理-核算总账";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(155, 306, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-table td {
            border-radius: 0px;
        }
    </style>
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(461, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "afb1fe6a5a1a4e3b81342bd8b6fae582", async() => {
                BeginContext(478, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(498, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 18 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Finance\Accounting.cshtml"

            if (Model.shopList != null)
            {
                foreach (var item in Model.shopList)
                {
#line default
#line hidden
                    BeginContext(701, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(733, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1b8a33d6873c447ab3b341c1d08f21cd", async() => {
                        BeginContext(761, 13, false);
#line 23 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Finance\Accounting.cshtml"
                        Write(item.ShopName);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 23 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Finance\Accounting.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(783, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 24 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Finance\Accounting.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(866, 4222, true);
            WriteLiteral(@"                </select>
            </div>
            <div class=""layui-inline"">
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
    </div>
    <div class=""list-wall"" style=""padding-top:0px"">
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script type=""text/html"" id=""realMoney"">
        {{(d.money-d.backMoney).toFixed(2)}}
    </script>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'form', 'common', 'laydate'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $");
            WriteLiteral(@" = layui.jquery,
                    os = layui.common,
                    form = layui.form,
                    laydate = layui.laydate;
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , range: true
                    , format: 'yyyy/MM/dd'
                });
                form.render('select');
                table.render({
                    toolbar:true,
                    elem: '#tablist',
                    url: '/api/inventory/shopturnover',
                    cols: [
                        [
                            { field: 'shopName', title: '店铺名称', fixed: 'left', sort: true },
                            { field: 'orderCount', width: 150, title: '订单数', sort: true },
                            { field: 'money', width: 120, title: '应收营业额', sort: true },
                            { field: 'backMoney', width: 120, title: '退货金额', sort: true},
                            { field: 'money',");
            WriteLiteral(@" width: 200, title: '实收营业额', sort: true, style: 'background-color: #D9DEE4;', templet: '#realMoney' },
                            { field: 'returnCount', width: 160, title: '返货数', sort: true },
                            { field: 'backCount', width: 160, title: '退货数', sort: true }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    limit: 15,
                    id: 'tables'
                });
                table.on('sort(tool)', function (obj) {
                    var e = layer.load(2, { shade: [.05, '#000'] });
                    table.reload('tables', {
                        initSort: obj,
                        page: {
                            curr: 1
                        },
                        where: {
                            field: obj.field,
                            order: obj.type,
                            time: $(""#times"").val(),
              ");
            WriteLiteral(@"              guid: $(""#shops"").val()
                        },
                        done: function () {
                            layer.close(e);
                        }
                    });
                });
                var active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    time: $(""#times"").val(),
                                    guid: $(""#shops"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
   ");
            WriteLiteral("                 active[type] ? active[type].call(this) : \'\';\r\n                });\r\n            });\r\n    </script>\r\n</div>\r\n\r\n");
            EndContext();
        }
Exemple #19
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sys\Log.cshtml"

            ViewData["Title"] = "系统日志";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(139, 4855, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
            layui.config({
                base: '/themes/js/modules/'
            ");
            WriteLiteral(@"}).use(['table', 'layer', 'jquery', 'laydate', 'common'],
                function () {
                    var table = layui.table,
                        layer = layui.layer,
                        $ = layui.jquery,
                        os = layui.common, 
                        laydate = layui.laydate;
                    laydate.render({
                        elem: '#times'
                        , theme: '#393D49'
                        , range: true
                    });
                    table.render({
                        elem: '#tablist',
                        url: '/api/log/getpages',
                        cols: [
                            [
                                { type: 'checkbox', fixed: 'left' },
                                { field: 'loginName', title: '登录账号', sort: true, fixed: 'left' },
                                { field: 'departName', title: '归属部门' },
                                { field: 'optionTable', title: '操作表' },
         ");
            WriteLiteral(@"                       { field: 'ip', title: 'IP' },
                                { field: 'addTime', title: '登录时间' }
                            ]
                        ],
                        page: true,
                        id: 'tables'
                    });
                    
                    var guid = '', active = {
                        reload: function () {
                            table.reload('tables',
                                {
                                    page: {
                                        curr: 1
                                    },
                                    where: {
                                        key: $(""#key"").val(),
                                        time: $(""#times"").val()
                                    }
                                });
                        },      
                        toolSearch: function () { 
                            active.reload();
                       ");
            WriteLiteral(@" },
                        toolDel: function () {
                            var checkStatus = table.checkStatus('tables')
                                , data = checkStatus.data;
                            if (data.length === 0) {
                                os.error(""请选择要删除的项目~"");
                                return;
                            }
                            var str = '';
                            $.each(data, function (i, item) {
                                str += item.guid + "","";
                            });
                            layer.confirm('确定要执行批量删除吗?', function (index) {
                                layer.close(index);
                                var loadindex = layer.load(1, {
                                    shade: [0.1, '#000']
                                });
                                os.ajax('api/log/delete/', { parm: str }, function (res) {
                                    layer.close(loadindex);
              ");
            WriteLiteral(@"                      if (res.statusCode === 200) {
                                        active.reload();
                                        os.success('删除成功!');
                                    } else {
                                        os.error(res.message);
                                    }
                                });
                            });

                        }
                    };                   
                    $('.list-search .layui-btn').on('click', function () {
                        var type = $(this).data('type');
                        active[type] ? active[type].call(this) : '';
                    });                   
                });
    </script>   
</div>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Goods\Index.cshtml"

            ViewData["Title"] = "商品管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(143, 4829, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>           
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
             ");
            WriteLiteral(@"       os = layui.common;
                table.render({
                    elem: '#tablist',
                    url: '/api/goods/goodslist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'title', title: '商品名称', sort: true, fixed: 'left' },
                            { field: 'brank', title: '品牌' },
                            { field: 'style', title: '款式' },
                            { field: 'addDate', title: '添加时间' }
                            //{ width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: true,
                    id: 'tables'
                });

                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
     ");
            WriteLiteral(@"                           },
                                where: {
                                    key: $(""#key"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        os.Open('添加条形码', '/fytadmin/goods/barcodemodify', '750px', '400px', function () {
                            active.reload();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
  ");
            WriteLiteral(@"                          str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/goods/delgoods/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(t");
            WriteLiteral(@"his).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑条形码', '/fytadmin/goods/barcodemodify/?guid=' + data.guid, '750px', '400px', function () {
                            active.reload();
                        })
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>
");
            EndContext();
        }
Exemple #21
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sys\Menu.cshtml"

            ViewData["Title"] = "菜单管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(140, 690, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""layui-col-220"">
        <div class=""layui-nav-title"">菜单管理</div>
        <ul id=""tree"" class=""ztree layui-tree-cus""></ul>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <div class=""layui-form list-search"">
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""organizeAdd""><i class=""layui-icon""></i> 新增</button>
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""organizeDel""><i class=""layui-icon""></i> 删除</button>
            </div>
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(830, 91, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "cf75fbdf4ec8485abdd6814fffa5f0fb", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(921, 5170, true);
            WriteLiteral(@"
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'ztree', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    ztree = layui.ztree,
                    os = layui.common,
                    form = layui.form;
                table.render({
                    elem: '#tablist',
                    url: '/api/menu/getpages',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'name', title: '菜单名称', sort: true, fixed: 'left' },
                            { field: 'nameCode', title: '编号' },
                            { field: 'urls', title: 'Url' },
                            { field: 'sort', width: 150, title: '排序', sort: true },
                            { field: 'layer', width: 150, title");
            WriteLiteral(@": '层级' },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: true,
                    limit:1000,
                    id: 'tables'
                });
                var setting = {
                    async: {
                        enable: true,
                        url: ""/api/menu/gettree""
                    },
                    callback: {
                        onClick: onClick
                    }
                };
                var guid = '', typeName = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: guid
                                }
                            });
             ");
            WriteLiteral(@"       },
                    organizeAdd: function () {
                        os.Open('添加菜单', '/fytadmin/sys/menumodify', '620px', '450px', function () {
                            active.reload();
                            var tree = $.fn.zTree.getZTreeObj(""tree"");
                            tree.reAsyncChildNodes(null, ""refresh"");
                        });
                    },
                    organizeDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.warning(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                          ");
            WriteLiteral(@"  layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/menu/delete/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    var tree = $.fn.zTree.getZTreeObj(""tree"");
                                    tree.reAsyncChildNodes(null, ""refresh"");
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                $.fn.zTree.init($(""#tree""), setting);
                $('.list-search .layui-btn').on('click', function () {
   ");
            WriteLiteral(@"                 var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                function onClick(event, treeId, treeNode, clickFlag) {
                    guid = treeNode.guid;
                    active.reload();
                }
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑菜单', '/fytadmin/sys/menumodify/?guid=' + data.guid, '620px', '450px', function () {
                            var tree = $.fn.zTree.getZTreeObj(""tree"");
                            tree.reAsyncChildNodes(null, ""refresh"");
                            active.reload();
                        })
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""l");
            WriteLiteral("ayui-icon\"></i> 修改</a>\r\n    </script>\r\n</div>\r\n\r\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Shop\Index.cshtml"

            ViewData["Title"] = "店铺管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(142, 16040, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolExport""><i class=""layui-icon layui-icon-component""></i> 导出Excel</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolActivity""><i class=""layui-icon layui-icon-app""></i> 添加全局活动</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""shopkey"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-searc");
            WriteLiteral(@"h""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <div class=""layui-row"">
        <div class=""layui-col-xs12 layui-col-sm12 layui-col-md6"">
            <div class=""list-wall"">
                <div class=""layui-form list-search"">
                    <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolActAdd""><i class=""layui-icon""></i> 添加活动</button>
                    <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolActDel""><i class=""layui-icon""></i> 删除活动</button>
                </div>
                <table class=""layui-hide"" id=""table-act"" lay-filter=""acttool""></table>
            </div>
        </div>
        <div class=""layui-col-xs12 layui-col-sm12 layui-col-md6"">
            <div class=""list-wall"">
                <div class=""layui-form list-search"">
                    <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolUserAdd""><i class=""layui-icon""></i> 添加会员");
            WriteLiteral(@"</button>
                    <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolUserDel""><i class=""layui-icon""></i> 删除会员</button>
                </div>
                <table class=""layui-hide"" id=""table-user"" lay-filter=""usertool""></table>
            </div>
        </div>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                table.render({
                    elem: '#tablist',
                    url: '/api/shops/list',
                    height: 300,
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'shopName', title: '店铺名称', sort: true");
            WriteLiteral(@", fixed: 'left', event: 'gotool' },
                            { field: 'loginName', title: '登录账号', event: 'gotool' },
                            { field: 'adminName',  title: '负责人', event: 'gotool' },
                            { field: 'mobile',  title: '联系方式', sort: true, event: 'gotool' },
                            { field: 'shopCity',  title: '所在地区', sort: true, event: 'gotool' },
                            { field: 'regDate',  title: '添加时间', event: 'gotool' },
                            { width: 200, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: true,
                    id: 'tables'
                });

                //活动
                table.render({
                    elem: '#table-act',
                    url: '/api/shops/actlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'methodName',width:100,");
            WriteLiteral(@" title: '活动方式' },
                            { field: 'countNum',width:80, title: '折扣数' },
                            { field: 'beginDate', title: '开始时间', sort: true },
                            { field: 'endDate', title: '结束时间', sort: true },
                            { field: 'status', width: 100, title: '状态' },
                            { title: '操作', width: 100, templet: '#acttool' }
                        ]
                    ],
                    page: true,
                    limit: 10,
                    id: 'act-tables'
                });

                //会员
                table.render({
                    elem: '#table-user',
                    url: '/api/shops/userlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'userName', title: '姓名', sort: true, fixed: 'left' },
                            { field: 'mobile', title: '手机号码' },
                  ");
            WriteLiteral(@"          { field: 'points', title: '积分数' },
                            { field: 'sex', title: '性别', sort: true },
                            { field: 'regDate', title: '注册时间' },
                            { title: '操作', templet: '#usertool' }
                        ]
                    ],
                    page: true,
                    limit: 10,
                    id: 'user-tables'
                });

                var shopGuid = '', active = {
                    //店铺重载
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#shopkey"").val()
                                }
                            });
                    },
                    //点击店铺查询活动和店铺会员
                    reloadActAndUser: funct");
            WriteLiteral(@"ion () {
                        table.reload('act-tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    guid: shopGuid
                                }
                            });
                        table.reload('user-tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    guid: shopGuid
                                }
                            });
                    },
                    //店铺搜索
                    toolSearch: function () {
                        active.reload();
                    },
                    //添加全局活动
                    toolActivity: function () { 
                        os.Open('添");
            WriteLiteral(@"加活动', '/fytadmin/shop/activitymodify?shop=all', '850px', '450px', function () {
                            active.reloadActAndUser();
                        });
                    },
                    //添加店铺活动
                    toolActAdd: function () {
                        if (shopGuid === '') {
                            os.warning('请选择店铺~'); return;
                        }
                        os.Open('添加活动', '/fytadmin/shop/activitymodify?shop=' + shopGuid, '850px', '450px', function () {
                            active.reloadActAndUser();
                        });
                    },
                    //删除活动
                    toolActDel: function () {
                        var checkStatus = table.checkStatus('act-tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.warning(""请选择要删除的项目~"");
                            return;
                        }
                ");
            WriteLiteral(@"        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/shops/deleteact/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reloadActAndUser();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });
                    },
                    //添加会员
    ");
            WriteLiteral(@"                toolUserAdd: function () {
                        if (shopGuid === '') {
                            os.warning('请选择店铺~'); return;
                        }
                        os.Open('添加会员', '/fytadmin/shop/usermodify?shop=' + shopGuid, '600px', '450px', function () {
                            active.reloadActAndUser();
                        });
                    },
                    //删除会员
                    toolUserDel: function () {
                        var checkStatus = table.checkStatus('user-tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.warning(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function");
            WriteLiteral(@" (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/shops/deleteuser/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reloadActAndUser();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });
                    },
                    //添加店铺
                    toolAdd: function () {
                        os.Open('添加店铺', '/fytadmin/shop/shopmodify', '850px', '500px', function () {
                            active.reload();
                        });         ");
            WriteLiteral(@"               
                    },
                    //删除店铺
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.warning(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/shops/delete/', { parm: str }, function (res) {
                                layer.close(loadindex);
                  ");
            WriteLiteral(@"              if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });

                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑店铺', '/fytadmin/shop/shopmodify/?guid=' + data.guid, '850px', '500px', function () {
                            active.reload();
                        })
                    }
                 ");
            WriteLiteral(@"   if (obj.event === 'gotool') {
                        shopGuid = data.guid;
                        active.reloadActAndUser();
                    }
                    if (obj.event ==='staff') {
                        var winH = $(window).height();
                        layuiIndex = layer.open({
                            title: '员工管理'
                            , type: 2
                            , area: ['700px', winH-60+'px']
                            , shade: [0.1, '#333']
                            , resize: false
                            , anim: -1
                            , offset: 'rb'
                            , shadeClose: true
                            , skin: 'layer-anim-07'
                            , content: ""/fytadmin/shop/staffindex?shop="" + data.guid
                            , end: function () {
                                
                            }
                        });
                    }
                });
             ");
            WriteLiteral(@"   //监听工具条
                table.on('tool(acttool)', function (obj) {
                    var data = obj.data;
                    if (data.types !=1) {
                        os.error('全局活动不能修改');
                        return;
                    }
                    if (obj.event === 'edit') {
                        os.Open('编辑活动', '/fytadmin/shop/activitymodify/?guid=' + data.guid + ""&shop="" + shopGuid, '850px', '500px', function () {
                            active.reloadActAndUser();
                        })
                    }
                });
                //监听工具条
                table.on('tool(usertool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑会员', '/fytadmin/shop/usermodify/?guid=' + data.guid + ""&shop="" + shopGuid, '600px', '450px', function () {
                            active.reloadActAndUser();
                        })
                    }
             ");
            WriteLiteral(@"   });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""staff""><i class=""layui-icon""></i> 员工管理</a>
    </script>
    <script type=""text/html"" id=""acttool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
    <script type=""text/html"" id=""usertool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>

");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            ViewData["Title"] = "库存盘点";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(147, 574, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <div class=""layui-inline"">
                <select id=""years"" lay-search="""">
                    ");
            EndContext();
            BeginContext(721, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "04835c34038d4e7bb306b6bfef2998dc", async() => {
                BeginContext(738, 11, true);
                WriteLiteral("--可根据年份搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(758, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            if (Model.yearCodeList != null)
            {
                foreach (var item in Model.yearCodeList)
                {
#line default
#line hidden
                    BeginContext(969, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(1001, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0dcf442ad6d74ed3b56fc1d9c64aca53", async() => {
                        BeginContext(1029, 9, false);
#line 24 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                        Write(item.Name);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 24 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1047, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 25 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(1130, 145, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"branks\">\r\n                    ");
            EndContext();
            BeginContext(1275, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "85df42f533d14da5b4ca08348ea46666", async() => {
                BeginContext(1292, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1312, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 33 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(1427, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1455, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b93605b7f2b84a75b150d59d853ceec0", async() => {
                    BeginContext(1483, 9, false);
#line 36 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 36 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1501, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 37 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
            }


#line default
#line hidden
            BeginContext(1553, 160, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"seasons\" lay-search=\"\">\r\n                    ");
            EndContext();
            BeginContext(1713, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f043dfe8eb724a6ea542647aa0069b21", async() => {
                BeginContext(1730, 11, true);
                WriteLiteral("--可根据季节搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1750, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 44 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            if (Model.seasonCodeList != null)
            {
                foreach (var item in Model.seasonCodeList)
                {
#line default
#line hidden
                    BeginContext(1965, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(1997, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f9ca3275d90406bbddc6d2d9b454c6a", async() => {
                        BeginContext(2025, 9, false);
#line 49 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                        Write(item.Name);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 49 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(2043, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 50 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(2126, 157, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"size\" lay-search=\"\">\r\n                    ");
            EndContext();
            BeginContext(2283, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "67f7e49309a44d018691f7bd7d2b739c", async() => {
                BeginContext(2300, 11, true);
                WriteLiteral("--可根据尺码搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2320, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 58 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"

            if (Model.sizeCodeList != null)
            {
                foreach (var item in Model.sizeCodeList)
                {
#line default
#line hidden
                    BeginContext(2531, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
                    BeginContext(2563, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "adec83d5f50f46f3a6ae602116dd9c82", async() => {
                        BeginContext(2591, 9, false);
#line 63 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                        Write(item.Name);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 63 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(2609, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 64 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Inventory.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(2692, 4414, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'laydate', 'form'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    laydate = layui.laydate,
                    form = layui.form,
                    objOrder = { field: 'totalStock', type:'desc'};
                form.render('select');
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , format: 'yyyy/MM/dd'
                    , range: true
");
            WriteLiteral(@"                });
                table.render({
                    toolbar:true,
                    elem: '#tablist',
                    loading: true,
                    url: '/api/inventory/stock',
                    totalRow: true,
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left', totalRowText: '合计行' },
                            { field: 'code',width:200, title: '条形码', sort: true, fixed: 'left' },
                            { field: 'totalStock', title: '总入库数', sort: true, totalRow: true },
                            { field: 'stock', title: '剩余库存', sort: true, totalRow: true },
                            { field: 'outStock', title: '出库数', sort: true, totalRow: true },
                            { field: 'transfer', title: '调拨', sort: true, totalRow: true },
                            { field: 'return', title: '返货', sort: true, totalRow: true },
                            { field: 'back', title: '退货', sort: t");
            WriteLiteral(@"rue, totalRow: true },
                            { field: 'sale', title: '销售数', sort: true, totalRow: true },
                            { field: 'loss', title: '报损数', sort: true, totalRow: true }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    limit: 15,
                    id: 'tables'
                });

                table.on('sort(tool)', function (obj) { 
                    var e = layer.load(2, { shade: [.05, '#000']});
                    table.reload('tables', {
                        initSort: obj,
                        page: {
                            curr: 1
                        },
                        where: {
                            field: obj.field,
                            order: obj.type
                        },
                        done: function () {
                            layer.close(e);
                        }
      ");
            WriteLiteral(@"              });
                });

                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    time: $(""#times"").val(),
                                    guid: $(""#branks"").val(),
                                    size: $('#size').val(),
                                    year: $('#years').val(),
                                    season: $('#seasons').val(),
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolExport: function () {
                        os.s");
            WriteLiteral(@"uccess('正在开发中');
                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });  
            });
    </script>
</div>

");
            EndContext();
        }
Exemple #24
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sys\Admin.cshtml"

            ViewData["Title"] = "管理员管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(142, 846, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""layui-col-220"">
        <div class=""layui-nav-title"">用户管理</div>
        <ul id=""tree"" class=""ztree layui-tree-cus""></ul>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <div class=""layui-form list-search"">
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""organizeAdd""><i class=""layui-icon""></i> 新增</button>
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""organizeDel""><i class=""layui-icon""></i> 删除</button>
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolToRole""><i class=""layui-icon layui-icon-template""></i> 用户分配角色</button>
            </div>
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(988, 91, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "f8a9743a5604487fa900c442513128f7", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1079, 6641, true);
            WriteLiteral(@"
        <script>
            layui.config({
                base: '/themes/js/modules/'
            }).use(['table', 'layer', 'jquery', 'ztree', 'common'],
                function () {
                    var table = layui.table,
                        layer = layui.layer,
                        $ = layui.jquery,
                        ztree = layui.ztree,
                        os = layui.common,
                        form = layui.form;
                    table.render({
                        elem: '#tablist',
                        url: '/api/admin/getpages',
                        cols: [
                            [
                                { type: 'checkbox', fixed: 'left' },
                                { field: 'loginName', title: '登录账号', sort: true, fixed: 'left' },
                                { field: 'trueName', title: '真是姓名' },
                                { field: 'departmentName', title: '所属部门' },
                                { field: 'sex', t");
            WriteLiteral(@"itle: '性别' },
                                { field: 'loginDate', title: '最后登录时间' },
                                { width: 100, title: '操作', templet: '#tool' }
                            ]
                        ],
                        page: true,
                        id: 'tables'
                    });
                    var setting = {
                        async: {
                            enable: true,
                            url: ""/api/organize/gettree""
                        },
                        callback: {
                            onClick: onClick
                        }
                    };
                    var guid = '', typeName = '', active = {
                        reload: function () {
                            table.reload('tables',
                                {
                                    page: {
                                        curr: 1
                                    },
                                 ");
            WriteLiteral(@"   where: {
                                        key: guid
                                    }
                                });
                        },
                        //为用户分配角色
                        toolToRole: function () { 
                            var checkStatus = table.checkStatus('tables')
                                , data = checkStatus.data;
                            if (data.length === 0) {
                                os.error(""请选择要分配的用户~"");
                                return;
                            }
                            var str = '', strCount = 0,adminName='';
                            $.each(data, function (i, item) {
                                str = item.guid;
                                adminName = item.loginName;
                                strCount++;
                            });
                            if (strCount > 1) {
                                os.warning('每次只能选址一个用户~');
                    ");
            WriteLiteral(@"            return;
                            }
                            os.Open('为用户' + adminName+'分配角色', '/fytadmin/sys/admintorole?roid='+str, '750px', '450px');
                        },
                        organizeAdd: function () {
                            os.Open('添加用户', '/fytadmin/sys/adminmodify', '750px', '400px', function () {
                                active.reload();
                                var tree = $.fn.zTree.getZTreeObj(""tree"");
                                tree.reAsyncChildNodes(null, ""refresh"");
                            });
                        },
                        organizeDel: function () {
                            var checkStatus = table.checkStatus('tables')
                                , data = checkStatus.data;
                            if (data.length === 0) {
                                os.error(""请选择要删除的项目~"");
                                return;
                            }
                            var st");
            WriteLiteral(@"r = '';
                            $.each(data, function (i, item) {
                                str += item.guid + "","";
                            });
                            layer.confirm('确定要执行批量删除吗?', function (index) {
                                layer.close(index);
                                var loadindex = layer.load(1, {
                                    shade: [0.1, '#000']
                                });
                                os.ajax('api/admin/delete/', { parm: str }, function (res) {
                                    layer.close(loadindex);
                                    if (res.statusCode === 200) {
                                        active.reload();
                                        var tree = $.fn.zTree.getZTreeObj(""tree"");
                                        tree.reAsyncChildNodes(null, ""refresh"");
                                        os.success('删除成功!');
                                    } else {
                  ");
            WriteLiteral(@"                      os.error(res.message);
                                    }
                                });
                            });

                        }
                    };
                    $.fn.zTree.init($(""#tree""), setting);
                    $('.list-search .layui-btn').on('click', function () {
                        var type = $(this).data('type');
                        active[type] ? active[type].call(this) : '';
                    });
                    function onClick(event, treeId, treeNode, clickFlag) {
                        guid = treeNode.guid;
                        active.reload();
                    }
                    //监听工具条
                    table.on('tool(tool)', function (obj) {
                        var data = obj.data;
                        if (obj.event === 'edit') {
                            os.Open('编辑用户', '/fytadmin/sys/adminmodify/?guid=' + data.guid, '750px', '400px', function () {
                          ");
            WriteLiteral(@"      var tree = $.fn.zTree.getZTreeObj(""tree"");
                                tree.reAsyncChildNodes(null, ""refresh"");
                                active.reload();
                            })
                        }
                    });
                });
        </script>
        <script type=""text/html"" id=""tool"">
            <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
        </script>
    
</div>


");
            EndContext();
        }
Exemple #25
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sys\Codes.cshtml"

            ViewData["Title"] = "字典管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(141, 1341, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""layui-col-220"">
        <div class=""layui-nav-title"">字典管理 <button class=""layui-btn layui-btn-sm"" id=""code-class-add""><i class=""layui-icon""></i>添加</button></div>
        <ul id=""code-tree"" class=""ztree layui-tree-cus""></ul>
        <div class=""tree-footer"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""typeEdit""><i class=""layui-icon""></i> 修改</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""typeDel""><i class=""layui-icon""></i> 删除</button>
        </div>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <div class=""layui-form list-search"">
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""codeAdd""><i class=""layui-icon""></i> 新增</button>
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""codeDel""><i class=""layui-icon""></i> 删除</button>
            </div>
            <table class=""layui-hide"" id=""tabl");
            WriteLiteral(@"ist"" lay-filter=""tool""></table>
        </div>
    </div>
    <script type=""text/html"" id=""switchTpl"">
        <!-- 这里的 checked 的状态只是演示 -->
        <input type=""checkbox"" name=""status"" value=""{{d.guid}}"" lay-skin=""switch"" lay-text=""ON|OFF"" lay-filter=""statusedit"" {{ d.status?'checked':''}}>
    </script>
    ");
            EndContext();
            BeginContext(1482, 91, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "51b47a7baef1421b82ff19d4a2ea015a", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1573, 6909, true);
            WriteLiteral(@"
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'ztree', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    ztree = layui.ztree,
                    os = layui.common,
                    form = layui.form;
                table.render({
                    elem: '#tablist',
                    url: '/api/code/getpages',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'name', title: '字典名称', sort: true, fixed: 'left' },
                            { field: 'codeType', title: '阈值' }, { field: 'sort', width: 150, title: '顺序', sort: true },
                            { field: 'status', width: 150, title: '状态', templet: '#switchTpl' },
                            { width: 100, title: '操作', t");
            WriteLiteral(@"emplet: '#tool' }
                        ]
                    ],
                    page: true,
                    id: 'tables'
                });
                //监听状态操作
                form.on('switch(statusedit)', function (obj) {
                    var index = layer.load(1, {
                        shade: [0.1, '#000']
                    });
                    os.ajax('api/code/editstatus', { guid: this.value, status: obj.elem.checked }, function (res) {
                        if (res.statusCode === 200) {
                            os.success('状态更改成功~');
                            layer.close(index);
                        } else {
                            os.error(res.message);
                        }
                    });
                });
                var setting = {
                    async: {
                        enable: true,
                        url: ""/api/codetype/gettree""
                    },
                    callback: {
           ");
            WriteLiteral(@"             onClick: onClick
                    }
                };
                var guid = '', typeName = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    guid: guid
                                }
                            });
                    },
                    typeEdit: function () {
                        os.Open('字典修改', '/fytadmin/sys/codesmodify/?guid=' + guid, '500px', '280px', function () {
                            $.fn.zTree.init($(""#code-tree""), setting);
                        });
                    },
                    typeDel: function () {
                        layer.confirm('确定要删除 ' + typeName + ' 吗?', function (index) {
                            layer.close(index);
");
            WriteLiteral(@"                            os.ajax('api/codetype/delete/', { guid: guid }, function (res) {
                                if (res.statusCode === 200) {
                                    $.fn.zTree.init($(""#code-tree""), setting);
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    },
                    codeAdd: function () {
                        if (!guid) {
                            os.error(""请选择左侧字典类型~"");
                            return;
                        }
                        os.Open('添加字典值', '/fytadmin/sys/codesvalmodify/?guid=' + guid, '620px', '370px', function () {
                            active.reload();
                        });
                    },
                    codeDel: function () {
                        var checkStatus = ");
            WriteLiteral(@"table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.warning(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/code/delete/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
");
            WriteLiteral(@"
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });

                    }
                };
                //添加栏目
                $('#code-class-add').on('click',
                    function () {
                        os.Open('字典栏目', '/fytadmin/sys/codesmodify/', '500px', '280px', function () {
                            $.fn.zTree.init($(""#code-tree""), setting);
                        });
                    });

                $.fn.zTree.init($(""#code-tree""), setting);

                $('.tree-footer .layui-btn,.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                function onClick(event, treeId, treeNode, clickFlag) {
                    $("".tree-footer"").addClass(""active"");
         ");
            WriteLiteral(@"           guid = treeNode.guid;
                    typeName = treeNode.name;
                    active.reload();
                }
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑字典值', '/fytadmin/sys/codesvalmodify/?guid=' + data.guid, '620px', '370px', function () {
                            active.reload();
                        })
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>

");
            EndContext();
        }
Exemple #26
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"

            ViewData["Title"] = "退货管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(141, 364, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(505, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "aa0dd80c86c142e787ec98b87e4e42c7", async() => {
                BeginContext(522, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(542, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 16 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"

            foreach (var item in Model.shopList)
            {
#line default
#line hidden
                BeginContext(657, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(685, 50, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8956278c70204847ac2a5d7625397d21", async() => {
                    BeginContext(713, 13, false);
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"
                    Write(item.ShopName);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 19 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(735, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 20 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"
            }


#line default
#line hidden
            BeginContext(787, 159, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"branks\" lay-search=\"\">\r\n                    ");
            EndContext();
            BeginContext(946, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9215e4a4d696454fb74e70924ee139e9", async() => {
                BeginContext(963, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(983, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 27 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(1098, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1126, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4c31026d22c24cddbdd911cb0aab6e1f", async() => {
                    BeginContext(1154, 9, false);
#line 30 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 30 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1172, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 31 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Back.cshtml"
            }


#line default
#line hidden
            BeginContext(1224, 3890, true);
            WriteLiteral(@"                </select>
            </div>
            <div class=""layui-inline lay-time-icon"">
                <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'form', 'laydate'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form,
                    laydate = layui.laydate;
                form.render('select');
                laydate.render({
              ");
            WriteLiteral(@"      elem: '#times'
                    , theme: '#393D49'
                    , range: true
                });
                table.render({
                    elem: '#tablist',
                    url: '/api/stock/backlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 170, title: '条形码', sort: true, fixed: 'left' },
                            { field: 'orderNumber', width: 160, title: '订单号', sort: true },
                            { field: 'styleName', title: '商品名称', sort: true, templet: '#nameTpl' },
                            { field: 'shopName', title: '商铺' },
                            { field: 'operator', title: '负责人' },
                            { field: 'backCount', title: '退货数量', sort: true },
                            { field: 'money', title: '退货金额', sort: true },
                            { field: 'summary', title: '退货原因' },
                ");
            WriteLiteral(@"            { field: 'addDate', title: '时间', sort: true }
                        ]
                    ],
                    page: true,
                    id: 'tables'
                });

                var guid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    brank: $(""#branks"").val(),
                                    time: $(""#times"").val(),
                                    shopGuid: $(""#shops"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    }
                };
                $('.l");
            WriteLiteral(@"ist-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑条形码', '/fytadmin/goods/barcodemodify/?guid=' + data.guid, '750px', '400px', function () {
                            active.reload();
                        })
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""nameTpl"">
        <a href=""javascript:void(0)"" class=""layui-table-link"">{{ d.brandName+d.styleName+d.seasonName }}</a>
    </script>
</div>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"

            ViewData["Title"] = "返货管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(143, 725, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-col-220 {
            width: 388px;
            top: 80px;
            left: 12px;
        }

            .layui-col-220 .layui-nav-title {
                height: 42px;
                line-height: 42px;
            }

        .right-col-body {
            left: 400px;
            top: 60px;
        }
    </style>
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(868, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "40106ddf87f44551b95ab888af06a44e", async() => {
                BeginContext(885, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(905, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 33 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"

            foreach (var item in Model.shopList)
            {
#line default
#line hidden
                BeginContext(1020, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1048, 50, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "96115961fb2d4ff286f8867bdd070366", async() => {
                    BeginContext(1076, 13, false);
#line 36 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                    Write(item.ShopName);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 36 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1098, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 37 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
            }


#line default
#line hidden
            BeginContext(1150, 145, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"branks\">\r\n                    ");
            EndContext();
            BeginContext(1295, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "625b87912fef49d7884ff736991b38ab", async() => {
                BeginContext(1312, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1332, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 44 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(1447, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1475, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ef687cb1b9224dbaa7b5147106ac8f01", async() => {
                    BeginContext(1503, 9, false);
#line 47 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 47 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
                WriteLiteral(item.Name);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1521, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 48 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Sale\Return.cshtml"
            }


#line default
#line hidden
            BeginContext(1573, 465, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch"">
                <i class=""layui-icon layui-icon-search""></i> 搜索
            </button>
        </div>
    </div>
    <div class=""layui-col-220"" id=""app"">
        <div class=""layui-nav-title"">返货订单列表   </div>
        <ul class=""fyt-utree"">
            <li v-for=""it in list"" v-cloak :class=""{active: activeName == it.guid}"" ");
            EndContext();
            BeginContext(2039, 73, true);
            WriteLiteral("@click=\"selected(it.guid)\">\r\n                <a class=\"layui-elip title\" ");
            EndContext();
            BeginContext(2113, 390, true);
            WriteLiteral(@"@click=""getList(it)"">{{it.number}}——{{it.shopName}}</a>
                <a class=""layui-elip sums""><span class=""layui-badge layui-bg-blue"">{{it.counts}}</span></a>
            </li>
        </ul>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(2503, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8c21b9f8a1cb437baf243602da493f14", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2576, 3756, true);
            WriteLiteral(@"
    <script>
        var funTool, vm = new Vue({
            el: ""#app"",
            data: {
                list: [],
                curModel: {},
                activeName: '',
                parm: {
                    guid: ''
                }
            },
            methods: {
                selected: function (m) {
                    console.log(m);
                    this.activeName = m;
                },
                getList: function (m) {
                    funTool.getGoodsSku(m);
                }
            }
        });
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'form', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                table.render({
               ");
            WriteLiteral(@"     elem: '#tablist',
                    url: '/api/stock/return/goods',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 200, title: '条形码', fixed: 'left' },
                            { field: 'brandName', title: '品牌' },
                            { field: 'styleName', title: '款式' },
                            { field: 'seasonName', width: 150, title: '季节' },
                            { field: 'counts', title: '返货数' },
                            { field: 'summary', title: '返货原因' }
                        ]
                    ],
                    page: true,
                    limit: 20,
                    id: 'tables'
                });

                var orderguid = '', shopGuid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: ");
            WriteLiteral(@"{
                                    curr: 1
                                },
                                where: {
                                    guid: orderguid,
                                    key: $('#key').val(),
                                    brank: $('#branks').val(),
                                    shopGuid: $(""#shops"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        vm.parm.guid = $(""#shops"").val();
                        active.reload();
                        funTool.orderPage();
                    }
                };

                funTool = {
                    getGoodsSku: function (obj) {
                        orderguid = obj.guid;
                        shopGuid = obj.shopGuid;
                        active.reload();
                    },
                    orderPage: function () {
                        os.ajax('api");
            WriteLiteral(@"/stock/return/order', vm.parm, function (res) {
                            if (res.statusCode === 200) {
                                vm.list = res.data.items;
                            } else {
                                os.error(res.message);
                            }
                        });
                    }
                }
                //初始化入库单管理
                funTool.orderPage();
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
            });
    </script>
</div>

");
            EndContext();
        }
Exemple #28
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Member\Index.cshtml"

            ViewData["Title"] = "会员列表";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(144, 365, true);
            WriteLiteral(@"<div id=""container"">
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
            </div>
            <div class=""layui-inline"">
                <select id=""branks"" lay-search="""">
                    ");
            EndContext();
            BeginContext(509, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e85da3e8bdca4a64910d125af9a8cdfd", async() => {
                BeginContext(526, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(546, 5046, true);
            WriteLiteral(@"
                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch""><i class=""layui-icon layui-icon-search""></i> 搜索</button>
        </div>
        <div class=""layui-form list-search"" style=""margin-top:10px;"">
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolDel""><i class=""layui-icon""></i> 删除</button>
        </div>
        <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
    </div>
    <script>
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common','form'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
               ");
            WriteLiteral(@" form.render('select');
                table.render({
                    elem: '#tablist',
                    url: '/api/shops/userlist?guid=all',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'userName', title: '姓名', sort: true, fixed: 'left' },
                            { field: 'mobile', title: '手机号码' },
                            { field: 'points', title: '积分数' },
                            { field: 'sex', title: '性别', sort: true },
                            { field: 'regDate', title: '注册时间' },
                            { title: '操作', templet: '#usertool' },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: true,
                    id: 'tables'
                });

                var guid = '', active = {
                    reload: function () {
                   ");
            WriteLiteral(@"     table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    key: $(""#key"").val(),
                                    guid: $(""#branks"").val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    toolAdd: function () {
                        os.Open('添加会员', '/fytadmin/goods/barcodemodify', '750px', '400px', function () {
                            active.reload();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
    ");
            WriteLiteral(@"                        os.error(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.each(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/goods/delbarcode/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }");
            WriteLiteral(@"
                            });
                        });

                    }
                };
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('编辑条形码', '/fytadmin/goods/barcodemodify/?guid=' + data.guid, '750px', '400px', function () {
                            active.reload();
                        })
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>

");
            EndContext();
        }
Exemple #29
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"

            ViewData["Title"] = "入库管理";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(144, 666, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-col-220 {
            width: 400px;
        }

        .right-col-body {
            left: 400px;
        }
        .utree-more {
            padding: 15px;
            text-align: center;
            cursor: pointer;
        }
        .fyt-utree {
            overflow: auto;
        }
    </style>
    <div class=""layui-col-220"" id=""app"">
        <div class=""layui-nav-title"">入库单   <button class=""layui-btn layui-btn-sm"" id=""addIn""><i class=""layui-icon""></i>新增入库单</button></div>
        <ul class=""fyt-utree"">
            <li v-for=""it in list"" v-cloak :class=""{active: activeName == it.guid}"" ");
            EndContext();
            BeginContext(811, 73, true);
            WriteLiteral("@click=\"selected(it.guid)\">\r\n                <a class=\"layui-elip title\" ");
            EndContext();
            BeginContext(885, 188, true);
            WriteLiteral("@click=\"getList(it)\">{{it.packName}}</a>\r\n                <a class=\"layui-elip sums\"><span class=\"layui-badge layui-bg-blue\">{{it.goodsSum}}</span></a>\r\n                <span class=\"tool\" ");
            EndContext();
            BeginContext(1074, 229, true);
            WriteLiteral("@click=\"tools(it,$event)\"><i class=\"layui-icon layui-icon-more\"></i></span>\r\n            </li>\r\n        </ul>\r\n        <div id=\"tree-page\"></div>\r\n        <dl class=\"layui-nav-child fyt-task-menu layui-hide\">\r\n            <dd><a ");
            EndContext();
            BeginContext(1304, 48, true);
            WriteLiteral("@click=\"edit()\">修改</a></dd>\r\n            <dd><a ");
            EndContext();
            BeginContext(1353, 467, true);
            WriteLiteral(@"@click=""deletes()"">删除</a></dd>
        </dl>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <div class=""layui-form list-search"">
                <div class=""layui-inline"">
                    <input class=""layui-input"" id=""key"" autocomplete=""off"" placeholder=""请输入关键字查询"">
                </div>
                <div class=""layui-inline"">
                    <select id=""shops"" lay-search="""">
                        ");
            EndContext();
            BeginContext(1820, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "196d152496ea4a7290a59dc29972b4a8", async() => {
                BeginContext(1837, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1857, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 49 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"

            if (Model.shopList != null)
            {
                foreach (var item in Model.shopList)
                {
#line default
#line hidden
                    BeginContext(2080, 36, true);
                    WriteLiteral("                                    ");
                    EndContext();
                    BeginContext(2116, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fc4296bc6d2e4b22b81dbe52283de9de", async() => {
                        BeginContext(2144, 13, false);
#line 54 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"
                        Write(item.ShopName);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 54 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(2166, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 55 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(2261, 387, true);
            WriteLiteral(@"                    </select>
                </div>
                <div class=""layui-inline lay-time-icon"">
                    <input class=""layui-input"" id=""times"" autocomplete=""off"" placeholder=""时间区间""><i class=""layui-icon layui-icon-date""></i>
                </div>
                <div class=""layui-inline"">
                    <select id=""branks"">
                        ");
            EndContext();
            BeginContext(2648, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bc02c3670af14ab3a9dbe2056e2ca161", async() => {
                BeginContext(2665, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2685, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 66 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"

            if (Model.codeList != null)
            {
                foreach (var item in Model.codeList)
                {
#line default
#line hidden
                    BeginContext(2908, 36, true);
                    WriteLiteral("                                    ");
                    EndContext();
                    BeginContext(2944, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bb1d49b0197f44329673f6ca81ee3da0", async() => {
                        BeginContext(2972, 9, false);
#line 71 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"
                        Write(item.Name);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                    BeginWriteTagHelperAttribute();
#line 71 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"
                    WriteLiteral(item.Guid);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(2990, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 72 "E:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Stock\Import.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(3085, 15681, true);
            WriteLiteral(@"                    </select>
                </div>
                <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch"">
                    <i class=""layui-icon layui-icon-search""></i> 搜索
                </button>
            </div>
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    <script type=""text/html"" id=""toolbar"">
        <div class=""layui-btn-container"">
            <button type=""button"" class=""layui-btn layui-btn-sm layui-hide"" lay-event=""toolAdd""><i class=""layui-icon""></i> 新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolBatchAdd""><i class=""layui-icon""></i> 批量新增</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolDel""><i class=""layui-icon""></i> 删除</button>
            <button type=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolPrint""><i class=""layui-icon layui-icon-print""></i> 打印入库单</button>
            <button ty");
            WriteLiteral(@"pe=""button"" class=""layui-btn layui-btn-sm"" lay-event=""toolContrast""><i class=""layui-icon layui-icon layui-icon-read""></i> 入库单效验</button>
        </div>
    </script>
    <div class=""os-print layui-hide"" id=""appprint"">
        <div class=""print"" style=""padding:20px;"">
            <h4 style=""border-bottom:dashed 1px #000; text-align:center; font-size:18px; font-weight:bold; padding-bottom:10px; margin-bottom:10px;"">入库单详情</h4>
            <table id=""tab-info"" style=""width:100%"">
                <tr>
                    <td style=""padding:8px;"">名称:{{model.packName}}</td>
                    <td style=""padding:8px;"">订单号:{{model.number}}</td>
                </tr>
                <tr>
                    <td style=""padding:8px;"">数量:{{model.goodsSum}}</td>
                    <td style=""padding:8px;"">时间:{{model.addDate}}</td>
                </tr>
            </table>
            <p class=""lines"" style=""border-bottom:dashed 1px #000; margin:10px 0;""></p>
            <table id=""tab-list"" style=""width");
            WriteLiteral(@":100%"">
                <tr>
                    <td style=""padding:8px; border:1px solid #e6e7e8;;"">条形码</td>
                    <td style=""padding:8px; border:1px solid #e6e7e8;width:100px"">品牌</td>
                    <td style=""padding:8px; border:1px solid #e6e7e8;width:100px"">款式</td>
                    <td style=""padding:8px; border:1px solid #e6e7e8;width:80px"">数量</td>
                </tr>
                <tr v-for=""it in list"" v-cloak>
                    <td style=""padding:8px; border:1px solid #e6e7e8;"">{{it.code}}</td>
                    <td style=""padding:8px; border:1px solid #e6e7e8;"">{{it.brankName}}</td>
                    <td style=""padding:8px; border:1px solid #e6e7e8;"">{{it.styleName}}</td>
                    <td style=""padding:8px; border:1px solid #e6e7e8;"">{{it.stockSum}}</td>
                </tr>
            </table>
        </div>
    </div>
    <script>
        layui.define(['layer', 'printarea'], function (exports) {
            ""use strict"";
            expo");
            WriteLiteral(@"rts('print', null);
        });
        var prints = new Vue({
            el: '#appprint',
            data: {
                model: {},
                list: []
            }
        });
        var funTool, vm = new Vue({
            el: ""#app"",
            data: {
                list: [],
                curModel: {},
                activeName: '',
                moreTip: '点击加载更多',
                parm: {
                    page: 1
                }
            },
            methods: {
                selected: function (m) {
                    this.activeName = m;
                },
                getList: function (m) {
                    funTool.getGoodsSku(m);
                },
                tools: function (m, event) {
                    this.curModel = m;
                    funTool.tool(event);
                },
                edit: function () {
                    funTool.edit();
                },
                deletes: function () {
          ");
            WriteLiteral(@"          funTool.deletes();
                }
            }
        });
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'common', 'form', 'laydate', 'laypage'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    laydate = layui.laydate,
                    form = layui.form,
                    laypage = layui.laypage,isFirstLoad=true;
                form.render('select');
                laydate.render({
                    elem: '#times'
                    , theme: '#393D49'
                    , format: 'yyyy/MM/dd'
                    , range: true
                });                
                $(""ul.fyt-utree"").css({ 'height': $(window).height() - 170 });
                table.render({
                    toolbar: '#toolbar',
                    elem: '#tablist',");
            WriteLiteral(@"
                    url: '/api/stock/inoutlist',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 200, title: '条形码', fixed: 'left' },
                            { field: 'brankName', title: '品牌' },
                            { field: 'styleName', title: '款式' },
                            { field: 'stockSum', width: 150, title: '入库数量', sort: true },
                            { field: 'addDate', title: '添加时间' },
                            { width: 100, title: '操作', templet: '#tool' }
                        ]
                    ],
                    page: { limits: [10, 20, 50, 100, 500, 1000, 5000, 10000], groups: 8 },
                    limit: 15,
                    id: 'tables'
                });

                $(document).click(function (e) {
                    var _target = $(e.target);
                    if (_target.closest("".fyt-task-menu"").length =");
            WriteLiteral(@"= 0) {
                        $("".fyt-task-menu"").addClass('layui-hide');
                    }
                });


                var packguid = '', active = {
                    reload: function () {
                        table.reload('tables',
                            {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    packGuid: packguid,
                                    types: 1,
                                    guid: $('#shops').val(),
                                    key: $('#key').val(),
                                    brank: $('#branks').val()
                                }
                            });
                    },
                    toolSearch: function () {
                        active.reload();
                    },
                    addIn: function () {
                        os.Open");
            WriteLiteral(@"('添加入库单', '/fytadmin/stock/packlog/?types=1', '600px', '400px', function () {
                            funTool.packPage();
                        });
                    },
                    toolAdd: function () {
                        if (packguid === '') {
                            os.warning('请选择入库单~');
                            return;
                        }
                        os.Open('添加入库信息', '/fytadmin/stock/importmodify/?packguid=' + packguid, '600px', '350px', function () {
                            active.reload();
                        });
                    },
                    toolDel: function () {
                        var checkStatus = table.checkStatus('tables')
                            , data = checkStatus.data;
                        if (data.length === 0) {
                            os.warning(""请选择要删除的项目~"");
                            return;
                        }
                        var str = '';
                        $.ea");
            WriteLiteral(@"ch(data, function (i, item) {
                            str += item.guid + "","";
                        });
                        layer.confirm('确定要执行批量删除吗?删除后平台库存会减少相应入库数量', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/stock/delinout/', { parm: str }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    active.reload();
                                    funTool.packPage();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });
                    },
                    /");
            WriteLiteral(@"* 打印出库单 */
                    toolPrint: function () {
                        if (packguid === '') {
                            os.error('请选择入库单~');
                            return;
                        }
                        $("".print"").print();
                    },
                    //批量新增入库信息
                    toolBatchAdd: function () {
                        if (packguid === '') {
                            os.error('请选择入库单~');
                            return;
                        }
                        os.Open('批量添加入库信息', '/fytadmin/stock/importbatchadd/?packguid=' + packguid, '860px', '600px', function () {
                            active.reload();
                            funTool.packPage();
                        });
                    },
                    /* 入库单信息核对 */
                    toolContrast: function () {
                        if (packguid === '') {
                            os.error('请选择入库单~');
                            ");
            WriteLiteral(@"return;
                        }
                        os.Open('入库单效验', '/fytadmin/stock/importvalidation?pack=' + packguid, '1200px', '700px');
                    }
                };

                funTool = {
                    getGoodsSku: function (obj) {
                        console.log(obj);
                        packguid = obj.guid;
                        prints.model = obj;
                        active.reload();
                        os.get('api/stock/inoutlist?types=1', { packGuid: packguid, limit: 10000 }, function (res) {
                            prints.list = res.data;
                        });
                    },
                    packPage: function () {
                        os.ajax('api/stock/packloglist', { page: vm.parm.page, types: 1, time: $('#times').val(), guid: $('#shops').val(), key: $('#key').val() }, function (res) {
                            if (isFirstLoad) { 
                                isFirstLoad = false;
                   ");
            WriteLiteral(@"             laypage.render({
                                    elem: 'tree-page'
                                    , count: res.data.totalItems
                                    , limit: 15
                                    , first: '首页'
                                    , groups:4
                                    , last: '尾页'
                                    , prev: '<em>←</em>'
                                    , next: '<em>→</em>'
                                    , jump: function (obj) {
                                        if (!isFirstLoad) {
                                            vm.parm.page = obj.curr;
                                            funTool.packPage();
                                        }
                                    }
                                });
                                
                            }
                            if (res.statusCode === 200) {
                                vm.list = res.data.items;");
            WriteLiteral(@"
                            } else {
                                os.error(res.message);
                            }
                        });
                    },
                    edit: function () {
                        $("".fyt-task-menu"").addClass('layui-hide');
                        os.Open('修改入库单', '/fytadmin/stock/packlog/?guid=' + vm.curModel.guid, '600px', '400px', function () {
                            funTool.packPage();
                        });
                    },
                    deletes: function () {
                        $("".fyt-task-menu"").addClass('layui-hide');
                        os.error('为了保证数据一致性,不允许删除入库单!');
                        /*layer.confirm('确定要执行批量删除吗?', function (index) {
                            layer.close(index);
                            var loadindex = layer.load(1, {
                                shade: [0.1, '#000']
                            });
                            os.ajax('api/stock/delpacklog/', {");
            WriteLiteral(@" parm: vm.curModel.guid }, function (res) {
                                layer.close(loadindex);
                                if (res.statusCode === 200) {
                                    funTool.packPage();
                                    os.success('删除成功!');
                                } else {
                                    os.error(res.message);
                                }
                            });
                        });*/
                    },
                    tool: function (event) {
                        event.stopPropagation();
                        event.preventDefault();
                        var obj = $(event.target).offset();
                        $("".fyt-task-menu"").css({ 'top': obj.top - 30, 'left': '275px' });
                        if ($('.fyt-task-menu').hasClass('layui-hide')) {
                            $("".fyt-task-menu"").removeClass('layui-hide');
                        } else {
                            $("".fyt-");
            WriteLiteral(@"task-menu"").addClass('layui-hide');
                        }
                    }
                };
                //初始化入库单管理
                funTool.packPage();
                

                $(""#addIn"").on('click', function () {
                    active.addIn();
                });
                table.on('toolbar(tool)', function (obj) {
                    active[obj.event] ? active[obj.event].call(this) : '';
                });
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                    funTool.packPage();
                });
                //监听工具条
                table.on('tool(tool)', function (obj) {
                    var data = obj.data;
                    if (obj.event === 'edit') {
                        os.Open('修改入库信息', '/fytadmin/stock/importmodify/?guid=' + data.guid, '600px', '350px', function () {
         ");
            WriteLiteral(@"                   active.reload();
                        });
                    }
                });
            });
    </script>
    <script type=""text/html"" id=""tool"">
        <a class=""layui-btn layui-btn-primary layui-btn-xs"" lay-event=""edit""><i class=""layui-icon""></i> 修改</a>
    </script>
</div>

");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"

            ViewData["Title"] = "报表管理-加盟商库存报表";
            Layout            = AdminLayout.Pjax(HttpContext);

#line default
#line hidden
            BeginContext(156, 605, true);
            WriteLiteral(@"<div id=""container"">
    <style>
        .layui-col-220 {
            width: 388px;
            top: 80px;
            left: 12px;
        }

            .layui-col-220 .layui-nav-title {
                height: 42px;
                line-height: 42px;
            }

        .right-col-body {
            left: 400px;
            top: 60px;
        }
        .fyt-utree{overflow:auto;}
    </style>
    <div class=""list-wall"">
        <div class=""layui-form list-search"">
            <div class=""layui-inline"">
                <select id=""shops"" lay-search="""">
                    ");
            EndContext();
            BeginContext(761, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a2e544fa73e7417588d146c9a4cef5ae", async() => {
                BeginContext(778, 11, true);
                WriteLiteral("--可根据店铺搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(798, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 31 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"

            foreach (var item in Model.shopList)
            {
#line default
#line hidden
                BeginContext(913, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(941, 50, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2a53a17cf84d405eaee5876a84fbf883", async() => {
                    BeginContext(969, 13, false);
#line 34 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                    Write(item.ShopName);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 34 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(991, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 35 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
            }


#line default
#line hidden
            BeginContext(1043, 145, true);
            WriteLiteral("                </select>\r\n            </div>\r\n            <div class=\"layui-inline\">\r\n                <select id=\"branks\">\r\n                    ");
            EndContext();
            BeginContext(1188, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "81cb1e288fe94927a8fc8fca3e26880f", async() => {
                BeginContext(1205, 11, true);
                WriteLiteral("--可根据品牌搜索--");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1225, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 42 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"

            foreach (var item in Model.codeList)
            {
#line default
#line hidden
                BeginContext(1340, 28, true);
                WriteLiteral("                            ");
                EndContext();
                BeginContext(1368, 46, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("option", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "91523fbaf98a47ca94a29399b012cc26", async() => {
                    BeginContext(1396, 9, false);
#line 45 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                    Write(item.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper);
                BeginWriteTagHelperAttribute();
#line 45 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
                WriteLiteral(item.Guid);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Microsoft_AspNetCore_Mvc_TagHelpers_OptionTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1414, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 46 "D:\2018Project\ERP项目\SoaProJect\FytSoa.Web\Pages\FytAdmin\Report\ShopStock.cshtml"
            }


#line default
#line hidden
            BeginContext(1466, 464, true);
            WriteLiteral(@"                </select>
            </div>
            <button type=""button"" class=""layui-btn layui-btn-sm"" data-type=""toolSearch"">
                <i class=""layui-icon layui-icon-search""></i> 搜索
            </button>
        </div>
    </div>
    <div class=""layui-col-220"" id=""app"">
        <div class=""layui-nav-title"">加盟商列表   </div>
        <ul class=""fyt-utree"">
            <li v-for=""it in list"" v-cloak :class=""{active: activeName == it.guid}"" ");
            EndContext();
            BeginContext(1931, 73, true);
            WriteLiteral("@click=\"selected(it.guid)\">\r\n                <a class=\"layui-elip title\" ");
            EndContext();
            BeginContext(2005, 374, true);
            WriteLiteral(@"@click=""getList(it)"">{{it.shopName}}</a>
                <a class=""layui-elip sums""><span class=""layui-badge layui-bg-blue"">{{it.stock}}</span></a>
            </li>
        </ul>
    </div>
    <div class=""right-col-body"">
        <div class=""list-wall"">
            <table class=""layui-hide"" id=""tablist"" lay-filter=""tool""></table>
        </div>
    </div>
    ");
            EndContext();
            BeginContext(2379, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "132b6708125449b4b9851d77b48433b9", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2452, 3833, true);
            WriteLiteral(@"
    <script>
        var funTool, vm = new Vue({
            el: ""#app"",
            data: {
                list: [],
                curModel: {},
                activeName: '',
                parm: {
                    guid: ''
                }
            },
            methods: {
                selected: function (m) {
                    this.activeName = m;
                },
                getList: function (m) {
                    funTool.getGoodsSku(m);
                }
            }
        });
        layui.config({
            base: '/themes/js/modules/'
        }).use(['table', 'layer', 'jquery', 'form', 'common'],
            function () {
                var table = layui.table,
                    layer = layui.layer,
                    $ = layui.jquery,
                    os = layui.common,
                    form = layui.form;
                form.render('select');
                $(""ul.fyt-utree"").css({'height':$(window).height()-182});
         ");
            WriteLiteral(@"       table.render({
                    elem: '#tablist',
                    url: '/api/inventory/stockbyshop',
                    cols: [
                        [
                            { type: 'checkbox', fixed: 'left' },
                            { field: 'code', width: 200, title: '条形码', fixed: 'left' },
                            { field: 'brand', title: '品牌' },
                            { field: 'style', title: '款式' },
                            { field: 'stock', width: 150, title: '库存' },
                            { field: 'sale', title: '销售数' },
                            { field: 'returnSum', title: '返货数' }
                        ]
                    ],
                    page: true,
                    limit: 15,
                    height: 'full-200',
                    id: 'tables'
                });

                var shopGuid = '', active = {
                    reload: function () {
                        table.reload('tables',
                 ");
            WriteLiteral(@"           {
                                page: {
                                    curr: 1
                                },
                                where: {
                                    brand: $('#branks').val(),
                                    guid: shopGuid,
                                    orderType:2
                                }
                            });
                    },
                    toolSearch: function () {
                        vm.parm.guid = $(""#shops"").val();
                        shopGuid = $(""#shops"").val();
                        active.reload();
                        funTool.orderPage();
                    }
                };

                funTool = {
                    getGoodsSku: function (obj) {
                        shopGuid = obj.shopGuid;
                        $(""#shops"").val(shopGuid);
                        form.render('select');
                        active.reload();
                    },");
            WriteLiteral(@"
                    orderPage: function () {
                        os.ajax('api/inventory/shopstock', vm.parm, function (res) {
                            if (res.statusCode === 200) {
                                vm.list = res.data;
                            } else {
                                os.error(res.message);
                            }
                        });
                    }
                }
                //初始化入库单管理
                funTool.orderPage();
                $('.list-search .layui-btn').on('click', function () {
                    var type = $(this).data('type');
                    active[type] ? active[type].call(this) : '';
                });
            });
    </script>
</div>
");
            EndContext();
        }