diff --git a/app/Livewire/ProductionTargetPlan.php b/app/Livewire/ProductionTargetPlan.php index 8c30690..c19ce9d 100644 --- a/app/Livewire/ProductionTargetPlan.php +++ b/app/Livewire/ProductionTargetPlan.php @@ -5,6 +5,7 @@ namespace App\Livewire; use App\Exports\ProductionPlanExport; use App\Models\ProductionPlan; use App\Models\ProductionQuantity; +use App\Models\QualityValidation; use Livewire\Component; use Carbon\Carbon; use DB; @@ -23,10 +24,8 @@ class ProductionTargetPlan extends Component public $productionPlanDates = ''; - protected $listeners = [ 'loadData' => 'loadProductionData', - 'loadCategoryData' => 'loadProductionDataCategory', 'loadData1' => 'exportProductionData', ]; @@ -175,7 +174,6 @@ class ProductionTargetPlan extends Component // } - public function loadProductionData($year, $month, $plantId, $lineId, $category) { if (!$plantId || !$lineId || !$month || !$year) { @@ -224,7 +222,7 @@ class ProductionTargetPlan extends Component $this->leaveDates = $leaveDates; - $producedData = ProductionQuantity::selectRaw(" + $producedData = QualityValidation::selectRaw(" plant_id, line_id, item_id, @@ -301,7 +299,6 @@ class ProductionTargetPlan extends Component $this->records = $records; } - // public function loadProductionDataCategory($year, $month, $plantId, $lineId, $category) // { // if (!$plantId || !$lineId || !$month || !$year || !$category) {