Added na radio option in quality validation #778
@@ -176,7 +176,12 @@ class ProductionCheckList extends Component
|
|||||||
'serial_number' => $this->data['serial_number'] ?? null,
|
'serial_number' => $this->data['serial_number'] ?? null,
|
||||||
'characteristic_name' => $characteristic?->name ?? null,
|
'characteristic_name' => $characteristic?->name ?? null,
|
||||||
'observed_value' => $this->data['observed_value'] ?? 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,
|
'inspection_status' => $finalInspectionStatus ?? null,
|
||||||
'created_by' => $this->data['operator_id'] ?? 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-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">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">Not OK</th>
|
||||||
|
<th class="border px-2 py-1 w-1/6">N/A</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -38,6 +39,12 @@
|
|||||||
wire:model="checklist.{{ $record['id'] }}"
|
wire:model="checklist.{{ $record['id'] }}"
|
||||||
value="not_ok">
|
value="not_ok">
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td class="border text-center">
|
||||||
|
<input type="radio"
|
||||||
|
wire:model="checklist.{{ $record['id'] }}"
|
||||||
|
value="na">
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user