|
|
@ -110,7 +110,7 @@ public class CommonService : ICommonService
|
|
|
|
var child = new RouteItem
|
|
|
|
var child = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/analysis",
|
|
|
|
Path = "/analysis",
|
|
|
|
Name = "Analysis",
|
|
|
|
Name = "分析页",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Title = "分析页",
|
|
|
|
Title = "分析页",
|
|
|
@ -121,7 +121,7 @@ public class CommonService : ICommonService
|
|
|
|
var dashboard = new RouteItem
|
|
|
|
var dashboard = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/dashboard",
|
|
|
|
Path = "/dashboard",
|
|
|
|
Name = "Dashboard",
|
|
|
|
Name = "首页",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Redirect = "/analysis",
|
|
|
|
Redirect = "/analysis",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
@ -137,7 +137,7 @@ public class CommonService : ICommonService
|
|
|
|
var per = new RouteItem
|
|
|
|
var per = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/wms",
|
|
|
|
Path = "/wms",
|
|
|
|
Name = "WMS",
|
|
|
|
Name = "预约管理",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Redirect = "/wms/wmsinplan",
|
|
|
|
Redirect = "/wms/wmsinplan",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
@ -152,7 +152,7 @@ public class CommonService : ICommonService
|
|
|
|
var child1 = new RouteItem
|
|
|
|
var child1 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/wmsinplan",
|
|
|
|
Path = "/wmsinplan",
|
|
|
|
Name = "wmsinplanManagement",
|
|
|
|
Name = "预约入库",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:cloud-upload-outlined",
|
|
|
|
Icon = "ant-design:cloud-upload-outlined",
|
|
|
@ -163,7 +163,7 @@ public class CommonService : ICommonService
|
|
|
|
var child2 = new RouteItem
|
|
|
|
var child2 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/wmsoutplan",
|
|
|
|
Path = "/wmsoutplan",
|
|
|
|
Name = "wmsoutplanManagement",
|
|
|
|
Name = "预约出库",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:cloud-download-outlined",
|
|
|
|
Icon = "ant-design:cloud-download-outlined",
|
|
|
@ -174,7 +174,7 @@ public class CommonService : ICommonService
|
|
|
|
var child31 = new RouteItem
|
|
|
|
var child31 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/wmsclearance",
|
|
|
|
Path = "/wmsclearance",
|
|
|
|
Name = "wmsclearanceManagement",
|
|
|
|
Name = "预约清关",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "carbon:shopping-cart-clear",
|
|
|
|
Icon = "carbon:shopping-cart-clear",
|
|
|
@ -194,7 +194,7 @@ public class CommonService : ICommonService
|
|
|
|
var child4 = new RouteItem
|
|
|
|
var child4 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/user",
|
|
|
|
Path = "/user",
|
|
|
|
Name = "userManagement",
|
|
|
|
Name = "用户管理",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ion:people-sharp",
|
|
|
|
Icon = "ion:people-sharp",
|
|
|
@ -205,7 +205,7 @@ public class CommonService : ICommonService
|
|
|
|
var child5 = new RouteItem
|
|
|
|
var child5 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/company",
|
|
|
|
Path = "/company",
|
|
|
|
Name = "companyManagement",
|
|
|
|
Name = "企业信息维护",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ion:settings-outline",
|
|
|
|
Icon = "ion:settings-outline",
|
|
|
@ -216,7 +216,7 @@ public class CommonService : ICommonService
|
|
|
|
var child3 = new RouteItem
|
|
|
|
var child3 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/notice",
|
|
|
|
Path = "/notice",
|
|
|
|
Name = "noticeManagement",
|
|
|
|
Name = "系统公告",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:bell-outlined",
|
|
|
|
Icon = "ant-design:bell-outlined",
|
|
|
@ -227,7 +227,7 @@ public class CommonService : ICommonService
|
|
|
|
var child6 = new RouteItem
|
|
|
|
var child6 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/good",
|
|
|
|
Path = "/good",
|
|
|
|
Name = "goodManagement",
|
|
|
|
Name = "商品信息",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "icon-park-outline:commodity",
|
|
|
|
Icon = "icon-park-outline:commodity",
|
|
|
@ -238,7 +238,7 @@ public class CommonService : ICommonService
|
|
|
|
var child7 = new RouteItem
|
|
|
|
var child7 = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/goodAudit",
|
|
|
|
Path = "/goodAudit",
|
|
|
|
Name = "goodAuditManagement",
|
|
|
|
Name = "商品申报",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:cloud-upload-outlined",
|
|
|
|
Icon = "ant-design:cloud-upload-outlined",
|
|
|
@ -255,7 +255,7 @@ public class CommonService : ICommonService
|
|
|
|
var system = new RouteItem
|
|
|
|
var system = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/system",
|
|
|
|
Path = "/system",
|
|
|
|
Name = "System",
|
|
|
|
Name = "系统管理",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Redirect = "/company",
|
|
|
|
Redirect = "/company",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
@ -276,7 +276,7 @@ public class CommonService : ICommonService
|
|
|
|
var storequery = new RouteItem
|
|
|
|
var storequery = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/storequery",
|
|
|
|
Path = "/storequery",
|
|
|
|
Name = "StoreQuery",
|
|
|
|
Name = "库存明细",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
@ -287,7 +287,7 @@ public class CommonService : ICommonService
|
|
|
|
var storeinquery = new RouteItem
|
|
|
|
var storeinquery = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/storeinquery",
|
|
|
|
Path = "/storeinquery",
|
|
|
|
Name = "StoreInQuery",
|
|
|
|
Name = "入库明细",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
@ -298,7 +298,7 @@ public class CommonService : ICommonService
|
|
|
|
var storeoutquery = new RouteItem
|
|
|
|
var storeoutquery = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/storeoutquery",
|
|
|
|
Path = "/storeoutquery",
|
|
|
|
Name = "StoreOutQuery",
|
|
|
|
Name = "出库明细",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
@ -312,7 +312,7 @@ public class CommonService : ICommonService
|
|
|
|
var query = new RouteItem
|
|
|
|
var query = new RouteItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Path = "/query",
|
|
|
|
Path = "/query",
|
|
|
|
Name = "query",
|
|
|
|
Name = "查询报表",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
Redirect = "/storequery",
|
|
|
|
Redirect = "/storequery",
|
|
|
|
Meta = new RouteMeta
|
|
|
|
Meta = new RouteMeta
|
|
|
@ -324,6 +324,32 @@ public class CommonService : ICommonService
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
list.Add(query);
|
|
|
|
list.Add(query);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 处理报警信息
|
|
|
|
|
|
|
|
var companyId = user.GetCompanyId();
|
|
|
|
|
|
|
|
var noticeCount = db.Queryable<SysNotice>()
|
|
|
|
|
|
|
|
.LeftJoin<SysNoticeClient>((a, b) => a.Id == b.NoticeId)
|
|
|
|
|
|
|
|
.Where((a, b) => a.SendStatus == SendStatus.Send.ToEnumInt() && b.IsRead == false && b.ClientId == companyId).Count();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in list)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (item.Name =="系统管理")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var notice = item.Children.Where(x => x.Name == "系统公告").First();
|
|
|
|
|
|
|
|
notice.Tag = new Tag()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Type = "error",
|
|
|
|
|
|
|
|
Dot = false,
|
|
|
|
|
|
|
|
Content = noticeCount.ToString(),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
return DataResult<List<RouteItem>>.Success("获取数据成功!", list);
|
|
|
|
return DataResult<List<RouteItem>>.Success("获取数据成功!", list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|