Added focus to production order and qr input in production quantity page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Pint / pint (pull_request) Successful in 3m53s
Laravel Larastan / larastan (pull_request) Failing after 4m17s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Pint / pint (pull_request) Successful in 3m53s
Laravel Larastan / larastan (pull_request) Failing after 4m17s
This commit is contained in:
@@ -352,7 +352,8 @@ class ProductionQuantityPage extends Page implements HasForms
|
||||
}
|
||||
})
|
||||
->extraAttributes(fn ($get) => [
|
||||
'id' => 'scan_locator_no',
|
||||
'id' => 'production_order',
|
||||
'wire:keydown.enter' => '$dispatch("focus-qr-input")',
|
||||
'class' => $get('productionError') ? 'border-red-500' : '',
|
||||
])
|
||||
->hint(fn ($get) => $get('productionError') ? $get('productionError') : null)
|
||||
@@ -508,12 +509,11 @@ class ProductionQuantityPage extends Page implements HasForms
|
||||
// 'operator_id'=> $operatorName,
|
||||
'recent_qr' => $this->recQr,
|
||||
]);
|
||||
$this->dispatch('focus-production-order');
|
||||
$this->triggerChartUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
// Method to process the value when Enter is pressed
|
||||
|
||||
#[On('handleQrScan')]
|
||||
public function handleQrScan($value)
|
||||
{
|
||||
@@ -571,7 +571,6 @@ class ProductionQuantityPage extends Page implements HasForms
|
||||
->body('Scan the valid QR code.<br>(Ex: Item_Code|Serial_Number )')
|
||||
->danger()
|
||||
->send();
|
||||
|
||||
return;
|
||||
} else {
|
||||
if (! $this->pId) {
|
||||
|
||||
Reference in New Issue
Block a user