refactor(modular): 完成第二階段儀表板解耦與模型清理
This commit is contained in:
@@ -20,4 +20,13 @@ class ProcurementService implements ProcurementServiceInterface
|
||||
{
|
||||
return PurchaseOrder::whereIn('id', $ids)->with($with)->get();
|
||||
}
|
||||
|
||||
public function getDashboardStats(): array
|
||||
{
|
||||
return [
|
||||
'vendorsCount' => \App\Modules\Procurement\Models\Vendor::count(),
|
||||
'purchaseOrdersCount' => PurchaseOrder::count(),
|
||||
'pendingOrdersCount' => PurchaseOrder::where('status', 'pending')->count(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user