SysMenuSeedData.cs 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013
  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 BuildDataPlatformSeedMenus(ct))
  82. list.Add(m);
  83. foreach (var m in BuildS0SalesMenus(ct))
  84. list.Add(m);
  85. foreach (var m in BuildS0SupplyMenus(ct))
  86. list.Add(m);
  87. foreach (var m in BuildS0ManufacturingMenus(ct))
  88. list.Add(m);
  89. foreach (var m in BuildS0QualityMenus(ct))
  90. list.Add(m);
  91. foreach (var m in BuildS0WarehouseMenus(ct))
  92. list.Add(m);
  93. foreach (var m in BuildS1OrderWorkOrderMenus(ct))
  94. list.Add(m);
  95. foreach (var m in BuildS2ManufacturingCollaborationMenus(ct))
  96. list.Add(m);
  97. foreach (var m in BuildS3SupplyMenus(ct))
  98. list.Add(m);
  99. foreach (var m in BuildS4DeliveryMenus(ct))
  100. list.Add(m);
  101. foreach (var m in BuildS4ReturnMenus(ct))
  102. list.Add(m);
  103. foreach (var m in BuildS4ExecutionKanbanMenus(ct))
  104. list.Add(m);
  105. foreach (var m in BuildS1SalesKanbanMenus(ct))
  106. list.Add(m);
  107. foreach (var m in BuildS5MaterialWarehouseMenus(ct))
  108. list.Add(m);
  109. foreach (var m in BuildS6ProductionExecutionMenus(ct))
  110. list.Add(m);
  111. foreach (var m in BuildS7FinishedWarehouseMenus(ct))
  112. list.Add(m);
  113. foreach (var m in BuildS8CollaborationMenus(ct))
  114. list.Add(m);
  115. // 产销协同看板改为目录后,访问 /aidop/s1/SalesKanBan 默认进入指标看板子页
  116. var salesKanBanDir = list.FirstOrDefault(x => x.Id == 1322000000005L);
  117. if (salesKanBanDir != null)
  118. salesKanBanDir.Redirect = "/aidop/s1/SalesKanBan/kanban";
  119. // S2:生产排程 / 作业计划 / 制造协同看板 为目录,默认进入各自首子页
  120. var s2ProdSched = list.FirstOrDefault(x => x.Id == 1322000000006L);
  121. if (s2ProdSched != null)
  122. s2ProdSched.Redirect = "/aidop/s2/production-scheduling/work-order-scheduling";
  123. var s2OpPlan = list.FirstOrDefault(x => x.Id == 1322000000007L);
  124. if (s2OpPlan != null)
  125. s2OpPlan.Redirect = "/aidop/s2/operation-plan/executable-daily-plan";
  126. var s2MfgKanban = list.FirstOrDefault(x => x.Id == 1322000000008L);
  127. if (s2MfgKanban != null)
  128. s2MfgKanban.Redirect = "/aidop/s2/collaboration-kanban/work-order-progress";
  129. var s3MaterialPlan = list.FirstOrDefault(x => x.Id == 1322000000009L);
  130. if (s3MaterialPlan != null)
  131. s3MaterialPlan.Redirect = "/aidop/s3/material-plan/demand-schedule";
  132. var s3Procurement = list.FirstOrDefault(x => x.Id == 1322000000010L);
  133. if (s3Procurement != null)
  134. {
  135. s3Procurement.Title = "采购管理";
  136. s3Procurement.Path = "/aidop/s3/procurement";
  137. s3Procurement.Name = "aidopS3Procurement";
  138. s3Procurement.Component = "Layout";
  139. s3Procurement.Icon = "ele-Folder";
  140. s3Procurement.Type = MenuTypeEnum.Dir;
  141. s3Procurement.Redirect = "/aidop/s3/procurement/purchase-request";
  142. s3Procurement.Remark = "S3 采购管理";
  143. }
  144. var s4Delivery = list.FirstOrDefault(x => x.Id == 1322000000012L);
  145. if (s4Delivery != null)
  146. s4Delivery.Redirect = "/aidop/s4/delivery/supplier-delivery-management";
  147. var s4Return = list.FirstOrDefault(x => x.Id == 1322000000013L);
  148. if (s4Return != null)
  149. {
  150. s4Return.Title = "退货管理";
  151. s4Return.Path = "/aidop/s4/return-mgmt";
  152. s4Return.Name = "aidopS4ReturnMgmt";
  153. s4Return.Component = "Layout";
  154. s4Return.Icon = "ele-Folder";
  155. s4Return.Type = MenuTypeEnum.Dir;
  156. s4Return.Redirect = "/aidop/s4/return-mgmt/purchase-return-order";
  157. s4Return.Remark = "S4 退货管理";
  158. }
  159. // S4 规划项「采购管理」与子模块 S3「采购管理」重叠,不在侧栏展示(仍保留种子 Id 兼容历史)
  160. var s4ProcMgmt = list.FirstOrDefault(x => x.Id == 1322000000011L);
  161. if (s4ProcMgmt != null)
  162. {
  163. s4ProcMgmt.IsHide = true;
  164. s4ProcMgmt.Remark = $"{s4ProcMgmt.Remark}|侧栏隐藏:采购业务入口以 S3 采购管理为准";
  165. }
  166. // S4 采购执行看板 → 列表页路由与组件对齐看板 Vue
  167. var s4Kanban = list.FirstOrDefault(x => x.Id == 1322000000014L);
  168. if (s4Kanban != null)
  169. {
  170. s4Kanban.Path = "/aidop/s4/execution-kanban";
  171. s4Kanban.Name = "aidopS4ExecutionKanban";
  172. s4Kanban.Component = "Layout";
  173. s4Kanban.Icon = "ele-Folder";
  174. s4Kanban.Title = "采购执行看板";
  175. s4Kanban.Type = MenuTypeEnum.Dir;
  176. s4Kanban.Redirect = "/aidop/s4/execution-kanban/dashboard";
  177. s4Kanban.Remark = "S4 采购执行看板目录(含主页 + 供应商欠料看板)";
  178. }
  179. // S8:复用自动生成的首项菜单位,直接作为「异常监控看板」页,避免再出现中间层「异常管理」目录
  180. var s8Dashboard = list.FirstOrDefault(x => x.Id == 1322000000027L);
  181. if (s8Dashboard != null)
  182. {
  183. s8Dashboard.Title = "异常监控看板";
  184. s8Dashboard.Path = "/aidop/s8/dashboard";
  185. s8Dashboard.Name = "aidopS8Dashboard";
  186. s8Dashboard.Component = "/aidop/s8/dashboard/S8DashboardPage";
  187. s8Dashboard.Icon = "ele-DataBoard";
  188. s8Dashboard.Type = MenuTypeEnum.Menu;
  189. s8Dashboard.Redirect = null;
  190. s8Dashboard.Remark = "S8 异常监控看板";
  191. }
  192. return list;
  193. }
  194. /// <summary>
  195. /// 智慧诊断 + 智慧运营看板(入库,便于平台「菜单管理」配置;勿在 Web aidopMenuDisplay 再注入整段菜单)。
  196. /// </summary>
  197. private static IEnumerable<SysMenu> BuildAidopSmartOpsSeedMenus(DateTime ct)
  198. {
  199. const long smartOpsDirId = 1320990000200L;
  200. yield return new SysMenu
  201. {
  202. Id = 1320990000201L,
  203. Pid = AidopRootId,
  204. Title = "智慧诊断",
  205. Path = "/aidop/smart-diagnosis",
  206. Name = "aidopSmartDiagnosis",
  207. Component = "/aidop/diagnosis/index",
  208. Icon = "ele-TrendCharts",
  209. Type = MenuTypeEnum.Menu,
  210. CreateTime = ct,
  211. OrderNo = 251,
  212. Remark = "Ai-DOP 智慧诊断"
  213. };
  214. yield return new SysMenu
  215. {
  216. Id = smartOpsDirId,
  217. Pid = AidopRootId,
  218. Title = "智慧运营看板",
  219. Path = "/aidop/smart-ops",
  220. Name = "aidopSmartOpsRoot",
  221. Component = "Layout",
  222. Icon = "ele-DataBoard",
  223. Type = MenuTypeEnum.Dir,
  224. CreateTime = ct,
  225. OrderNo = 252,
  226. Remark = "Ai-DOP 智慧运营看板分组"
  227. };
  228. // OrderNo:建模紧接九宫格之后,避免在侧栏最底部不易发现;已落库环境需在菜单管理调序或改库
  229. var children = new (long Id, string Path, string Name, string Title, string Component, int Order)[]
  230. {
  231. (1320990000301L, "/aidop/smart-ops/grid", "aidopSmartOpsGrid", "九宫格智慧运营看板", "/dashboard/home", 100),
  232. (1320990000311L, "/aidop/smart-ops/modeling", "aidopSmartOpsModeling", "运营指标建模", "/aidop/kanban/s0", 105),
  233. (1320990000312L, "/aidop/smart-ops/kpi-master", "aidopSmartOpsKpiMaster", "运营指标主数据", "/aidop/kanban/kpiMaster", 106),
  234. (1320990000313L, "/aidop/smart-ops/business-fact", "aidopSmartOpsBusinessFact", "业务事实字典", "/aidop/kanban/businessFact", 107),
  235. (1320990000302L, "/aidop/smart-ops/s1", "aidopSmartOpsS1", "S1产销协同看板", "/aidop/kanban/s1", 110),
  236. (1320990000303L, "/aidop/smart-ops/s2", "aidopSmartOpsS2", "S2制造协同看板", "/aidop/kanban/s2", 120),
  237. (1320990000304L, "/aidop/smart-ops/s3", "aidopSmartOpsS3", "S3供应协同看板", "/aidop/kanban/s3", 130),
  238. (1320990000305L, "/aidop/smart-ops/s4", "aidopSmartOpsS4", "S4采购执行看板", "/aidop/kanban/s4", 140),
  239. (1320990000306L, "/aidop/smart-ops/s5", "aidopSmartOpsS5", "S5物料仓储看板", "/aidop/kanban/s5", 150),
  240. (1320990000307L, "/aidop/smart-ops/s6", "aidopSmartOpsS6", "S6生产执行看板", "/aidop/kanban/s6", 160),
  241. (1320990000308L, "/aidop/smart-ops/s7", "aidopSmartOpsS7", "S7成品仓储看板", "/aidop/kanban/s7", 170),
  242. (1320990000309L, "/aidop/smart-ops/s8", "aidopSmartOpsS8", "S8异常监控看板", "/aidop/kanban/s8", 180),
  243. (1320990000310L, "/aidop/smart-ops/s9", "aidopSmartOpsS9", "S9运营指标看板", "/aidop/kanban/s9", 190),
  244. (1320990000314L, "/aidop/smart-ops/improvement-plans", "aidopSmartOpsImprovementPlans", "改善计划台账", "/aidop/improvement/index", 195),
  245. };
  246. foreach (var (id, path, name, title, component, order) in children)
  247. {
  248. yield return new SysMenu
  249. {
  250. Id = id,
  251. Pid = smartOpsDirId,
  252. Title = title,
  253. Path = path,
  254. Name = name,
  255. Component = component,
  256. Icon = "ele-DataAnalysis",
  257. Type = MenuTypeEnum.Menu,
  258. CreateTime = ct,
  259. OrderNo = order,
  260. Remark = title
  261. };
  262. }
  263. }
  264. /// <summary>
  265. /// 数据中台管理:集中承载数据源、同步任务、日志和质量看板;调度能力跳转复用 Admin.NET 任务调度。
  266. /// </summary>
  267. private static IEnumerable<SysMenu> BuildDataPlatformSeedMenus(DateTime ct)
  268. {
  269. const long dataPlatformDirId = 1320990000400L;
  270. yield return new SysMenu
  271. {
  272. Id = dataPlatformDirId,
  273. Pid = AidopRootId,
  274. Title = "数据中台管理",
  275. Path = "/aidop/data-platform",
  276. Name = "aidopDataPlatformRoot",
  277. Component = "Layout",
  278. Icon = "ele-SetUp",
  279. Type = MenuTypeEnum.Dir,
  280. CreateTime = ct,
  281. OrderNo = 253,
  282. Redirect = "/aidop/data-platform/overview",
  283. Remark = "Ai-DOP 数据中台管理入口,调度能力复用平台任务调度"
  284. };
  285. var children = new (long Id, string Path, string Name, string Title, string Component, string Icon, int Order, string Remark)[]
  286. {
  287. (1320990000401L, "/aidop/data-platform/overview", "aidopDataPlatformOverview", "数据中台工作台", "/aidop/data-platform/overview", "ele-DataBoard", 10, "数据中台质量与运行概览"),
  288. (1320990000402L, "/aidop/data-platform/data-map", "aidopDataPlatformDataMap", "数据地图", "/aidop/data-platform/dataMap", "ele-Share", 20, "数据源、接入方式、处理层级和服务出口可视化"),
  289. (1320990000403L, "/aidop/data-platform/sources", "aidopDataPlatformSources", "数据源管理", "/aidop/data-platform/sources", "ele-Coin", 30, "外部系统、数据库与 API 连接配置入口"),
  290. (1320990000404L, "/aidop/data-platform/sync-tasks", "aidopDataPlatformSyncTasks", "同步配置中心", "/aidop/data-platform/syncTasks", "ele-Operation", 40, "外部系统标准化接入、同步任务、字段映射、参数公式、调度策略与运行追踪"),
  291. (1320990000405L, "/aidop/data-platform/sync-logs", "aidopDataPlatformSyncLogs", "数据任务日志", "/aidop/data-platform/syncLogs", "ele-Tickets", 50, "数据任务批次日志与异常样本入口"),
  292. (1320990000407L, "/aidop/data-platform/action-run-logs", "aidopDataPlatformActionRunLogs", "业务动作日志", "/aidop/data-platform/actionRunLogs", "ele-Document", 55, "订单评审、排程、下达、采购闭环等动作运行日志"),
  293. (1320990000408L, "/aidop/data-platform/outbox", "aidopDataPlatformOutbox", "出站回写队列", "/aidop/data-platform/outbox", "ele-Upload", 57, "Outbox 死信监控与手工重推"),
  294. (1320990000406L, "/aidop/data-platform/mdp-monitor", "aidopDataPlatformMdpMonitor", "MDP运行监控", "/aidop/data-platform/mdpMonitor", "ele-Monitor", 60, "统一查看 S1/S3 等模块 MDP 同步与转换运行状态"),
  295. };
  296. foreach (var (id, path, name, title, component, icon, order, remark) in children)
  297. {
  298. yield return new SysMenu
  299. {
  300. Id = id,
  301. Pid = dataPlatformDirId,
  302. Title = title,
  303. Path = path,
  304. Name = name,
  305. Component = component,
  306. Icon = icon,
  307. Type = MenuTypeEnum.Menu,
  308. CreateTime = ct,
  309. OrderNo = order,
  310. Remark = remark
  311. };
  312. }
  313. }
  314. private static string ResolveComponent(string modCode, int leafIndex) =>
  315. ComponentOverrides.TryGetValue((modCode, leafIndex), out var c) ? c : "/aidop/planning/index";
  316. private static readonly Dictionary<(string Mod, int Leaf), string> ComponentOverrides = new()
  317. {
  318. { ("S1", 3), "/aidop/kanban/s1" },
  319. { ("S4", 4), "/aidop/kanban/s4" },
  320. };
  321. /// <summary>S1 等模块下叶子菜单 path 覆盖(目录化后使用语义路径)。</summary>
  322. private static readonly Dictionary<(string Mod, int Leaf), string> PathOverrides = new()
  323. {
  324. { ("S1", 1), "/aidop/s1/order-mgmt" },
  325. { ("S1", 2), "/aidop/s1/workorder-mgmt" },
  326. { ("S1", 3), "/aidop/s1/SalesKanBan" },
  327. { ("S2", 1), "/aidop/s2/production-scheduling" },
  328. { ("S2", 2), "/aidop/s2/operation-plan" },
  329. { ("S2", 3), "/aidop/s2/collaboration-kanban" },
  330. { ("S3", 1), "/aidop/s3/material-plan" },
  331. { ("S4", 2), "/aidop/s4/delivery" },
  332. { ("S4", 3), "/aidop/s4/return-mgmt" },
  333. { ("S4", 4), "/aidop/s4/execution-kanban" },
  334. { ("S5", 1), "/aidop/s5/iqc" },
  335. { ("S5", 2), "/aidop/s5/warehouse" },
  336. { ("S5", 3), "/aidop/s5/inventory" },
  337. { ("S5", 4), "/aidop/s5/warehouse-kanban" },
  338. { ("S6", 1), "/aidop/s6/production-record" },
  339. { ("S6", 2), "/aidop/s6/process-quality" },
  340. { ("S6", 3), "/aidop/s6/equipment-tooling" },
  341. { ("S6", 4), "/aidop/s6/execution-kanban" },
  342. { ("S7", 1), "/aidop/s7/fqc" },
  343. { ("S7", 2), "/aidop/s7/production-receipt" },
  344. { ("S7", 3), "/aidop/s7/finished-outbound" },
  345. { ("S7", 4), "/aidop/s7/finished-warehouse-kanban" },
  346. };
  347. /// <summary>S1 等模块下叶子菜单 route name 覆盖。</summary>
  348. private static readonly Dictionary<(string Mod, int Leaf), string> NameOverrides = new()
  349. {
  350. { ("S1", 1), "aidopS1OrderMgmt" },
  351. { ("S1", 2), "aidopS1WorkOrderMgmt" },
  352. { ("S2", 1), "aidopS2ProductionScheduling" },
  353. { ("S2", 2), "aidopS2OperationPlan" },
  354. { ("S2", 3), "aidopS2CollaborationKanban" },
  355. { ("S3", 1), "aidopS3MaterialPlan" },
  356. { ("S4", 2), "aidopS4Delivery" },
  357. { ("S4", 3), "aidopS4ReturnMgmt" },
  358. { ("S4", 4), "aidopS4ExecutionKanban" },
  359. { ("S5", 1), "aidopS5Iqc" },
  360. { ("S5", 2), "aidopS5Warehouse" },
  361. { ("S5", 3), "aidopS5Inventory" },
  362. { ("S5", 4), "aidopS5WarehouseKanban" },
  363. { ("S6", 1), "aidopS6ProductionRecord" },
  364. { ("S6", 2), "aidopS6ProcessQuality" },
  365. { ("S6", 3), "aidopS6EquipmentTooling" },
  366. { ("S6", 4), "aidopS6ExecutionKanban" },
  367. { ("S7", 1), "aidopS7Fqc" },
  368. { ("S7", 2), "aidopS7ProductionReceipt" },
  369. { ("S7", 3), "aidopS7FinishedOutbound" },
  370. { ("S7", 4), "aidopS7FinishedWarehouseKanban" },
  371. };
  372. /// <summary>
  373. /// 需要从 Menu 提升为 Dir(目录)的叶子节点;用于承载子级菜单。
  374. /// </summary>
  375. private static readonly HashSet<(string Mod, int Leaf)> DirOverrides = new()
  376. {
  377. { ("S0", 1) }, // 数据建模 → 目录,产销建模挂在其下
  378. { ("S1", 1) }, // 订单管理 → 目录(销售订单、合同评审)
  379. { ("S1", 2) }, // 工单管理 → 目录(工单列表、工单下达)
  380. { ("S1", 3) }, // 产销协同看板 → 目录(指标看板、需求明细核验)
  381. { ("S2", 1) }, // 生产排程 → 目录(工单工序排程、排产异常记录)
  382. { ("S2", 2) }, // 作业计划 → 目录(可执行日计划、产线日历等)
  383. { ("S2", 3) }, // 制造协同看板 → 目录(工单执行进度看板)
  384. { ("S3", 1) }, // 物料计划 → 目录(物料需求计划)
  385. { ("S4", 2) }, // 交货管理 → 目录(供应商交货管理、供应商发货单)
  386. { ("S4", 3) }, // 退货管理 → 目录(采购退货单)
  387. { ("S5", 1) }, // 来料检验 → 目录(IQC 任务、IQC 结果)
  388. { ("S5", 2) }, // 仓储管理 → 目录(委外发料、采购收货、生产领料/退料/入库)
  389. { ("S5", 3) }, // 库存数据 → 目录(标签查询、暂收在检、库存/进出存查询、盘点确认/结果)
  390. { ("S5", 4) }, // 物料仓储看板 → 目录(收料/发料任务看板、库存周转、库龄分析)
  391. { ("S6", 1) }, // 生产记录管理 → 目录(生产指令单列表)
  392. { ("S6", 2) }, // 过程质量管理 → 目录(过程检验单列表)
  393. { ("S6", 3) }, // 设备工装管理 → 目录(生产设备台账、模工具台账)
  394. { ("S6", 4) }, // 生产执行看板 → 目录(工单/车间效率/OEE/工时)
  395. { ("S7", 1) }, // 成品质量管理 → 目录(FQC 任务、FQC 结果)
  396. { ("S7", 2) }, // 生产入库管理 → 目录(生产入库单列表)
  397. { ("S7", 3) }, // 成品出库管理 → 目录(销售发货通知)
  398. { ("S7", 4) }, // 成品仓储看板 → 目录(发货任务、成品滞销)
  399. };
  400. private static IEnumerable<SysMenu> BuildS4DeliveryMenus(DateTime ct)
  401. {
  402. const long deliveryDirId = 1322000000012L;
  403. const long baseId = 1329004100000L;
  404. yield return new SysMenu
  405. {
  406. Id = baseId + 1,
  407. Pid = deliveryDirId,
  408. Title = "供应商交货管理",
  409. Path = "/aidop/s4/delivery/supplier-delivery-management",
  410. Name = "aidopS4SupplierDeliveryManagement",
  411. Component = "/aidop/s4/delivery/supplierDeliveryManagementList",
  412. Icon = "ele-Document",
  413. Type = MenuTypeEnum.Menu,
  414. CreateTime = ct,
  415. OrderNo = 10,
  416. Remark = "S4 供应商交货管理"
  417. };
  418. yield return new SysMenu
  419. {
  420. Id = baseId + 2,
  421. Pid = deliveryDirId,
  422. Title = "供应商发货单",
  423. Path = "/aidop/s4/delivery/supplier-shipment",
  424. Name = "aidopS4SupplierShipment",
  425. Component = "/aidop/s4/delivery/supplierShipmentList",
  426. Icon = "ele-Tickets",
  427. Type = MenuTypeEnum.Menu,
  428. CreateTime = ct,
  429. OrderNo = 20,
  430. Remark = "S4 供应商发货单"
  431. };
  432. // 隐藏路由:用于「生成发货单 / 编辑 / 查看」跳转
  433. yield return new SysMenu
  434. {
  435. Id = baseId + 3,
  436. Pid = deliveryDirId,
  437. Title = "发货单表单",
  438. Path = "/aidop/s4/delivery/supplier-shipment-form",
  439. Name = "aidopS4SupplierShipmentForm",
  440. Component = "/aidop/s4/delivery/supplierShipmentForm",
  441. Icon = "ele-Document",
  442. Type = MenuTypeEnum.Menu,
  443. CreateTime = ct,
  444. OrderNo = 90,
  445. IsHide = true,
  446. Remark = "S4 发货单新增/编辑/查看表单"
  447. };
  448. }
  449. private static IEnumerable<SysMenu> BuildS4ReturnMenus(DateTime ct)
  450. {
  451. const long returnDirId = 1322000000013L;
  452. const long baseId = 1329004200000L;
  453. yield return new SysMenu
  454. {
  455. Id = baseId + 1,
  456. Pid = returnDirId,
  457. Title = "采购退货单",
  458. Path = "/aidop/s4/return-mgmt/purchase-return-order",
  459. Name = "aidopS4PurchaseReturnOrder",
  460. Component = "/aidop/s4/return/purchaseReturnOrderList",
  461. Icon = "ele-Document",
  462. Type = MenuTypeEnum.Menu,
  463. CreateTime = ct,
  464. OrderNo = 10,
  465. Remark = "S4 采购退货单"
  466. };
  467. yield return new SysMenu
  468. {
  469. Id = baseId + 2,
  470. Pid = returnDirId,
  471. Title = "采购退货单表单",
  472. Path = "/aidop/s4/return-mgmt/purchase-return-order-form",
  473. Name = "aidopS4PurchaseReturnOrderForm",
  474. Component = "/aidop/s4/return/purchaseReturnOrderForm",
  475. Icon = "ele-Document",
  476. Type = MenuTypeEnum.Menu,
  477. CreateTime = ct,
  478. OrderNo = 90,
  479. IsHide = true,
  480. Remark = "S4 采购退货单表单(新增/编辑/查看)"
  481. };
  482. yield return new SysMenu
  483. {
  484. Id = baseId + 3,
  485. Pid = returnDirId,
  486. Title = "IQC 退货查询",
  487. Path = "/aidop/s4/return-mgmt/iqc-return-query",
  488. Name = "aidopS4IqcReturnQuery",
  489. Component = "/aidop/s4/return/iqcReturnQueryList",
  490. Icon = "ele-Search",
  491. Type = MenuTypeEnum.Menu,
  492. CreateTime = ct,
  493. OrderNo = 20,
  494. Remark = "S4 IQC 退货查询(只读列表)"
  495. };
  496. }
  497. /// <summary>
  498. /// S5 物料仓储三级菜单骨架;真实业务页面未交付前统一挂 /aidop/planning/index(AidopDemoShell 白名单占位)。
  499. /// </summary>
  500. private static IEnumerable<SysMenu> BuildS5MaterialWarehouseMenus(DateTime ct)
  501. {
  502. const string placeholderComponent = "/aidop/planning/index";
  503. // 来料检验 (1322000000015) 下 3 个三级(申请/任务/结果列表均为真实只读页面)
  504. const long iqcDirId = 1322000000015L;
  505. const long iqcBase = 1329015010000L;
  506. yield return new SysMenu { Id = iqcBase + 3, Pid = iqcDirId, Title = "来料检验申请列表", Path = "/aidop/s5/iqc/application-list", Name = "aidopS5IqcApplicationList", Component = "/aidop/s5/iqc/iqcApplicationList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 5, Remark = "S5 来料检验申请列表(只读列表)" };
  507. yield return new SysMenu { Id = iqcBase + 1, Pid = iqcDirId, Title = "来料检验任务列表", Path = "/aidop/s5/iqc/task-list", Name = "aidopS5IqcTaskList", Component = "/aidop/s5/iqc/iqcTaskList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S5 来料检验任务列表(只读列表)" };
  508. yield return new SysMenu { Id = iqcBase + 2, Pid = iqcDirId, Title = "来料检验结果列表", Path = "/aidop/s5/iqc/result-list", Name = "aidopS5IqcResultList", Component = "/aidop/s5/iqc/iqcResultList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S5 来料检验结果列表(只读列表)" };
  509. // 仓储管理 (1322000000016) 下 5 个三级
  510. const long warehouseDirId = 1322000000016L;
  511. const long warehouseBase = 1329015020000L;
  512. yield return new SysMenu { Id = warehouseBase + 1, Pid = warehouseDirId, Title = "委外发料单", Path = "/aidop/s5/warehouse/outsource-issue", Name = "aidopS5WarehouseOutsourceIssue", Component = "/aidop/s5/warehouse/outsourceIssueList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S5 委外发料单(只读骨架,真实数据源待补证)" };
  513. yield return new SysMenu { Id = warehouseBase + 2, Pid = warehouseDirId, Title = "采购收货单", Path = "/aidop/s5/warehouse/purchase-receipt", Name = "aidopS5WarehousePurchaseReceipt", Component = "/aidop/s5/warehouse/purchaseReceiptList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S5 采购收货单(只读列表,数据中台标准层 mdp_std_purchase_receipt)" };
  514. yield return new SysMenu { Id = warehouseBase + 3, Pid = warehouseDirId, Title = "生产领料单", Path = "/aidop/s5/warehouse/production-issue", Name = "aidopS5WarehouseProductionIssue", Component = "/aidop/s5/warehouse/productionIssueList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 30, Remark = "S5 生产领料单(只读列表,数据中台标准层 mdp_std_production_issue)" };
  515. yield return new SysMenu { Id = warehouseBase + 4, Pid = warehouseDirId, Title = "生产退料单", Path = "/aidop/s5/warehouse/production-return", Name = "aidopS5WarehouseProductionReturn", Component = "/aidop/s5/warehouse/productionReturnList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 40, Remark = "S5 生产退料单(只读 head-detail,数据中台标准层 mdp_std_production_return)" };
  516. yield return new SysMenu { Id = warehouseBase + 5, Pid = warehouseDirId, Title = "生产入库单", Path = "/aidop/s5/warehouse/production-receipt", Name = "aidopS5WarehouseProductionReceipt", Component = "/aidop/s5/warehouse/productionReceiptList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 50, Remark = "S5 生产入库单(只读扁平,数据中台标准层 mdp_std_production_receipt)" };
  517. // WMS 主数据(165 经 Outbox,WP7 §2)
  518. yield return new SysMenu { Id = warehouseBase + 6, Pid = warehouseDirId, Title = "WMS部门", Path = "/aidop/s5/wms-base/department", Name = "aidopS5WmsBaseDepartment", Component = "/aidop/s5/wms-base/wmsBaseMasterList", Icon = "ele-OfficeBuilding", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 60, Remark = "S5 WMS DepartmentMaster 维护(165 Outbox)" };
  519. yield return new SysMenu { Id = warehouseBase + 7, Pid = warehouseDirId, Title = "WMS员工", Path = "/aidop/s5/wms-base/employee", Name = "aidopS5WmsBaseEmployee", Component = "/aidop/s5/wms-base/wmsBaseMasterList", Icon = "ele-User", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 70, Remark = "S5 WMS EmployeeMaster 维护(165 Outbox)" };
  520. yield return new SysMenu { Id = warehouseBase + 8, Pid = warehouseDirId, Title = "WMS库位", Path = "/aidop/s5/wms-base/location", Name = "aidopS5WmsBaseLocation", Component = "/aidop/s5/wms-base/wmsBaseMasterList", Icon = "ele-Place", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 80, Remark = "S5 WMS LocationMaster 维护(165 Outbox)" };
  521. yield return new SysMenu { Id = warehouseBase + 9, Pid = warehouseDirId, Title = "WMS货架", Path = "/aidop/s5/wms-base/location-shelf", Name = "aidopS5WmsBaseLocationShelf", Component = "/aidop/s5/wms-base/wmsBaseMasterList", Icon = "ele-Grid", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 90, Remark = "S5 WMS LocationShelfMaster 维护(165 Outbox)" };
  522. yield return new SysMenu { Id = warehouseBase + 10, Pid = warehouseDirId, Title = "WMS物料职责", Path = "/aidop/s5/wms-base/emp-duty", Name = "aidopS5WmsBaseEmpDuty", Component = "/aidop/s5/wms-base/wmsBaseMasterList", Icon = "ele-UserFilled", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 100, Remark = "S5 WMS EmpWorkDutyMaster 维护(165 Outbox)" };
  523. yield return new SysMenu { Id = warehouseBase + 11, Pid = warehouseDirId, Title = "WMS产线打印机", Path = "/aidop/s5/wms-base/line-printer", Name = "aidopS5WmsBaseLinePrinter", Component = "/aidop/s5/wms-base/wmsBaseMasterList", Icon = "ele-Printer", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 110, Remark = "S5 WMS LinePrinter 维护(165 Outbox)" };
  524. // 库存数据 (1322000000017) 下 6 个三级
  525. const long inventoryDirId = 1322000000017L;
  526. const long inventoryBase = 1329015030000L;
  527. yield return new SysMenu { Id = inventoryBase + 1, Pid = inventoryDirId, Title = "标签查询", Path = "/aidop/s5/inventory/label-query", Name = "aidopS5InventoryLabelQuery", Component = "/aidop/s5/inventory/labelQueryList", Icon = "ele-Search", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S5 标签查询(只读列表,数据源 aidopdev.MissedPrint)" };
  528. yield return new SysMenu { Id = inventoryBase + 2, Pid = inventoryDirId, Title = "暂收在检列表", Path = "/aidop/s5/inventory/pending-inspection", Name = "aidopS5InventoryPendingInspection", Component = "/aidop/s5/inventory/pendingInspectionList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S5 暂收在检列表(只读列表)" };
  529. yield return new SysMenu { Id = inventoryBase + 3, Pid = inventoryDirId, Title = "库存查询", Path = "/aidop/s5/inventory/stock-query", Name = "aidopS5InventoryStockQuery", Component = "/aidop/s5/inventory/stockQueryList", Icon = "ele-Search", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 30, Remark = "S5 库存查询(只读列表)" };
  530. yield return new SysMenu { Id = inventoryBase + 4, Pid = inventoryDirId, Title = "进出存查询", Path = "/aidop/s5/inventory/inout-query", Name = "aidopS5InventoryInoutQuery", Component = "/aidop/s5/inventory/inoutQueryList", Icon = "ele-Search", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 40, Remark = "S5 进出存查询(只读列表)" };
  531. yield return new SysMenu { Id = inventoryBase + 5, Pid = inventoryDirId, Title = "盘点标签确认", Path = "/aidop/s5/inventory/stocktake-label", Name = "aidopS5InventoryStocktakeLabel", Component = "/aidop/s5/inventory/stocktakeLabelConfirmList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 50, Remark = "S5 盘点标签确认(只读列表)" };
  532. yield return new SysMenu { Id = inventoryBase + 6, Pid = inventoryDirId, Title = "盘点结果查询", Path = "/aidop/s5/inventory/stocktake-result", Name = "aidopS5InventoryStocktakeResult", Component = "/aidop/s5/inventory/stocktakeResultList", Icon = "ele-Search", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 60, Remark = "S5 盘点结果查询(只读列表)" };
  533. // 物料仓储看板 (1322000000018) 下 4 个三级
  534. const long warehouseKanbanDirId = 1322000000018L;
  535. const long warehouseKanbanBase = 1329015040000L;
  536. yield return new SysMenu { Id = warehouseKanbanBase + 1, Pid = warehouseKanbanDirId, Title = "收料任务看板", Path = "/aidop/s5/warehouse-kanban/receiving-task", Name = "aidopS5WarehouseKanbanReceivingTask", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S5 收料任务看板(真实页面待交付)" };
  537. yield return new SysMenu { Id = warehouseKanbanBase + 2, Pid = warehouseKanbanDirId, Title = "发料任务看板", Path = "/aidop/s5/warehouse-kanban/issuing-task", Name = "aidopS5WarehouseKanbanIssuingTask", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S5 发料任务看板(真实页面待交付)" };
  538. yield return new SysMenu { Id = warehouseKanbanBase + 3, Pid = warehouseKanbanDirId, Title = "库存周转报表", Path = "/aidop/s5/warehouse-kanban/turnover-report", Name = "aidopS5WarehouseKanbanTurnoverReport", Component = placeholderComponent, Icon = "ele-DataAnalysis", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 30, Remark = "S5 库存周转报表(真实页面待交付)" };
  539. yield return new SysMenu { Id = warehouseKanbanBase + 4, Pid = warehouseKanbanDirId, Title = "物料库龄分析", Path = "/aidop/s5/warehouse-kanban/age-analysis", Name = "aidopS5WarehouseKanbanAgeAnalysis", Component = placeholderComponent, Icon = "ele-DataAnalysis", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 40, Remark = "S5 物料库龄分析(真实页面待交付)" };
  540. }
  541. /// <summary>
  542. /// S6 生产执行三级菜单骨架;真实业务页面未交付前统一挂 /aidop/planning/index(AidopDemoShell 白名单占位)。
  543. /// </summary>
  544. private static IEnumerable<SysMenu> BuildS6ProductionExecutionMenus(DateTime ct)
  545. {
  546. const string placeholderComponent = "/aidop/planning/index";
  547. // 生产记录管理 (1322000000019) 下 1 个三级
  548. const long productionRecordDirId = 1322000000019L;
  549. const long productionRecordBase = 1329016010000L;
  550. yield return new SysMenu { Id = productionRecordBase + 1, Pid = productionRecordDirId, Title = "生产指令单列表", Path = "/aidop/s6/production-record/order-list", Name = "aidopS6ProductionRecordOrderList", Component = placeholderComponent, Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S6 生产指令单列表(真实页面待交付)" };
  551. // 过程质量管理 (1322000000020) 下 1 个三级
  552. const long processQualityDirId = 1322000000020L;
  553. const long processQualityBase = 1329016020000L;
  554. yield return new SysMenu { Id = processQualityBase + 1, Pid = processQualityDirId, Title = "过程检验单列表", Path = "/aidop/s6/process-quality/inspection-list", Name = "aidopS6ProcessQualityInspectionList", Component = "/aidop/s6/process-quality/processInspectionList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S6 过程检验单列表(只读列表)" };
  555. // 设备工装管理 (1322000000021) 下 2 个三级
  556. const long equipmentToolingDirId = 1322000000021L;
  557. const long equipmentToolingBase = 1329016030000L;
  558. yield return new SysMenu { Id = equipmentToolingBase + 1, Pid = equipmentToolingDirId, Title = "生产设备台账", Path = "/aidop/s6/equipment-tooling/equipment-ledger", Name = "aidopS6EquipmentToolingEquipmentLedger", Component = "/aidop/s6/equipment-tooling/productionEquipmentLedger", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S6 生产设备台账(只读列表)" };
  559. yield return new SysMenu { Id = equipmentToolingBase + 2, Pid = equipmentToolingDirId, Title = "模工具台账管理", Path = "/aidop/s6/equipment-tooling/tooling-ledger", Name = "aidopS6EquipmentToolingToolingLedger", Component = "/aidop/s6/equipment-tooling/toolingLedgerList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S6 模工具台账管理(只读列表)" };
  560. // 生产执行看板 (1322000000022) 下 4 个三级
  561. const long executionKanbanDirId = 1322000000022L;
  562. const long executionKanbanBase = 1329016040000L;
  563. yield return new SysMenu { Id = executionKanbanBase + 1, Pid = executionKanbanDirId, Title = "工单执行看板", Path = "/aidop/s6/execution-kanban/work-order", Name = "aidopS6ExecutionKanbanWorkOrder", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S6 工单执行看板(真实页面待交付)" };
  564. yield return new SysMenu { Id = executionKanbanBase + 2, Pid = executionKanbanDirId, Title = "车间效率看板", Path = "/aidop/s6/execution-kanban/workshop-efficiency", Name = "aidopS6ExecutionKanbanWorkshopEfficiency", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S6 车间效率看板(真实页面待交付)" };
  565. yield return new SysMenu { Id = executionKanbanBase + 3, Pid = executionKanbanDirId, Title = "设备OEE看板", Path = "/aidop/s6/execution-kanban/equipment-oee", Name = "aidopS6ExecutionKanbanEquipmentOee", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 30, Remark = "S6 设备OEE看板(真实页面待交付)" };
  566. yield return new SysMenu { Id = executionKanbanBase + 4, Pid = executionKanbanDirId, Title = "员工工时看板", Path = "/aidop/s6/execution-kanban/labor-hours", Name = "aidopS6ExecutionKanbanLaborHours", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 40, Remark = "S6 员工工时看板(真实页面待交付)" };
  567. }
  568. /// <summary>
  569. /// S7 成品仓储三级菜单骨架;真实业务页面未交付前统一挂 /aidop/planning/index(AidopDemoShell 白名单占位)。
  570. /// </summary>
  571. private static IEnumerable<SysMenu> BuildS7FinishedWarehouseMenus(DateTime ct)
  572. {
  573. const string placeholderComponent = "/aidop/planning/index";
  574. // 成品质量管理 (1322000000023) 下 2 个三级
  575. const long fqcDirId = 1322000000023L;
  576. const long fqcBase = 1329017010000L;
  577. yield return new SysMenu { Id = fqcBase + 1, Pid = fqcDirId, Title = "FQC检验任务列表", Path = "/aidop/s7/fqc/task-list", Name = "aidopS7FqcTaskList", Component = "/aidop/s7/fqc/fqcInspectionTaskList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S7 FQC检验任务列表(只读列表)" };
  578. yield return new SysMenu { Id = fqcBase + 2, Pid = fqcDirId, Title = "FQC检验结果列表", Path = "/aidop/s7/fqc/result-list", Name = "aidopS7FqcResultList", Component = "/aidop/s7/fqc/fqcInspectionResultList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S7 FQC检验结果列表(只读列表)" };
  579. // 成品检规判定维护(Phase 1B):查看不设权限;写端点由下方 Btn 权限点门禁(JwtHandler 全局校验 routeName=S7FqcSpecRule:save-rule/clear-rule)
  580. yield return new SysMenu { Id = fqcBase + 3, Pid = fqcDirId, Title = "成品检规判定维护", Path = "/aidop/s7/fqc/spec-rule", Name = "aidopS7FqcSpecRule", Component = "/aidop/s7/fqc/fqcSpecRuleList", Icon = "ele-SetUp", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 30, Remark = "S7 成品检规结构化判定维护" };
  581. yield return new SysMenu { Id = fqcBase + 4, Pid = fqcBase + 3, Title = "保存判定条件", Permission = "S7FqcSpecRule:save-rule", Name = "aidopS7FqcSpecRuleSave", Type = MenuTypeEnum.Btn, CreateTime = ct, OrderNo = 10, Remark = "S7 检规判定维护-保存权限点" };
  582. yield return new SysMenu { Id = fqcBase + 5, Pid = fqcBase + 3, Title = "清空判定条件", Permission = "S7FqcSpecRule:clear-rule", Name = "aidopS7FqcSpecRuleClear", Type = MenuTypeEnum.Btn, CreateTime = ct, OrderNo = 20, Remark = "S7 检规判定维护-清空权限点" };
  583. // 成品报检(Phase 1C):引用完工工单创建报检
  584. yield return new SysMenu { Id = fqcBase + 6, Pid = fqcDirId, Title = "成品报检", Path = "/aidop/s7/fqc/apply", Name = "aidopS7FqcApply", Component = "/aidop/s7/fqc/fqcApplyList", Icon = "ele-DocumentAdd", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 5, Remark = "S7 成品报检(引用完工工单创建)" };
  585. // 检验单录入(Phase 1E):从报检「录入检验」进入的独立隐藏路由 tab(不在侧栏显示)
  586. yield return new SysMenu { Id = fqcBase + 7, Pid = fqcDirId, Title = "检验单录入", Path = "/aidop/s7/fqc/insp-detail", Name = "aidopS7FqcInspDetail", Component = "/aidop/s7/fqc/fqcInspDetail", Icon = "ele-EditPen", Type = MenuTypeEnum.Menu, IsHide = true, CreateTime = ct, OrderNo = 40, Remark = "S7 检验单录入(Phase 1J 起为兼容重定向壳→result-detail)" };
  587. // Phase 1J:FQC 检验单详情统一页(录入/审核/处置/只读由 flowState 决定)。隐藏路由,任务列表/结果列表/审批中心 N1-N3 均跳此。
  588. yield return new SysMenu { Id = fqcBase + 8, Pid = fqcDirId, Title = "FQC检验单详情", Path = "/aidop/s7/fqc/result-detail", Name = "aidopS7FqcResultDetail", Component = "/aidop/s7/fqc/fqcInspResultDetail", Icon = "ele-Document", Type = MenuTypeEnum.Menu, IsHide = true, CreateTime = ct, OrderNo = 45, Remark = "S7 FQC检验单详情统一页(隐藏路由,列表/审批中心跳转)" };
  589. // 生产入库管理 (1322000000024) 下 1 个三级
  590. const long productionReceiptDirId = 1322000000024L;
  591. const long productionReceiptBase = 1329017020000L;
  592. yield return new SysMenu { Id = productionReceiptBase + 1, Pid = productionReceiptDirId, Title = "生产入库单列表", Path = "/aidop/s7/production-receipt/order-list", Name = "aidopS7ProductionReceiptOrderList", Component = "/aidop/s7/production-receipt/productionInboundList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S7 生产入库单列表(只读列表)" };
  593. // 成品出库管理 (1322000000025) 下 1 个三级
  594. const long finishedOutboundDirId = 1322000000025L;
  595. const long finishedOutboundBase = 1329017030000L;
  596. yield return new SysMenu { Id = finishedOutboundBase + 1, Pid = finishedOutboundDirId, Title = "销售发货通知", Path = "/aidop/s7/finished-outbound/sales-shipment-notice", Name = "aidopS7FinishedOutboundSalesShipmentNotice", Component = "/aidop/s7/finished-outbound/salesDeliveryNoticeList", Icon = "ele-Document", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S7 销售发货通知(只读列表)" };
  597. // 成品仓储看板 (1322000000026) 下 2 个三级
  598. const long finishedWarehouseKanbanDirId = 1322000000026L;
  599. const long finishedWarehouseKanbanBase = 1329017040000L;
  600. yield return new SysMenu { Id = finishedWarehouseKanbanBase + 1, Pid = finishedWarehouseKanbanDirId, Title = "发货任务看板", Path = "/aidop/s7/finished-warehouse-kanban/shipment-task", Name = "aidopS7FinishedWarehouseKanbanShipmentTask", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 10, Remark = "S7 发货任务看板(真实页面待交付)" };
  601. yield return new SysMenu { Id = finishedWarehouseKanbanBase + 2, Pid = finishedWarehouseKanbanDirId, Title = "成品滞销看板", Path = "/aidop/s7/finished-warehouse-kanban/sluggish", Name = "aidopS7FinishedWarehouseKanbanSluggish", Component = placeholderComponent, Icon = "ele-DataBoard", Type = MenuTypeEnum.Menu, CreateTime = ct, OrderNo = 20, Remark = "S7 成品滞销看板(真实页面待交付)" };
  602. }
  603. private static IEnumerable<SysMenu> BuildS4ExecutionKanbanMenus(DateTime ct)
  604. {
  605. const long kanbanDirId = 1322000000014L;
  606. const long baseId = 1329004300000L;
  607. yield return new SysMenu
  608. {
  609. Id = baseId + 1,
  610. Pid = kanbanDirId,
  611. Title = "采购执行看板主页",
  612. Path = "/aidop/s4/execution-kanban/dashboard",
  613. Name = "aidopS4ExecutionKanbanDashboard",
  614. Component = "/aidop/kanban/s4",
  615. Icon = "ele-DataBoard",
  616. Type = MenuTypeEnum.Menu,
  617. CreateTime = ct,
  618. OrderNo = 10,
  619. Remark = "S4 采购执行看板主页(/aidop/kanban/s4)"
  620. };
  621. yield return new SysMenu
  622. {
  623. Id = baseId + 2,
  624. Pid = kanbanDirId,
  625. Title = "供应商欠料看板",
  626. Path = "/aidop/s4/execution-kanban/supplier-shortage-kanban",
  627. Name = "aidopS4SupplierShortageKanban",
  628. Component = "/aidop/s4/execution-kanban/supplierShortageKanbanList",
  629. Icon = "ele-List",
  630. Type = MenuTypeEnum.Menu,
  631. CreateTime = ct,
  632. OrderNo = 20,
  633. Remark = "S4 供应商欠料看板(WorkOrdDetailTotalKB)"
  634. };
  635. }
  636. private static string BuildRemark(string code, (string Title, string Desc, string Complexity, string Days, string Note) leaf)
  637. {
  638. var notePart = string.IsNullOrWhiteSpace(leaf.Note) ? "" : $" | {leaf.Note}";
  639. var s = $"[{code}|{leaf.Complexity}|{leaf.Days}人天] {leaf.Desc}{notePart}";
  640. return s.Length <= 256 ? s : s[..256];
  641. }
  642. private static IEnumerable<SysMenu> BuildS0SalesMenus(DateTime ct)
  643. {
  644. // 与 ModuleDefinitions 中 S0 首项「数据建模」的生成 Id 一致(全局 menuSeq=1 → 1322000000001)
  645. const long s0DataModelingMenuId = 1322000000001L;
  646. const long subDirId = 1329002000000L;
  647. yield return new SysMenu
  648. {
  649. Id = subDirId,
  650. Pid = s0DataModelingMenuId,
  651. Title = "产销建模",
  652. Path = "/aidop/s0/sales",
  653. Name = "aidopS0Sales",
  654. Component = "Layout",
  655. Icon = "ele-ShoppingCart",
  656. Type = MenuTypeEnum.Dir,
  657. CreateTime = ct,
  658. OrderNo = 20,
  659. Remark = "S0 产销建模"
  660. };
  661. yield return new SysMenu
  662. {
  663. Id = subDirId + 1,
  664. Pid = subDirId,
  665. Title = "客户信息维护",
  666. Path = "/aidop/s0/sales/customer",
  667. Name = "aidopS0SalesCustomer",
  668. Component = "/aidop/s0/sales/CustomerList",
  669. Icon = "ele-User",
  670. Type = MenuTypeEnum.Menu,
  671. CreateTime = ct,
  672. OrderNo = 1,
  673. Remark = "S0 客户信息维护"
  674. };
  675. yield return new SysMenu
  676. {
  677. Id = subDirId + 2,
  678. Pid = subDirId,
  679. Title = "物料维护列表",
  680. Path = "/aidop/s0/sales/material",
  681. Name = "aidopS0SalesMaterial",
  682. Component = "/aidop/s0/sales/MaterialList",
  683. Icon = "ele-Box",
  684. Type = MenuTypeEnum.Menu,
  685. CreateTime = ct,
  686. OrderNo = 2,
  687. Remark = "S0 物料维护列表"
  688. };
  689. yield return new SysMenu
  690. {
  691. Id = subDirId + 3,
  692. Pid = subDirId,
  693. Title = "订单优先级配置",
  694. Path = "/aidop/s0/sales/order-priority-rule",
  695. Name = "aidopS0SalesOrderPriorityRule",
  696. Component = "/aidop/s0/sales/OrderPriorityRuleList",
  697. Icon = "ele-Sort",
  698. Type = MenuTypeEnum.Menu,
  699. CreateTime = ct,
  700. OrderNo = 3,
  701. Remark = "S0 订单优先级配置"
  702. };
  703. yield return new SysMenu
  704. {
  705. Id = subDirId + 4,
  706. Pid = subDirId,
  707. Title = "合同评审周期",
  708. Path = "/aidop/s0/sales/contract-review-cycle",
  709. Name = "aidopS0SalesContractReviewCycle",
  710. Component = "/aidop/s0/sales/ContractReviewCycleList",
  711. Icon = "ele-Clock",
  712. Type = MenuTypeEnum.Menu,
  713. CreateTime = ct,
  714. OrderNo = 4,
  715. Remark = "S0 合同评审周期标准配置"
  716. };
  717. yield return new SysMenu
  718. {
  719. Id = subDirId + 5,
  720. Pid = subDirId,
  721. Title = "产品设计周期",
  722. Path = "/aidop/s0/sales/product-design-cycle",
  723. Name = "aidopS0SalesProductDesignCycle",
  724. Component = "/aidop/s0/sales/ProductDesignCycleList",
  725. Icon = "ele-Timer",
  726. Type = MenuTypeEnum.Menu,
  727. CreateTime = ct,
  728. OrderNo = 5,
  729. Remark = "S0 产品设计周期标准配置"
  730. };
  731. yield return new SysMenu
  732. {
  733. Id = subDirId + 6,
  734. Pid = subDirId,
  735. Title = "订单评审周期",
  736. Path = "/aidop/s0/sales/order-review-cycle",
  737. Name = "aidopS0SalesOrderReviewCycle",
  738. Component = "/aidop/s0/sales/OrderReviewCycleList",
  739. Icon = "ele-AlarmClock",
  740. Type = MenuTypeEnum.Menu,
  741. CreateTime = ct,
  742. OrderNo = 6,
  743. Remark = "S0 订单评审周期标准配置"
  744. };
  745. yield return new SysMenu
  746. {
  747. Id = subDirId + 7,
  748. Pid = subDirId,
  749. Title = "齐套检查排除规则",
  750. Path = "/aidop/s0/sales/kitting-exclude-rule",
  751. Name = "aidopS0SalesKittingExcludeRule",
  752. Component = "/aidop/s0/sales/KittingExcludeRule",
  753. Icon = "ele-Filter",
  754. Type = MenuTypeEnum.Menu,
  755. CreateTime = ct,
  756. OrderNo = 7,
  757. Remark = "S0 齐套检查排除规则配置"
  758. };
  759. }
  760. private static IEnumerable<SysMenu> BuildS0ManufacturingMenus(DateTime ct)
  761. {
  762. const long s0DataModelingMenuId = 1322000000001L;
  763. const long subDirId = 1329003000000L;
  764. yield return new SysMenu
  765. {
  766. Id = subDirId,
  767. Pid = s0DataModelingMenuId,
  768. Title = "制造建模",
  769. Path = "/aidop/s0/manufacturing",
  770. Name = "aidopS0Manufacturing",
  771. Component = "Layout",
  772. Icon = "ele-SetUp",
  773. Type = MenuTypeEnum.Dir,
  774. CreateTime = ct,
  775. OrderNo = 30,
  776. Remark = "S0 制造建模"
  777. };
  778. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  779. {
  780. (1, "/aidop/s0/manufacturing/standard-bom", "aidopS0MfgStandardBom", "标准BOM列表", "/aidop/s0/manufacturing/StandardBomManagement", 10),
  781. (2, "/aidop/s0/manufacturing/standard-operation", "aidopS0MfgStandardOperation", "标准工序列表", "/aidop/s0/manufacturing/StandardProcessList", 20),
  782. (3, "/aidop/s0/manufacturing/production-line", "aidopS0MfgProductionLine", "生产线维护列表", "/aidop/s0/manufacturing/ProductionLineList", 40),
  783. (4, "/aidop/s0/manufacturing/routing", "aidopS0MfgRouting", "标准工艺路线列表", "/aidop/s0/manufacturing/RoutingList", 50),
  784. (5, "/aidop/s0/manufacturing/material-substitution", "aidopS0MfgMaterialSubstitution", "物料替代关系列表", "/aidop/s0/manufacturing/MaterialSubstitutionList", 60),
  785. (6, "/aidop/s0/manufacturing/work-order-control", "aidopS0MfgWorkOrderControl", "工单控制参数", "/aidop/s0/manufacturing/WorkOrderControlParams", 130),
  786. (8, "/aidop/s0/manufacturing/person-skill-assignment", "aidopS0MfgPersonSkillAssignment", "人员技能维护列表", "/aidop/s0/manufacturing/PersonSkillAssignmentList", 80),
  787. (9, "/aidop/s0/manufacturing/line-post", "aidopS0MfgLinePost", "产线岗位维护", "/aidop/s0/manufacturing/LinePostList", 90),
  788. (10, "/aidop/s0/manufacturing/work-center", "aidopS0MfgWorkCenter", "工作中心列表", "/aidop/s0/manufacturing/WorkCenterList", 100),
  789. (11, "/aidop/s0/manufacturing/line-material", "aidopS0MfgLineMaterial", "生产线物料维护列表", "/aidop/s0/manufacturing/LineMaterialList", 110),
  790. (12, "/aidop/s0/manufacturing/element-param-production", "aidopS0MfgElementParamProduction", "生产要素参数", "/aidop/s0/manufacturing/ProductionElementParamList", 150),
  791. (13, "/aidop/s0/manufacturing/material-process-element", "aidopS0MfgMaterialProcessElement", "物料工艺要素", "/aidop/s0/manufacturing/MaterialProcessElementList", 160),
  792. (14, "/aidop/s0/manufacturing/preprocess-element", "aidopS0MfgPreprocessElement", "前处理要素", "/aidop/s0/manufacturing/PreprocessElementList", 170),
  793. (15, "/aidop/s0/manufacturing/preprocess-element-param", "aidopS0MfgElementParamPreprocess", "前处理要素参数", "/aidop/s0/manufacturing/PreprocessElementParamList", 180),
  794. (16, "/aidop/s0/manufacturing/sop-file-type", "aidopS0MfgSopFileType", "SOP 文件类型", "/aidop/s0/manufacturing/SopFileTypeList", 190),
  795. (17, "/aidop/s0/manufacturing/sop-document", "aidopS0MfgSopDocument", "SOP 维护", "/aidop/s0/manufacturing/SopMaintenanceList", 200),
  796. };
  797. foreach (var (idOff, path, name, title, component, order) in leaves)
  798. {
  799. yield return new SysMenu
  800. {
  801. Id = subDirId + idOff,
  802. Pid = subDirId,
  803. Title = title,
  804. Path = path,
  805. Name = name,
  806. Component = component,
  807. Icon = "ele-Document",
  808. Type = MenuTypeEnum.Menu,
  809. CreateTime = ct,
  810. OrderNo = order,
  811. Remark = $"S0 {title}"
  812. };
  813. }
  814. yield return new SysMenu
  815. {
  816. Id = subDirId + 7,
  817. Pid = subDirId,
  818. Title = "人员技能",
  819. Path = "/aidop/s0/manufacturing/person-skill",
  820. Name = "aidopS0MfgPersonSkill",
  821. Component = "/aidop/s0/manufacturing/PersonnelSkillList",
  822. Icon = "ele-Document",
  823. Type = MenuTypeEnum.Menu,
  824. CreateTime = ct,
  825. OrderNo = 140,
  826. IsHide = true,
  827. Remark = "S0 人员技能(侧栏隐藏,由人员技能维护列表入口进入)"
  828. };
  829. yield return new SysMenu
  830. {
  831. Id = subDirId + 18,
  832. Pid = subDirId,
  833. Title = "选择替代方案",
  834. Path = "/aidop/s0/manufacturing/substitute-scheme-select",
  835. Name = "aidopS0MfgSubstituteSchemeSelect",
  836. Component = "/aidop/s0/manufacturing/SubstituteSchemeSelectList",
  837. Icon = "ele-List",
  838. Type = MenuTypeEnum.Menu,
  839. CreateTime = ct,
  840. OrderNo = 70,
  841. Remark = "S0 选择替代方案(只读查询)"
  842. };
  843. yield return new SysMenu
  844. {
  845. Id = subDirId + 19,
  846. Pid = subDirId,
  847. Title = "工序流转卡",
  848. Path = "/aidop/s0/manufacturing/process-flow-card",
  849. Name = "aidopS0MfgProcessFlowCard",
  850. Component = "/aidop/s0/manufacturing/ProcessFlowCardList",
  851. Icon = "ele-Tickets",
  852. Type = MenuTypeEnum.Menu,
  853. CreateTime = ct,
  854. OrderNo = 30,
  855. Remark = "S0 工序流转卡(数据源:legacy MissedPrint 只读视图)"
  856. };
  857. yield return new SysMenu
  858. {
  859. Id = subDirId + 20,
  860. Pid = subDirId,
  861. Title = "订单排程周期",
  862. Path = "/aidop/s0/manufacturing/order-schedule-cycle",
  863. Name = "aidopS0MfgOrderScheduleCycle",
  864. Component = "/aidop/s0/manufacturing/OrderScheduleCycleList",
  865. Icon = "ele-Calendar",
  866. Type = MenuTypeEnum.Menu,
  867. CreateTime = ct,
  868. OrderNo = 120,
  869. Remark = "S0 订单排程周期标准"
  870. };
  871. }
  872. private static IEnumerable<SysMenu> BuildS0SupplyMenus(DateTime ct)
  873. {
  874. const long s0DataModelingMenuId = 1322000000001L;
  875. const long subDirId = 1329004000000L;
  876. yield return new SysMenu
  877. {
  878. Id = subDirId,
  879. Pid = s0DataModelingMenuId,
  880. Title = "供应建模",
  881. Path = "/aidop/s0/supply",
  882. Name = "aidopS0Supply",
  883. Component = "Layout",
  884. Icon = "ele-Ship",
  885. Type = MenuTypeEnum.Dir,
  886. CreateTime = ct,
  887. OrderNo = 40,
  888. Remark = "S0 供应建模"
  889. };
  890. yield return new SysMenu
  891. {
  892. Id = subDirId + 1,
  893. Pid = subDirId,
  894. Title = "供应商维护",
  895. Path = "/aidop/s0/supply/supplier",
  896. Name = "aidopS0SupplySupplier",
  897. Component = "/aidop/s0/supply/SupplierList",
  898. Icon = "ele-UserFilled",
  899. Type = MenuTypeEnum.Menu,
  900. CreateTime = ct,
  901. OrderNo = 1,
  902. Remark = "S0 供应商维护"
  903. };
  904. yield return new SysMenu
  905. {
  906. Id = subDirId + 2,
  907. Pid = subDirId,
  908. Title = "货源清单",
  909. Path = "/aidop/s0/supply/sourcing-item",
  910. Name = "aidopS0SupplySourcingItem",
  911. Component = "/aidop/s0/supply/SourcingList",
  912. Icon = "ele-List",
  913. Type = MenuTypeEnum.Menu,
  914. CreateTime = ct,
  915. OrderNo = 2,
  916. Remark = "S0 货源清单(srm_purchase)"
  917. };
  918. yield return new SysMenu
  919. {
  920. Id = subDirId + 3,
  921. Pid = subDirId,
  922. Title = "品类采购前置期",
  923. Path = "/aidop/s0/supply/category-lead-time",
  924. Name = "aidopS0SupplyCategoryLeadTime",
  925. Component = "/aidop/s0/supply/CategoryLeadTimeList",
  926. Icon = "ele-Clock",
  927. Type = MenuTypeEnum.Menu,
  928. CreateTime = ct,
  929. OrderNo = 3,
  930. Remark = "S0 品类采购前置期主数据"
  931. };
  932. yield return new SysMenu
  933. {
  934. Id = subDirId + 4,
  935. Pid = subDirId,
  936. Title = "物料计划周期",
  937. Path = "/aidop/s0/supply/material-plan-cycle",
  938. Name = "aidopS0SupplyMaterialPlanCycle",
  939. Component = "/aidop/s0/supply/MaterialPlanCycleList",
  940. Icon = "ele-Timer",
  941. Type = MenuTypeEnum.Menu,
  942. CreateTime = ct,
  943. OrderNo = 4,
  944. Remark = "S0 物料计划周期标准(小时),与 S3 指标对比需约定换算"
  945. };
  946. }
  947. private static IEnumerable<SysMenu> BuildS0QualityMenus(DateTime ct)
  948. {
  949. const long s0DataModelingMenuId = 1322000000001L;
  950. const long subDirId = 1329004500000L;
  951. yield return new SysMenu
  952. {
  953. Id = subDirId,
  954. Pid = s0DataModelingMenuId,
  955. Title = "质量建模",
  956. Path = "/aidop/s0/quality",
  957. Name = "aidopS0Quality",
  958. Component = "Layout",
  959. Icon = "ele-DataAnalysis",
  960. Type = MenuTypeEnum.Dir,
  961. CreateTime = ct,
  962. OrderNo = 45,
  963. Remark = "S0 质量建模"
  964. };
  965. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  966. {
  967. (1, "/aidop/s0/quality/dictionary", "aidopS0QlyDictionary", "质量基础", "/aidop/s0/quality/QualityDictionaryPage", 10),
  968. (2, "/aidop/s0/quality/raw-whitelist", "aidopS0QlyRawWhitelist", "原材料白名单", "/aidop/s0/quality/RawWhitelistList", 20),
  969. (3, "/aidop/s0/quality/sampling-scheme", "aidopS0QlySamplingScheme", "抽样方案", "/aidop/s0/quality/SamplingSchemeList", 30),
  970. (4, "/aidop/s0/quality/instrument", "aidopS0QlyInstrument", "检验仪器", "/aidop/s0/quality/InspectionInstrumentList", 40),
  971. (13, "/aidop/s0/quality/gauge-instrument", "aidopS0QlyGaugeInstrument", "计量器具", "/aidop/s0/quality/InspectionInstrumentList", 45),
  972. (5, "/aidop/s0/quality/inspection-method", "aidopS0QlyInspectionMethod", "检验方法", "/aidop/s0/quality/InspectionMethodList", 50),
  973. (6, "/aidop/s0/quality/inspection-basis", "aidopS0QlyInspectionBasis", "检验依据", "/aidop/s0/quality/InspectionBasisList", 60),
  974. (7, "/aidop/s0/quality/inspection-standard", "aidopS0QlyInspectionStandard", "检验标准", "/aidop/s0/quality/InspectionStandardList", 70),
  975. (8, "/aidop/s0/quality/inspection-item", "aidopS0QlyInspectionItem", "检验项目", "/aidop/s0/quality/InspectionItemList", 80),
  976. (9, "/aidop/s0/quality/inspection-frequency", "aidopS0QlyInspectionFrequency", "检验频率", "/aidop/s0/quality/InspectionFrequencyList", 90),
  977. (10, "/aidop/s0/quality/inspection-plan", "aidopS0QlyInspectionPlan", "检验方案", "/aidop/s0/quality/InspectionPlanList", 100),
  978. (11, "/aidop/s0/quality/raw-inspection-spec", "aidopS0QlyRawInspectionSpec", "原材料检验规范", "/aidop/s0/quality/RawInspectionSpecList", 110),
  979. (12, "/aidop/s0/quality/process-inspection-spec", "aidopS0QlyProcessInspectionSpec", "过程检验规范", "/aidop/s0/quality/ProcessInspectionSpecList", 120),
  980. (14, "/aidop/s0/quality/fqc-inspection-spec", "aidopS0QlyFqcInspectionSpec", "FQC检验规范", "/aidop/s0/quality/FqcInspectionSpecList", 130),
  981. (15, "/aidop/s0/quality/oqc-inspection-spec", "aidopS0QlyOqcInspectionSpec", "OQC检验规范", "/aidop/s0/quality/OqcInspectionSpecList", 140),
  982. };
  983. foreach (var (idOff, path, name, title, component, order) in leaves)
  984. {
  985. yield return new SysMenu
  986. {
  987. Id = subDirId + idOff,
  988. Pid = subDirId,
  989. Title = title,
  990. Path = path,
  991. Name = name,
  992. Component = component,
  993. Icon = "ele-Document",
  994. Type = MenuTypeEnum.Menu,
  995. CreateTime = ct,
  996. OrderNo = order,
  997. Remark = $"S0 {title}"
  998. };
  999. }
  1000. }
  1001. /// <summary>
  1002. /// S8 异常协同:直接挂在「S8 异常监控」目录下,不再经过中间层「异常管理」。
  1003. /// </summary>
  1004. private static IEnumerable<SysMenu> BuildS8CollaborationMenus(DateTime ct)
  1005. {
  1006. const long s8DirId = 1321000009000L;
  1007. const long baseId = 1329008000000L;
  1008. const long s8MonitoringDirId = 1329008000020L;
  1009. // 异常监控子模块(专题大屏占位,后续接业务数据)
  1010. yield return new SysMenu
  1011. {
  1012. Id = s8MonitoringDirId,
  1013. Pid = s8DirId,
  1014. Title = "异常监控",
  1015. Path = "/aidop/s8/monitoring",
  1016. Name = "aidopS8MonitoringDir",
  1017. Component = "Layout",
  1018. Redirect = "/aidop/s8/monitoring/overview",
  1019. Icon = "ele-Monitor",
  1020. Type = MenuTypeEnum.Dir,
  1021. CreateTime = ct,
  1022. OrderNo = 8,
  1023. Remark = "S8 异常监控子模块"
  1024. };
  1025. yield return new SysMenu
  1026. {
  1027. Id = s8MonitoringDirId + 1,
  1028. Pid = s8MonitoringDirId,
  1029. Title = "异常监控大屏",
  1030. Path = "/aidop/s8/monitoring/overview",
  1031. Name = "aidopS8MonitoringOverview",
  1032. Component = "/aidop/s8/monitoring/S8MonitoringOverviewPage",
  1033. Icon = "ele-DataBoard",
  1034. Type = MenuTypeEnum.Menu,
  1035. CreateTime = ct,
  1036. OrderNo = 10,
  1037. Remark = "S8 异常监控大屏(占位)"
  1038. };
  1039. yield return new SysMenu
  1040. {
  1041. Id = s8MonitoringDirId + 2,
  1042. Pid = s8MonitoringDirId,
  1043. Title = "交付异常大屏",
  1044. Path = "/aidop/s8/monitoring/delivery",
  1045. Name = "aidopS8MonitoringDelivery",
  1046. Component = "/aidop/s8/monitoring/S8MonitoringDeliveryPage",
  1047. Icon = "ele-Position",
  1048. Type = MenuTypeEnum.Menu,
  1049. CreateTime = ct,
  1050. OrderNo = 11,
  1051. Remark = "S8 交付异常大屏(占位)"
  1052. };
  1053. yield return new SysMenu
  1054. {
  1055. Id = s8MonitoringDirId + 3,
  1056. Pid = s8MonitoringDirId,
  1057. Title = "生产异常大屏",
  1058. Path = "/aidop/s8/monitoring/production",
  1059. Name = "aidopS8MonitoringProduction",
  1060. Component = "/aidop/s8/monitoring/S8MonitoringProductionPage",
  1061. Icon = "ele-Cpu",
  1062. Type = MenuTypeEnum.Menu,
  1063. CreateTime = ct,
  1064. OrderNo = 12,
  1065. Remark = "S8 生产异常大屏(占位)"
  1066. };
  1067. yield return new SysMenu
  1068. {
  1069. Id = s8MonitoringDirId + 4,
  1070. Pid = s8MonitoringDirId,
  1071. Title = "供应异常大屏",
  1072. Path = "/aidop/s8/monitoring/supply",
  1073. Name = "aidopS8MonitoringSupply",
  1074. Component = "/aidop/s8/monitoring/S8MonitoringSupplyPage",
  1075. Icon = "ele-Box",
  1076. Type = MenuTypeEnum.Menu,
  1077. CreateTime = ct,
  1078. OrderNo = 13,
  1079. Remark = "S8 供应异常大屏(占位)"
  1080. };
  1081. // ORDER-FLOW-OVERVIEW-SHELL-1:SO 订单执行档案总览页壳(fixture/store 演示,未接后端)。
  1082. yield return new SysMenu
  1083. {
  1084. Id = s8MonitoringDirId + 5,
  1085. Pid = s8MonitoringDirId,
  1086. Title = "订单执行档案",
  1087. Path = "/aidop/s8/monitoring/order-execution",
  1088. Name = "aidopS8OrderExecution",
  1089. Component = "/aidop/s8/monitoring/SoOrderExecutionDashboardPage",
  1090. Icon = "ele-Tickets",
  1091. Type = MenuTypeEnum.Menu,
  1092. CreateTime = ct,
  1093. OrderNo = 14,
  1094. Remark = "SO 订单执行档案总览(fixture 演示)"
  1095. };
  1096. // ORDER-FLOW-CHAIN-SHELL-1:链路全景隐藏路由(侧栏不显示,由总览页订单卡跳转进入)。
  1097. yield return new SysMenu
  1098. {
  1099. Id = s8MonitoringDirId + 6,
  1100. Pid = s8MonitoringDirId,
  1101. Title = "订单链路全景",
  1102. Path = "/aidop/s8/monitoring/order-execution/chain",
  1103. Name = "aidopS8OrderExecutionChain",
  1104. Component = "/aidop/s8/monitoring/OrderChainOverviewPage",
  1105. Icon = "ele-Connection",
  1106. Type = MenuTypeEnum.Menu,
  1107. CreateTime = ct,
  1108. OrderNo = 15,
  1109. IsHide = true,
  1110. Remark = "SO 订单链路全景(隐藏路由,由总览页跳转进入)"
  1111. };
  1112. // 可见业务页(「异常监控看板」复用自动生成的 1322000000027 菜单位)
  1113. yield return new SysMenu
  1114. {
  1115. Id = baseId + 2,
  1116. Pid = s8DirId,
  1117. Title = "异常列表",
  1118. Path = "/aidop/s8/exceptions",
  1119. Name = "aidopS8ExceptionList",
  1120. Component = "/aidop/s8/exceptions/S8ExceptionListPage",
  1121. Icon = "ele-List",
  1122. Type = MenuTypeEnum.Menu,
  1123. CreateTime = ct,
  1124. OrderNo = 20,
  1125. Remark = "S8 异常列表"
  1126. };
  1127. yield return new SysMenu
  1128. {
  1129. Id = baseId + 3,
  1130. Pid = s8DirId,
  1131. Title = "主动提报",
  1132. Path = "/aidop/s8/report",
  1133. Name = "aidopS8ManualReport",
  1134. Component = "/aidop/s8/report/S8ManualReportPage",
  1135. Icon = "ele-EditPen",
  1136. Type = MenuTypeEnum.Menu,
  1137. CreateTime = ct,
  1138. OrderNo = 30,
  1139. Remark = "S8 主动提报"
  1140. };
  1141. yield return new SysMenu
  1142. {
  1143. Id = baseId + 4,
  1144. Pid = s8DirId,
  1145. Title = "配置中心",
  1146. Path = "/aidop/s8/config",
  1147. Name = "aidopS8ConfigHub",
  1148. Component = "/aidop/s8/config/S8ConfigHubPage",
  1149. Icon = "ele-Setting",
  1150. Type = MenuTypeEnum.Menu,
  1151. CreateTime = ct,
  1152. OrderNo = 40,
  1153. Remark = "S8 配置中心"
  1154. };
  1155. // 隐藏路由(不出侧栏,需参与动态路由注册)
  1156. yield return new SysMenu
  1157. {
  1158. Id = baseId + 10,
  1159. Pid = s8DirId,
  1160. Title = "任务详情",
  1161. Path = "/aidop/s8/exceptions/:id",
  1162. Name = "aidopS8TaskDetail",
  1163. Component = "/aidop/s8/exceptions/S8TaskDetailPage",
  1164. Icon = "ele-Document",
  1165. Type = MenuTypeEnum.Menu,
  1166. CreateTime = ct,
  1167. OrderNo = 90,
  1168. IsHide = true,
  1169. Remark = "S8 任务详情"
  1170. };
  1171. var cfg = new (long Off, string Path, string Name, string Title, string Component)[]
  1172. {
  1173. (11, "/aidop/s8/config/scenes", "aidopS8ScenarioConfig", "场景基础配置", "/aidop/s8/config/S8ScenarioConfigPage"),
  1174. (12, "/aidop/s8/config/notifications", "aidopS8NotificationLayerConfig", "通知分层配置", "/aidop/s8/config/S8NotificationLayerPage"),
  1175. (13, "/aidop/s8/config/roles", "aidopS8RolePermissionConfig", "角色权限配置", "/aidop/s8/config/S8RolePermissionConfigPage"),
  1176. (14, "/aidop/s8/config/alert-rules", "aidopS8AlertRulesConfig", "报警规则配置", "/aidop/s8/config/S8AlertRulesPage"),
  1177. (15, "/aidop/s8/config/data-sources", "aidopS8DataSourceConfig", "数据源配置", "/aidop/s8/config/S8DataSourceConfigPage"),
  1178. (16, "/aidop/s8/config/watch-rules", "aidopS8WatchRuleConfig", "监视规则配置", "/aidop/s8/config/S8WatchRuleConfigPage"),
  1179. (17, "/aidop/s8/config/exception-types", "aidopS8ExceptionTypeConfig", "异常类型配置", "/aidop/s8/config/S8ExceptionTypeConfigPage"),
  1180. (18, "/aidop/s8/config/dashboard-cells", "aidopS8DashboardCellConfig", "大屏卡片配置", "/aidop/s8/config/S8DashboardCellConfigPage"),
  1181. // S8-CONFIG-GLOBAL-ROW-SEMANTICS-AND-KPI-TARGET-1:S9 KPI 目标值配置(只维护 Result KPI 目标值)。
  1182. (19, "/aidop/s8/config/kpi-targets", "aidopS8KpiTargetConfig", "S9 KPI 目标值配置", "/aidop/s8/config/S8KpiTargetConfigPage"),
  1183. };
  1184. foreach (var (off, path, name, title, component) in cfg)
  1185. {
  1186. yield return new SysMenu
  1187. {
  1188. Id = baseId + off,
  1189. Pid = s8DirId,
  1190. Title = title,
  1191. Path = path,
  1192. Name = name,
  1193. Component = component,
  1194. Icon = "ele-Document",
  1195. Type = MenuTypeEnum.Menu,
  1196. CreateTime = ct,
  1197. OrderNo = 100 + (int)off,
  1198. IsHide = true,
  1199. Remark = $"S8 {title}"
  1200. };
  1201. }
  1202. // ── S8 权限点(Btn):与 S8PermissionCatalog 同源,命名 s8:<resource>:<action>
  1203. // Btn ID 段:baseId + 100..114(不与现有 Dir/Menu 冲突)。
  1204. const long s8DashboardId = 1322000000027L; // 见上文「S8:复用自动生成的首项菜单位…」
  1205. const long btnIdBase = baseId + 100;
  1206. const string btnNamePrefix = "aidopS8Btn";
  1207. var btns = new (long IdOff, long Pid, string Permission, string Title, int Order)[]
  1208. {
  1209. // 异常列表 / 任务详情
  1210. (0, baseId + 2, "s8:exception:read", "查看异常", 10),
  1211. (1, baseId + 3, "s8:exception:create", "主动提报", 20),
  1212. (2, baseId + 10, "s8:exception:assign", "分派异常", 30),
  1213. (3, baseId + 10, "s8:exception:claim", "认领异常", 40),
  1214. (4, baseId + 10, "s8:exception:start", "开始处理", 50),
  1215. (5, baseId + 10, "s8:exception:reject", "驳回异常", 60),
  1216. (6, baseId + 10, "s8:exception:upgrade", "升级异常", 70),
  1217. (7, baseId + 10, "s8:exception:close", "关闭异常", 80),
  1218. (8, baseId + 10, "s8:verification:submit", "提交复检", 110),
  1219. (9, baseId + 10, "s8:verification:approve", "检验通过", 120),
  1220. (10, baseId + 10, "s8:verification:reject", "检验退回", 130),
  1221. // 配置中心
  1222. (11, baseId + 4, "s8:config:read", "查看配置", 210),
  1223. (12, baseId + 13, "s8:config:operator:bind", "维护操作员绑定", 220),
  1224. (13, baseId + 13, "s8:config:role:write", "维护角色权限", 230),
  1225. // 看板
  1226. (14, s8DashboardId, "s8:dashboard:read", "查看看板", 310),
  1227. };
  1228. foreach (var (off, pid, perm, title, order) in btns)
  1229. {
  1230. yield return new SysMenu
  1231. {
  1232. Id = btnIdBase + off,
  1233. Pid = pid,
  1234. Title = title,
  1235. Permission = perm,
  1236. Name = $"{btnNamePrefix}{off:00}",
  1237. Type = MenuTypeEnum.Btn,
  1238. CreateTime = ct,
  1239. OrderNo = order,
  1240. Remark = $"S8 权限点 {perm}"
  1241. };
  1242. }
  1243. }
  1244. private static IEnumerable<SysMenu> BuildS0WarehouseMenus(DateTime ct)
  1245. {
  1246. const long s0DataModelingMenuId = 1322000000001L;
  1247. const long subDirId = 1329005000000L;
  1248. yield return new SysMenu
  1249. {
  1250. Id = subDirId,
  1251. Pid = s0DataModelingMenuId,
  1252. Title = "仓储建模",
  1253. Path = "/aidop/s0/warehouse",
  1254. Name = "aidopS0Warehouse",
  1255. Component = "Layout",
  1256. Icon = "ele-OfficeBuilding",
  1257. Type = MenuTypeEnum.Dir,
  1258. CreateTime = ct,
  1259. OrderNo = 50,
  1260. Remark = "S0 仓储建模"
  1261. };
  1262. var leaves = new (long IdOff, string Path, string Name, string Title, string Component, int Order)[]
  1263. {
  1264. (1, "/aidop/s0/warehouse/department", "aidopS0WhDepartment", "部门维护", "/aidop/s0/warehouse/DepartmentList", 10),
  1265. (2, "/aidop/s0/warehouse/employee", "aidopS0WhEmployee", "雇员列表", "/aidop/s0/warehouse/EmployeeList", 20),
  1266. (3, "/aidop/s0/warehouse/cost-center", "aidopS0WhCostCenter", "成本中心", "/aidop/s0/warehouse/CostCenterList", 30),
  1267. (4, "/aidop/s0/warehouse/location", "aidopS0WhLocation", "库位维护", "/aidop/s0/warehouse/LocationList", 40),
  1268. (5, "/aidop/s0/warehouse/location-shelf", "aidopS0WhLocationShelf", "货架列表", "/aidop/s0/warehouse/LocationShelfList", 50),
  1269. (6, "/aidop/s0/warehouse/barcode-rule", "aidopS0WhBarcodeRule", "条码规则", "/aidop/s0/warehouse/BarcodeRuleList", 60),
  1270. (7, "/aidop/s0/warehouse/label-type", "aidopS0WhLabelType", "标签格式", "/aidop/s0/warehouse/LabelTypeList", 70),
  1271. (8, "/aidop/s0/warehouse/nbr-type", "aidopS0WhNbrType", "单号类型", "/aidop/s0/warehouse/NbrTypeList", 80),
  1272. (9, "/aidop/s0/warehouse/nbr-control", "aidopS0WhNbrControl", "单号规则维护", "/aidop/s0/warehouse/NbrControlList", 90),
  1273. (10, "/aidop/s0/warehouse/item-pack", "aidopS0WhItemPack", "零件包装规格", "/aidop/s0/warehouse/ItemPackList", 100),
  1274. (11, "/aidop/s0/warehouse/emp-work-duty", "aidopS0WhEmpWorkDuty", "物料职责维护", "/aidop/s0/warehouse/EmpWorkDutyList", 110),
  1275. (12, "/aidop/s0/warehouse/task-assignment", "aidopS0WhTaskAssignment", "物料状态任务指派", "/aidop/s0/warehouse/TaskAssignmentList", 120),
  1276. };
  1277. foreach (var (idOff, path, name, title, component, order) in leaves)
  1278. {
  1279. yield return new SysMenu
  1280. {
  1281. Id = subDirId + idOff,
  1282. Pid = subDirId,
  1283. Title = title,
  1284. Path = path,
  1285. Name = name,
  1286. Component = component,
  1287. Icon = "ele-Document",
  1288. Type = MenuTypeEnum.Menu,
  1289. CreateTime = ct,
  1290. OrderNo = order,
  1291. Remark = $"S0 {title}"
  1292. };
  1293. }
  1294. }
  1295. /// <summary>
  1296. /// S1「产销协同看板」目录(Id=1322000000005)下的子菜单:指标看板、需求明细核验、计划联动看板。
  1297. /// </summary>
  1298. private static IEnumerable<SysMenu> BuildS1SalesKanbanMenus(DateTime ct)
  1299. {
  1300. const long salesKanBanDirId = 1322000000005L;
  1301. yield return new SysMenu
  1302. {
  1303. Id = 1322000000201L,
  1304. Pid = salesKanBanDirId,
  1305. Title = "产销协同指标看板",
  1306. Path = "/aidop/s1/SalesKanBan/kanban",
  1307. Name = "aidopS1SalesKanBanKanban",
  1308. Component = "/aidop/kanban/s1",
  1309. Icon = "ele-DataAnalysis",
  1310. Type = MenuTypeEnum.Menu,
  1311. CreateTime = ct,
  1312. OrderNo = 10,
  1313. Remark = "S1 产销协同看板(指标)"
  1314. };
  1315. yield return new SysMenu
  1316. {
  1317. Id = 1322000000202L,
  1318. Pid = salesKanBanDirId,
  1319. Title = "需求明细核验",
  1320. Path = "/aidop/s1/SalesKanBan/requirement-examine-detail",
  1321. Name = "aidopS1RequirementExamineDetail",
  1322. Component = "/aidop/s1/sales-kanban/RequirementExamineDetailList",
  1323. Icon = "ele-List",
  1324. Type = MenuTypeEnum.Menu,
  1325. CreateTime = ct,
  1326. OrderNo = 20,
  1327. Remark = "S1 需求明细核验"
  1328. };
  1329. yield return new SysMenu
  1330. {
  1331. Id = 1322000000107L,
  1332. Pid = salesKanBanDirId,
  1333. Title = "计划联动看板",
  1334. Path = "/aidop/s1/SalesKanBan/linkage-plan",
  1335. Name = "aidopS1LinkagePlan",
  1336. Component = "/aidop/business/linkagePlanList",
  1337. Icon = "ele-DataBoard",
  1338. Type = MenuTypeEnum.Menu,
  1339. CreateTime = ct,
  1340. OrderNo = 30,
  1341. Remark = "S1 计划联动看板(LinkagePlan)"
  1342. };
  1343. }
  1344. /// <summary>
  1345. /// S1「订单管理」「工单管理」目录化后的子菜单:销售订单、合同评审、产品设计、工单下达等。
  1346. /// 父级 Id:订单管理=1322000000003,工单管理=1322000000004(menuSeq 与 ModuleDefinitions 中 S1 叶子顺序一致)。
  1347. /// 产销协同看板=1322000000005,路径 /aidop/s1/SalesKanBan(勿与工单管理目录混淆)。
  1348. /// 订单管理下扩展子菜单 Id:1322000000101~0105;计划联动看板 Id=1322000000107 挂在产销协同看板目录下。
  1349. /// </summary>
  1350. private static IEnumerable<SysMenu> BuildS1OrderWorkOrderMenus(DateTime ct)
  1351. {
  1352. const long orderMgmtDirId = 1322000000003L;
  1353. const long workOrderMgmtDirId = 1322000000004L;
  1354. yield return new SysMenu
  1355. {
  1356. Id = 1322000000101L,
  1357. Pid = orderMgmtDirId,
  1358. Title = "合同评审",
  1359. Path = "/aidop/s1/order-mgmt/contract-review",
  1360. Name = "aidopS1ContractReview",
  1361. Component = "/aidop/business/contractReviewList",
  1362. Icon = "ele-Edit",
  1363. Type = MenuTypeEnum.Menu,
  1364. CreateTime = ct,
  1365. OrderNo = 10,
  1366. Remark = "S1 合同评审"
  1367. };
  1368. yield return new SysMenu
  1369. {
  1370. Id = 1322000000102L,
  1371. Pid = orderMgmtDirId,
  1372. Title = "产品设计",
  1373. Path = "/aidop/s1/order-mgmt/product-design",
  1374. Name = "aidopS1ProductDesign",
  1375. Component = "/aidop/business/productDesignList",
  1376. Icon = "ele-Edit",
  1377. Type = MenuTypeEnum.Menu,
  1378. CreateTime = ct,
  1379. OrderNo = 20,
  1380. Remark = "S1 产品设计"
  1381. };
  1382. yield return new SysMenu
  1383. {
  1384. Id = 1322000000103L,
  1385. Pid = orderMgmtDirId,
  1386. Title = "订单评审",
  1387. Path = "/aidop/s1/order-mgmt/order",
  1388. Name = "aidopS1SalesOrder",
  1389. Component = "/aidop/business/orderList",
  1390. Icon = "ele-Document",
  1391. Type = MenuTypeEnum.Menu,
  1392. CreateTime = ct,
  1393. OrderNo = 30,
  1394. Remark = "S1 销售订单(原订单管理入口)"
  1395. };
  1396. yield return new SysMenu
  1397. {
  1398. Id = 1322000000104L,
  1399. Pid = orderMgmtDirId,
  1400. Title = "订单交付",
  1401. Path = "/aidop/s1/order-mgmt/orderDelivery",
  1402. Name = "aidopS1OrderDelivery",
  1403. Component = "/aidop/business/orderDeliveryList",
  1404. Icon = "ele-Document",
  1405. Type = MenuTypeEnum.Menu,
  1406. CreateTime = ct,
  1407. OrderNo = 40,
  1408. Remark = "S1 订单交付"
  1409. };
  1410. yield return new SysMenu
  1411. {
  1412. Id = 1322000000105L,
  1413. Pid = orderMgmtDirId,
  1414. Title = "订单发货",
  1415. Path = "/aidop/s1/order-mgmt/asnShipper",
  1416. Name = "aidopS1AsnShipper",
  1417. Component = "/aidop/business/asnShipperList",
  1418. Icon = "ele-Document",
  1419. Type = MenuTypeEnum.Menu,
  1420. CreateTime = ct,
  1421. OrderNo = 50,
  1422. Remark = "S1 订单发货"
  1423. };
  1424. yield return new SysMenu
  1425. {
  1426. Id = 1322000000106L,
  1427. Pid = workOrderMgmtDirId,
  1428. Title = "工单下达",
  1429. Path = "/aidop/s1/workorder-mgmt/dispatch",
  1430. Name = "aidopS1WorkOrderDispatch",
  1431. Component = "/aidop/business/workOrderDispatchList",
  1432. Icon = "ele-Position",
  1433. Type = MenuTypeEnum.Menu,
  1434. CreateTime = ct,
  1435. OrderNo = 10,
  1436. Remark = "S1 工单池下达"
  1437. };
  1438. }
  1439. /// <summary>
  1440. /// S2「制造协同」三级结构:生产排程 / 作业计划 / 制造协同看板 为目录(与 ModuleDefinitions 中 S2 三项 Id 一致:0006~0008)。
  1441. /// 「工单工序排程」Id=1322000000108 自 S1 迁入「生产排程」下;其余子页占位。
  1442. /// </summary>
  1443. private static IEnumerable<SysMenu> BuildS2ManufacturingCollaborationMenus(DateTime ct)
  1444. {
  1445. const long s2ProductionSchedulingDirId = 1322000000006L;
  1446. const long s2OperationPlanDirId = 1322000000007L;
  1447. const long s2CollaborationKanbanDirId = 1322000000008L;
  1448. // ── 生产排程 ──
  1449. yield return new SysMenu
  1450. {
  1451. Id = 1322000000108L,
  1452. Pid = s2ProductionSchedulingDirId,
  1453. Title = "工单工序排程",
  1454. Path = "/aidop/s2/production-scheduling/work-order-scheduling",
  1455. Name = "aidopS2WorkOrderScheduling",
  1456. Component = "/aidop/production/workOrderSchedulingList",
  1457. Icon = "ele-Operation",
  1458. Type = MenuTypeEnum.Menu,
  1459. CreateTime = ct,
  1460. OrderNo = 10,
  1461. Remark = "S2 工单工序排程"
  1462. };
  1463. yield return new SysMenu
  1464. {
  1465. Id = 1329002100001L,
  1466. Pid = s2ProductionSchedulingDirId,
  1467. Title = "排产异常记录",
  1468. Path = "/aidop/s2/production-scheduling/scheduling-exception",
  1469. Name = "aidopS2SchedulingException",
  1470. Component = "/aidop/production/scheduleExceptionList",
  1471. Icon = "ele-Warning",
  1472. Type = MenuTypeEnum.Menu,
  1473. CreateTime = ct,
  1474. OrderNo = 20,
  1475. Remark = "S2 排产异常记录"
  1476. };
  1477. // ── 作业计划 ──
  1478. yield return new SysMenu
  1479. {
  1480. Id = 1329002100011L,
  1481. Pid = s2OperationPlanDirId,
  1482. Title = "可执行日计划",
  1483. Path = "/aidop/s2/operation-plan/executable-daily-plan",
  1484. Name = "aidopS2ExecutableDailyPlan",
  1485. Component = "/aidop/production/executableDailyPlanList",
  1486. Icon = "ele-Calendar",
  1487. Type = MenuTypeEnum.Menu,
  1488. CreateTime = ct,
  1489. OrderNo = 10,
  1490. Remark = "S2 可执行生产日计划"
  1491. };
  1492. yield return new SysMenu
  1493. {
  1494. Id = 1329002100012L,
  1495. Pid = s2OperationPlanDirId,
  1496. Title = "产线工作日历管理",
  1497. Path = "/aidop/s2/operation-plan/line-work-calendar",
  1498. Name = "aidopS2LineWorkCalendar",
  1499. Component = "/aidop/production/shopCalendarWorkCtrList",
  1500. Icon = "ele-Notebook",
  1501. Type = MenuTypeEnum.Menu,
  1502. CreateTime = ct,
  1503. OrderNo = 20,
  1504. Remark = "S2 产线工作日历"
  1505. };
  1506. yield return new SysMenu
  1507. {
  1508. Id = 1329002100013L,
  1509. Pid = s2OperationPlanDirId,
  1510. Title = "产线休息时间管理",
  1511. Path = "/aidop/s2/operation-plan/line-rest-time",
  1512. Name = "aidopS2LineRestTime",
  1513. Component = "/aidop/production/qualityLineRestDetailList",
  1514. Icon = "ele-CoffeeCup",
  1515. Type = MenuTypeEnum.Menu,
  1516. CreateTime = ct,
  1517. OrderNo = 30,
  1518. Remark = "S2 产线休息时间"
  1519. };
  1520. yield return new SysMenu
  1521. {
  1522. Id = 1329002100014L,
  1523. Pid = s2OperationPlanDirId,
  1524. Title = "产线节假日管理",
  1525. Path = "/aidop/s2/operation-plan/line-holiday",
  1526. Name = "aidopS2LineHoliday",
  1527. Component = "/aidop/production/holidayMasterList",
  1528. Icon = "ele-Flag",
  1529. Type = MenuTypeEnum.Menu,
  1530. CreateTime = ct,
  1531. OrderNo = 40,
  1532. Remark = "S2 产线节假日"
  1533. };
  1534. yield return new SysMenu
  1535. {
  1536. Id = 1329002100015L,
  1537. Pid = s2OperationPlanDirId,
  1538. Title = "产线加班管理",
  1539. Path = "/aidop/s2/operation-plan/line-overtime",
  1540. Name = "aidopS2LineOvertime",
  1541. Component = "/aidop/production/lineOvertimeList",
  1542. Icon = "ele-Timer",
  1543. Type = MenuTypeEnum.Menu,
  1544. CreateTime = ct,
  1545. OrderNo = 50,
  1546. Remark = "S2 产线加班"
  1547. };
  1548. // ── 制造协同看板 ──
  1549. yield return new SysMenu
  1550. {
  1551. Id = 1329002100021L,
  1552. Pid = s2CollaborationKanbanDirId,
  1553. Title = "工单执行进度看板",
  1554. Path = "/aidop/s2/collaboration-kanban/work-order-progress",
  1555. Name = "aidopS2WorkOrderProgressKanban",
  1556. Component = "/aidop/production/workOrderProgressDashboardList",
  1557. Icon = "ele-DataBoard",
  1558. Type = MenuTypeEnum.Menu,
  1559. CreateTime = ct,
  1560. OrderNo = 10,
  1561. Remark = "S2 工单执行进度看板(列表)"
  1562. };
  1563. yield return new SysMenu
  1564. {
  1565. Id = 1329002100022L,
  1566. Pid = s2CollaborationKanbanDirId,
  1567. Title = "订单生产排程看板",
  1568. Path = "/aidop/s2/collaboration-kanban/scheduling-gantt",
  1569. Name = "aidopS2SchedulingGanttKanban",
  1570. Component = "/aidop/production/workOrderSchedulingGanttKanban",
  1571. Icon = "ele-Timeline",
  1572. Type = MenuTypeEnum.Menu,
  1573. CreateTime = ct,
  1574. OrderNo = 20,
  1575. Remark = "S2 订单生产排程看板(甘特图)"
  1576. };
  1577. yield return new SysMenu
  1578. {
  1579. Id = 1329002100023L,
  1580. Pid = s2CollaborationKanbanDirId,
  1581. Title = "产线生产排程看板",
  1582. Path = "/aidop/s2/collaboration-kanban/line-scheduling-gantt",
  1583. Name = "aidopS2LineSchedulingGanttKanban",
  1584. Component = "/aidop/production/lineProductionSchedulingGanttKanban",
  1585. Icon = "ele-SetUp",
  1586. Type = MenuTypeEnum.Menu,
  1587. CreateTime = ct,
  1588. OrderNo = 21,
  1589. Remark = "S2 产线生产排程看板(甘特图,按产线分组)"
  1590. };
  1591. }
  1592. /// <summary>
  1593. /// S3「物料计划」三级结构:将自动生成的 S3 首项(Id=1322000000009)目录化,挂载「物料需求计划」。
  1594. /// </summary>
  1595. private static IEnumerable<SysMenu> BuildS3SupplyMenus(DateTime ct)
  1596. {
  1597. const long s3MaterialPlanDirId = 1322000000009L;
  1598. const long s3ProcurementDirId = 1322000000010L;
  1599. const long s3RootDirId = 1321000004000L;
  1600. yield return new SysMenu
  1601. {
  1602. Id = 1329003100001L,
  1603. Pid = s3MaterialPlanDirId,
  1604. Title = "物料需求计划",
  1605. Path = "/aidop/s3/material-plan/demand-schedule",
  1606. Name = "aidopS3DemandSchedule",
  1607. Component = "/aidop/s3/supply/demandScheduleList",
  1608. Icon = "ele-Calendar",
  1609. Type = MenuTypeEnum.Menu,
  1610. CreateTime = ct,
  1611. OrderNo = 10,
  1612. Remark = "S3 物料需求计划(ic_demandschedule)"
  1613. };
  1614. yield return new SysMenu
  1615. {
  1616. Id = 1329003100002L,
  1617. Pid = s3MaterialPlanDirId,
  1618. Title = "物料交货计划",
  1619. Path = "/aidop/s3/material-plan/delivery-schedule",
  1620. Name = "aidopS3DeliverySchedule",
  1621. Component = "/aidop/s3/supply/deliveryScheduleList",
  1622. Icon = "ele-Document",
  1623. Type = MenuTypeEnum.Menu,
  1624. CreateTime = ct,
  1625. OrderNo = 20,
  1626. Remark = "S3 物料交货计划(srm_polist_ds)"
  1627. };
  1628. yield return new SysMenu
  1629. {
  1630. Id = 1329003100003L,
  1631. Pid = s3MaterialPlanDirId,
  1632. Title = "交货单异常记录",
  1633. Path = "/aidop/s3/material-plan/delivery-exception",
  1634. Name = "aidopS3DeliveryException",
  1635. Component = "/aidop/s3/supply/deliveryExceptionList",
  1636. Icon = "ele-Warning",
  1637. Type = MenuTypeEnum.Menu,
  1638. CreateTime = ct,
  1639. OrderNo = 30,
  1640. Remark = "S3 交货单异常记录(DeliveryExceptionMaster)"
  1641. };
  1642. yield return new SysMenu
  1643. {
  1644. Id = 1329003100011L,
  1645. Pid = s3ProcurementDirId,
  1646. Title = "物料采购申请",
  1647. Path = "/aidop/s3/procurement/purchase-request",
  1648. Name = "aidopS3PurchaseRequest",
  1649. Component = "/aidop/s3/supply/purchaseRequestList",
  1650. Icon = "ele-Document",
  1651. Type = MenuTypeEnum.Menu,
  1652. CreateTime = ct,
  1653. OrderNo = 10,
  1654. Remark = "S3 物料采购申请(srm_pr_main)"
  1655. };
  1656. yield return new SysMenu
  1657. {
  1658. Id = 1329003100012L,
  1659. Pid = s3ProcurementDirId,
  1660. Title = "物料采购订单",
  1661. Path = "/aidop/s3/procurement/purchase-order",
  1662. Name = "aidopS3PurchaseOrder",
  1663. Component = "/aidop/s3/supply/purchaseOrderList",
  1664. Icon = "ele-Tickets",
  1665. Type = MenuTypeEnum.Menu,
  1666. CreateTime = ct,
  1667. OrderNo = 20,
  1668. Remark = "S3 物料采购订单(vscm_jhjh)"
  1669. };
  1670. yield return new SysMenu
  1671. {
  1672. Id = 1329003100013L,
  1673. Pid = s3ProcurementDirId,
  1674. Title = "委外加工订单",
  1675. Path = "/aidop/s3/procurement/outsource-order",
  1676. Name = "aidopS3OutsourceOrder",
  1677. Component = "/aidop/s3/supply/outsourceOrderList",
  1678. Icon = "ele-List",
  1679. Type = MenuTypeEnum.Menu,
  1680. CreateTime = ct,
  1681. OrderNo = 30,
  1682. Remark = "S3 委外加工订单(PurOrdMaster/PW)"
  1683. };
  1684. yield return new SysMenu
  1685. {
  1686. Id = 1329003100014L,
  1687. Pid = s3ProcurementDirId,
  1688. Title = "工序外协订单",
  1689. Path = "/aidop/s3/procurement/process-outsource-order",
  1690. Name = "aidopS3ProcessOutsourceOrder",
  1691. Component = "/aidop/s3/supply/processOutsourceOrderList",
  1692. Icon = "ele-List",
  1693. Type = MenuTypeEnum.Menu,
  1694. CreateTime = ct,
  1695. OrderNo = 40,
  1696. Remark = "S3 工序外协订单(PurOrdMaster/PW)"
  1697. };
  1698. yield return new SysMenu
  1699. {
  1700. Id = 1329003100018L,
  1701. Pid = s3ProcurementDirId,
  1702. Title = "要货令",
  1703. Path = "/aidop/s3/procurement/demand-order",
  1704. Name = "aidopS3DemandOrder",
  1705. Component = "/aidop/s3/supply/demandOrderList",
  1706. Icon = "ele-ShoppingCart",
  1707. Type = MenuTypeEnum.Menu,
  1708. CreateTime = ct,
  1709. OrderNo = 15,
  1710. Remark = "S3 要货令(PurOrdMaster/PO,ReqBy=DO)"
  1711. };
  1712. yield return new SysMenu
  1713. {
  1714. Id = 1329003100010L,
  1715. Pid = s3RootDirId,
  1716. Title = "供应协同看板",
  1717. Path = "/aidop/s3/supply-kanban",
  1718. Name = "aidopS3SupplyKanbanDir",
  1719. Component = "Layout",
  1720. Icon = "ele-Folder",
  1721. Type = MenuTypeEnum.Dir,
  1722. CreateTime = ct,
  1723. OrderNo = 102,
  1724. Redirect = "/aidop/s3/supply-kanban/dashboard",
  1725. Remark = "S3 供应协同看板目录"
  1726. };
  1727. yield return new SysMenu
  1728. {
  1729. Id = 1329003100015L,
  1730. Pid = 1329003100010L,
  1731. Title = "供应协同看板",
  1732. Path = "/aidop/s3/supply-kanban/dashboard",
  1733. Name = "aidopS3SupplyKanban",
  1734. Component = "/aidop/kanban/s3",
  1735. Icon = "ele-DataBoard",
  1736. Type = MenuTypeEnum.Menu,
  1737. CreateTime = ct,
  1738. OrderNo = 10,
  1739. Remark = "S3 供应协同看板"
  1740. };
  1741. yield return new SysMenu
  1742. {
  1743. Id = 1329003100016L,
  1744. Pid = 1329003100010L,
  1745. Title = "工单物料齐套上线看板",
  1746. Path = "/aidop/s3/supply-kanban/work-order-material-readiness",
  1747. Name = "aidopS3WorkOrderMaterialReadiness",
  1748. Component = "/aidop/s3/supply/workOrderMaterialReadinessKanban",
  1749. Icon = "ele-List",
  1750. Type = MenuTypeEnum.Menu,
  1751. CreateTime = ct,
  1752. OrderNo = 20,
  1753. Remark = "S3 工单物料齐套上线看板"
  1754. };
  1755. yield return new SysMenu
  1756. {
  1757. Id = 1329003100017L,
  1758. Pid = 1329003100010L,
  1759. Title = "MDP运行监控",
  1760. Path = "/aidop/s3/supply-kanban/mdp-monitor",
  1761. Name = "aidopS3MdpMonitor",
  1762. Component = "/aidop/s3/supply/mdpMonitorList",
  1763. Icon = "ele-Monitor",
  1764. Type = MenuTypeEnum.Menu,
  1765. CreateTime = ct,
  1766. OrderNo = 30,
  1767. Remark = "S3 MDP 同步与转换运行监控"
  1768. };
  1769. }
  1770. private static readonly (string Code, string L1, (string Title, string Desc, string Complexity, string Days, string Note)[] Leaves)[] ModuleDefinitions =
  1771. {
  1772. ("S0", "S0 运营建模", new[]
  1773. {
  1774. ("数据建模", "支持数据库表结构设计与建模", "高", "5", "核心基础功能"),
  1775. ("业务建模", "支持业务流程建模与配置", "高", "5", "核心基础功能"),
  1776. }),
  1777. ("S1", "S1 产销协同", new[]
  1778. {
  1779. ("订单管理", "销售订单录入、查询、编辑、删除", "中", "3", ""),
  1780. ("工单管理", "工单创建、分配、跟踪", "中", "3", ""),
  1781. ("产销协同看板", "订单与生产协同数据可视化", "高", "5", "数据看板类"),
  1782. }),
  1783. ("S2", "S2 制造协同", new[]
  1784. {
  1785. ("生产排程", "生产任务排程与调度", "高", "5", ""),
  1786. ("作业计划", "车间作业计划管理", "中", "3", ""),
  1787. ("制造协同看板", "制造过程协同数据展示", "高", "5", "数据看板类"),
  1788. }),
  1789. ("S3", "S3 供应协同", new[]
  1790. {
  1791. ("物料计划", "物料需求计划(MRP)计算", "高", "7", "核心算法"),
  1792. ("供应协同看板", "供应商协同数据可视化", "中", "4", "数据看板类"),
  1793. }),
  1794. ("S4", "S4 采购执行", new[]
  1795. {
  1796. ("采购管理", "采购申请、订单、合同管理", "中", "4", ""),
  1797. ("交货管理", "供应商交货跟踪与验收", "中", "3", ""),
  1798. ("退货管理", "采购退货流程处理", "低", "2", ""),
  1799. ("采购执行看板", "采购执行数据可视化", "中", "4", "数据看板类"),
  1800. }),
  1801. ("S5", "S5 物料仓储", new[]
  1802. {
  1803. ("来料检验", "IQC来料质量检验", "中", "3", ""),
  1804. ("仓储管理", "仓库入库、出库、调拨", "中", "4", ""),
  1805. ("库存数据", "库存查询、盘点、调整", "中", "3", ""),
  1806. ("物料仓储看板", "仓储数据可视化分析", "中", "4", "数据看板类"),
  1807. }),
  1808. ("S6", "S6 生产执行", new[]
  1809. {
  1810. ("生产记录管理", "生产过程数据记录", "中", "3", ""),
  1811. ("过程质量管理", "IPQC过程质量检验", "中", "4", ""),
  1812. ("设备工装管理", "设备台账、保养、维修", "中", "4", ""),
  1813. ("生产执行看板", "生产执行数据可视化", "高", "5", "数据看板类"),
  1814. }),
  1815. ("S7", "S7 成品仓储", new[]
  1816. {
  1817. ("成品质量管理", "OQC成品质量检验", "中", "3", ""),
  1818. ("生产入库管理", "成品入库流程", "低", "2", ""),
  1819. ("成品出库管理", "成品出库发货流程", "低", "2", ""),
  1820. ("成品仓储看板", "成品仓储数据可视化", "中", "3", "数据看板类"),
  1821. }),
  1822. ("S8", "S8 异常监控", new[]
  1823. {
  1824. ("异常监控看板", "生产异常监控、处理、跟踪", "中", "4", ""),
  1825. }),
  1826. ("S9", "S9 运营指标", new[]
  1827. {
  1828. ("ERP同步", "与外部ERP系统数据同步", "高", "7", "接口集成"),
  1829. ("日志查询", "系统操作日志查询", "低", "2", ""),
  1830. ("ERP事务", "ERP相关事务处理", "中", "3", ""),
  1831. }),
  1832. ("M11", "系统管理", new[]
  1833. {
  1834. ("组织架构", "部门、岗位、人员管理", "中", "3", "与框架系统管理对应,后续可映射具体页"),
  1835. ("菜单管理", "系统菜单权限配置", "中", "3", ""),
  1836. }),
  1837. ("M12", "流程平台", new[]
  1838. {
  1839. ("流程管理", "工作流流程定义与配置", "高", "7", "核心引擎"),
  1840. ("表单管理", "流程表单设计与配置", "高", "5", ""),
  1841. ("应用设计", "业务应用快速设计", "高", "5", ""),
  1842. ("数据资源配置", "数据资源连接配置", "中", "4", ""),
  1843. ("格式化JSON", "JSON数据格式化工具", "低", "1", "工具类"),
  1844. ("模板管理", "流程模板管理", "中", "3", ""),
  1845. ("系统按钮", "系统按钮权限配置", "低", "2", ""),
  1846. ("流程按钮", "流程操作按钮配置", "低", "2", ""),
  1847. ("应用程序", "外部应用集成管理", "中", "4", ""),
  1848. ("接口系统", "API接口配置管理", "高", "5", ""),
  1849. }),
  1850. ("M13", "系统工具", new[]
  1851. {
  1852. ("数据字典", "系统字典数据管理", "低", "2", ""),
  1853. ("数据连接", "数据库连接配置", "中", "3", ""),
  1854. ("首页设置", "系统首页个性化配置", "低", "2", ""),
  1855. ("日志查询", "系统运行日志查询", "低", "2", ""),
  1856. ("流水号管理", "业务流水号规则配置", "低", "2", ""),
  1857. ("工作日设置", "工作日历配置", "低", "1", ""),
  1858. ("图标库", "系统图标资源管理", "低", "1", ""),
  1859. ("在线用户", "在线用户监控", "低", "2", ""),
  1860. ("周库存统计", "库存周期统计报表", "中", "3", "报表类"),
  1861. ("数据导入", "批量数据导入工具", "中", "3", ""),
  1862. }),
  1863. ("M14", "流程中心", new[]
  1864. {
  1865. ("发起流程", "新建并发起工作流程", "中", "3", ""),
  1866. ("待办事项", "个人待办任务处理", "中", "3", ""),
  1867. ("待办批量处理", "待办任务批量操作", "中", "3", ""),
  1868. ("已办事项", "已办任务查询", "低", "2", ""),
  1869. ("我的流程", "我发起的流程跟踪", "中", "3", ""),
  1870. ("已委托事项", "委托他人处理的事项", "低", "2", ""),
  1871. ("流程委托", "流程任务委托配置", "低", "2", ""),
  1872. ("流程意见", "流程审批意见管理", "低", "2", ""),
  1873. }),
  1874. ("M15", "个人设置", new[]
  1875. {
  1876. ("个人信息", "个人资料维护", "低", "1", ""),
  1877. ("头像设置", "个人头像上传", "低", "1", ""),
  1878. ("修改密码", "密码修改功能", "低", "1", ""),
  1879. ("签章管理", "个人电子签章管理", "中", "3", ""),
  1880. ("文件管理", "个人文件存储管理", "中", "3", ""),
  1881. ("快捷菜单", "个人快捷方式配置", "低", "1", ""),
  1882. }),
  1883. ("M16", "系统首页", new[]
  1884. {
  1885. ("系统首页", "系统门户首页", "中", "3", "门户类"),
  1886. ("发起流程(快捷)", "首页快捷发起流程", "低", "1", ""),
  1887. ("我的流程(快捷)", "首页流程快捷入口", "低", "1", ""),
  1888. ("待办事项(快捷)", "首页待办快捷入口", "低", "1", ""),
  1889. }),
  1890. };
  1891. }