修正庫存報表分頁參數衝突導致明細顯示為空的問題

This commit is contained in:
2026-02-10 16:07:31 +08:00
parent 8b950f6529
commit 593ce94734
15 changed files with 1210 additions and 30 deletions

View File

@@ -11,6 +11,8 @@ use App\Modules\Inventory\Controllers\TransferOrderController;
use App\Modules\Inventory\Controllers\CountDocController;
use App\Modules\Inventory\Controllers\AdjustDocController;
use App\Modules\Inventory\Controllers\InventoryReportController;
use App\Modules\Inventory\Controllers\StockQueryController;
Route::middleware('auth')->group(function () {
@@ -20,6 +22,16 @@ Route::middleware('auth')->group(function () {
Route::get('/inventory/stock-query', [StockQueryController::class, 'index'])->name('inventory.stock-query.index');
Route::get('/inventory/stock-query/export', [StockQueryController::class, 'export'])->name('inventory.stock-query.export');
});
// 庫存報表
Route::middleware('permission:inventory_report.view')->group(function () {
Route::get('/inventory/report', [InventoryReportController::class, 'index'])->name('inventory.report.index');
Route::get('/inventory/report/export', [InventoryReportController::class, 'export'])
->middleware('permission:inventory_report.export')
->name('inventory.report.export');
Route::get('/inventory/report/{product}', [InventoryReportController::class, 'show'])->name('inventory.report.show');
});
// 類別管理 (用於商品對話框) - 需要商品權限
Route::middleware('permission:products.view')->group(function () {
Route::get('/categories', [CategoryController::class, 'index'])->name('categories.index');