Files
solution-erp/fe-user/src/lib/menuKeys.ts
pqhuy1987 50e6d8c382
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 6m31s
[CLAUDE] Contract: K1 SP-002 danh muc loai HD - ContractCatalogEntries (Mig 70) + seed 86 + CQRS + FE kind-5 x2 app + 8 test
Gate: reviewer PASS-WITH-FLAGS 9f (sub-reviewer-gate-k1.md). Xu ly: F4
IncludeInactive mac-dinh-loai (spec K1.c) + test T5b; F7 comment 5-kind;
F1 OG-6 doi nhan soat-SAU @PAUSE-2 (seeder skip-if-exists giu sua-tay CRUD
qua restart - update-branch co y KHONG co); F3 authz mirror khuon Catalogs,
gioi-han khai: 4 policy ContractCatalog.* sinh ra nhung chua endpoint nao
tieu thu (display-layer khac API-layer, #82); F6 ten index IX_ giu EF-default
(NIT). Suite 598/0 (45D+553I). Mig 70 ap SQL Server that OK. Drift DELTA:
MenuKeys.All 55->56, policies 220->224, bang 96->97.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 15:45:50 +07:00

77 lines
3.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Đồng bộ tay với BE SolutionErp.Domain.Identity.MenuKeys
export const MenuKeys = {
Dashboard: 'Dashboard',
Master: 'Master',
Suppliers: 'Suppliers',
Projects: 'Projects',
Departments: 'Departments',
// 4 master catalogs cho Details add form autocomplete (Plan CA S29 — UI sang fe-user)
Catalogs: 'Catalogs',
CatalogUnits: 'CatalogUnits',
CatalogMaterials: 'CatalogMaterials',
CatalogServices: 'CatalogServices',
CatalogWorkItems: 'CatalogWorkItems',
// [K1 — S164, Mig 70] Danh mục Hợp đồng SOL-CCM-SP-002 (86 dòng × 8 nhóm duyệt).
// Mirror BE MenuKeys.cs:28 — leaf thứ 5 dưới group `Catalogs`, page dùng chung
// CatalogsPage qua `:kind` = `contract-catalog`.
ContractCatalog: 'ContractCatalog',
Contracts: 'Contracts',
Forms: 'Forms',
Reports: 'Reports',
System: 'System',
Users: 'Users',
Roles: 'Roles',
Permissions: 'Permissions',
MenuVisibility: 'MenuVisibility',
Workflows: 'Workflows',
PurchaseEvaluations: 'PurchaseEvaluations',
PeWorkflows: 'PeWorkflows',
// Quy trình duyệt MỚI (Mig 22 — Session 17, 2026-05-08)
ApprovalWorkflowsV2: 'ApprovalWorkflowsV2',
AwV2_DuyetNcc: 'AwV2_DuyetNcc',
AwV2_DuyetNccPhuongAn: 'AwV2_DuyetNccPhuongAn',
// [S61 Mig 50] Module Ngân sách cũ (Budgets + Bg_*) XÓA — thay bằng bảng
// "Tổng hợp ngân sách trình ký" per (Dự án, Hạng mục) trong phiếu PE.
// Module Hồ sơ Nhân sự (Mig 34 — Phase 10.1 G-H1 Session 33, 2026-05-26)
Hrm: 'Hrm',
HrmHoSo: 'Hrm_HoSo',
// Cấu hình HRM (Mig 35 — Phase 10.2 G-H2 Session 34, 2026-05-27)
HrmConfig: 'Hrm_Config',
HrmConfigLeaveTypes: 'Hrm_Config_LeaveTypes',
HrmConfigHolidays: 'Hrm_Config_Holidays',
HrmConfigShifts: 'Hrm_Config_Shifts',
HrmConfigOtPolicies: 'Hrm_Config_OtPolicies',
// P11-C (S51) — danh mục xe công + tài xế (dùng khi đặt xe)
HrmConfigVehicles: 'Hrm_Config_Vehicles',
HrmConfigDrivers: 'Hrm_Config_Drivers',
// Module Văn phòng số — Danh bạ nội bộ (Phase 10.2 G-O1 Session 34, 2026-05-27)
Off: 'Off',
// Bảng điều khiển Văn phòng số (landing dashboard — admin auto via All)
OffDashboard: 'Off_Dashboard',
OffDanhBa: 'Off_DanhBa',
// Văn phòng số — Phòng họp (Phase 10.2 G-O2 — Mig 36 Session 36, 2026-05-28)
OffPhongHop: 'Off_PhongHop',
OffPhongHopView: 'Off_PhongHop_View',
OffPhongHopManage: 'Off_PhongHop_Manage',
OffPhongHopBook: 'Off_PhongHop_Book',
// Phase 10.3 G-O3 (S37) — Đề xuất (Proposal)
OffDeXuat: 'Off_DeXuat',
OffDeXuatList: 'Off_DeXuat_List',
OffDeXuatCreate: 'Off_DeXuat_Create',
OffDeXuatInbox: 'Off_DeXuat_Inbox',
// Phase 10.3-10.4 G-O4+G-O5+G-O6+G-P1+G-H3 (S38) — Workflow Apps skeleton
OffDonTu: 'Off_DonTu',
OffDonTuLeave: 'Off_DonTu_Leave',
OffDonTuOt: 'Off_DonTu_Ot',
OffDonTuTravel: 'Off_DonTu_Travel',
OffDatXe: 'Off_DatXe',
OffItTicket: 'Off_ItTicket',
OffChamCong: 'Off_ChamCong',
HrmDashboard: 'Hrm_Dashboard',
// [S57] Nhóm "Cá nhân" (mirror Puro) — Chấm công re-parent Off → Personal
Personal: 'Personal',
} as const
export type MenuKey = typeof MenuKeys[keyof typeof MenuKeys]
export type CrudAction = 'Read' | 'Create' | 'Update' | 'Delete'