SysMenuSeedData.cs 47 KB

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