refactor: update CuttingGroupedTable component to display item indices alongside material variants for improved clarity in grouped results
This commit is contained in:
parent
eea4a6d6c5
commit
40b1254518
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user