Enhance FalukantService and UI components for improved product handling
- Updated FalukantService to allow optional inclusion of productType in queries, enhancing flexibility in data retrieval. - Modified SaleSection.vue to conditionally display product information and size, improving user experience by handling cases with no product. - Added new German translation for 'runningNoProduct' to enhance localization support for users.
This commit is contained in:
@@ -146,8 +146,18 @@
|
||||
? $t('falukant.branch.sale.runningDirectionOut')
|
||||
: $t('falukant.branch.sale.runningDirectionIn') }}
|
||||
</td>
|
||||
<td>{{ $t(`falukant.product.${t.product.labelTr}`) }}</td>
|
||||
<td>{{ t.size }}</td>
|
||||
<td>
|
||||
<span v-if="t.product && t.product.labelTr">
|
||||
{{ $t(`falukant.product.${t.product.labelTr}`) }}
|
||||
</span>
|
||||
<span v-else class="no-product">
|
||||
{{ $t('falukant.branch.sale.runningNoProduct') }}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="t.product && t.size > 0">{{ t.size }}</span>
|
||||
<span v-else>—</span>
|
||||
</td>
|
||||
<td>{{ t.sourceRegion?.name }}</td>
|
||||
<td>{{ t.targetRegion?.name }}</td>
|
||||
<td>{{ formatEta(t) }}</td>
|
||||
|
||||
Reference in New Issue
Block a user