SysMenuSeedData.cs 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  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 BuildS2ManufacturingCollaborationMenus(ct))
  94. list.Add(m);
  95. foreach (var m in BuildS3SupplyMenus(ct))
  96. list.Add(m);
  97. foreach (var m in BuildS4DeliveryMenus(ct))
  98. list.Add(m);
  99. foreach (var m in BuildS1SalesKanbanMenus(ct))
  100. list.Add(m);
  101. foreach (var m in BuildS8CollaborationMenus(ct))
  102. list.Add(m);
  103. // 产销协同看板改为目录后,访问 /aidop/s1/SalesKanBan 默认进入指标看板子页
  104. var salesKanBanDir = list.FirstOrDefault(x => x.Id == 1322000000005L);
  105. if (salesKanBanDir != null)
  106. salesKanBanDir.Redirect = "/aidop/s1/SalesKanBan/kanban";
  107. // S2:生产排程 / 作业计划 / 制造协同看板 为目录,默认进入各自首子页
  108. var s2ProdSched = list.FirstOrDefault(x => x.Id == 1322000000006L);
  109. if (s2ProdSched != null)
  110. s2ProdSched.Redirect = "/aidop/s2/production-scheduling/work-order-scheduling";
  111. var s2OpPlan = list.FirstOrDefault(x => x.Id == 1322000000007L);
  112. if (s2OpPlan != null)
  113. s2OpPlan.Redirect = "/aidop/s2/operation-plan/executable-daily-plan";
  114. var s2MfgKanban = list.FirstOrDefault(x => x.Id == 1322000000008L);
  115. if (s2MfgKanban != null)
  116. s2MfgKanban.Redirect = "/aidop/s2/collaboration-kanban/work-order-progress";
  117. var s3MaterialPlan = list.FirstOrDefault(x => x.Id == 1322000000009L);
  118. if (s3MaterialPlan != null)
  119. s3MaterialPlan.Redirect = "/aidop/s3/material-plan/demand-schedule";
  120. var s3Procurement = list.FirstOrDefault(x => x.Id == 1322000000010L);
  121. if (s3Procurement != null)
  122. {
  123. s3Procurement.Title = "采购管理";
  124. s3Procurement.Path = "/aidop/s3/procurement";
  125. s3Procurement.Name = "aidopS3Procurement";
  126. s3Procurement.Component = "Layout";
  127. s3Procurement.Icon = "ele-Folder";
  128. s3Procurement.Type = MenuTypeEnum.Dir;
  129. s3Procurement.Redirect = "/aidop/s3/procurement/purchase-request";
  130. s3Procurement.Remark = "S3 采购管理";
  131. }
  132. var s4Delivery = list.FirstOrDefault(x => x.Id == 1322000000012L);
  133. if (s4Delivery != null)
  134. s4Delivery.Redirect = "/aidop/s4/delivery/supplier-delivery-management";
  135. // S8:复用自动生成的首项菜单位,直接作为「异常监控看板」页,避免再出现中间层「异常管理」目录
  136. var s8Dashboard = list.FirstOrDefault(x => x.Id == 1322000000027L);
  137. if (s8Dashboard != null)
  138. {
  139. s8Dashboard.Title = "异常监控看板";
  140. s8Dashboard.Path = "/aidop/s8/dashboard";
  141. s8Dashboard.Name = "aidopS8Dashboard";
  142. s8Dashboard.Component = "/aidop/s8/dashboard/S8DashboardPage";
  143. s8Dashboard.Icon = "ele-DataBoard";
  144. s8Dashboard.Type = MenuTypeEnum.Menu;
  145. s8Dashboard.Redirect = null;
  146. s8Dashboard.Remark = "S8 异常监控看板";
  147. }
  148. return list;
  149. }
  150. /// <summary>
  151. /// 智慧诊断 + 智慧运营看板(入库,便于平台「菜单管理」配置;勿在 Web aidopMenuDisplay 再注入整段菜单)。
  152. /// </summary>
  153. private static IEnumerable<SysMenu> BuildAidopSmartOpsSeedMenus(DateTime ct)
  154. {
  155. const long smartOpsDirId = 1320990000200L;
  156. yield return new SysMenu
  157. {
  158. Id = 1320990000201L,
  159. Pid = AidopRootId,
  160. Title = "智慧诊断",
  161. Path = "/aidop/smart-diagnosis",
  162. Name = "aidopSmartDiagnosis",
  163. Component = "/aidop/diagnosis/index",
  164. Icon = "ele-TrendCharts",
  165. Type = MenuTypeEnum.Menu,
  166. CreateTime = ct,
  167. OrderNo = 251,
  168. Remark = "Ai-DOP 智慧诊断"
  169. };
  170. yield return new SysMenu
  171. {
  172. Id = smartOpsDirId,
  173. Pid = AidopRootId,
  174. Title = "智慧运营看板",
  175. Path = "/aidop/smart-ops",
  176. Name = "aidopSmartOpsRoot",
  177. Component = "Layout",
  178. Icon = "ele-DataBoard",
  179. Type = MenuTypeEnum.Dir,
  180. CreateTime = ct,
  181. OrderNo = 252,
  182. Remark = "Ai-DOP 智慧运营看板分组"
  183. };
  184. // OrderNo:建模紧接九宫格之后,避免在侧栏最底部不易发现;已落库环境需在菜单管理调序或改库
  185. var children = new (long Id, string Path, string Name, string Title, string Component, int Order)[]
  186. {
  187. (1320990000301L, "/aidop/smart-ops/grid", "aidopSmartOpsGrid", "九宫格智慧运营看板", "/dashboard/home", 100),
  188. (1320990000311L, "/aidop/smart-ops/modeling", "aidopSmartOpsModeling", "运营指标建模", "/aidop/kanban/s0", 105),
  189. (1320990000312L, "/aidop/smart-ops/kpi-master", "aidopSmartOpsKpiMaster", "运营指标主数据", "/aidop/kanban/kpiMaster", 106),
  190. (1320990000313L, "/aidop/smart-ops/business-fact", "aidopSmartOpsBusinessFact", "业务事实字典", "/aidop/kanban/businessFact", 107),
  191. (1320990000302L, "/aidop/smart-ops/s1", "aidopSmartOpsS1", "S1产销协同看板", "/aidop/kanban/s1", 110),
  192. (1320990000303L, "/aidop/smart-ops/s2", "aidopSmartOpsS2", "S2制造协同看板", "/aidop/kanban/s2", 120),
  193. (1320990000304L, "/aidop/smart-ops/s3", "aidopSmartOpsS3", "S3供应协同看板", "/aidop/kanban/s3", 130),
  194. (1320990000305L, "/aidop/smart-ops/s4", "aidopSmartOpsS4", "S4采购执行看板", "/aidop/kanban/s4", 140),
  195. (1320990000306L, "/aidop/smart-ops/s5", "aidopSmartOpsS5", "S5物料仓储看板", "/aidop/kanban/s5", 150),
  196. (1320990000307L, "/aidop/smart-ops/s6", "aidopSmartOpsS6", "S6生产执行看板", "/aidop/kanban/s6", 160),
  197. (1320990000308L, "/aidop/smart-ops/s7", "aidopSmartOpsS7", "S7成品仓储看板", "/aidop/kanban/s7", 170),
  198. (1320990000309L, "/aidop/smart-ops/s8", "aidopSmartOpsS8", "S8异常监控看板", "/aidop/kanban/s8", 180),
  199. (1320990000310L, "/aidop/smart-ops/s9", "aidopSmartOpsS9", "S9运营指标看板", "/aidop/kanban/s9", 190),
  200. };
  201. foreach (var (id, path, name, title, component, order) in children)
  202. {
  203. yield return new SysMenu
  204. {
  205. Id = id,
  206. Pid = smartOpsDirId,
  207. Title = title,
  208. Path = path,
  209. Name = name,
  210. Component = component,
  211. Icon = "ele-DataAnalysis",
  212. Type = MenuTypeEnum.Menu,
  213. CreateTime = ct,
  214. OrderNo = order,
  215. Remark = title
  216. };
  217. }
  218. }
  219. private static string ResolveComponent(string modCode, int leafIndex) =>
  220. ComponentOverrides.TryGetValue((modCode, leafIndex), out var c) ? c : "/aidop/planning/index";
  221. private static readonly Dictionary<(string Mod, int Leaf), string> ComponentOverrides = new()
  222. {
  223. { ("S1", 3), "/aidop/kanban/s1" },
  224. };
  225. /// <summary>S1 等模块下叶子菜单 path 覆盖(目录化后使用语义路径)。</summary>
  226. private static readonly Dictionary<(string Mod, int Leaf), string> PathOverrides = new()
  227. {
  228. { ("S1", 1), "/aidop/s1/order-mgmt" },
  229. { ("S1", 2), "/aidop/s1/workorder-mgmt" },
  230. { ("S1", 3), "/aidop/s1/SalesKanBan" },
  231. { ("S2", 1), "/aidop/s2/production-scheduling" },
  232. { ("S2", 2), "/aidop/s2/operation-plan" },
  233. { ("S2", 3), "/aidop/s2/collaboration-kanban" },
  234. { ("S3", 1), "/aidop/s3/material-plan" },
  235. { ("S4", 2), "/aidop/s4/delivery" },
  236. };
  237. /// <summary>S1 等模块下叶子菜单 route name 覆盖。</summary>
  238. private static readonly Dictionary<(string Mod, int Leaf), string> NameOverrides = new()
  239. {
  240. { ("S1", 1), "aidopS1OrderMgmt" },
  241. { ("S1", 2), "aidopS1WorkOrderMgmt" },
  242. { ("S2", 1), "aidopS2ProductionScheduling" },
  243. { ("S2", 2), "aidopS2OperationPlan" },
  244. { ("S2", 3), "aidopS2CollaborationKanban" },
  245. { ("S3", 1), "aidopS3MaterialPlan" },
  246. { ("S4", 2), "aidopS4Delivery" },
  247. };
  248. /// <summary>
  249. /// 需要从 Menu 提升为 Dir(目录)的叶子节点;用于承载子级菜单。
  250. /// </summary>
  251. private static readonly HashSet<(string Mod, int Leaf)> DirOverrides = new()
  252. {
  253. { ("S0", 1) }, // 数据建模 → 目录,产销建模挂在其下
  254. { ("S1", 1) }, // 订单管理 → 目录(销售订单、合同评审)
  255. { ("S1", 2) }, // 工单管理 → 目录(工单列表、工单下达)
  256. { ("S1", 3) }, // 产销协同看板 → 目录(指标看板、需求明细核验)
  257. { ("S2", 1) }, // 生产排程 → 目录(工单工序排程、排产异常记录)
  258. { ("S2", 2) }, // 作业计划 → 目录(可执行日计划、产线日历等)
  259. { ("S2", 3) }, // 制造协同看板 → 目录(工单执行进度看板)
  260. { ("S3", 1) }, // 物料计划 → 目录(物料需求计划)
  261. { ("S4", 2) }, // 交货管理 → 目录(供应商交货管理、供应商发货单)
  262. };
  263. private static IEnumerable<SysMenu> BuildS4DeliveryMenus(DateTime ct)
  264. {
  265. const long deliveryDirId = 1322000000012L;
  266. const long baseId = 1329004100000L;
  267. yield return new SysMenu
  268. {
  269. Id = baseId + 1,
  270. Pid = deliveryDirId,
  271. Title = "供应商交货管理",
  272. Path = "/aidop/s4/delivery/supplier-delivery-management",
  273. Name = "aidopS4SupplierDeliveryManagement",
  274. Component = "/aidop/s4/delivery/supplierDeliveryManagementList",
  275. Icon = "ele-Document",
  276. Type = MenuTypeEnum.Menu,
  277. CreateTime = ct,
  278. OrderNo = 10,
  279. Remark = "S4 供应商交货管理"
  280. };
  281. yield return new SysMenu
  282. {
  283. Id = baseId + 2,
  284. Pid = deliveryDirId,
  285. Title = "供应商发货单",
  286. Path = "/aidop/s4/delivery/supplier-shipment",
  287. Name = "aidopS4SupplierShipment",
  288. Component = "/aidop/s4/delivery/supplierShipmentList",
  289. Icon = "ele-Tickets",
  290. Type = MenuTypeEnum.Menu,
  291. CreateTime = ct,
  292. OrderNo = 20,
  293. Remark = "S4 供应商发货单"
  294. };
  295. // 隐藏路由:用于「生成发货单 / 编辑 / 查看」跳转
  296. yield return new SysMenu
  297. {
  298. Id = baseId + 3,
  299. Pid = deliveryDirId,
  300. Title = "发货单表单",
  301. Path = "/aidop/s4/delivery/supplier-shipment-form",
  302. Name = "aidopS4SupplierShipmentForm",
  303. Component = "/aidop/s4/delivery/supplierShipmentForm",
  304. Icon = "ele-Document",
  305. Type = MenuTypeEnum.Menu,
  306. CreateTime = ct,
  307. OrderNo = 90,
  308. IsHide = true,
  309. Remark = "S4 发货单新增/编辑/查看表单"
  310. };
  311. }
  312. private static string BuildRemark(string code, (string Title, string Desc, string Complexity, string Days, string Note) leaf)
  313. {
  314. var notePart = string.IsNullOrWhiteSpace(leaf.Note) ? "" : $" | {leaf.Note}";
  315. var s = $"[{code}|{leaf.Complexity}|{leaf.Days}人天] {leaf.Desc}{notePart}";
  316. return s.Length <= 256 ? s : s[..256];
  317. }
  318. private static IEnumerable<SysMenu> BuildS0SalesMenus(DateTime ct)
  319. {
  320. // 与 ModuleDefinitions 中 S0 首项「数据建模」的生成 Id 一致(全局 menuSeq=1 → 1322000000001)
  321. const long s0DataModelingMenuId = 1322000000001L;
  322. const long subDirId = 1329002000000L;
  323. yield return new SysMenu
  324. {
  325. Id = subDirId,
  326. Pid = s0DataModelingMenuId,
  327. Title = "产销建模",
  328. Path = "/aidop/s0/sales",
  329. Name = "aidopS0Sales",
  330. Component = "Layout",
  331. Icon = "ele-ShoppingCart",
  332. Type = MenuTypeEnum.Dir,
  333. CreateTime = ct,
  334. OrderNo = 20,
  335. Remark = "S0 产销建模"
  336. };
  337. yield return new SysMenu
  338. {
  339. Id = subDirId + 1,
  340. Pid = subDirId,
  341. Title = "客户管理",
  342. Path = "/aidop/s0/sales/customer",
  343. Name = "aidopS0SalesCustomer",
  344. Component = "/aidop/s0/sales/CustomerList",
  345. Icon = "ele-User",
  346. Type = MenuTypeEnum.Menu,
  347. CreateTime = ct,
  348. OrderNo = 1,
  349. Remark = "S0 客户管理"
  350. };
  351. yield return new SysMenu
  352. {
  353. Id = subDirId + 2,
  354. Pid = subDirId,
  355. Title = "物料管理",
  356. Path = "/aidop/s0/sales/material",
  357. Name = "aidopS0SalesMaterial",
  358. Component = "/aidop/s0/sales/MaterialList",
  359. Icon = "ele-Box",
  360. Type = MenuTypeEnum.Menu,
  361. CreateTime = ct,
  362. OrderNo = 2,
  363. Remark = "S0 物料管理"
  364. };
  365. yield return new SysMenu
  366. {
  367. Id = subDirId + 3,
  368. Pid = subDirId,
  369. Title = "订单优先规则",
  370. Path = "/aidop/s0/sales/order-priority-rule",
  371. Name = "aidopS0SalesOrderPriorityRule",
  372. Component = "/aidop/s0/sales/OrderPriorityRuleList",
  373. Icon = "ele-Sort",
  374. Type = MenuTypeEnum.Menu,
  375. CreateTime = ct,
  376. OrderNo = 3,
  377. Remark = "S0 订单优先规则"
  378. };
  379. yield return new SysMenu
  380. {
  381. Id = subDirId + 4,
  382. Pid = subDirId,
  383. Title = "合同评审周期",
  384. Path = "/aidop/s0/sales/contract-review-cycle",
  385. Name = "aidopS0SalesContractReviewCycle",
  386. Component = "/aidop/s0/sales/ContractReviewCycleList",
  387. Icon = "ele-Clock",
  388. Type = MenuTypeEnum.Menu,
  389. CreateTime = ct,
  390. OrderNo = 4,
  391. Remark = "S0 合同评审周期标准配置"
  392. };
  393. yield return new SysMenu
  394. {
  395. Id = subDirId + 5,
  396. Pid = subDirId,
  397. Title = "产品设计周期",
  398. Path = "/aidop/s0/sales/product-design-cycle",
  399. Name = "aidopS0SalesProductDesignCycle",
  400. Component = "/aidop/s0/sales/ProductDesignCycleList",
  401. Icon = "ele-Timer",
  402. Type = MenuTypeEnum.Menu,
  403. CreateTime = ct,
  404. OrderNo = 5,
  405. Remark = "S0 产品设计周期标准配置"
  406. };
  407. yield return new SysMenu
  408. {
  409. Id = subDirId + 6,
  410. Pid = subDirId,
  411. Title = "订单评审周期",
  412. Path = "/aidop/s0/sales/order-review-cycle",
  413. Name = "aidopS0SalesOrderReviewCycle",
  414. Component = "/aidop/s0/sales/OrderReviewCycleList",
  415. Icon = "ele-AlarmClock",
  416. Type = MenuTypeEnum.Menu,
  417. CreateTime = ct,
  418. OrderNo = 6,
  419. Remark = "S0 订单评审周期标准配置"
  420. };
  421. }
  422. private static IEnumerable<SysMenu> BuildS0ManufacturingMenus(DateTime ct)
  423. {
  424. const long s0DataModelingMenuId = 1322000000001L;
  425. const long subDirId = 1329003000000L;
  426. yield return new SysMenu
  427. {
  428. Id = subDirId,
  429. Pid = s0DataModelingMenuId,
  430. Title = "制造建模",
  431. Path = "/aidop/s0/manufacturing",
  432. Name = "aidopS0Manufacturing",
  433. Component = "Layout",
  434. Icon = "ele-SetUp",
  435. Type = MenuTypeEnum.Dir,
  436. CreateTime = ct,
  437. OrderNo = 30,
  438. Remark = "S0 制造建模"
  439. };
  440. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  441. {
  442. (1, "/aidop/s0/manufacturing/standard-bom", "aidopS0MfgStandardBom", "标准 BOM", "/aidop/s0/manufacturing/StandardBomManagement", 10),
  443. (2, "/aidop/s0/manufacturing/standard-operation", "aidopS0MfgStandardOperation", "标准工序", "/aidop/s0/manufacturing/StandardProcessList", 20),
  444. (3, "/aidop/s0/manufacturing/production-line", "aidopS0MfgProductionLine", "产线", "/aidop/s0/manufacturing/ProductionLineList", 30),
  445. (4, "/aidop/s0/manufacturing/routing", "aidopS0MfgRouting", "工艺路线", "/aidop/s0/manufacturing/RoutingList", 40),
  446. (5, "/aidop/s0/manufacturing/material-substitution", "aidopS0MfgMaterialSubstitution", "物料替代", "/aidop/s0/manufacturing/MaterialSubstitutionList", 50),
  447. (6, "/aidop/s0/manufacturing/work-order-control", "aidopS0MfgWorkOrderControl", "工单控制参数", "/aidop/s0/manufacturing/WorkOrderControlParams", 60),
  448. (7, "/aidop/s0/manufacturing/person-skill", "aidopS0MfgPersonSkill", "人员技能", "/aidop/s0/manufacturing/PersonnelSkillList", 70),
  449. (8, "/aidop/s0/manufacturing/person-skill-assignment", "aidopS0MfgPersonSkillAssignment", "人员技能维护", "/aidop/s0/manufacturing/PersonSkillAssignmentList", 80),
  450. (9, "/aidop/s0/manufacturing/line-post", "aidopS0MfgLinePost", "产线岗位维护", "/aidop/s0/manufacturing/LinePostList", 90),
  451. (10, "/aidop/s0/manufacturing/work-center", "aidopS0MfgWorkCenter", "工作中心", "/aidop/s0/manufacturing/WorkCenterList", 100),
  452. (11, "/aidop/s0/manufacturing/line-material", "aidopS0MfgLineMaterial", "线边物料", "/aidop/s0/manufacturing/LineMaterialList", 110),
  453. (12, "/aidop/s0/manufacturing/element-param-production", "aidopS0MfgElementParamProduction", "生产要素参数", "/aidop/s0/manufacturing/ProductionElementParamList", 120),
  454. (13, "/aidop/s0/manufacturing/material-process-element", "aidopS0MfgMaterialProcessElement", "物料工艺要素", "/aidop/s0/manufacturing/MaterialProcessElementList", 130),
  455. (14, "/aidop/s0/manufacturing/preprocess-element", "aidopS0MfgPreprocessElement", "前处理要素", "/aidop/s0/manufacturing/PreprocessElementList", 140),
  456. (15, "/aidop/s0/manufacturing/preprocess-element-param", "aidopS0MfgElementParamPreprocess", "前处理要素参数", "/aidop/s0/manufacturing/PreprocessElementParamList", 150),
  457. (16, "/aidop/s0/manufacturing/sop-file-type", "aidopS0MfgSopFileType", "SOP 文件类型", "/aidop/s0/manufacturing/SopFileTypeList", 160),
  458. (17, "/aidop/s0/manufacturing/sop-document", "aidopS0MfgSopDocument", "SOP 维护", "/aidop/s0/manufacturing/SopMaintenanceList", 170),
  459. };
  460. foreach (var (idOff, path, name, title, component, order) in leaves)
  461. {
  462. yield return new SysMenu
  463. {
  464. Id = subDirId + idOff,
  465. Pid = subDirId,
  466. Title = title,
  467. Path = path,
  468. Name = name,
  469. Component = component,
  470. Icon = "ele-Document",
  471. Type = MenuTypeEnum.Menu,
  472. CreateTime = ct,
  473. OrderNo = order,
  474. Remark = $"S0 {title}"
  475. };
  476. }
  477. yield return new SysMenu
  478. {
  479. Id = subDirId + 18,
  480. Pid = subDirId,
  481. Title = "选择替代方案",
  482. Path = "/aidop/s0/manufacturing/substitute-scheme-select",
  483. Name = "aidopS0MfgSubstituteSchemeSelect",
  484. Component = "/aidop/s0/manufacturing/SubstituteSchemeSelectList",
  485. Icon = "ele-List",
  486. Type = MenuTypeEnum.Menu,
  487. CreateTime = ct,
  488. OrderNo = 18,
  489. Remark = "S0 选择替代方案(只读查询)"
  490. };
  491. yield return new SysMenu
  492. {
  493. Id = subDirId + 19,
  494. Pid = subDirId,
  495. Title = "工序流转卡",
  496. Path = "/aidop/s0/manufacturing/process-flow-card",
  497. Name = "aidopS0MfgProcessFlowCard",
  498. Component = "/aidop/s0/manufacturing/ProcessFlowCardList",
  499. Icon = "ele-Tickets",
  500. Type = MenuTypeEnum.Menu,
  501. CreateTime = ct,
  502. OrderNo = 180,
  503. Remark = "S0 工序流转卡主数据"
  504. };
  505. yield return new SysMenu
  506. {
  507. Id = subDirId + 20,
  508. Pid = subDirId,
  509. Title = "订单排程周期",
  510. Path = "/aidop/s0/manufacturing/order-schedule-cycle",
  511. Name = "aidopS0MfgOrderScheduleCycle",
  512. Component = "/aidop/s0/manufacturing/OrderScheduleCycleList",
  513. Icon = "ele-Calendar",
  514. Type = MenuTypeEnum.Menu,
  515. CreateTime = ct,
  516. OrderNo = 190,
  517. Remark = "S0 订单排程周期标准"
  518. };
  519. }
  520. private static IEnumerable<SysMenu> BuildS0SupplyMenus(DateTime ct)
  521. {
  522. const long s0DataModelingMenuId = 1322000000001L;
  523. const long subDirId = 1329004000000L;
  524. yield return new SysMenu
  525. {
  526. Id = subDirId,
  527. Pid = s0DataModelingMenuId,
  528. Title = "供应建模",
  529. Path = "/aidop/s0/supply",
  530. Name = "aidopS0Supply",
  531. Component = "Layout",
  532. Icon = "ele-Ship",
  533. Type = MenuTypeEnum.Dir,
  534. CreateTime = ct,
  535. OrderNo = 40,
  536. Remark = "S0 供应建模"
  537. };
  538. yield return new SysMenu
  539. {
  540. Id = subDirId + 1,
  541. Pid = subDirId,
  542. Title = "供应商维护",
  543. Path = "/aidop/s0/supply/supplier",
  544. Name = "aidopS0SupplySupplier",
  545. Component = "/aidop/s0/supply/SupplierList",
  546. Icon = "ele-UserFilled",
  547. Type = MenuTypeEnum.Menu,
  548. CreateTime = ct,
  549. OrderNo = 1,
  550. Remark = "S0 供应商维护"
  551. };
  552. yield return new SysMenu
  553. {
  554. Id = subDirId + 2,
  555. Pid = subDirId,
  556. Title = "货源清单",
  557. Path = "/aidop/s0/supply/sourcing-item",
  558. Name = "aidopS0SupplySourcingItem",
  559. Component = "/aidop/s0/supply/SourcingList",
  560. Icon = "ele-List",
  561. Type = MenuTypeEnum.Menu,
  562. CreateTime = ct,
  563. OrderNo = 2,
  564. Remark = "S0 货源清单(srm_purchase)"
  565. };
  566. yield return new SysMenu
  567. {
  568. Id = subDirId + 3,
  569. Pid = subDirId,
  570. Title = "品类采购前置期",
  571. Path = "/aidop/s0/supply/category-lead-time",
  572. Name = "aidopS0SupplyCategoryLeadTime",
  573. Component = "/aidop/s0/supply/CategoryLeadTimeList",
  574. Icon = "ele-Clock",
  575. Type = MenuTypeEnum.Menu,
  576. CreateTime = ct,
  577. OrderNo = 3,
  578. Remark = "S0 品类采购前置期主数据"
  579. };
  580. yield return new SysMenu
  581. {
  582. Id = subDirId + 4,
  583. Pid = subDirId,
  584. Title = "物料计划周期",
  585. Path = "/aidop/s0/supply/material-plan-cycle",
  586. Name = "aidopS0SupplyMaterialPlanCycle",
  587. Component = "/aidop/s0/supply/MaterialPlanCycleList",
  588. Icon = "ele-Timer",
  589. Type = MenuTypeEnum.Menu,
  590. CreateTime = ct,
  591. OrderNo = 4,
  592. Remark = "S0 物料计划周期标准(小时),与 S3 指标对比需约定换算"
  593. };
  594. }
  595. private static IEnumerable<SysMenu> BuildS0QualityMenus(DateTime ct)
  596. {
  597. const long s0DataModelingMenuId = 1322000000001L;
  598. const long subDirId = 1329004500000L;
  599. yield return new SysMenu
  600. {
  601. Id = subDirId,
  602. Pid = s0DataModelingMenuId,
  603. Title = "质量建模",
  604. Path = "/aidop/s0/quality",
  605. Name = "aidopS0Quality",
  606. Component = "Layout",
  607. Icon = "ele-DataAnalysis",
  608. Type = MenuTypeEnum.Dir,
  609. CreateTime = ct,
  610. OrderNo = 45,
  611. Remark = "S0 质量建模"
  612. };
  613. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  614. {
  615. (1, "/aidop/s0/quality/dictionary", "aidopS0QlyDictionary", "质量基础", "/aidop/s0/quality/QualityDictionaryPage", 10),
  616. (2, "/aidop/s0/quality/raw-whitelist", "aidopS0QlyRawWhitelist", "原材料白名单", "/aidop/s0/quality/RawWhitelistList", 20),
  617. (3, "/aidop/s0/quality/sampling-scheme", "aidopS0QlySamplingScheme", "抽样方案", "/aidop/s0/quality/SamplingSchemeList", 30),
  618. (4, "/aidop/s0/quality/instrument", "aidopS0QlyInstrument", "检验仪器", "/aidop/s0/quality/InspectionInstrumentList", 40),
  619. (13, "/aidop/s0/quality/gauge-instrument", "aidopS0QlyGaugeInstrument", "计量器具", "/aidop/s0/quality/InspectionInstrumentList", 45),
  620. (5, "/aidop/s0/quality/inspection-method", "aidopS0QlyInspectionMethod", "检验方法", "/aidop/s0/quality/InspectionMethodList", 50),
  621. (6, "/aidop/s0/quality/inspection-basis", "aidopS0QlyInspectionBasis", "检验依据", "/aidop/s0/quality/InspectionBasisList", 60),
  622. (7, "/aidop/s0/quality/inspection-standard", "aidopS0QlyInspectionStandard", "检验标准", "/aidop/s0/quality/InspectionStandardList", 70),
  623. (8, "/aidop/s0/quality/inspection-item", "aidopS0QlyInspectionItem", "检验项目", "/aidop/s0/quality/InspectionItemList", 80),
  624. (9, "/aidop/s0/quality/inspection-frequency", "aidopS0QlyInspectionFrequency", "检验频率", "/aidop/s0/quality/InspectionFrequencyList", 90),
  625. (10, "/aidop/s0/quality/inspection-plan", "aidopS0QlyInspectionPlan", "检验方案", "/aidop/s0/quality/InspectionPlanList", 100),
  626. (11, "/aidop/s0/quality/raw-inspection-spec", "aidopS0QlyRawInspectionSpec", "原材料检验规范", "/aidop/s0/quality/RawInspectionSpecList", 110),
  627. (12, "/aidop/s0/quality/process-inspection-spec", "aidopS0QlyProcessInspectionSpec", "过程检验规范", "/aidop/s0/quality/ProcessInspectionSpecList", 120),
  628. (14, "/aidop/s0/quality/fqc-inspection-spec", "aidopS0QlyFqcInspectionSpec", "FQC检验规范", "/aidop/s0/quality/FqcInspectionSpecList", 130),
  629. (15, "/aidop/s0/quality/oqc-inspection-spec", "aidopS0QlyOqcInspectionSpec", "OQC检验规范", "/aidop/s0/quality/OqcInspectionSpecList", 140),
  630. };
  631. foreach (var (idOff, path, name, title, component, order) in leaves)
  632. {
  633. yield return new SysMenu
  634. {
  635. Id = subDirId + idOff,
  636. Pid = subDirId,
  637. Title = title,
  638. Path = path,
  639. Name = name,
  640. Component = component,
  641. Icon = "ele-Document",
  642. Type = MenuTypeEnum.Menu,
  643. CreateTime = ct,
  644. OrderNo = order,
  645. Remark = $"S0 {title}"
  646. };
  647. }
  648. }
  649. /// <summary>
  650. /// S8 异常协同:直接挂在「S8 异常监控」目录下,不再经过中间层「异常管理」。
  651. /// </summary>
  652. private static IEnumerable<SysMenu> BuildS8CollaborationMenus(DateTime ct)
  653. {
  654. const long s8DirId = 1321000009000L;
  655. const long baseId = 1329008000000L;
  656. const long s8MonitoringDirId = 1329008000020L;
  657. // 异常监控子模块(专题大屏占位,后续接业务数据)
  658. yield return new SysMenu
  659. {
  660. Id = s8MonitoringDirId,
  661. Pid = s8DirId,
  662. Title = "异常监控",
  663. Path = "/aidop/s8/monitoring",
  664. Name = "aidopS8MonitoringDir",
  665. Component = "Layout",
  666. Redirect = "/aidop/s8/monitoring/overview",
  667. Icon = "ele-Monitor",
  668. Type = MenuTypeEnum.Dir,
  669. CreateTime = ct,
  670. OrderNo = 8,
  671. Remark = "S8 异常监控子模块"
  672. };
  673. yield return new SysMenu
  674. {
  675. Id = s8MonitoringDirId + 1,
  676. Pid = s8MonitoringDirId,
  677. Title = "异常监控大屏",
  678. Path = "/aidop/s8/monitoring/overview",
  679. Name = "aidopS8MonitoringOverview",
  680. Component = "/aidop/s8/monitoring/S8MonitoringOverviewPage",
  681. Icon = "ele-DataBoard",
  682. Type = MenuTypeEnum.Menu,
  683. CreateTime = ct,
  684. OrderNo = 10,
  685. Remark = "S8 异常监控大屏(占位)"
  686. };
  687. yield return new SysMenu
  688. {
  689. Id = s8MonitoringDirId + 2,
  690. Pid = s8MonitoringDirId,
  691. Title = "交付异常大屏",
  692. Path = "/aidop/s8/monitoring/delivery",
  693. Name = "aidopS8MonitoringDelivery",
  694. Component = "/aidop/s8/monitoring/S8MonitoringDeliveryPage",
  695. Icon = "ele-Position",
  696. Type = MenuTypeEnum.Menu,
  697. CreateTime = ct,
  698. OrderNo = 11,
  699. Remark = "S8 交付异常大屏(占位)"
  700. };
  701. yield return new SysMenu
  702. {
  703. Id = s8MonitoringDirId + 3,
  704. Pid = s8MonitoringDirId,
  705. Title = "生产异常大屏",
  706. Path = "/aidop/s8/monitoring/production",
  707. Name = "aidopS8MonitoringProduction",
  708. Component = "/aidop/s8/monitoring/S8MonitoringProductionPage",
  709. Icon = "ele-Cpu",
  710. Type = MenuTypeEnum.Menu,
  711. CreateTime = ct,
  712. OrderNo = 12,
  713. Remark = "S8 生产异常大屏(占位)"
  714. };
  715. yield return new SysMenu
  716. {
  717. Id = s8MonitoringDirId + 4,
  718. Pid = s8MonitoringDirId,
  719. Title = "供应异常大屏",
  720. Path = "/aidop/s8/monitoring/supply",
  721. Name = "aidopS8MonitoringSupply",
  722. Component = "/aidop/s8/monitoring/S8MonitoringSupplyPage",
  723. Icon = "ele-Box",
  724. Type = MenuTypeEnum.Menu,
  725. CreateTime = ct,
  726. OrderNo = 13,
  727. Remark = "S8 供应异常大屏(占位)"
  728. };
  729. // 可见业务页(「异常监控看板」复用自动生成的 1322000000027 菜单位)
  730. yield return new SysMenu
  731. {
  732. Id = baseId + 2,
  733. Pid = s8DirId,
  734. Title = "异常列表",
  735. Path = "/aidop/s8/exceptions",
  736. Name = "aidopS8ExceptionList",
  737. Component = "/aidop/s8/exceptions/S8ExceptionListPage",
  738. Icon = "ele-List",
  739. Type = MenuTypeEnum.Menu,
  740. CreateTime = ct,
  741. OrderNo = 20,
  742. Remark = "S8 异常列表"
  743. };
  744. yield return new SysMenu
  745. {
  746. Id = baseId + 3,
  747. Pid = s8DirId,
  748. Title = "主动提报",
  749. Path = "/aidop/s8/report",
  750. Name = "aidopS8ManualReport",
  751. Component = "/aidop/s8/report/S8ManualReportPage",
  752. Icon = "ele-EditPen",
  753. Type = MenuTypeEnum.Menu,
  754. CreateTime = ct,
  755. OrderNo = 30,
  756. Remark = "S8 主动提报"
  757. };
  758. yield return new SysMenu
  759. {
  760. Id = baseId + 4,
  761. Pid = s8DirId,
  762. Title = "配置中心",
  763. Path = "/aidop/s8/config",
  764. Name = "aidopS8ConfigHub",
  765. Component = "/aidop/s8/config/S8ConfigHubPage",
  766. Icon = "ele-Setting",
  767. Type = MenuTypeEnum.Menu,
  768. CreateTime = ct,
  769. OrderNo = 40,
  770. Remark = "S8 配置中心"
  771. };
  772. // 隐藏路由(不出侧栏,需参与动态路由注册)
  773. yield return new SysMenu
  774. {
  775. Id = baseId + 10,
  776. Pid = s8DirId,
  777. Title = "任务详情",
  778. Path = "/aidop/s8/exceptions/:id",
  779. Name = "aidopS8TaskDetail",
  780. Component = "/aidop/s8/exceptions/S8TaskDetailPage",
  781. Icon = "ele-Document",
  782. Type = MenuTypeEnum.Menu,
  783. CreateTime = ct,
  784. OrderNo = 90,
  785. IsHide = true,
  786. Remark = "S8 任务详情"
  787. };
  788. var cfg = new (long Off, string Path, string Name, string Title, string Component)[]
  789. {
  790. (11, "/aidop/s8/config/scenes", "aidopS8ScenarioConfig", "场景基础配置", "/aidop/s8/config/S8ScenarioConfigPage"),
  791. (12, "/aidop/s8/config/notifications", "aidopS8NotificationLayerConfig", "通知分层配置", "/aidop/s8/config/S8NotificationLayerPage"),
  792. (13, "/aidop/s8/config/roles", "aidopS8RolePermissionConfig", "角色权限配置", "/aidop/s8/config/S8RolePermissionConfigPage"),
  793. (14, "/aidop/s8/config/alert-rules", "aidopS8AlertRulesConfig", "报警规则配置", "/aidop/s8/config/S8AlertRulesPage"),
  794. (15, "/aidop/s8/config/data-sources", "aidopS8DataSourceConfig", "数据源配置", "/aidop/s8/config/S8DataSourceConfigPage"),
  795. (16, "/aidop/s8/config/watch-rules", "aidopS8WatchRuleConfig", "监视规则配置", "/aidop/s8/config/S8WatchRuleConfigPage"),
  796. (17, "/aidop/s8/config/exception-types", "aidopS8ExceptionTypeConfig", "异常类型配置", "/aidop/s8/config/S8ExceptionTypeConfigPage"),
  797. (18, "/aidop/s8/config/dashboard-cells", "aidopS8DashboardCellConfig", "大屏卡片配置", "/aidop/s8/config/S8DashboardCellConfigPage"),
  798. };
  799. foreach (var (off, path, name, title, component) in cfg)
  800. {
  801. yield return new SysMenu
  802. {
  803. Id = baseId + off,
  804. Pid = s8DirId,
  805. Title = title,
  806. Path = path,
  807. Name = name,
  808. Component = component,
  809. Icon = "ele-Document",
  810. Type = MenuTypeEnum.Menu,
  811. CreateTime = ct,
  812. OrderNo = 100 + (int)off,
  813. IsHide = true,
  814. Remark = $"S8 {title}"
  815. };
  816. }
  817. // ── S8 权限点(Btn):与 S8PermissionCatalog 同源,命名 s8:<resource>:<action>
  818. // Btn ID 段:baseId + 100..114(不与现有 Dir/Menu 冲突)。
  819. const long s8DashboardId = 1322000000027L; // 见上文「S8:复用自动生成的首项菜单位…」
  820. const long btnIdBase = baseId + 100;
  821. const string btnNamePrefix = "aidopS8Btn";
  822. var btns = new (long IdOff, long Pid, string Permission, string Title, int Order)[]
  823. {
  824. // 异常列表 / 任务详情
  825. (0, baseId + 2, "s8:exception:read", "查看异常", 10),
  826. (1, baseId + 3, "s8:exception:create", "主动提报", 20),
  827. (2, baseId + 10, "s8:exception:assign", "分派异常", 30),
  828. (3, baseId + 10, "s8:exception:claim", "认领异常", 40),
  829. (4, baseId + 10, "s8:exception:start", "开始处理", 50),
  830. (5, baseId + 10, "s8:exception:reject", "驳回异常", 60),
  831. (6, baseId + 10, "s8:exception:upgrade", "升级异常", 70),
  832. (7, baseId + 10, "s8:exception:close", "关闭异常", 80),
  833. (8, baseId + 10, "s8:verification:submit", "提交复检", 110),
  834. (9, baseId + 10, "s8:verification:approve", "检验通过", 120),
  835. (10, baseId + 10, "s8:verification:reject", "检验退回", 130),
  836. // 配置中心
  837. (11, baseId + 4, "s8:config:read", "查看配置", 210),
  838. (12, baseId + 13, "s8:config:operator:bind", "维护操作员绑定", 220),
  839. (13, baseId + 13, "s8:config:role:write", "维护角色权限", 230),
  840. // 看板
  841. (14, s8DashboardId, "s8:dashboard:read", "查看看板", 310),
  842. };
  843. foreach (var (off, pid, perm, title, order) in btns)
  844. {
  845. yield return new SysMenu
  846. {
  847. Id = btnIdBase + off,
  848. Pid = pid,
  849. Title = title,
  850. Permission = perm,
  851. Name = $"{btnNamePrefix}{off:00}",
  852. Type = MenuTypeEnum.Btn,
  853. CreateTime = ct,
  854. OrderNo = order,
  855. Remark = $"S8 权限点 {perm}"
  856. };
  857. }
  858. }
  859. private static IEnumerable<SysMenu> BuildS0WarehouseMenus(DateTime ct)
  860. {
  861. const long s0DataModelingMenuId = 1322000000001L;
  862. const long subDirId = 1329005000000L;
  863. yield return new SysMenu
  864. {
  865. Id = subDirId,
  866. Pid = s0DataModelingMenuId,
  867. Title = "仓储建模",
  868. Path = "/aidop/s0/warehouse",
  869. Name = "aidopS0Warehouse",
  870. Component = "Layout",
  871. Icon = "ele-OfficeBuilding",
  872. Type = MenuTypeEnum.Dir,
  873. CreateTime = ct,
  874. OrderNo = 50,
  875. Remark = "S0 仓储建模"
  876. };
  877. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  878. {
  879. (1, "/aidop/s0/warehouse/department", "aidopS0WhDepartment", "部门维护", "/aidop/s0/warehouse/DepartmentList", 10),
  880. (2, "/aidop/s0/warehouse/employee", "aidopS0WhEmployee", "雇员列表", "/aidop/s0/warehouse/EmployeeList", 20),
  881. (3, "/aidop/s0/warehouse/cost-center", "aidopS0WhCostCenter", "成本中心", "/aidop/s0/warehouse/CostCenterList", 30),
  882. (4, "/aidop/s0/warehouse/location", "aidopS0WhLocation", "库位维护", "/aidop/s0/warehouse/LocationList", 40),
  883. (5, "/aidop/s0/warehouse/location-shelf", "aidopS0WhLocationShelf", "货架列表", "/aidop/s0/warehouse/LocationShelfList", 50),
  884. (6, "/aidop/s0/warehouse/barcode-rule", "aidopS0WhBarcodeRule", "条码规则", "/aidop/s0/warehouse/BarcodeRuleList", 60),
  885. (7, "/aidop/s0/warehouse/label-type", "aidopS0WhLabelType", "标签格式", "/aidop/s0/warehouse/LabelTypeList", 70),
  886. (8, "/aidop/s0/warehouse/nbr-type", "aidopS0WhNbrType", "单号类型", "/aidop/s0/warehouse/NbrTypeList", 80),
  887. (9, "/aidop/s0/warehouse/nbr-control", "aidopS0WhNbrControl", "单号规则维护", "/aidop/s0/warehouse/NbrControlList", 90),
  888. (10, "/aidop/s0/warehouse/item-pack", "aidopS0WhItemPack", "零件包装规格", "/aidop/s0/warehouse/ItemPackList", 100),
  889. (11, "/aidop/s0/warehouse/emp-work-duty", "aidopS0WhEmpWorkDuty", "物料职责维护", "/aidop/s0/warehouse/EmpWorkDutyList", 110),
  890. (12, "/aidop/s0/warehouse/task-assignment", "aidopS0WhTaskAssignment", "物料状态任务指派", "/aidop/s0/warehouse/TaskAssignmentList", 120),
  891. };
  892. foreach (var (idOff, path, name, title, component, order) in leaves)
  893. {
  894. yield return new SysMenu
  895. {
  896. Id = subDirId + idOff,
  897. Pid = subDirId,
  898. Title = title,
  899. Path = path,
  900. Name = name,
  901. Component = component,
  902. Icon = "ele-Document",
  903. Type = MenuTypeEnum.Menu,
  904. CreateTime = ct,
  905. OrderNo = order,
  906. Remark = $"S0 {title}"
  907. };
  908. }
  909. }
  910. /// <summary>
  911. /// S1「产销协同看板」目录(Id=1322000000005)下的子菜单:指标看板、需求明细核验、计划联动看板。
  912. /// </summary>
  913. private static IEnumerable<SysMenu> BuildS1SalesKanbanMenus(DateTime ct)
  914. {
  915. const long salesKanBanDirId = 1322000000005L;
  916. yield return new SysMenu
  917. {
  918. Id = 1322000000201L,
  919. Pid = salesKanBanDirId,
  920. Title = "产销协同指标看板",
  921. Path = "/aidop/s1/SalesKanBan/kanban",
  922. Name = "aidopS1SalesKanBanKanban",
  923. Component = "/aidop/kanban/s1",
  924. Icon = "ele-DataAnalysis",
  925. Type = MenuTypeEnum.Menu,
  926. CreateTime = ct,
  927. OrderNo = 10,
  928. Remark = "S1 产销协同看板(指标)"
  929. };
  930. yield return new SysMenu
  931. {
  932. Id = 1322000000202L,
  933. Pid = salesKanBanDirId,
  934. Title = "需求明细核验",
  935. Path = "/aidop/s1/SalesKanBan/requirement-examine-detail",
  936. Name = "aidopS1RequirementExamineDetail",
  937. Component = "/aidop/s1/sales-kanban/RequirementExamineDetailList",
  938. Icon = "ele-List",
  939. Type = MenuTypeEnum.Menu,
  940. CreateTime = ct,
  941. OrderNo = 20,
  942. Remark = "S1 需求明细核验"
  943. };
  944. yield return new SysMenu
  945. {
  946. Id = 1322000000107L,
  947. Pid = salesKanBanDirId,
  948. Title = "计划联动看板",
  949. Path = "/aidop/s1/SalesKanBan/linkage-plan",
  950. Name = "aidopS1LinkagePlan",
  951. Component = "/aidop/business/linkagePlanList",
  952. Icon = "ele-DataBoard",
  953. Type = MenuTypeEnum.Menu,
  954. CreateTime = ct,
  955. OrderNo = 30,
  956. Remark = "S1 计划联动看板(LinkagePlan)"
  957. };
  958. }
  959. /// <summary>
  960. /// S1「订单管理」「工单管理」目录化后的子菜单:销售订单、合同评审、产品设计、工单下达等。
  961. /// 父级 Id:订单管理=1322000000003,工单管理=1322000000004(menuSeq 与 ModuleDefinitions 中 S1 叶子顺序一致)。
  962. /// 产销协同看板=1322000000005,路径 /aidop/s1/SalesKanBan(勿与工单管理目录混淆)。
  963. /// 订单管理下扩展子菜单 Id:1322000000101~0105;计划联动看板 Id=1322000000107 挂在产销协同看板目录下。
  964. /// </summary>
  965. private static IEnumerable<SysMenu> BuildS1OrderWorkOrderMenus(DateTime ct)
  966. {
  967. const long orderMgmtDirId = 1322000000003L;
  968. const long workOrderMgmtDirId = 1322000000004L;
  969. yield return new SysMenu
  970. {
  971. Id = 1322000000101L,
  972. Pid = orderMgmtDirId,
  973. Title = "合同评审",
  974. Path = "/aidop/s1/order-mgmt/contract-review",
  975. Name = "aidopS1ContractReview",
  976. Component = "/aidop/business/contractReviewList",
  977. Icon = "ele-Edit",
  978. Type = MenuTypeEnum.Menu,
  979. CreateTime = ct,
  980. OrderNo = 10,
  981. Remark = "S1 合同评审"
  982. };
  983. yield return new SysMenu
  984. {
  985. Id = 1322000000102L,
  986. Pid = orderMgmtDirId,
  987. Title = "产品设计",
  988. Path = "/aidop/s1/order-mgmt/product-design",
  989. Name = "aidopS1ProductDesign",
  990. Component = "/aidop/business/productDesignList",
  991. Icon = "ele-Edit",
  992. Type = MenuTypeEnum.Menu,
  993. CreateTime = ct,
  994. OrderNo = 20,
  995. Remark = "S1 产品设计"
  996. };
  997. yield return new SysMenu
  998. {
  999. Id = 1322000000103L,
  1000. Pid = orderMgmtDirId,
  1001. Title = "订单评审",
  1002. Path = "/aidop/s1/order-mgmt/order",
  1003. Name = "aidopS1SalesOrder",
  1004. Component = "/aidop/business/orderList",
  1005. Icon = "ele-Document",
  1006. Type = MenuTypeEnum.Menu,
  1007. CreateTime = ct,
  1008. OrderNo = 30,
  1009. Remark = "S1 销售订单(原订单管理入口)"
  1010. };
  1011. yield return new SysMenu
  1012. {
  1013. Id = 1322000000104L,
  1014. Pid = orderMgmtDirId,
  1015. Title = "订单交付",
  1016. Path = "/aidop/s1/order-mgmt/orderDelivery",
  1017. Name = "aidopS1OrderDelivery",
  1018. Component = "/aidop/business/orderDeliveryList",
  1019. Icon = "ele-Document",
  1020. Type = MenuTypeEnum.Menu,
  1021. CreateTime = ct,
  1022. OrderNo = 40,
  1023. Remark = "S1 订单交付"
  1024. };
  1025. yield return new SysMenu
  1026. {
  1027. Id = 1322000000105L,
  1028. Pid = orderMgmtDirId,
  1029. Title = "订单发货",
  1030. Path = "/aidop/s1/order-mgmt/asnShipper",
  1031. Name = "aidopS1AsnShipper",
  1032. Component = "/aidop/business/asnShipperList",
  1033. Icon = "ele-Document",
  1034. Type = MenuTypeEnum.Menu,
  1035. CreateTime = ct,
  1036. OrderNo = 50,
  1037. Remark = "S1 订单发货"
  1038. };
  1039. yield return new SysMenu
  1040. {
  1041. Id = 1322000000106L,
  1042. Pid = workOrderMgmtDirId,
  1043. Title = "工单下达",
  1044. Path = "/aidop/s1/workorder-mgmt/dispatch",
  1045. Name = "aidopS1WorkOrderDispatch",
  1046. Component = "/aidop/business/workOrderDispatchList",
  1047. Icon = "ele-Position",
  1048. Type = MenuTypeEnum.Menu,
  1049. CreateTime = ct,
  1050. OrderNo = 10,
  1051. Remark = "S1 工单池下达"
  1052. };
  1053. }
  1054. /// <summary>
  1055. /// S2「制造协同」三级结构:生产排程 / 作业计划 / 制造协同看板 为目录(与 ModuleDefinitions 中 S2 三项 Id 一致:0006~0008)。
  1056. /// 「工单工序排程」Id=1322000000108 自 S1 迁入「生产排程」下;其余子页占位。
  1057. /// </summary>
  1058. private static IEnumerable<SysMenu> BuildS2ManufacturingCollaborationMenus(DateTime ct)
  1059. {
  1060. const long s2ProductionSchedulingDirId = 1322000000006L;
  1061. const long s2OperationPlanDirId = 1322000000007L;
  1062. const long s2CollaborationKanbanDirId = 1322000000008L;
  1063. // ── 生产排程 ──
  1064. yield return new SysMenu
  1065. {
  1066. Id = 1322000000108L,
  1067. Pid = s2ProductionSchedulingDirId,
  1068. Title = "工单工序排程",
  1069. Path = "/aidop/s2/production-scheduling/work-order-scheduling",
  1070. Name = "aidopS2WorkOrderScheduling",
  1071. Component = "/aidop/production/workOrderSchedulingList",
  1072. Icon = "ele-Operation",
  1073. Type = MenuTypeEnum.Menu,
  1074. CreateTime = ct,
  1075. OrderNo = 10,
  1076. Remark = "S2 工单工序排程"
  1077. };
  1078. yield return new SysMenu
  1079. {
  1080. Id = 1329002100001L,
  1081. Pid = s2ProductionSchedulingDirId,
  1082. Title = "排产异常记录",
  1083. Path = "/aidop/s2/production-scheduling/scheduling-exception",
  1084. Name = "aidopS2SchedulingException",
  1085. Component = "/aidop/production/scheduleExceptionList",
  1086. Icon = "ele-Warning",
  1087. Type = MenuTypeEnum.Menu,
  1088. CreateTime = ct,
  1089. OrderNo = 20,
  1090. Remark = "S2 排产异常记录"
  1091. };
  1092. // ── 作业计划 ──
  1093. yield return new SysMenu
  1094. {
  1095. Id = 1329002100011L,
  1096. Pid = s2OperationPlanDirId,
  1097. Title = "可执行日计划",
  1098. Path = "/aidop/s2/operation-plan/executable-daily-plan",
  1099. Name = "aidopS2ExecutableDailyPlan",
  1100. Component = "/aidop/production/executableDailyPlanList",
  1101. Icon = "ele-Calendar",
  1102. Type = MenuTypeEnum.Menu,
  1103. CreateTime = ct,
  1104. OrderNo = 10,
  1105. Remark = "S2 可执行生产日计划"
  1106. };
  1107. yield return new SysMenu
  1108. {
  1109. Id = 1329002100012L,
  1110. Pid = s2OperationPlanDirId,
  1111. Title = "产线工作日历管理",
  1112. Path = "/aidop/s2/operation-plan/line-work-calendar",
  1113. Name = "aidopS2LineWorkCalendar",
  1114. Component = "/aidop/production/shopCalendarWorkCtrList",
  1115. Icon = "ele-Notebook",
  1116. Type = MenuTypeEnum.Menu,
  1117. CreateTime = ct,
  1118. OrderNo = 20,
  1119. Remark = "S2 产线工作日历"
  1120. };
  1121. yield return new SysMenu
  1122. {
  1123. Id = 1329002100013L,
  1124. Pid = s2OperationPlanDirId,
  1125. Title = "产线休息时间管理",
  1126. Path = "/aidop/s2/operation-plan/line-rest-time",
  1127. Name = "aidopS2LineRestTime",
  1128. Component = "/aidop/production/qualityLineRestDetailList",
  1129. Icon = "ele-CoffeeCup",
  1130. Type = MenuTypeEnum.Menu,
  1131. CreateTime = ct,
  1132. OrderNo = 30,
  1133. Remark = "S2 产线休息时间"
  1134. };
  1135. yield return new SysMenu
  1136. {
  1137. Id = 1329002100014L,
  1138. Pid = s2OperationPlanDirId,
  1139. Title = "产线节假日管理",
  1140. Path = "/aidop/s2/operation-plan/line-holiday",
  1141. Name = "aidopS2LineHoliday",
  1142. Component = "/aidop/production/holidayMasterList",
  1143. Icon = "ele-Flag",
  1144. Type = MenuTypeEnum.Menu,
  1145. CreateTime = ct,
  1146. OrderNo = 40,
  1147. Remark = "S2 产线节假日"
  1148. };
  1149. yield return new SysMenu
  1150. {
  1151. Id = 1329002100015L,
  1152. Pid = s2OperationPlanDirId,
  1153. Title = "产线加班管理",
  1154. Path = "/aidop/s2/operation-plan/line-overtime",
  1155. Name = "aidopS2LineOvertime",
  1156. Component = "/aidop/production/lineOvertimeList",
  1157. Icon = "ele-Timer",
  1158. Type = MenuTypeEnum.Menu,
  1159. CreateTime = ct,
  1160. OrderNo = 50,
  1161. Remark = "S2 产线加班"
  1162. };
  1163. // ── 制造协同看板 ──
  1164. yield return new SysMenu
  1165. {
  1166. Id = 1329002100021L,
  1167. Pid = s2CollaborationKanbanDirId,
  1168. Title = "工单执行进度看板",
  1169. Path = "/aidop/s2/collaboration-kanban/work-order-progress",
  1170. Name = "aidopS2WorkOrderProgressKanban",
  1171. Component = "/aidop/production/workOrderProgressDashboardList",
  1172. Icon = "ele-DataBoard",
  1173. Type = MenuTypeEnum.Menu,
  1174. CreateTime = ct,
  1175. OrderNo = 10,
  1176. Remark = "S2 工单执行进度看板(列表)"
  1177. };
  1178. }
  1179. /// <summary>
  1180. /// S3「物料计划」三级结构:将自动生成的 S3 首项(Id=1322000000009)目录化,挂载「物料需求计划」。
  1181. /// </summary>
  1182. private static IEnumerable<SysMenu> BuildS3SupplyMenus(DateTime ct)
  1183. {
  1184. const long s3MaterialPlanDirId = 1322000000009L;
  1185. const long s3ProcurementDirId = 1322000000010L;
  1186. const long s3RootDirId = 1321000004000L;
  1187. yield return new SysMenu
  1188. {
  1189. Id = 1329003100001L,
  1190. Pid = s3MaterialPlanDirId,
  1191. Title = "物料需求计划",
  1192. Path = "/aidop/s3/material-plan/demand-schedule",
  1193. Name = "aidopS3DemandSchedule",
  1194. Component = "/aidop/s3/supply/demandScheduleList",
  1195. Icon = "ele-Calendar",
  1196. Type = MenuTypeEnum.Menu,
  1197. CreateTime = ct,
  1198. OrderNo = 10,
  1199. Remark = "S3 物料需求计划(ic_demandschedule)"
  1200. };
  1201. yield return new SysMenu
  1202. {
  1203. Id = 1329003100002L,
  1204. Pid = s3MaterialPlanDirId,
  1205. Title = "物料交货计划",
  1206. Path = "/aidop/s3/material-plan/delivery-schedule",
  1207. Name = "aidopS3DeliverySchedule",
  1208. Component = "/aidop/s3/supply/deliveryScheduleList",
  1209. Icon = "ele-Document",
  1210. Type = MenuTypeEnum.Menu,
  1211. CreateTime = ct,
  1212. OrderNo = 20,
  1213. Remark = "S3 物料交货计划(srm_polist_ds)"
  1214. };
  1215. yield return new SysMenu
  1216. {
  1217. Id = 1329003100003L,
  1218. Pid = s3MaterialPlanDirId,
  1219. Title = "交货单异常记录",
  1220. Path = "/aidop/s3/material-plan/delivery-exception",
  1221. Name = "aidopS3DeliveryException",
  1222. Component = "/aidop/s3/supply/deliveryExceptionList",
  1223. Icon = "ele-Warning",
  1224. Type = MenuTypeEnum.Menu,
  1225. CreateTime = ct,
  1226. OrderNo = 30,
  1227. Remark = "S3 交货单异常记录(DeliveryExceptionMaster)"
  1228. };
  1229. yield return new SysMenu
  1230. {
  1231. Id = 1329003100011L,
  1232. Pid = s3ProcurementDirId,
  1233. Title = "物料采购申请",
  1234. Path = "/aidop/s3/procurement/purchase-request",
  1235. Name = "aidopS3PurchaseRequest",
  1236. Component = "/aidop/s3/supply/purchaseRequestList",
  1237. Icon = "ele-Document",
  1238. Type = MenuTypeEnum.Menu,
  1239. CreateTime = ct,
  1240. OrderNo = 10,
  1241. Remark = "S3 物料采购申请(srm_pr_main)"
  1242. };
  1243. yield return new SysMenu
  1244. {
  1245. Id = 1329003100012L,
  1246. Pid = s3ProcurementDirId,
  1247. Title = "物料采购订单",
  1248. Path = "/aidop/s3/procurement/purchase-order",
  1249. Name = "aidopS3PurchaseOrder",
  1250. Component = "/aidop/s3/supply/purchaseOrderList",
  1251. Icon = "ele-Tickets",
  1252. Type = MenuTypeEnum.Menu,
  1253. CreateTime = ct,
  1254. OrderNo = 20,
  1255. Remark = "S3 物料采购订单(vscm_jhjh)"
  1256. };
  1257. yield return new SysMenu
  1258. {
  1259. Id = 1329003100013L,
  1260. Pid = s3ProcurementDirId,
  1261. Title = "委外加工订单",
  1262. Path = "/aidop/s3/procurement/outsource-order",
  1263. Name = "aidopS3OutsourceOrder",
  1264. Component = "/aidop/s3/supply/outsourceOrderList",
  1265. Icon = "ele-List",
  1266. Type = MenuTypeEnum.Menu,
  1267. CreateTime = ct,
  1268. OrderNo = 30,
  1269. Remark = "S3 委外加工订单(PurOrdMaster/PW)"
  1270. };
  1271. yield return new SysMenu
  1272. {
  1273. Id = 1329003100014L,
  1274. Pid = s3ProcurementDirId,
  1275. Title = "工序外协订单",
  1276. Path = "/aidop/s3/procurement/process-outsource-order",
  1277. Name = "aidopS3ProcessOutsourceOrder",
  1278. Component = "/aidop/s3/supply/processOutsourceOrderList",
  1279. Icon = "ele-List",
  1280. Type = MenuTypeEnum.Menu,
  1281. CreateTime = ct,
  1282. OrderNo = 40,
  1283. Remark = "S3 工序外协订单(PurOrdMaster/PW)"
  1284. };
  1285. yield return new SysMenu
  1286. {
  1287. Id = 1329003100010L,
  1288. Pid = s3RootDirId,
  1289. Title = "供应协同看板",
  1290. Path = "/aidop/s3/supply-kanban",
  1291. Name = "aidopS3SupplyKanbanDir",
  1292. Component = "Layout",
  1293. Icon = "ele-Folder",
  1294. Type = MenuTypeEnum.Dir,
  1295. CreateTime = ct,
  1296. OrderNo = 102,
  1297. Redirect = "/aidop/s3/supply-kanban/dashboard",
  1298. Remark = "S3 供应协同看板目录"
  1299. };
  1300. yield return new SysMenu
  1301. {
  1302. Id = 1329003100015L,
  1303. Pid = 1329003100010L,
  1304. Title = "供应协同看板",
  1305. Path = "/aidop/s3/supply-kanban/dashboard",
  1306. Name = "aidopS3SupplyKanban",
  1307. Component = "/aidop/kanban/s3",
  1308. Icon = "ele-DataBoard",
  1309. Type = MenuTypeEnum.Menu,
  1310. CreateTime = ct,
  1311. OrderNo = 10,
  1312. Remark = "S3 供应协同看板"
  1313. };
  1314. yield return new SysMenu
  1315. {
  1316. Id = 1329003100016L,
  1317. Pid = 1329003100010L,
  1318. Title = "工单物料齐套上线看板",
  1319. Path = "/aidop/s3/supply-kanban/work-order-material-readiness",
  1320. Name = "aidopS3WorkOrderMaterialReadiness",
  1321. Component = "/aidop/s3/supply/workOrderMaterialReadinessKanban",
  1322. Icon = "ele-List",
  1323. Type = MenuTypeEnum.Menu,
  1324. CreateTime = ct,
  1325. OrderNo = 20,
  1326. Remark = "S3 工单物料齐套上线看板"
  1327. };
  1328. }
  1329. private static readonly (string Code, string L1, (string Title, string Desc, string Complexity, string Days, string Note)[] Leaves)[] ModuleDefinitions =
  1330. {
  1331. ("S0", "S0 运营建模", new[]
  1332. {
  1333. ("数据建模", "支持数据库表结构设计与建模", "高", "5", "核心基础功能"),
  1334. ("业务建模", "支持业务流程建模与配置", "高", "5", "核心基础功能"),
  1335. }),
  1336. ("S1", "S1 产销协同", new[]
  1337. {
  1338. ("订单管理", "销售订单录入、查询、编辑、删除", "中", "3", ""),
  1339. ("工单管理", "工单创建、分配、跟踪", "中", "3", ""),
  1340. ("产销协同看板", "订单与生产协同数据可视化", "高", "5", "数据看板类"),
  1341. }),
  1342. ("S2", "S2 制造协同", new[]
  1343. {
  1344. ("生产排程", "生产任务排程与调度", "高", "5", ""),
  1345. ("作业计划", "车间作业计划管理", "中", "3", ""),
  1346. ("制造协同看板", "制造过程协同数据展示", "高", "5", "数据看板类"),
  1347. }),
  1348. ("S3", "S3 供应协同", new[]
  1349. {
  1350. ("物料计划", "物料需求计划(MRP)计算", "高", "7", "核心算法"),
  1351. ("供应协同看板", "供应商协同数据可视化", "中", "4", "数据看板类"),
  1352. }),
  1353. ("S4", "S4 采购执行", new[]
  1354. {
  1355. ("采购管理", "采购申请、订单、合同管理", "中", "4", ""),
  1356. ("交货管理", "供应商交货跟踪与验收", "中", "3", ""),
  1357. ("退货管理", "采购退货流程处理", "低", "2", ""),
  1358. ("采购执行看板", "采购执行数据可视化", "中", "4", "数据看板类"),
  1359. }),
  1360. ("S5", "S5 物料仓储", new[]
  1361. {
  1362. ("来料检验", "IQC来料质量检验", "中", "3", ""),
  1363. ("仓储管理", "仓库入库、出库、调拨", "中", "4", ""),
  1364. ("库存数据", "库存查询、盘点、调整", "中", "3", ""),
  1365. ("物料仓储看板", "仓储数据可视化分析", "中", "4", "数据看板类"),
  1366. }),
  1367. ("S6", "S6 生产执行", new[]
  1368. {
  1369. ("生产记录管理", "生产过程数据记录", "中", "3", ""),
  1370. ("过程质量管理", "IPQC过程质量检验", "中", "4", ""),
  1371. ("设备工装管理", "设备台账、保养、维修", "中", "4", ""),
  1372. ("生产执行看板", "生产执行数据可视化", "高", "5", "数据看板类"),
  1373. }),
  1374. ("S7", "S7 成品仓储", new[]
  1375. {
  1376. ("成品质量管理", "OQC成品质量检验", "中", "3", ""),
  1377. ("生产入库管理", "成品入库流程", "低", "2", ""),
  1378. ("成品出库管理", "成品出库发货流程", "低", "2", ""),
  1379. ("成品库存管理", "成品库存查询与管理", "中", "3", ""),
  1380. }),
  1381. ("S8", "S8 异常监控", new[]
  1382. {
  1383. ("异常监控看板", "生产异常监控、处理、跟踪", "中", "4", ""),
  1384. }),
  1385. ("S9", "S9 运营指标", new[]
  1386. {
  1387. ("ERP同步", "与外部ERP系统数据同步", "高", "7", "接口集成"),
  1388. ("日志查询", "系统操作日志查询", "低", "2", ""),
  1389. ("ERP事务", "ERP相关事务处理", "中", "3", ""),
  1390. }),
  1391. ("M11", "系统管理", new[]
  1392. {
  1393. ("组织架构", "部门、岗位、人员管理", "中", "3", "与框架系统管理对应,后续可映射具体页"),
  1394. ("菜单管理", "系统菜单权限配置", "中", "3", ""),
  1395. }),
  1396. ("M12", "流程平台", new[]
  1397. {
  1398. ("流程管理", "工作流流程定义与配置", "高", "7", "核心引擎"),
  1399. ("表单管理", "流程表单设计与配置", "高", "5", ""),
  1400. ("应用设计", "业务应用快速设计", "高", "5", ""),
  1401. ("数据资源配置", "数据资源连接配置", "中", "4", ""),
  1402. ("格式化JSON", "JSON数据格式化工具", "低", "1", "工具类"),
  1403. ("模板管理", "流程模板管理", "中", "3", ""),
  1404. ("系统按钮", "系统按钮权限配置", "低", "2", ""),
  1405. ("流程按钮", "流程操作按钮配置", "低", "2", ""),
  1406. ("应用程序", "外部应用集成管理", "中", "4", ""),
  1407. ("接口系统", "API接口配置管理", "高", "5", ""),
  1408. }),
  1409. ("M13", "系统工具", new[]
  1410. {
  1411. ("数据字典", "系统字典数据管理", "低", "2", ""),
  1412. ("数据连接", "数据库连接配置", "中", "3", ""),
  1413. ("首页设置", "系统首页个性化配置", "低", "2", ""),
  1414. ("日志查询", "系统运行日志查询", "低", "2", ""),
  1415. ("流水号管理", "业务流水号规则配置", "低", "2", ""),
  1416. ("工作日设置", "工作日历配置", "低", "1", ""),
  1417. ("图标库", "系统图标资源管理", "低", "1", ""),
  1418. ("在线用户", "在线用户监控", "低", "2", ""),
  1419. ("周库存统计", "库存周期统计报表", "中", "3", "报表类"),
  1420. ("数据导入", "批量数据导入工具", "中", "3", ""),
  1421. }),
  1422. ("M14", "流程中心", new[]
  1423. {
  1424. ("发起流程", "新建并发起工作流程", "中", "3", ""),
  1425. ("待办事项", "个人待办任务处理", "中", "3", ""),
  1426. ("待办批量处理", "待办任务批量操作", "中", "3", ""),
  1427. ("已办事项", "已办任务查询", "低", "2", ""),
  1428. ("我的流程", "我发起的流程跟踪", "中", "3", ""),
  1429. ("已委托事项", "委托他人处理的事项", "低", "2", ""),
  1430. ("流程委托", "流程任务委托配置", "低", "2", ""),
  1431. ("流程意见", "流程审批意见管理", "低", "2", ""),
  1432. }),
  1433. ("M15", "个人设置", new[]
  1434. {
  1435. ("个人信息", "个人资料维护", "低", "1", ""),
  1436. ("头像设置", "个人头像上传", "低", "1", ""),
  1437. ("修改密码", "密码修改功能", "低", "1", ""),
  1438. ("签章管理", "个人电子签章管理", "中", "3", ""),
  1439. ("文件管理", "个人文件存储管理", "中", "3", ""),
  1440. ("快捷菜单", "个人快捷方式配置", "低", "1", ""),
  1441. }),
  1442. ("M16", "系统首页", new[]
  1443. {
  1444. ("系统首页", "系统门户首页", "中", "3", "门户类"),
  1445. ("发起流程(快捷)", "首页快捷发起流程", "低", "1", ""),
  1446. ("我的流程(快捷)", "首页流程快捷入口", "低", "1", ""),
  1447. ("待办事项(快捷)", "首页待办快捷入口", "低", "1", ""),
  1448. }),
  1449. };
  1450. }