Rename catalog item
This commit is contained in:
parent
91eb966586
commit
9b1f73d30f
|
@ -4,7 +4,7 @@ import { useRoute } from 'vue-router';
|
|||
import { onMounted, onUnmounted, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import VnPaginate from 'components/ui/VnPaginate.vue';
|
||||
import OrderCatalogItem from 'pages/Order/Card/OrderCatalogItem.vue';
|
||||
import CatalogItem from 'components/ui/CatalogItem.vue';
|
||||
import OrderCatalogFilter from 'pages/Order/Card/OrderCatalogFilter.vue';
|
||||
|
||||
const route = useRoute();
|
||||
|
@ -77,7 +77,7 @@ function extractValueTags(items) {
|
|||
<div v-if="rows && !rows?.length" class="no-result">
|
||||
{{ t('globals.noResults') }}
|
||||
</div>
|
||||
<OrderCatalogItem
|
||||
<CatalogItem
|
||||
v-for="row in rows"
|
||||
:key="row.id"
|
||||
:item="row"
|
||||
|
|
|
@ -4,7 +4,7 @@ import { useRoute } from 'vue-router';
|
|||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import FetchData from 'components/FetchData.vue';
|
||||
import OrderCatalogItem from 'pages/Order/Card/OrderCatalogItem.vue';
|
||||
import CatalogItem from 'components/ui/CatalogItem.vue';
|
||||
|
||||
import { toCurrency } from 'filters/index';
|
||||
|
||||
|
@ -32,7 +32,7 @@ const sales = ref([]);
|
|||
auto-load
|
||||
/>
|
||||
<div class="pictures-list">
|
||||
<OrderCatalogItem v-for="(sale, index) in sales" :key="index" :item="sale.item">
|
||||
<CatalogItem v-for="(sale, index) in sales" :key="index" :item="sale.item">
|
||||
<template #price>
|
||||
<div class="q-mt-md full-width row justify-between items-center">
|
||||
<span class="text-h6">{{ sale.quantity }}</span>
|
||||
|
@ -40,7 +40,7 @@ const sales = ref([]);
|
|||
<span class="text-h6">{{ toCurrency(sale.item?.price) }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</OrderCatalogItem>
|
||||
</CatalogItem>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue