feat: 新增採購統計分析功能並優化 API 文件顯示樣式
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 1m13s
ERP-Deploy-Production / deploy-production (push) Successful in 1m13s

- 在 RoleController 中新增 procurement_analysis 權限群組名稱
- 在 Procurement 模組中新增採購統計分析路由
- 在 PermissionSeeder 中新增 procurement_analysis.view 權限並分配給角色
- 在側邊欄「報表與分析」分組中新增「採購統計分析」項目
- 優化 API 文件視圖中的表格外觀樣式
This commit is contained in:
2026-03-03 11:38:04 +08:00
parent 036f4a4fb6
commit 58bd995cd8
8 changed files with 1196 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ export default function AuthenticatedLayout({
id: "report-management",
label: "報表與分析",
icon: <BarChart3 className="h-5 w-5" />,
permission: ["accounting.view", "inventory_report.view"],
permission: ["accounting.view", "inventory_report.view", "procurement_analysis.view"],
children: [
{
id: "accounting-report",
@@ -278,6 +278,13 @@ export default function AuthenticatedLayout({
route: "/inventory/analysis",
permission: "inventory_report.view",
},
{
id: "procurement-analysis",
label: "採購統計分析",
icon: <ShoppingCart className="h-4 w-4" />,
route: "/procurement/analysis",
permission: "procurement_analysis.view",
},
{
id: "inventory-traceability",
label: "批號溯源",