SysMenuSeedData.cs 47 KB

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