refactor: update CuttingGroupedTable component to display item indices alongside material variants for improved clarity in grouped results
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (8.3) (push) Waiting to run
tests / ci (8.4) (push) Waiting to run
tests / ci (8.5) (push) Waiting to run

This commit is contained in:
Yoga Pangestu 2026-07-05 16:03:50 +07:00
parent eea4a6d6c5
commit 40b1254518

View File

@ -260,9 +260,9 @@ function getGroupedResults(results: any[]): GroupedCuttingResults[] {
</template>
</TableCell>
</TableRow>
<TableRow v-for="material in group.items" :key="material.id">
<TableRow v-for="(material, index) in group.items" :key="material.id">
<TableCell class="pl-6 font-medium">
{{ material.variant }}
{{ index + 1 }}. {{ material.variant }}
</TableCell>
<TableCell>
<MediaThumbnailCell :items="material.images ?? []
@ -318,9 +318,9 @@ function getGroupedResults(results: any[]): GroupedCuttingResults[] {
{{ group.productName }}
</TableCell>
</TableRow>
<TableRow v-for="result in group.items" :key="result.id">
<TableRow v-for="(result, index) in group.items" :key="result.id">
<TableCell class="pl-6 font-medium">
{{
{{ index + 1 }}. {{
result.product_variant?.name
}}
</TableCell>