SysMenuSeedData.cs 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553
  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. // ORDER-FLOW-OVERVIEW-SHELL-1:SO 订单执行档案总览页壳(fixture/store 演示,未接后端)。
  730. yield return new SysMenu
  731. {
  732. Id = s8MonitoringDirId + 5,
  733. Pid = s8MonitoringDirId,
  734. Title = "订单执行档案",
  735. Path = "/aidop/s8/monitoring/order-execution",
  736. Name = "aidopS8OrderExecution",
  737. Component = "/aidop/s8/monitoring/SoOrderExecutionDashboardPage",
  738. Icon = "ele-Tickets",
  739. Type = MenuTypeEnum.Menu,
  740. CreateTime = ct,
  741. OrderNo = 14,
  742. Remark = "SO 订单执行档案总览(fixture 演示)"
  743. };
  744. // 可见业务页(「异常监控看板」复用自动生成的 1322000000027 菜单位)
  745. yield return new SysMenu
  746. {
  747. Id = baseId + 2,
  748. Pid = s8DirId,
  749. Title = "异常列表",
  750. Path = "/aidop/s8/exceptions",
  751. Name = "aidopS8ExceptionList",
  752. Component = "/aidop/s8/exceptions/S8ExceptionListPage",
  753. Icon = "ele-List",
  754. Type = MenuTypeEnum.Menu,
  755. CreateTime = ct,
  756. OrderNo = 20,
  757. Remark = "S8 异常列表"
  758. };
  759. yield return new SysMenu
  760. {
  761. Id = baseId + 3,
  762. Pid = s8DirId,
  763. Title = "主动提报",
  764. Path = "/aidop/s8/report",
  765. Name = "aidopS8ManualReport",
  766. Component = "/aidop/s8/report/S8ManualReportPage",
  767. Icon = "ele-EditPen",
  768. Type = MenuTypeEnum.Menu,
  769. CreateTime = ct,
  770. OrderNo = 30,
  771. Remark = "S8 主动提报"
  772. };
  773. yield return new SysMenu
  774. {
  775. Id = baseId + 4,
  776. Pid = s8DirId,
  777. Title = "配置中心",
  778. Path = "/aidop/s8/config",
  779. Name = "aidopS8ConfigHub",
  780. Component = "/aidop/s8/config/S8ConfigHubPage",
  781. Icon = "ele-Setting",
  782. Type = MenuTypeEnum.Menu,
  783. CreateTime = ct,
  784. OrderNo = 40,
  785. Remark = "S8 配置中心"
  786. };
  787. // 隐藏路由(不出侧栏,需参与动态路由注册)
  788. yield return new SysMenu
  789. {
  790. Id = baseId + 10,
  791. Pid = s8DirId,
  792. Title = "任务详情",
  793. Path = "/aidop/s8/exceptions/:id",
  794. Name = "aidopS8TaskDetail",
  795. Component = "/aidop/s8/exceptions/S8TaskDetailPage",
  796. Icon = "ele-Document",
  797. Type = MenuTypeEnum.Menu,
  798. CreateTime = ct,
  799. OrderNo = 90,
  800. IsHide = true,
  801. Remark = "S8 任务详情"
  802. };
  803. var cfg = new (long Off, string Path, string Name, string Title, string Component)[]
  804. {
  805. (11, "/aidop/s8/config/scenes", "aidopS8ScenarioConfig", "场景基础配置", "/aidop/s8/config/S8ScenarioConfigPage"),
  806. (12, "/aidop/s8/config/notifications", "aidopS8NotificationLayerConfig", "通知分层配置", "/aidop/s8/config/S8NotificationLayerPage"),
  807. (13, "/aidop/s8/config/roles", "aidopS8RolePermissionConfig", "角色权限配置", "/aidop/s8/config/S8RolePermissionConfigPage"),
  808. (14, "/aidop/s8/config/alert-rules", "aidopS8AlertRulesConfig", "报警规则配置", "/aidop/s8/config/S8AlertRulesPage"),
  809. (15, "/aidop/s8/config/data-sources", "aidopS8DataSourceConfig", "数据源配置", "/aidop/s8/config/S8DataSourceConfigPage"),
  810. (16, "/aidop/s8/config/watch-rules", "aidopS8WatchRuleConfig", "监视规则配置", "/aidop/s8/config/S8WatchRuleConfigPage"),
  811. (17, "/aidop/s8/config/exception-types", "aidopS8ExceptionTypeConfig", "异常类型配置", "/aidop/s8/config/S8ExceptionTypeConfigPage"),
  812. (18, "/aidop/s8/config/dashboard-cells", "aidopS8DashboardCellConfig", "大屏卡片配置", "/aidop/s8/config/S8DashboardCellConfigPage"),
  813. };
  814. foreach (var (off, path, name, title, component) in cfg)
  815. {
  816. yield return new SysMenu
  817. {
  818. Id = baseId + off,
  819. Pid = s8DirId,
  820. Title = title,
  821. Path = path,
  822. Name = name,
  823. Component = component,
  824. Icon = "ele-Document",
  825. Type = MenuTypeEnum.Menu,
  826. CreateTime = ct,
  827. OrderNo = 100 + (int)off,
  828. IsHide = true,
  829. Remark = $"S8 {title}"
  830. };
  831. }
  832. // ── S8 权限点(Btn):与 S8PermissionCatalog 同源,命名 s8:<resource>:<action>
  833. // Btn ID 段:baseId + 100..114(不与现有 Dir/Menu 冲突)。
  834. const long s8DashboardId = 1322000000027L; // 见上文「S8:复用自动生成的首项菜单位…」
  835. const long btnIdBase = baseId + 100;
  836. const string btnNamePrefix = "aidopS8Btn";
  837. var btns = new (long IdOff, long Pid, string Permission, string Title, int Order)[]
  838. {
  839. // 异常列表 / 任务详情
  840. (0, baseId + 2, "s8:exception:read", "查看异常", 10),
  841. (1, baseId + 3, "s8:exception:create", "主动提报", 20),
  842. (2, baseId + 10, "s8:exception:assign", "分派异常", 30),
  843. (3, baseId + 10, "s8:exception:claim", "认领异常", 40),
  844. (4, baseId + 10, "s8:exception:start", "开始处理", 50),
  845. (5, baseId + 10, "s8:exception:reject", "驳回异常", 60),
  846. (6, baseId + 10, "s8:exception:upgrade", "升级异常", 70),
  847. (7, baseId + 10, "s8:exception:close", "关闭异常", 80),
  848. (8, baseId + 10, "s8:verification:submit", "提交复检", 110),
  849. (9, baseId + 10, "s8:verification:approve", "检验通过", 120),
  850. (10, baseId + 10, "s8:verification:reject", "检验退回", 130),
  851. // 配置中心
  852. (11, baseId + 4, "s8:config:read", "查看配置", 210),
  853. (12, baseId + 13, "s8:config:operator:bind", "维护操作员绑定", 220),
  854. (13, baseId + 13, "s8:config:role:write", "维护角色权限", 230),
  855. // 看板
  856. (14, s8DashboardId, "s8:dashboard:read", "查看看板", 310),
  857. };
  858. foreach (var (off, pid, perm, title, order) in btns)
  859. {
  860. yield return new SysMenu
  861. {
  862. Id = btnIdBase + off,
  863. Pid = pid,
  864. Title = title,
  865. Permission = perm,
  866. Name = $"{btnNamePrefix}{off:00}",
  867. Type = MenuTypeEnum.Btn,
  868. CreateTime = ct,
  869. OrderNo = order,
  870. Remark = $"S8 权限点 {perm}"
  871. };
  872. }
  873. }
  874. private static IEnumerable<SysMenu> BuildS0WarehouseMenus(DateTime ct)
  875. {
  876. const long s0DataModelingMenuId = 1322000000001L;
  877. const long subDirId = 1329005000000L;
  878. yield return new SysMenu
  879. {
  880. Id = subDirId,
  881. Pid = s0DataModelingMenuId,
  882. Title = "仓储建模",
  883. Path = "/aidop/s0/warehouse",
  884. Name = "aidopS0Warehouse",
  885. Component = "Layout",
  886. Icon = "ele-OfficeBuilding",
  887. Type = MenuTypeEnum.Dir,
  888. CreateTime = ct,
  889. OrderNo = 50,
  890. Remark = "S0 仓储建模"
  891. };
  892. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  893. {
  894. (1, "/aidop/s0/warehouse/department", "aidopS0WhDepartment", "部门维护", "/aidop/s0/warehouse/DepartmentList", 10),
  895. (2, "/aidop/s0/warehouse/employee", "aidopS0WhEmployee", "雇员列表", "/aidop/s0/warehouse/EmployeeList", 20),
  896. (3, "/aidop/s0/warehouse/cost-center", "aidopS0WhCostCenter", "成本中心", "/aidop/s0/warehouse/CostCenterList", 30),
  897. (4, "/aidop/s0/warehouse/location", "aidopS0WhLocation", "库位维护", "/aidop/s0/warehouse/LocationList", 40),
  898. (5, "/aidop/s0/warehouse/location-shelf", "aidopS0WhLocationShelf", "货架列表", "/aidop/s0/warehouse/LocationShelfList", 50),
  899. (6, "/aidop/s0/warehouse/barcode-rule", "aidopS0WhBarcodeRule", "条码规则", "/aidop/s0/warehouse/BarcodeRuleList", 60),
  900. (7, "/aidop/s0/warehouse/label-type", "aidopS0WhLabelType", "标签格式", "/aidop/s0/warehouse/LabelTypeList", 70),
  901. (8, "/aidop/s0/warehouse/nbr-type", "aidopS0WhNbrType", "单号类型", "/aidop/s0/warehouse/NbrTypeList", 80),
  902. (9, "/aidop/s0/warehouse/nbr-control", "aidopS0WhNbrControl", "单号规则维护", "/aidop/s0/warehouse/NbrControlList", 90),
  903. (10, "/aidop/s0/warehouse/item-pack", "aidopS0WhItemPack", "零件包装规格", "/aidop/s0/warehouse/ItemPackList", 100),
  904. (11, "/aidop/s0/warehouse/emp-work-duty", "aidopS0WhEmpWorkDuty", "物料职责维护", "/aidop/s0/warehouse/EmpWorkDutyList", 110),
  905. (12, "/aidop/s0/warehouse/task-assignment", "aidopS0WhTaskAssignment", "物料状态任务指派", "/aidop/s0/warehouse/TaskAssignmentList", 120),
  906. };
  907. foreach (var (idOff, path, name, title, component, order) in leaves)
  908. {
  909. yield return new SysMenu
  910. {
  911. Id = subDirId + idOff,
  912. Pid = subDirId,
  913. Title = title,
  914. Path = path,
  915. Name = name,
  916. Component = component,
  917. Icon = "ele-Document",
  918. Type = MenuTypeEnum.Menu,
  919. CreateTime = ct,
  920. OrderNo = order,
  921. Remark = $"S0 {title}"
  922. };
  923. }
  924. }
  925. /// <summary>
  926. /// S1「产销协同看板」目录(Id=1322000000005)下的子菜单:指标看板、需求明细核验、计划联动看板。
  927. /// </summary>
  928. private static IEnumerable<SysMenu> BuildS1SalesKanbanMenus(DateTime ct)
  929. {
  930. const long salesKanBanDirId = 1322000000005L;
  931. yield return new SysMenu
  932. {
  933. Id = 1322000000201L,
  934. Pid = salesKanBanDirId,
  935. Title = "产销协同指标看板",
  936. Path = "/aidop/s1/SalesKanBan/kanban",
  937. Name = "aidopS1SalesKanBanKanban",
  938. Component = "/aidop/kanban/s1",
  939. Icon = "ele-DataAnalysis",
  940. Type = MenuTypeEnum.Menu,
  941. CreateTime = ct,
  942. OrderNo = 10,
  943. Remark = "S1 产销协同看板(指标)"
  944. };
  945. yield return new SysMenu
  946. {
  947. Id = 1322000000202L,
  948. Pid = salesKanBanDirId,
  949. Title = "需求明细核验",
  950. Path = "/aidop/s1/SalesKanBan/requirement-examine-detail",
  951. Name = "aidopS1RequirementExamineDetail",
  952. Component = "/aidop/s1/sales-kanban/RequirementExamineDetailList",
  953. Icon = "ele-List",
  954. Type = MenuTypeEnum.Menu,
  955. CreateTime = ct,
  956. OrderNo = 20,
  957. Remark = "S1 需求明细核验"
  958. };
  959. yield return new SysMenu
  960. {
  961. Id = 1322000000107L,
  962. Pid = salesKanBanDirId,
  963. Title = "计划联动看板",
  964. Path = "/aidop/s1/SalesKanBan/linkage-plan",
  965. Name = "aidopS1LinkagePlan",
  966. Component = "/aidop/business/linkagePlanList",
  967. Icon = "ele-DataBoard",
  968. Type = MenuTypeEnum.Menu,
  969. CreateTime = ct,
  970. OrderNo = 30,
  971. Remark = "S1 计划联动看板(LinkagePlan)"
  972. };
  973. }
  974. /// <summary>
  975. /// S1「订单管理」「工单管理」目录化后的子菜单:销售订单、合同评审、产品设计、工单下达等。
  976. /// 父级 Id:订单管理=1322000000003,工单管理=1322000000004(menuSeq 与 ModuleDefinitions 中 S1 叶子顺序一致)。
  977. /// 产销协同看板=1322000000005,路径 /aidop/s1/SalesKanBan(勿与工单管理目录混淆)。
  978. /// 订单管理下扩展子菜单 Id:1322000000101~0105;计划联动看板 Id=1322000000107 挂在产销协同看板目录下。
  979. /// </summary>
  980. private static IEnumerable<SysMenu> BuildS1OrderWorkOrderMenus(DateTime ct)
  981. {
  982. const long orderMgmtDirId = 1322000000003L;
  983. const long workOrderMgmtDirId = 1322000000004L;
  984. yield return new SysMenu
  985. {
  986. Id = 1322000000101L,
  987. Pid = orderMgmtDirId,
  988. Title = "合同评审",
  989. Path = "/aidop/s1/order-mgmt/contract-review",
  990. Name = "aidopS1ContractReview",
  991. Component = "/aidop/business/contractReviewList",
  992. Icon = "ele-Edit",
  993. Type = MenuTypeEnum.Menu,
  994. CreateTime = ct,
  995. OrderNo = 10,
  996. Remark = "S1 合同评审"
  997. };
  998. yield return new SysMenu
  999. {
  1000. Id = 1322000000102L,
  1001. Pid = orderMgmtDirId,
  1002. Title = "产品设计",
  1003. Path = "/aidop/s1/order-mgmt/product-design",
  1004. Name = "aidopS1ProductDesign",
  1005. Component = "/aidop/business/productDesignList",
  1006. Icon = "ele-Edit",
  1007. Type = MenuTypeEnum.Menu,
  1008. CreateTime = ct,
  1009. OrderNo = 20,
  1010. Remark = "S1 产品设计"
  1011. };
  1012. yield return new SysMenu
  1013. {
  1014. Id = 1322000000103L,
  1015. Pid = orderMgmtDirId,
  1016. Title = "订单评审",
  1017. Path = "/aidop/s1/order-mgmt/order",
  1018. Name = "aidopS1SalesOrder",
  1019. Component = "/aidop/business/orderList",
  1020. Icon = "ele-Document",
  1021. Type = MenuTypeEnum.Menu,
  1022. CreateTime = ct,
  1023. OrderNo = 30,
  1024. Remark = "S1 销售订单(原订单管理入口)"
  1025. };
  1026. yield return new SysMenu
  1027. {
  1028. Id = 1322000000104L,
  1029. Pid = orderMgmtDirId,
  1030. Title = "订单交付",
  1031. Path = "/aidop/s1/order-mgmt/orderDelivery",
  1032. Name = "aidopS1OrderDelivery",
  1033. Component = "/aidop/business/orderDeliveryList",
  1034. Icon = "ele-Document",
  1035. Type = MenuTypeEnum.Menu,
  1036. CreateTime = ct,
  1037. OrderNo = 40,
  1038. Remark = "S1 订单交付"
  1039. };
  1040. yield return new SysMenu
  1041. {
  1042. Id = 1322000000105L,
  1043. Pid = orderMgmtDirId,
  1044. Title = "订单发货",
  1045. Path = "/aidop/s1/order-mgmt/asnShipper",
  1046. Name = "aidopS1AsnShipper",
  1047. Component = "/aidop/business/asnShipperList",
  1048. Icon = "ele-Document",
  1049. Type = MenuTypeEnum.Menu,
  1050. CreateTime = ct,
  1051. OrderNo = 50,
  1052. Remark = "S1 订单发货"
  1053. };
  1054. yield return new SysMenu
  1055. {
  1056. Id = 1322000000106L,
  1057. Pid = workOrderMgmtDirId,
  1058. Title = "工单下达",
  1059. Path = "/aidop/s1/workorder-mgmt/dispatch",
  1060. Name = "aidopS1WorkOrderDispatch",
  1061. Component = "/aidop/business/workOrderDispatchList",
  1062. Icon = "ele-Position",
  1063. Type = MenuTypeEnum.Menu,
  1064. CreateTime = ct,
  1065. OrderNo = 10,
  1066. Remark = "S1 工单池下达"
  1067. };
  1068. }
  1069. /// <summary>
  1070. /// S2「制造协同」三级结构:生产排程 / 作业计划 / 制造协同看板 为目录(与 ModuleDefinitions 中 S2 三项 Id 一致:0006~0008)。
  1071. /// 「工单工序排程」Id=1322000000108 自 S1 迁入「生产排程」下;其余子页占位。
  1072. /// </summary>
  1073. private static IEnumerable<SysMenu> BuildS2ManufacturingCollaborationMenus(DateTime ct)
  1074. {
  1075. const long s2ProductionSchedulingDirId = 1322000000006L;
  1076. const long s2OperationPlanDirId = 1322000000007L;
  1077. const long s2CollaborationKanbanDirId = 1322000000008L;
  1078. // ── 生产排程 ──
  1079. yield return new SysMenu
  1080. {
  1081. Id = 1322000000108L,
  1082. Pid = s2ProductionSchedulingDirId,
  1083. Title = "工单工序排程",
  1084. Path = "/aidop/s2/production-scheduling/work-order-scheduling",
  1085. Name = "aidopS2WorkOrderScheduling",
  1086. Component = "/aidop/production/workOrderSchedulingList",
  1087. Icon = "ele-Operation",
  1088. Type = MenuTypeEnum.Menu,
  1089. CreateTime = ct,
  1090. OrderNo = 10,
  1091. Remark = "S2 工单工序排程"
  1092. };
  1093. yield return new SysMenu
  1094. {
  1095. Id = 1329002100001L,
  1096. Pid = s2ProductionSchedulingDirId,
  1097. Title = "排产异常记录",
  1098. Path = "/aidop/s2/production-scheduling/scheduling-exception",
  1099. Name = "aidopS2SchedulingException",
  1100. Component = "/aidop/production/scheduleExceptionList",
  1101. Icon = "ele-Warning",
  1102. Type = MenuTypeEnum.Menu,
  1103. CreateTime = ct,
  1104. OrderNo = 20,
  1105. Remark = "S2 排产异常记录"
  1106. };
  1107. // ── 作业计划 ──
  1108. yield return new SysMenu
  1109. {
  1110. Id = 1329002100011L,
  1111. Pid = s2OperationPlanDirId,
  1112. Title = "可执行日计划",
  1113. Path = "/aidop/s2/operation-plan/executable-daily-plan",
  1114. Name = "aidopS2ExecutableDailyPlan",
  1115. Component = "/aidop/production/executableDailyPlanList",
  1116. Icon = "ele-Calendar",
  1117. Type = MenuTypeEnum.Menu,
  1118. CreateTime = ct,
  1119. OrderNo = 10,
  1120. Remark = "S2 可执行生产日计划"
  1121. };
  1122. yield return new SysMenu
  1123. {
  1124. Id = 1329002100012L,
  1125. Pid = s2OperationPlanDirId,
  1126. Title = "产线工作日历管理",
  1127. Path = "/aidop/s2/operation-plan/line-work-calendar",
  1128. Name = "aidopS2LineWorkCalendar",
  1129. Component = "/aidop/production/shopCalendarWorkCtrList",
  1130. Icon = "ele-Notebook",
  1131. Type = MenuTypeEnum.Menu,
  1132. CreateTime = ct,
  1133. OrderNo = 20,
  1134. Remark = "S2 产线工作日历"
  1135. };
  1136. yield return new SysMenu
  1137. {
  1138. Id = 1329002100013L,
  1139. Pid = s2OperationPlanDirId,
  1140. Title = "产线休息时间管理",
  1141. Path = "/aidop/s2/operation-plan/line-rest-time",
  1142. Name = "aidopS2LineRestTime",
  1143. Component = "/aidop/production/qualityLineRestDetailList",
  1144. Icon = "ele-CoffeeCup",
  1145. Type = MenuTypeEnum.Menu,
  1146. CreateTime = ct,
  1147. OrderNo = 30,
  1148. Remark = "S2 产线休息时间"
  1149. };
  1150. yield return new SysMenu
  1151. {
  1152. Id = 1329002100014L,
  1153. Pid = s2OperationPlanDirId,
  1154. Title = "产线节假日管理",
  1155. Path = "/aidop/s2/operation-plan/line-holiday",
  1156. Name = "aidopS2LineHoliday",
  1157. Component = "/aidop/production/holidayMasterList",
  1158. Icon = "ele-Flag",
  1159. Type = MenuTypeEnum.Menu,
  1160. CreateTime = ct,
  1161. OrderNo = 40,
  1162. Remark = "S2 产线节假日"
  1163. };
  1164. yield return new SysMenu
  1165. {
  1166. Id = 1329002100015L,
  1167. Pid = s2OperationPlanDirId,
  1168. Title = "产线加班管理",
  1169. Path = "/aidop/s2/operation-plan/line-overtime",
  1170. Name = "aidopS2LineOvertime",
  1171. Component = "/aidop/production/lineOvertimeList",
  1172. Icon = "ele-Timer",
  1173. Type = MenuTypeEnum.Menu,
  1174. CreateTime = ct,
  1175. OrderNo = 50,
  1176. Remark = "S2 产线加班"
  1177. };
  1178. // ── 制造协同看板 ──
  1179. yield return new SysMenu
  1180. {
  1181. Id = 1329002100021L,
  1182. Pid = s2CollaborationKanbanDirId,
  1183. Title = "工单执行进度看板",
  1184. Path = "/aidop/s2/collaboration-kanban/work-order-progress",
  1185. Name = "aidopS2WorkOrderProgressKanban",
  1186. Component = "/aidop/production/workOrderProgressDashboardList",
  1187. Icon = "ele-DataBoard",
  1188. Type = MenuTypeEnum.Menu,
  1189. CreateTime = ct,
  1190. OrderNo = 10,
  1191. Remark = "S2 工单执行进度看板(列表)"
  1192. };
  1193. }
  1194. /// <summary>
  1195. /// S3「物料计划」三级结构:将自动生成的 S3 首项(Id=1322000000009)目录化,挂载「物料需求计划」。
  1196. /// </summary>
  1197. private static IEnumerable<SysMenu> BuildS3SupplyMenus(DateTime ct)
  1198. {
  1199. const long s3MaterialPlanDirId = 1322000000009L;
  1200. const long s3ProcurementDirId = 1322000000010L;
  1201. const long s3RootDirId = 1321000004000L;
  1202. yield return new SysMenu
  1203. {
  1204. Id = 1329003100001L,
  1205. Pid = s3MaterialPlanDirId,
  1206. Title = "物料需求计划",
  1207. Path = "/aidop/s3/material-plan/demand-schedule",
  1208. Name = "aidopS3DemandSchedule",
  1209. Component = "/aidop/s3/supply/demandScheduleList",
  1210. Icon = "ele-Calendar",
  1211. Type = MenuTypeEnum.Menu,
  1212. CreateTime = ct,
  1213. OrderNo = 10,
  1214. Remark = "S3 物料需求计划(ic_demandschedule)"
  1215. };
  1216. yield return new SysMenu
  1217. {
  1218. Id = 1329003100002L,
  1219. Pid = s3MaterialPlanDirId,
  1220. Title = "物料交货计划",
  1221. Path = "/aidop/s3/material-plan/delivery-schedule",
  1222. Name = "aidopS3DeliverySchedule",
  1223. Component = "/aidop/s3/supply/deliveryScheduleList",
  1224. Icon = "ele-Document",
  1225. Type = MenuTypeEnum.Menu,
  1226. CreateTime = ct,
  1227. OrderNo = 20,
  1228. Remark = "S3 物料交货计划(srm_polist_ds)"
  1229. };
  1230. yield return new SysMenu
  1231. {
  1232. Id = 1329003100003L,
  1233. Pid = s3MaterialPlanDirId,
  1234. Title = "交货单异常记录",
  1235. Path = "/aidop/s3/material-plan/delivery-exception",
  1236. Name = "aidopS3DeliveryException",
  1237. Component = "/aidop/s3/supply/deliveryExceptionList",
  1238. Icon = "ele-Warning",
  1239. Type = MenuTypeEnum.Menu,
  1240. CreateTime = ct,
  1241. OrderNo = 30,
  1242. Remark = "S3 交货单异常记录(DeliveryExceptionMaster)"
  1243. };
  1244. yield return new SysMenu
  1245. {
  1246. Id = 1329003100011L,
  1247. Pid = s3ProcurementDirId,
  1248. Title = "物料采购申请",
  1249. Path = "/aidop/s3/procurement/purchase-request",
  1250. Name = "aidopS3PurchaseRequest",
  1251. Component = "/aidop/s3/supply/purchaseRequestList",
  1252. Icon = "ele-Document",
  1253. Type = MenuTypeEnum.Menu,
  1254. CreateTime = ct,
  1255. OrderNo = 10,
  1256. Remark = "S3 物料采购申请(srm_pr_main)"
  1257. };
  1258. yield return new SysMenu
  1259. {
  1260. Id = 1329003100012L,
  1261. Pid = s3ProcurementDirId,
  1262. Title = "物料采购订单",
  1263. Path = "/aidop/s3/procurement/purchase-order",
  1264. Name = "aidopS3PurchaseOrder",
  1265. Component = "/aidop/s3/supply/purchaseOrderList",
  1266. Icon = "ele-Tickets",
  1267. Type = MenuTypeEnum.Menu,
  1268. CreateTime = ct,
  1269. OrderNo = 20,
  1270. Remark = "S3 物料采购订单(vscm_jhjh)"
  1271. };
  1272. yield return new SysMenu
  1273. {
  1274. Id = 1329003100013L,
  1275. Pid = s3ProcurementDirId,
  1276. Title = "委外加工订单",
  1277. Path = "/aidop/s3/procurement/outsource-order",
  1278. Name = "aidopS3OutsourceOrder",
  1279. Component = "/aidop/s3/supply/outsourceOrderList",
  1280. Icon = "ele-List",
  1281. Type = MenuTypeEnum.Menu,
  1282. CreateTime = ct,
  1283. OrderNo = 30,
  1284. Remark = "S3 委外加工订单(PurOrdMaster/PW)"
  1285. };
  1286. yield return new SysMenu
  1287. {
  1288. Id = 1329003100014L,
  1289. Pid = s3ProcurementDirId,
  1290. Title = "工序外协订单",
  1291. Path = "/aidop/s3/procurement/process-outsource-order",
  1292. Name = "aidopS3ProcessOutsourceOrder",
  1293. Component = "/aidop/s3/supply/processOutsourceOrderList",
  1294. Icon = "ele-List",
  1295. Type = MenuTypeEnum.Menu,
  1296. CreateTime = ct,
  1297. OrderNo = 40,
  1298. Remark = "S3 工序外协订单(PurOrdMaster/PW)"
  1299. };
  1300. yield return new SysMenu
  1301. {
  1302. Id = 1329003100010L,
  1303. Pid = s3RootDirId,
  1304. Title = "供应协同看板",
  1305. Path = "/aidop/s3/supply-kanban",
  1306. Name = "aidopS3SupplyKanbanDir",
  1307. Component = "Layout",
  1308. Icon = "ele-Folder",
  1309. Type = MenuTypeEnum.Dir,
  1310. CreateTime = ct,
  1311. OrderNo = 102,
  1312. Redirect = "/aidop/s3/supply-kanban/dashboard",
  1313. Remark = "S3 供应协同看板目录"
  1314. };
  1315. yield return new SysMenu
  1316. {
  1317. Id = 1329003100015L,
  1318. Pid = 1329003100010L,
  1319. Title = "供应协同看板",
  1320. Path = "/aidop/s3/supply-kanban/dashboard",
  1321. Name = "aidopS3SupplyKanban",
  1322. Component = "/aidop/kanban/s3",
  1323. Icon = "ele-DataBoard",
  1324. Type = MenuTypeEnum.Menu,
  1325. CreateTime = ct,
  1326. OrderNo = 10,
  1327. Remark = "S3 供应协同看板"
  1328. };
  1329. yield return new SysMenu
  1330. {
  1331. Id = 1329003100016L,
  1332. Pid = 1329003100010L,
  1333. Title = "工单物料齐套上线看板",
  1334. Path = "/aidop/s3/supply-kanban/work-order-material-readiness",
  1335. Name = "aidopS3WorkOrderMaterialReadiness",
  1336. Component = "/aidop/s3/supply/workOrderMaterialReadinessKanban",
  1337. Icon = "ele-List",
  1338. Type = MenuTypeEnum.Menu,
  1339. CreateTime = ct,
  1340. OrderNo = 20,
  1341. Remark = "S3 工单物料齐套上线看板"
  1342. };
  1343. }
  1344. private static readonly (string Code, string L1, (string Title, string Desc, string Complexity, string Days, string Note)[] Leaves)[] ModuleDefinitions =
  1345. {
  1346. ("S0", "S0 运营建模", new[]
  1347. {
  1348. ("数据建模", "支持数据库表结构设计与建模", "高", "5", "核心基础功能"),
  1349. ("业务建模", "支持业务流程建模与配置", "高", "5", "核心基础功能"),
  1350. }),
  1351. ("S1", "S1 产销协同", new[]
  1352. {
  1353. ("订单管理", "销售订单录入、查询、编辑、删除", "中", "3", ""),
  1354. ("工单管理", "工单创建、分配、跟踪", "中", "3", ""),
  1355. ("产销协同看板", "订单与生产协同数据可视化", "高", "5", "数据看板类"),
  1356. }),
  1357. ("S2", "S2 制造协同", new[]
  1358. {
  1359. ("生产排程", "生产任务排程与调度", "高", "5", ""),
  1360. ("作业计划", "车间作业计划管理", "中", "3", ""),
  1361. ("制造协同看板", "制造过程协同数据展示", "高", "5", "数据看板类"),
  1362. }),
  1363. ("S3", "S3 供应协同", new[]
  1364. {
  1365. ("物料计划", "物料需求计划(MRP)计算", "高", "7", "核心算法"),
  1366. ("供应协同看板", "供应商协同数据可视化", "中", "4", "数据看板类"),
  1367. }),
  1368. ("S4", "S4 采购执行", new[]
  1369. {
  1370. ("采购管理", "采购申请、订单、合同管理", "中", "4", ""),
  1371. ("交货管理", "供应商交货跟踪与验收", "中", "3", ""),
  1372. ("退货管理", "采购退货流程处理", "低", "2", ""),
  1373. ("采购执行看板", "采购执行数据可视化", "中", "4", "数据看板类"),
  1374. }),
  1375. ("S5", "S5 物料仓储", new[]
  1376. {
  1377. ("来料检验", "IQC来料质量检验", "中", "3", ""),
  1378. ("仓储管理", "仓库入库、出库、调拨", "中", "4", ""),
  1379. ("库存数据", "库存查询、盘点、调整", "中", "3", ""),
  1380. ("物料仓储看板", "仓储数据可视化分析", "中", "4", "数据看板类"),
  1381. }),
  1382. ("S6", "S6 生产执行", new[]
  1383. {
  1384. ("生产记录管理", "生产过程数据记录", "中", "3", ""),
  1385. ("过程质量管理", "IPQC过程质量检验", "中", "4", ""),
  1386. ("设备工装管理", "设备台账、保养、维修", "中", "4", ""),
  1387. ("生产执行看板", "生产执行数据可视化", "高", "5", "数据看板类"),
  1388. }),
  1389. ("S7", "S7 成品仓储", new[]
  1390. {
  1391. ("成品质量管理", "OQC成品质量检验", "中", "3", ""),
  1392. ("生产入库管理", "成品入库流程", "低", "2", ""),
  1393. ("成品出库管理", "成品出库发货流程", "低", "2", ""),
  1394. ("成品库存管理", "成品库存查询与管理", "中", "3", ""),
  1395. }),
  1396. ("S8", "S8 异常监控", new[]
  1397. {
  1398. ("异常监控看板", "生产异常监控、处理、跟踪", "中", "4", ""),
  1399. }),
  1400. ("S9", "S9 运营指标", new[]
  1401. {
  1402. ("ERP同步", "与外部ERP系统数据同步", "高", "7", "接口集成"),
  1403. ("日志查询", "系统操作日志查询", "低", "2", ""),
  1404. ("ERP事务", "ERP相关事务处理", "中", "3", ""),
  1405. }),
  1406. ("M11", "系统管理", new[]
  1407. {
  1408. ("组织架构", "部门、岗位、人员管理", "中", "3", "与框架系统管理对应,后续可映射具体页"),
  1409. ("菜单管理", "系统菜单权限配置", "中", "3", ""),
  1410. }),
  1411. ("M12", "流程平台", new[]
  1412. {
  1413. ("流程管理", "工作流流程定义与配置", "高", "7", "核心引擎"),
  1414. ("表单管理", "流程表单设计与配置", "高", "5", ""),
  1415. ("应用设计", "业务应用快速设计", "高", "5", ""),
  1416. ("数据资源配置", "数据资源连接配置", "中", "4", ""),
  1417. ("格式化JSON", "JSON数据格式化工具", "低", "1", "工具类"),
  1418. ("模板管理", "流程模板管理", "中", "3", ""),
  1419. ("系统按钮", "系统按钮权限配置", "低", "2", ""),
  1420. ("流程按钮", "流程操作按钮配置", "低", "2", ""),
  1421. ("应用程序", "外部应用集成管理", "中", "4", ""),
  1422. ("接口系统", "API接口配置管理", "高", "5", ""),
  1423. }),
  1424. ("M13", "系统工具", new[]
  1425. {
  1426. ("数据字典", "系统字典数据管理", "低", "2", ""),
  1427. ("数据连接", "数据库连接配置", "中", "3", ""),
  1428. ("首页设置", "系统首页个性化配置", "低", "2", ""),
  1429. ("日志查询", "系统运行日志查询", "低", "2", ""),
  1430. ("流水号管理", "业务流水号规则配置", "低", "2", ""),
  1431. ("工作日设置", "工作日历配置", "低", "1", ""),
  1432. ("图标库", "系统图标资源管理", "低", "1", ""),
  1433. ("在线用户", "在线用户监控", "低", "2", ""),
  1434. ("周库存统计", "库存周期统计报表", "中", "3", "报表类"),
  1435. ("数据导入", "批量数据导入工具", "中", "3", ""),
  1436. }),
  1437. ("M14", "流程中心", new[]
  1438. {
  1439. ("发起流程", "新建并发起工作流程", "中", "3", ""),
  1440. ("待办事项", "个人待办任务处理", "中", "3", ""),
  1441. ("待办批量处理", "待办任务批量操作", "中", "3", ""),
  1442. ("已办事项", "已办任务查询", "低", "2", ""),
  1443. ("我的流程", "我发起的流程跟踪", "中", "3", ""),
  1444. ("已委托事项", "委托他人处理的事项", "低", "2", ""),
  1445. ("流程委托", "流程任务委托配置", "低", "2", ""),
  1446. ("流程意见", "流程审批意见管理", "低", "2", ""),
  1447. }),
  1448. ("M15", "个人设置", new[]
  1449. {
  1450. ("个人信息", "个人资料维护", "低", "1", ""),
  1451. ("头像设置", "个人头像上传", "低", "1", ""),
  1452. ("修改密码", "密码修改功能", "低", "1", ""),
  1453. ("签章管理", "个人电子签章管理", "中", "3", ""),
  1454. ("文件管理", "个人文件存储管理", "中", "3", ""),
  1455. ("快捷菜单", "个人快捷方式配置", "低", "1", ""),
  1456. }),
  1457. ("M16", "系统首页", new[]
  1458. {
  1459. ("系统首页", "系统门户首页", "中", "3", "门户类"),
  1460. ("发起流程(快捷)", "首页快捷发起流程", "低", "1", ""),
  1461. ("我的流程(快捷)", "首页流程快捷入口", "低", "1", ""),
  1462. ("待办事项(快捷)", "首页待办快捷入口", "低", "1", ""),
  1463. }),
  1464. };
  1465. }