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