SysMenuSeedData.cs 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  1. // Ai-DOP 业务规划菜单种子(由 ai-dop-platform/tools/gen_aidop_menu.py 生成)
  2. namespace Admin.NET.Plugin.AiDOP;
  3. /// <summary>
  4. /// Ai-DOP 规划菜单;类名须为 SysMenuSeedData,以便租户默认菜单聚合所有程序集种子。
  5. /// </summary>
  6. [IncreSeed]
  7. public class SysMenuSeedData : ISqlSugarEntitySeedData<SysMenu>
  8. {
  9. private const long AidopRootId = 1320990000101L;
  10. /// <inheritdoc />
  11. public IEnumerable<SysMenu> HasData()
  12. {
  13. var ct = DateTime.Parse("2022-02-10 00:00:00");
  14. var list = new List<SysMenu>
  15. {
  16. new()
  17. {
  18. Id = AidopRootId,
  19. Pid = 0,
  20. Title = "Ai-DOP",
  21. Path = "/aidop",
  22. Name = "aidopRoot",
  23. Component = "Layout",
  24. Icon = "ele-Grid",
  25. Type = MenuTypeEnum.Dir,
  26. CreateTime = ct,
  27. OrderNo = 250,
  28. Remark = "Ai-DOP 主菜单(规划项,叶子为占位页)"
  29. }
  30. };
  31. var dirSeq = 0;
  32. var menuSeq = 0;
  33. foreach (var mod in ModuleDefinitions)
  34. {
  35. dirSeq++;
  36. var dirId = 1321000000000L + dirSeq * 1000L;
  37. var modCode = mod.Code;
  38. var codeLower = mod.Code.ToLowerInvariant();
  39. list.Add(new SysMenu
  40. {
  41. Id = dirId,
  42. Pid = AidopRootId,
  43. Title = mod.L1,
  44. Path = $"/aidop/{codeLower}",
  45. Name = $"aidopDir{mod.Code}",
  46. Component = "Layout",
  47. Icon = "ele-Folder",
  48. Type = MenuTypeEnum.Dir,
  49. CreateTime = ct,
  50. OrderNo = 260 + dirSeq
  51. });
  52. var subOrder = 100;
  53. var idx = 0;
  54. foreach (var leaf in mod.Leaves)
  55. {
  56. menuSeq++;
  57. idx++;
  58. var isDir = DirOverrides.Contains((modCode, idx));
  59. var component = isDir ? "Layout" : ResolveComponent(modCode, idx);
  60. var menuType = isDir ? MenuTypeEnum.Dir : MenuTypeEnum.Menu;
  61. var path = PathOverrides.TryGetValue((modCode, idx), out var pathOv) ? pathOv : $"/aidop/{codeLower}/{idx:000}";
  62. var routeName = NameOverrides.TryGetValue((modCode, idx), out var nameOv) ? nameOv : $"aidop{mod.Code}{idx:000}";
  63. list.Add(new SysMenu
  64. {
  65. Id = 1322000000000L + menuSeq,
  66. Pid = dirId,
  67. Title = leaf.Title,
  68. Path = path,
  69. Name = routeName,
  70. Component = component,
  71. Type = menuType,
  72. CreateTime = ct,
  73. OrderNo = subOrder++,
  74. Icon = isDir ? "ele-Folder" : "ele-Document",
  75. Remark = BuildRemark(mod.Code, leaf)
  76. });
  77. }
  78. }
  79. foreach (var m in BuildAidopSmartOpsSeedMenus(ct))
  80. list.Add(m);
  81. foreach (var m in BuildS0SalesMenus(ct))
  82. list.Add(m);
  83. foreach (var m in BuildS0SupplyMenus(ct))
  84. list.Add(m);
  85. foreach (var m in BuildS0ManufacturingMenus(ct))
  86. list.Add(m);
  87. foreach (var m in BuildS0QualityMenus(ct))
  88. list.Add(m);
  89. foreach (var m in BuildS0WarehouseMenus(ct))
  90. list.Add(m);
  91. foreach (var m in BuildS1OrderWorkOrderMenus(ct))
  92. list.Add(m);
  93. foreach (var m in BuildS1SalesKanbanMenus(ct))
  94. list.Add(m);
  95. foreach (var m in BuildS8CollaborationMenus(ct))
  96. list.Add(m);
  97. // 产销协同看板改为目录后,访问 /aidop/s1/SalesKanBan 默认进入指标看板子页
  98. var salesKanBanDir = list.FirstOrDefault(x => x.Id == 1322000000005L);
  99. if (salesKanBanDir != null)
  100. salesKanBanDir.Redirect = "/aidop/s1/SalesKanBan/kanban";
  101. // S8:复用自动生成的首项菜单位,直接作为「异常监控看板」页,避免再出现中间层「异常管理」目录
  102. var s8Dashboard = list.FirstOrDefault(x => x.Id == 1322000000028L);
  103. if (s8Dashboard != null)
  104. {
  105. s8Dashboard.Title = "异常监控看板";
  106. s8Dashboard.Path = "/aidop/s8/dashboard";
  107. s8Dashboard.Name = "aidopS8Dashboard";
  108. s8Dashboard.Component = "/aidop/s8/dashboard/S8DashboardPage";
  109. s8Dashboard.Icon = "ele-DataBoard";
  110. s8Dashboard.Type = MenuTypeEnum.Menu;
  111. s8Dashboard.Redirect = null;
  112. s8Dashboard.Remark = "S8 异常监控看板";
  113. }
  114. return list;
  115. }
  116. /// <summary>
  117. /// 智慧诊断 + 智慧运营看板(入库,便于平台「菜单管理」配置;勿在 Web aidopMenuDisplay 再注入整段菜单)。
  118. /// </summary>
  119. private static IEnumerable<SysMenu> BuildAidopSmartOpsSeedMenus(DateTime ct)
  120. {
  121. const long smartOpsDirId = 1320990000200L;
  122. yield return new SysMenu
  123. {
  124. Id = 1320990000201L,
  125. Pid = AidopRootId,
  126. Title = "智慧诊断",
  127. Path = "/aidop/smart-diagnosis",
  128. Name = "aidopSmartDiagnosis",
  129. Component = "/aidop/diagnosis/index",
  130. Icon = "ele-TrendCharts",
  131. Type = MenuTypeEnum.Menu,
  132. CreateTime = ct,
  133. OrderNo = 251,
  134. Remark = "Ai-DOP 智慧诊断"
  135. };
  136. yield return new SysMenu
  137. {
  138. Id = smartOpsDirId,
  139. Pid = AidopRootId,
  140. Title = "智慧运营看板",
  141. Path = "/aidop/smart-ops",
  142. Name = "aidopSmartOpsRoot",
  143. Component = "Layout",
  144. Icon = "ele-DataBoard",
  145. Type = MenuTypeEnum.Dir,
  146. CreateTime = ct,
  147. OrderNo = 252,
  148. Remark = "Ai-DOP 智慧运营看板分组"
  149. };
  150. // OrderNo:建模紧接九宫格之后,避免在侧栏最底部不易发现;已落库环境需在菜单管理调序或改库
  151. var children = new (long Id, string Path, string Name, string Title, string Component, int Order)[]
  152. {
  153. (1320990000301L, "/aidop/smart-ops/grid", "aidopSmartOpsGrid", "九宫格智慧运营看板", "/dashboard/home", 100),
  154. (1320990000311L, "/aidop/smart-ops/modeling", "aidopSmartOpsModeling", "运营指标建模", "/aidop/kanban/s0", 105),
  155. (1320990000312L, "/aidop/smart-ops/kpi-master", "aidopSmartOpsKpiMaster", "运营指标主数据", "/aidop/kanban/kpiMaster", 106),
  156. (1320990000302L, "/aidop/smart-ops/s1", "aidopSmartOpsS1", "S1产销协同看板", "/aidop/kanban/s1", 110),
  157. (1320990000303L, "/aidop/smart-ops/s2", "aidopSmartOpsS2", "S2制造协同看板", "/aidop/kanban/s2", 120),
  158. (1320990000304L, "/aidop/smart-ops/s3", "aidopSmartOpsS3", "S3供应协同看板", "/aidop/kanban/s3", 130),
  159. (1320990000305L, "/aidop/smart-ops/s4", "aidopSmartOpsS4", "S4采购执行看板", "/aidop/kanban/s4", 140),
  160. (1320990000306L, "/aidop/smart-ops/s5", "aidopSmartOpsS5", "S5物料仓储看板", "/aidop/kanban/s5", 150),
  161. (1320990000307L, "/aidop/smart-ops/s6", "aidopSmartOpsS6", "S6生产执行看板", "/aidop/kanban/s6", 160),
  162. (1320990000308L, "/aidop/smart-ops/s7", "aidopSmartOpsS7", "S7成品仓储看板", "/aidop/kanban/s7", 170),
  163. (1320990000309L, "/aidop/smart-ops/s8", "aidopSmartOpsS8", "S8异常监控看板", "/aidop/kanban/s8", 180),
  164. (1320990000310L, "/aidop/smart-ops/s9", "aidopSmartOpsS9", "S9运营指标看板", "/aidop/kanban/s9", 190),
  165. };
  166. foreach (var (id, path, name, title, component, order) in children)
  167. {
  168. yield return new SysMenu
  169. {
  170. Id = id,
  171. Pid = smartOpsDirId,
  172. Title = title,
  173. Path = path,
  174. Name = name,
  175. Component = component,
  176. Icon = "ele-DataAnalysis",
  177. Type = MenuTypeEnum.Menu,
  178. CreateTime = ct,
  179. OrderNo = order,
  180. Remark = title
  181. };
  182. }
  183. }
  184. private static string ResolveComponent(string modCode, int leafIndex) =>
  185. ComponentOverrides.TryGetValue((modCode, leafIndex), out var c) ? c : "/aidop/planning/index";
  186. private static readonly Dictionary<(string Mod, int Leaf), string> ComponentOverrides = new()
  187. {
  188. { ("S1", 3), "/aidop/kanban/s1" },
  189. };
  190. /// <summary>S1 等模块下叶子菜单 path 覆盖(目录化后使用语义路径)。</summary>
  191. private static readonly Dictionary<(string Mod, int Leaf), string> PathOverrides = new()
  192. {
  193. { ("S1", 1), "/aidop/s1/order-mgmt" },
  194. { ("S1", 2), "/aidop/s1/workorder-mgmt" },
  195. { ("S1", 3), "/aidop/s1/SalesKanBan" },
  196. };
  197. /// <summary>S1 等模块下叶子菜单 route name 覆盖。</summary>
  198. private static readonly Dictionary<(string Mod, int Leaf), string> NameOverrides = new()
  199. {
  200. { ("S1", 1), "aidopS1OrderMgmt" },
  201. { ("S1", 2), "aidopS1WorkOrderMgmt" },
  202. };
  203. /// <summary>
  204. /// 需要从 Menu 提升为 Dir(目录)的叶子节点;用于承载子级菜单。
  205. /// </summary>
  206. private static readonly HashSet<(string Mod, int Leaf)> DirOverrides = new()
  207. {
  208. { ("S0", 1) }, // 数据建模 → 目录,产销建模挂在其下
  209. { ("S1", 1) }, // 订单管理 → 目录(销售订单、合同评审)
  210. { ("S1", 2) }, // 工单管理 → 目录(工单列表、工单下达)
  211. { ("S1", 3) }, // 产销协同看板 → 目录(指标看板、需求明细核验)
  212. };
  213. private static string BuildRemark(string code, (string Title, string Desc, string Complexity, string Days, string Note) leaf)
  214. {
  215. var notePart = string.IsNullOrWhiteSpace(leaf.Note) ? "" : $" | {leaf.Note}";
  216. var s = $"[{code}|{leaf.Complexity}|{leaf.Days}人天] {leaf.Desc}{notePart}";
  217. return s.Length <= 256 ? s : s[..256];
  218. }
  219. private static IEnumerable<SysMenu> BuildS0SalesMenus(DateTime ct)
  220. {
  221. // 与 ModuleDefinitions 中 S0 首项「数据建模」的生成 Id 一致(全局 menuSeq=1 → 1322000000001)
  222. const long s0DataModelingMenuId = 1322000000001L;
  223. const long subDirId = 1329002000000L;
  224. yield return new SysMenu
  225. {
  226. Id = subDirId,
  227. Pid = s0DataModelingMenuId,
  228. Title = "产销建模",
  229. Path = "/aidop/s0/sales",
  230. Name = "aidopS0Sales",
  231. Component = "Layout",
  232. Icon = "ele-ShoppingCart",
  233. Type = MenuTypeEnum.Dir,
  234. CreateTime = ct,
  235. OrderNo = 20,
  236. Remark = "S0 产销建模"
  237. };
  238. yield return new SysMenu
  239. {
  240. Id = subDirId + 1,
  241. Pid = subDirId,
  242. Title = "客户管理",
  243. Path = "/aidop/s0/sales/customer",
  244. Name = "aidopS0SalesCustomer",
  245. Component = "/aidop/s0/sales/CustomerList",
  246. Icon = "ele-User",
  247. Type = MenuTypeEnum.Menu,
  248. CreateTime = ct,
  249. OrderNo = 1,
  250. Remark = "S0 客户管理"
  251. };
  252. yield return new SysMenu
  253. {
  254. Id = subDirId + 2,
  255. Pid = subDirId,
  256. Title = "物料管理",
  257. Path = "/aidop/s0/sales/material",
  258. Name = "aidopS0SalesMaterial",
  259. Component = "/aidop/s0/sales/MaterialList",
  260. Icon = "ele-Box",
  261. Type = MenuTypeEnum.Menu,
  262. CreateTime = ct,
  263. OrderNo = 2,
  264. Remark = "S0 物料管理"
  265. };
  266. yield return new SysMenu
  267. {
  268. Id = subDirId + 3,
  269. Pid = subDirId,
  270. Title = "订单优先规则",
  271. Path = "/aidop/s0/sales/order-priority-rule",
  272. Name = "aidopS0SalesOrderPriorityRule",
  273. Component = "/aidop/s0/sales/OrderPriorityRuleList",
  274. Icon = "ele-Sort",
  275. Type = MenuTypeEnum.Menu,
  276. CreateTime = ct,
  277. OrderNo = 3,
  278. Remark = "S0 订单优先规则"
  279. };
  280. yield return new SysMenu
  281. {
  282. Id = subDirId + 4,
  283. Pid = subDirId,
  284. Title = "合同评审周期",
  285. Path = "/aidop/s0/sales/contract-review-cycle",
  286. Name = "aidopS0SalesContractReviewCycle",
  287. Component = "/aidop/s0/sales/ContractReviewCycleList",
  288. Icon = "ele-Clock",
  289. Type = MenuTypeEnum.Menu,
  290. CreateTime = ct,
  291. OrderNo = 4,
  292. Remark = "S0 合同评审周期标准配置"
  293. };
  294. yield return new SysMenu
  295. {
  296. Id = subDirId + 5,
  297. Pid = subDirId,
  298. Title = "产品设计周期",
  299. Path = "/aidop/s0/sales/product-design-cycle",
  300. Name = "aidopS0SalesProductDesignCycle",
  301. Component = "/aidop/s0/sales/ProductDesignCycleList",
  302. Icon = "ele-Timer",
  303. Type = MenuTypeEnum.Menu,
  304. CreateTime = ct,
  305. OrderNo = 5,
  306. Remark = "S0 产品设计周期标准配置"
  307. };
  308. yield return new SysMenu
  309. {
  310. Id = subDirId + 6,
  311. Pid = subDirId,
  312. Title = "订单评审周期",
  313. Path = "/aidop/s0/sales/order-review-cycle",
  314. Name = "aidopS0SalesOrderReviewCycle",
  315. Component = "/aidop/s0/sales/OrderReviewCycleList",
  316. Icon = "ele-AlarmClock",
  317. Type = MenuTypeEnum.Menu,
  318. CreateTime = ct,
  319. OrderNo = 6,
  320. Remark = "S0 订单评审周期标准配置"
  321. };
  322. }
  323. private static IEnumerable<SysMenu> BuildS0ManufacturingMenus(DateTime ct)
  324. {
  325. const long s0DataModelingMenuId = 1322000000001L;
  326. const long subDirId = 1329003000000L;
  327. yield return new SysMenu
  328. {
  329. Id = subDirId,
  330. Pid = s0DataModelingMenuId,
  331. Title = "制造建模",
  332. Path = "/aidop/s0/manufacturing",
  333. Name = "aidopS0Manufacturing",
  334. Component = "Layout",
  335. Icon = "ele-SetUp",
  336. Type = MenuTypeEnum.Dir,
  337. CreateTime = ct,
  338. OrderNo = 30,
  339. Remark = "S0 制造建模"
  340. };
  341. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  342. {
  343. (1, "/aidop/s0/manufacturing/standard-bom", "aidopS0MfgStandardBom", "标准 BOM", "/aidop/s0/manufacturing/StandardBomManagement", 10),
  344. (2, "/aidop/s0/manufacturing/standard-operation", "aidopS0MfgStandardOperation", "标准工序", "/aidop/s0/manufacturing/StandardProcessList", 20),
  345. (3, "/aidop/s0/manufacturing/production-line", "aidopS0MfgProductionLine", "产线", "/aidop/s0/manufacturing/ProductionLineList", 30),
  346. (4, "/aidop/s0/manufacturing/routing", "aidopS0MfgRouting", "工艺路线", "/aidop/s0/manufacturing/RoutingList", 40),
  347. (5, "/aidop/s0/manufacturing/material-substitution", "aidopS0MfgMaterialSubstitution", "物料替代", "/aidop/s0/manufacturing/MaterialSubstitutionList", 50),
  348. (6, "/aidop/s0/manufacturing/work-order-control", "aidopS0MfgWorkOrderControl", "工单控制参数", "/aidop/s0/manufacturing/WorkOrderControlParams", 60),
  349. (7, "/aidop/s0/manufacturing/person-skill", "aidopS0MfgPersonSkill", "人员技能", "/aidop/s0/manufacturing/PersonnelSkillList", 70),
  350. (8, "/aidop/s0/manufacturing/person-skill-assignment", "aidopS0MfgPersonSkillAssignment", "人员技能维护", "/aidop/s0/manufacturing/PersonSkillAssignmentList", 80),
  351. (9, "/aidop/s0/manufacturing/line-post", "aidopS0MfgLinePost", "产线岗位维护", "/aidop/s0/manufacturing/LinePostList", 90),
  352. (10, "/aidop/s0/manufacturing/work-center", "aidopS0MfgWorkCenter", "工作中心", "/aidop/s0/manufacturing/WorkCenterList", 100),
  353. (11, "/aidop/s0/manufacturing/line-material", "aidopS0MfgLineMaterial", "线边物料", "/aidop/s0/manufacturing/LineMaterialList", 110),
  354. (12, "/aidop/s0/manufacturing/element-param-production", "aidopS0MfgElementParamProduction", "生产要素参数", "/aidop/s0/manufacturing/ProductionElementParamList", 120),
  355. (13, "/aidop/s0/manufacturing/material-process-element", "aidopS0MfgMaterialProcessElement", "物料工艺要素", "/aidop/s0/manufacturing/MaterialProcessElementList", 130),
  356. (14, "/aidop/s0/manufacturing/preprocess-element", "aidopS0MfgPreprocessElement", "前处理要素", "/aidop/s0/manufacturing/PreprocessElementList", 140),
  357. (15, "/aidop/s0/manufacturing/preprocess-element-param", "aidopS0MfgElementParamPreprocess", "前处理要素参数", "/aidop/s0/manufacturing/PreprocessElementParamList", 150),
  358. (16, "/aidop/s0/manufacturing/sop-file-type", "aidopS0MfgSopFileType", "SOP 文件类型", "/aidop/s0/manufacturing/SopFileTypeList", 160),
  359. (17, "/aidop/s0/manufacturing/sop-document", "aidopS0MfgSopDocument", "SOP 维护", "/aidop/s0/manufacturing/SopMaintenanceList", 170),
  360. };
  361. foreach (var (idOff, path, name, title, component, order) in leaves)
  362. {
  363. yield return new SysMenu
  364. {
  365. Id = subDirId + idOff,
  366. Pid = subDirId,
  367. Title = title,
  368. Path = path,
  369. Name = name,
  370. Component = component,
  371. Icon = "ele-Document",
  372. Type = MenuTypeEnum.Menu,
  373. CreateTime = ct,
  374. OrderNo = order,
  375. Remark = $"S0 {title}"
  376. };
  377. }
  378. yield return new SysMenu
  379. {
  380. Id = subDirId + 18,
  381. Pid = subDirId,
  382. Title = "选择替代方案",
  383. Path = "/aidop/s0/manufacturing/substitute-scheme-select",
  384. Name = "aidopS0MfgSubstituteSchemeSelect",
  385. Component = "/aidop/s0/manufacturing/SubstituteSchemeSelectList",
  386. Icon = "ele-List",
  387. Type = MenuTypeEnum.Menu,
  388. CreateTime = ct,
  389. OrderNo = 18,
  390. Remark = "S0 选择替代方案(只读查询)"
  391. };
  392. }
  393. private static IEnumerable<SysMenu> BuildS0SupplyMenus(DateTime ct)
  394. {
  395. const long s0DataModelingMenuId = 1322000000001L;
  396. const long subDirId = 1329004000000L;
  397. yield return new SysMenu
  398. {
  399. Id = subDirId,
  400. Pid = s0DataModelingMenuId,
  401. Title = "供应建模",
  402. Path = "/aidop/s0/supply",
  403. Name = "aidopS0Supply",
  404. Component = "Layout",
  405. Icon = "ele-Ship",
  406. Type = MenuTypeEnum.Dir,
  407. CreateTime = ct,
  408. OrderNo = 40,
  409. Remark = "S0 供应建模"
  410. };
  411. yield return new SysMenu
  412. {
  413. Id = subDirId + 1,
  414. Pid = subDirId,
  415. Title = "供应商维护",
  416. Path = "/aidop/s0/supply/supplier",
  417. Name = "aidopS0SupplySupplier",
  418. Component = "/aidop/s0/supply/SupplierList",
  419. Icon = "ele-UserFilled",
  420. Type = MenuTypeEnum.Menu,
  421. CreateTime = ct,
  422. OrderNo = 1,
  423. Remark = "S0 供应商维护"
  424. };
  425. yield return new SysMenu
  426. {
  427. Id = subDirId + 2,
  428. Pid = subDirId,
  429. Title = "货源清单",
  430. Path = "/aidop/s0/supply/sourcing-item",
  431. Name = "aidopS0SupplySourcingItem",
  432. Component = "/aidop/s0/supply/SourcingList",
  433. Icon = "ele-List",
  434. Type = MenuTypeEnum.Menu,
  435. CreateTime = ct,
  436. OrderNo = 2,
  437. Remark = "S0 货源清单(srm_purchase)"
  438. };
  439. }
  440. private static IEnumerable<SysMenu> BuildS0QualityMenus(DateTime ct)
  441. {
  442. const long s0DataModelingMenuId = 1322000000001L;
  443. const long subDirId = 1329004500000L;
  444. yield return new SysMenu
  445. {
  446. Id = subDirId,
  447. Pid = s0DataModelingMenuId,
  448. Title = "质量建模",
  449. Path = "/aidop/s0/quality",
  450. Name = "aidopS0Quality",
  451. Component = "Layout",
  452. Icon = "ele-DataAnalysis",
  453. Type = MenuTypeEnum.Dir,
  454. CreateTime = ct,
  455. OrderNo = 45,
  456. Remark = "S0 质量建模"
  457. };
  458. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  459. {
  460. (1, "/aidop/s0/quality/dictionary", "aidopS0QlyDictionary", "质量字典", "/aidop/s0/quality/QualityDictionaryPage", 10),
  461. (2, "/aidop/s0/quality/raw-whitelist", "aidopS0QlyRawWhitelist", "原材料白名单", "/aidop/s0/quality/RawWhitelistList", 20),
  462. (3, "/aidop/s0/quality/sampling-scheme", "aidopS0QlySamplingScheme", "抽样方案", "/aidop/s0/quality/SamplingSchemeList", 30),
  463. (4, "/aidop/s0/quality/instrument", "aidopS0QlyInstrument", "检验仪器", "/aidop/s0/quality/InspectionInstrumentList", 40),
  464. (5, "/aidop/s0/quality/inspection-method", "aidopS0QlyInspectionMethod", "检验方法", "/aidop/s0/quality/InspectionMethodList", 50),
  465. (6, "/aidop/s0/quality/inspection-basis", "aidopS0QlyInspectionBasis", "检验依据", "/aidop/s0/quality/InspectionBasisList", 60),
  466. (7, "/aidop/s0/quality/inspection-standard", "aidopS0QlyInspectionStandard", "检验标准", "/aidop/s0/quality/InspectionStandardList", 70),
  467. (8, "/aidop/s0/quality/inspection-item", "aidopS0QlyInspectionItem", "检验项目", "/aidop/s0/quality/InspectionItemList", 80),
  468. (9, "/aidop/s0/quality/inspection-frequency", "aidopS0QlyInspectionFrequency", "检验频率", "/aidop/s0/quality/InspectionFrequencyList", 90),
  469. (10, "/aidop/s0/quality/inspection-plan", "aidopS0QlyInspectionPlan", "检验方案", "/aidop/s0/quality/InspectionPlanList", 100),
  470. (11, "/aidop/s0/quality/raw-inspection-spec", "aidopS0QlyRawInspectionSpec", "原材料检验规范", "/aidop/s0/quality/RawInspectionSpecList", 110),
  471. (12, "/aidop/s0/quality/process-inspection-spec", "aidopS0QlyProcessInspectionSpec", "过程检验规范", "/aidop/s0/quality/ProcessInspectionSpecList", 120),
  472. };
  473. foreach (var (idOff, path, name, title, component, order) in leaves)
  474. {
  475. yield return new SysMenu
  476. {
  477. Id = subDirId + idOff,
  478. Pid = subDirId,
  479. Title = title,
  480. Path = path,
  481. Name = name,
  482. Component = component,
  483. Icon = "ele-Document",
  484. Type = MenuTypeEnum.Menu,
  485. CreateTime = ct,
  486. OrderNo = order,
  487. Remark = $"S0 {title}"
  488. };
  489. }
  490. }
  491. /// <summary>
  492. /// S8 异常协同:直接挂在「S8 异常监控」目录下,不再经过中间层「异常管理」。
  493. /// </summary>
  494. private static IEnumerable<SysMenu> BuildS8CollaborationMenus(DateTime ct)
  495. {
  496. const long s8DirId = 1321000009000L;
  497. const long baseId = 1329008000000L;
  498. const long s8MonitoringDirId = 1329008000020L;
  499. // 异常监控子模块(专题大屏占位,后续接业务数据)
  500. yield return new SysMenu
  501. {
  502. Id = s8MonitoringDirId,
  503. Pid = s8DirId,
  504. Title = "异常监控",
  505. Path = "/aidop/s8/monitoring",
  506. Name = "aidopS8MonitoringDir",
  507. Component = "Layout",
  508. Redirect = "/aidop/s8/monitoring/overview",
  509. Icon = "ele-Monitor",
  510. Type = MenuTypeEnum.Dir,
  511. CreateTime = ct,
  512. OrderNo = 8,
  513. Remark = "S8 异常监控子模块"
  514. };
  515. yield return new SysMenu
  516. {
  517. Id = s8MonitoringDirId + 1,
  518. Pid = s8MonitoringDirId,
  519. Title = "异常监控大屏",
  520. Path = "/aidop/s8/monitoring/overview",
  521. Name = "aidopS8MonitoringOverview",
  522. Component = "/aidop/s8/monitoring/S8MonitoringOverviewPage",
  523. Icon = "ele-DataBoard",
  524. Type = MenuTypeEnum.Menu,
  525. CreateTime = ct,
  526. OrderNo = 10,
  527. Remark = "S8 异常监控大屏(占位)"
  528. };
  529. yield return new SysMenu
  530. {
  531. Id = s8MonitoringDirId + 2,
  532. Pid = s8MonitoringDirId,
  533. Title = "交付异常大屏",
  534. Path = "/aidop/s8/monitoring/delivery",
  535. Name = "aidopS8MonitoringDelivery",
  536. Component = "/aidop/s8/monitoring/S8MonitoringDeliveryPage",
  537. Icon = "ele-Position",
  538. Type = MenuTypeEnum.Menu,
  539. CreateTime = ct,
  540. OrderNo = 11,
  541. Remark = "S8 交付异常大屏(占位)"
  542. };
  543. yield return new SysMenu
  544. {
  545. Id = s8MonitoringDirId + 3,
  546. Pid = s8MonitoringDirId,
  547. Title = "生产异常大屏",
  548. Path = "/aidop/s8/monitoring/production",
  549. Name = "aidopS8MonitoringProduction",
  550. Component = "/aidop/s8/monitoring/S8MonitoringProductionPage",
  551. Icon = "ele-Cpu",
  552. Type = MenuTypeEnum.Menu,
  553. CreateTime = ct,
  554. OrderNo = 12,
  555. Remark = "S8 生产异常大屏(占位)"
  556. };
  557. yield return new SysMenu
  558. {
  559. Id = s8MonitoringDirId + 4,
  560. Pid = s8MonitoringDirId,
  561. Title = "供应异常大屏",
  562. Path = "/aidop/s8/monitoring/supply",
  563. Name = "aidopS8MonitoringSupply",
  564. Component = "/aidop/s8/monitoring/S8MonitoringSupplyPage",
  565. Icon = "ele-Box",
  566. Type = MenuTypeEnum.Menu,
  567. CreateTime = ct,
  568. OrderNo = 13,
  569. Remark = "S8 供应异常大屏(占位)"
  570. };
  571. // 可见业务页(「异常监控看板」复用自动生成的 1322000000028 菜单位)
  572. yield return new SysMenu
  573. {
  574. Id = baseId + 2,
  575. Pid = s8DirId,
  576. Title = "异常列表",
  577. Path = "/aidop/s8/exceptions",
  578. Name = "aidopS8ExceptionList",
  579. Component = "/aidop/s8/exceptions/S8ExceptionListPage",
  580. Icon = "ele-List",
  581. Type = MenuTypeEnum.Menu,
  582. CreateTime = ct,
  583. OrderNo = 20,
  584. Remark = "S8 异常列表"
  585. };
  586. yield return new SysMenu
  587. {
  588. Id = baseId + 3,
  589. Pid = s8DirId,
  590. Title = "主动提报",
  591. Path = "/aidop/s8/report",
  592. Name = "aidopS8ManualReport",
  593. Component = "/aidop/s8/report/S8ManualReportPage",
  594. Icon = "ele-EditPen",
  595. Type = MenuTypeEnum.Menu,
  596. CreateTime = ct,
  597. OrderNo = 30,
  598. Remark = "S8 主动提报"
  599. };
  600. yield return new SysMenu
  601. {
  602. Id = baseId + 4,
  603. Pid = s8DirId,
  604. Title = "配置中心",
  605. Path = "/aidop/s8/config",
  606. Name = "aidopS8ConfigHub",
  607. Component = "/aidop/s8/config/S8ConfigHubPage",
  608. Icon = "ele-Setting",
  609. Type = MenuTypeEnum.Menu,
  610. CreateTime = ct,
  611. OrderNo = 40,
  612. Remark = "S8 配置中心"
  613. };
  614. // 隐藏路由(不出侧栏,需参与动态路由注册)
  615. yield return new SysMenu
  616. {
  617. Id = baseId + 10,
  618. Pid = s8DirId,
  619. Title = "任务详情",
  620. Path = "/aidop/s8/exceptions/:id",
  621. Name = "aidopS8TaskDetail",
  622. Component = "/aidop/s8/exceptions/S8TaskDetailPage",
  623. Icon = "ele-Document",
  624. Type = MenuTypeEnum.Menu,
  625. CreateTime = ct,
  626. OrderNo = 90,
  627. IsHide = true,
  628. Remark = "S8 任务详情"
  629. };
  630. var cfg = new (long Off, string Path, string Name, string Title, string Component)[]
  631. {
  632. (11, "/aidop/s8/config/scenes", "aidopS8ScenarioConfig", "场景基础配置", "/aidop/s8/config/S8ScenarioConfigPage"),
  633. (12, "/aidop/s8/config/notifications", "aidopS8NotificationLayerConfig", "通知分层配置", "/aidop/s8/config/S8NotificationLayerPage"),
  634. (13, "/aidop/s8/config/roles", "aidopS8RolePermissionConfig", "角色权限配置", "/aidop/s8/config/S8RolePermissionConfigPage"),
  635. (14, "/aidop/s8/config/alert-rules", "aidopS8AlertRulesConfig", "报警规则配置", "/aidop/s8/config/S8AlertRulesPage"),
  636. (15, "/aidop/s8/config/data-sources", "aidopS8DataSourceConfig", "数据源配置", "/aidop/s8/config/S8DataSourceConfigPage"),
  637. (16, "/aidop/s8/config/watch-rules", "aidopS8WatchRuleConfig", "监视规则配置", "/aidop/s8/config/S8WatchRuleConfigPage"),
  638. };
  639. foreach (var (off, path, name, title, component) in cfg)
  640. {
  641. yield return new SysMenu
  642. {
  643. Id = baseId + off,
  644. Pid = s8DirId,
  645. Title = title,
  646. Path = path,
  647. Name = name,
  648. Component = component,
  649. Icon = "ele-Document",
  650. Type = MenuTypeEnum.Menu,
  651. CreateTime = ct,
  652. OrderNo = 100 + (int)off,
  653. IsHide = true,
  654. Remark = $"S8 {title}"
  655. };
  656. }
  657. }
  658. private static IEnumerable<SysMenu> BuildS0WarehouseMenus(DateTime ct)
  659. {
  660. const long s0DataModelingMenuId = 1322000000001L;
  661. const long subDirId = 1329005000000L;
  662. yield return new SysMenu
  663. {
  664. Id = subDirId,
  665. Pid = s0DataModelingMenuId,
  666. Title = "仓储建模",
  667. Path = "/aidop/s0/warehouse",
  668. Name = "aidopS0Warehouse",
  669. Component = "Layout",
  670. Icon = "ele-OfficeBuilding",
  671. Type = MenuTypeEnum.Dir,
  672. CreateTime = ct,
  673. OrderNo = 50,
  674. Remark = "S0 仓储建模"
  675. };
  676. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  677. {
  678. (1, "/aidop/s0/warehouse/department", "aidopS0WhDepartment", "部门维护", "/aidop/s0/warehouse/DepartmentList", 10),
  679. (2, "/aidop/s0/warehouse/employee", "aidopS0WhEmployee", "雇员列表", "/aidop/s0/warehouse/EmployeeList", 20),
  680. (3, "/aidop/s0/warehouse/cost-center", "aidopS0WhCostCenter", "成本中心", "/aidop/s0/warehouse/CostCenterList", 30),
  681. (4, "/aidop/s0/warehouse/location", "aidopS0WhLocation", "库位维护", "/aidop/s0/warehouse/LocationList", 40),
  682. (5, "/aidop/s0/warehouse/location-shelf", "aidopS0WhLocationShelf", "货架列表", "/aidop/s0/warehouse/LocationShelfList", 50),
  683. (6, "/aidop/s0/warehouse/barcode-rule", "aidopS0WhBarcodeRule", "条码规则", "/aidop/s0/warehouse/BarcodeRuleList", 60),
  684. (7, "/aidop/s0/warehouse/label-type", "aidopS0WhLabelType", "标签格式", "/aidop/s0/warehouse/LabelTypeList", 70),
  685. (8, "/aidop/s0/warehouse/nbr-type", "aidopS0WhNbrType", "单号类型", "/aidop/s0/warehouse/NbrTypeList", 80),
  686. (9, "/aidop/s0/warehouse/nbr-control", "aidopS0WhNbrControl", "单号规则维护", "/aidop/s0/warehouse/NbrControlList", 90),
  687. (10, "/aidop/s0/warehouse/item-pack", "aidopS0WhItemPack", "零件包装规格", "/aidop/s0/warehouse/ItemPackList", 100),
  688. (11, "/aidop/s0/warehouse/emp-work-duty", "aidopS0WhEmpWorkDuty", "物料职责维护", "/aidop/s0/warehouse/EmpWorkDutyList", 110),
  689. (12, "/aidop/s0/warehouse/task-assignment", "aidopS0WhTaskAssignment", "物料状态任务指派", "/aidop/s0/warehouse/TaskAssignmentList", 120),
  690. };
  691. foreach (var (idOff, path, name, title, component, order) in leaves)
  692. {
  693. yield return new SysMenu
  694. {
  695. Id = subDirId + idOff,
  696. Pid = subDirId,
  697. Title = title,
  698. Path = path,
  699. Name = name,
  700. Component = component,
  701. Icon = "ele-Document",
  702. Type = MenuTypeEnum.Menu,
  703. CreateTime = ct,
  704. OrderNo = order,
  705. Remark = $"S0 {title}"
  706. };
  707. }
  708. }
  709. /// <summary>
  710. /// S1「产销协同看板」目录(Id=1322000000005)下的子菜单:指标看板、需求明细核验。
  711. /// </summary>
  712. private static IEnumerable<SysMenu> BuildS1SalesKanbanMenus(DateTime ct)
  713. {
  714. const long salesKanBanDirId = 1322000000005L;
  715. yield return new SysMenu
  716. {
  717. Id = 1322000000201L,
  718. Pid = salesKanBanDirId,
  719. Title = "产销协同指标看板",
  720. Path = "/aidop/s1/SalesKanBan/kanban",
  721. Name = "aidopS1SalesKanBanKanban",
  722. Component = "/aidop/kanban/s1",
  723. Icon = "ele-DataAnalysis",
  724. Type = MenuTypeEnum.Menu,
  725. CreateTime = ct,
  726. OrderNo = 10,
  727. Remark = "S1 产销协同看板(指标)"
  728. };
  729. yield return new SysMenu
  730. {
  731. Id = 1322000000202L,
  732. Pid = salesKanBanDirId,
  733. Title = "需求明细核验",
  734. Path = "/aidop/s1/SalesKanBan/requirement-examine-detail",
  735. Name = "aidopS1RequirementExamineDetail",
  736. Component = "/aidop/s1/sales-kanban/RequirementExamineDetailList",
  737. Icon = "ele-List",
  738. Type = MenuTypeEnum.Menu,
  739. CreateTime = ct,
  740. OrderNo = 20,
  741. Remark = "S1 需求明细核验"
  742. };
  743. }
  744. /// <summary>
  745. /// S1「订单管理」「工单管理」目录化后的子菜单:销售订单、合同评审、产品设计、工单下达等。
  746. /// 父级 Id:订单管理=1322000000003,工单管理=1322000000004(menuSeq 与 ModuleDefinitions 中 S1 叶子顺序一致)。
  747. /// 产销协同看板=1322000000005,路径 /aidop/s1/SalesKanBan(勿与工单管理目录混淆)。
  748. /// </summary>
  749. private static IEnumerable<SysMenu> BuildS1OrderWorkOrderMenus(DateTime ct)
  750. {
  751. const long orderMgmtDirId = 1322000000003L;
  752. const long workOrderMgmtDirId = 1322000000004L;
  753. yield return new SysMenu
  754. {
  755. Id = 1322000000101L,
  756. Pid = orderMgmtDirId,
  757. Title = "合同评审",
  758. Path = "/aidop/s1/order-mgmt/contract-review",
  759. Name = "aidopS1ContractReview",
  760. Component = "/aidop/business/contractReviewList",
  761. Icon = "ele-Edit",
  762. Type = MenuTypeEnum.Menu,
  763. CreateTime = ct,
  764. OrderNo = 10,
  765. Remark = "S1 合同评审"
  766. };
  767. yield return new SysMenu
  768. {
  769. Id = 1322000000102L,
  770. Pid = orderMgmtDirId,
  771. Title = "产品设计",
  772. Path = "/aidop/s1/order-mgmt/product-design",
  773. Name = "aidopS1ProductDesign",
  774. Component = "/aidop/business/productDesignList",
  775. Icon = "ele-Edit",
  776. Type = MenuTypeEnum.Menu,
  777. CreateTime = ct,
  778. OrderNo = 20,
  779. Remark = "S1 产品设计"
  780. };
  781. yield return new SysMenu
  782. {
  783. Id = 1322000000103L,
  784. Pid = orderMgmtDirId,
  785. Title = "订单评审",
  786. Path = "/aidop/s1/order-mgmt/order",
  787. Name = "aidopS1SalesOrder",
  788. Component = "/aidop/business/orderList",
  789. Icon = "ele-Document",
  790. Type = MenuTypeEnum.Menu,
  791. CreateTime = ct,
  792. OrderNo = 30,
  793. Remark = "S1 销售订单(原订单管理入口)"
  794. };
  795. yield return new SysMenu
  796. {
  797. Id = 1322000000104L,
  798. Pid = orderMgmtDirId,
  799. Title = "订单交付",
  800. Path = "/aidop/s1/order-mgmt/orderDelivery",
  801. Name = "aidopS1OrderDelivery",
  802. Component = "/aidop/business/orderDeliveryList",
  803. Icon = "ele-Document",
  804. Type = MenuTypeEnum.Menu,
  805. CreateTime = ct,
  806. OrderNo = 40,
  807. Remark = "S1 订单交付"
  808. };
  809. yield return new SysMenu
  810. {
  811. Id = 1322000000105L,
  812. Pid = orderMgmtDirId,
  813. Title = "订单发货",
  814. Path = "/aidop/s1/order-mgmt/asnShipper",
  815. Name = "aidopS1AsnShipper",
  816. Component = "/aidop/business/asnShipperList",
  817. Icon = "ele-Document",
  818. Type = MenuTypeEnum.Menu,
  819. CreateTime = ct,
  820. OrderNo = 50,
  821. Remark = "S1 订单发货"
  822. };
  823. yield return new SysMenu
  824. {
  825. Id = 1322000000106L,
  826. Pid = workOrderMgmtDirId,
  827. Title = "工单下达",
  828. Path = "/aidop/s1/workorder-mgmt/dispatch",
  829. Name = "aidopS1WorkOrderDispatch",
  830. Component = "/aidop/business/workOrderDispatchList",
  831. Icon = "ele-Position",
  832. Type = MenuTypeEnum.Menu,
  833. CreateTime = ct,
  834. OrderNo = 10,
  835. Remark = "S1 工单池下达"
  836. };
  837. }
  838. private static readonly (string Code, string L1, (string Title, string Desc, string Complexity, string Days, string Note)[] Leaves)[] ModuleDefinitions =
  839. {
  840. ("S0", "S0 运营建模", new[]
  841. {
  842. ("数据建模", "支持数据库表结构设计与建模", "高", "5", "核心基础功能"),
  843. ("业务建模", "支持业务流程建模与配置", "高", "5", "核心基础功能"),
  844. }),
  845. ("S1", "S1 产销协同", new[]
  846. {
  847. ("订单管理", "销售订单录入、查询、编辑、删除", "中", "3", ""),
  848. ("工单管理", "工单创建、分配、跟踪", "中", "3", ""),
  849. ("产销协同看板", "订单与生产协同数据可视化", "高", "5", "数据看板类"),
  850. }),
  851. ("S2", "S2 制造协同", new[]
  852. {
  853. ("生产排程", "生产任务排程与调度", "高", "5", ""),
  854. ("作业计划", "车间作业计划管理", "中", "3", ""),
  855. ("制造协同看板", "制造过程协同数据展示", "高", "5", "数据看板类"),
  856. }),
  857. ("S3", "S3 供应协同", new[]
  858. {
  859. ("物料计划", "物料需求计划(MRP)计算", "高", "7", "核心算法"),
  860. ("供应协同看板", "供应商协同数据可视化", "中", "4", "数据看板类"),
  861. }),
  862. ("S4", "S4 采购执行", new[]
  863. {
  864. ("采购管理", "采购申请、订单、合同管理", "中", "4", ""),
  865. ("交货管理", "供应商交货跟踪与验收", "中", "3", ""),
  866. ("退货管理", "采购退货流程处理", "低", "2", ""),
  867. ("采购执行看板", "采购执行数据可视化", "中", "4", "数据看板类"),
  868. }),
  869. ("S5", "S5 物料仓储", new[]
  870. {
  871. ("来料检验", "IQC来料质量检验", "中", "3", ""),
  872. ("仓储管理", "仓库入库、出库、调拨", "中", "4", ""),
  873. ("库存数据", "库存查询、盘点、调整", "中", "3", ""),
  874. ("物料仓储看板", "仓储数据可视化分析", "中", "4", "数据看板类"),
  875. }),
  876. ("S6", "S6 生产执行", new[]
  877. {
  878. ("生产记录管理", "生产过程数据记录", "中", "3", ""),
  879. ("过程质量管理", "IPQC过程质量检验", "中", "4", ""),
  880. ("设备工装管理", "设备台账、保养、维修", "中", "4", ""),
  881. ("生产执行看板", "生产执行数据可视化", "高", "5", "数据看板类"),
  882. }),
  883. ("S7", "S7 成品仓储", new[]
  884. {
  885. ("成品质量管理", "OQC成品质量检验", "中", "3", ""),
  886. ("生产入库管理", "成品入库流程", "低", "2", ""),
  887. ("成品出库管理", "成品出库发货流程", "低", "2", ""),
  888. ("成品库存管理", "成品库存查询与管理", "中", "3", ""),
  889. }),
  890. ("S8", "S8 异常监控", new[]
  891. {
  892. ("异常监控看板", "生产异常监控、处理、跟踪", "中", "4", ""),
  893. }),
  894. ("S9", "S9 运营指标", new[]
  895. {
  896. ("ERP同步", "与外部ERP系统数据同步", "高", "7", "接口集成"),
  897. ("日志查询", "系统操作日志查询", "低", "2", ""),
  898. ("ERP事务", "ERP相关事务处理", "中", "3", ""),
  899. }),
  900. ("M11", "系统管理", new[]
  901. {
  902. ("组织架构", "部门、岗位、人员管理", "中", "3", "与框架系统管理对应,后续可映射具体页"),
  903. ("菜单管理", "系统菜单权限配置", "中", "3", ""),
  904. }),
  905. ("M12", "流程平台", new[]
  906. {
  907. ("流程管理", "工作流流程定义与配置", "高", "7", "核心引擎"),
  908. ("表单管理", "流程表单设计与配置", "高", "5", ""),
  909. ("应用设计", "业务应用快速设计", "高", "5", ""),
  910. ("数据资源配置", "数据资源连接配置", "中", "4", ""),
  911. ("格式化JSON", "JSON数据格式化工具", "低", "1", "工具类"),
  912. ("模板管理", "流程模板管理", "中", "3", ""),
  913. ("系统按钮", "系统按钮权限配置", "低", "2", ""),
  914. ("流程按钮", "流程操作按钮配置", "低", "2", ""),
  915. ("应用程序", "外部应用集成管理", "中", "4", ""),
  916. ("接口系统", "API接口配置管理", "高", "5", ""),
  917. }),
  918. ("M13", "系统工具", new[]
  919. {
  920. ("数据字典", "系统字典数据管理", "低", "2", ""),
  921. ("数据连接", "数据库连接配置", "中", "3", ""),
  922. ("首页设置", "系统首页个性化配置", "低", "2", ""),
  923. ("日志查询", "系统运行日志查询", "低", "2", ""),
  924. ("流水号管理", "业务流水号规则配置", "低", "2", ""),
  925. ("工作日设置", "工作日历配置", "低", "1", ""),
  926. ("图标库", "系统图标资源管理", "低", "1", ""),
  927. ("在线用户", "在线用户监控", "低", "2", ""),
  928. ("周库存统计", "库存周期统计报表", "中", "3", "报表类"),
  929. ("数据导入", "批量数据导入工具", "中", "3", ""),
  930. }),
  931. ("M14", "流程中心", new[]
  932. {
  933. ("发起流程", "新建并发起工作流程", "中", "3", ""),
  934. ("待办事项", "个人待办任务处理", "中", "3", ""),
  935. ("待办批量处理", "待办任务批量操作", "中", "3", ""),
  936. ("已办事项", "已办任务查询", "低", "2", ""),
  937. ("我的流程", "我发起的流程跟踪", "中", "3", ""),
  938. ("已委托事项", "委托他人处理的事项", "低", "2", ""),
  939. ("流程委托", "流程任务委托配置", "低", "2", ""),
  940. ("流程意见", "流程审批意见管理", "低", "2", ""),
  941. }),
  942. ("M15", "个人设置", new[]
  943. {
  944. ("个人信息", "个人资料维护", "低", "1", ""),
  945. ("头像设置", "个人头像上传", "低", "1", ""),
  946. ("修改密码", "密码修改功能", "低", "1", ""),
  947. ("签章管理", "个人电子签章管理", "中", "3", ""),
  948. ("文件管理", "个人文件存储管理", "中", "3", ""),
  949. ("快捷菜单", "个人快捷方式配置", "低", "1", ""),
  950. }),
  951. ("M16", "系统首页", new[]
  952. {
  953. ("系统首页", "系统门户首页", "中", "3", "门户类"),
  954. ("发起流程(快捷)", "首页快捷发起流程", "低", "1", ""),
  955. ("我的流程(快捷)", "首页流程快捷入口", "低", "1", ""),
  956. ("待办事项(快捷)", "首页待办快捷入口", "低", "1", ""),
  957. }),
  958. };
  959. }