feat(Inventory): 實作批號溯源完整功能與 UI 呈現,包含文字敘述卡片與更完整的關聯屬性

This commit is contained in:
2026-02-26 10:39:24 +08:00
parent 63e4f88a14
commit f960aaaeb2
16 changed files with 1085 additions and 694 deletions

View File

@@ -5,4 +5,21 @@ namespace App\Modules\Production\Contracts;
interface ProductionServiceInterface
{
public function getPendingProductionCount(): int;
/**
* 尋找產出特定批號的生產工單
*
* @param string $batchNumber
* @return \Illuminate\Support\Collection
*/
public function getProductionOrdersByOutputBatch(string $batchNumber): \Illuminate\Support\Collection;
/**
* 尋找使用了特定庫存批號的生產工單項目
*
* @param int $inventoryId
* @param array $with
* @return \Illuminate\Support\Collection
*/
public function getProductionOrderItemsByInventoryId(int $inventoryId, array $with = []): \Illuminate\Support\Collection;
}