Added na radio option in quality validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Laravel Pint / pint (pull_request) Successful in 1m52s
Laravel Larastan / larastan (pull_request) Failing after 3m46s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Laravel Pint / pint (pull_request) Successful in 1m52s
Laravel Larastan / larastan (pull_request) Failing after 3m46s
This commit is contained in:
@@ -176,7 +176,12 @@ class ProductionCheckList extends Component
|
||||
'serial_number' => $this->data['serial_number'] ?? null,
|
||||
'characteristic_name' => $characteristic?->name ?? null,
|
||||
'observed_value' => $this->data['observed_value'] ?? null,
|
||||
'status' => $value == 'ok' ? 'Ok' : 'NotOk',
|
||||
// 'status' => $value == 'ok' ? 'Ok' : 'NotOk',
|
||||
'status' => match (strtolower($value)) {
|
||||
'ok' => 'Ok',
|
||||
'na' => 'N/A',
|
||||
'not_ok' => 'NotOk',
|
||||
},
|
||||
'inspection_status' => $finalInspectionStatus ?? null,
|
||||
'created_by' => $this->data['operator_id'] ?? null,
|
||||
]);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<th class="border px-2 py-1 w-2/3">Characteristics</th>
|
||||
<th class="border px-2 py-1 w-1/6">OK</th>
|
||||
<th class="border px-2 py-1 w-1/6">Not OK</th>
|
||||
<th class="border px-2 py-1 w-1/6">N/A</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -38,6 +39,12 @@
|
||||
wire:model="checklist.{{ $record['id'] }}"
|
||||
value="not_ok">
|
||||
</td>
|
||||
|
||||
<td class="border text-center">
|
||||
<input type="radio"
|
||||
wire:model="checklist.{{ $record['id'] }}"
|
||||
value="na">
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user