Added one more dispatch in test certificate page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 2m34s
Laravel Larastan / larastan (pull_request) Failing after 5m43s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 2m34s
Laravel Larastan / larastan (pull_request) Failing after 5m43s
This commit is contained in:
@@ -75,6 +75,7 @@ class TestCertificate extends Page implements HasForms
|
||||
Select::make('machine_id')
|
||||
->label('Work Center')
|
||||
->reactive()
|
||||
// ->searchable()
|
||||
->options(function (callable $get) {
|
||||
|
||||
$plantId = $get('plant_id');
|
||||
@@ -1760,10 +1761,20 @@ class TestCertificate extends Page implements HasForms
|
||||
$this->filters['production_order'] = $productionOrder;
|
||||
}
|
||||
|
||||
#[On('work-center-updated')]
|
||||
public function updateWorkCenter($workCenter): void
|
||||
{
|
||||
$this->filters['machine_id'] = $workCenter;
|
||||
}
|
||||
|
||||
#[On('sticker-options')]
|
||||
public function stickerStructure(array $stickerOptions): void
|
||||
{
|
||||
$this->filters['sticker_options'] = $stickerOptions;
|
||||
// Automatically select the first sticker
|
||||
$firstStickerId = array_key_first($stickerOptions);
|
||||
|
||||
$this->filters['sticker_id'] = $firstStickerId;
|
||||
}
|
||||
|
||||
#[On('production-order-clear')]
|
||||
|
||||
Reference in New Issue
Block a user