Compare commits
4 Commits
d5e30c92b0
...
368b7007f6
| Author | SHA1 | Date | |
|---|---|---|---|
| 368b7007f6 | |||
| f79197baf5 | |||
| 3f0f1fe09a | |||
| ed42eb324c |
@@ -77,7 +77,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import trytonIcon from '../assets/icons/tryton-icon.svg';
|
|
||||||
import AuthService from '@/services/auth';
|
import AuthService from '@/services/auth';
|
||||||
import { useAuthStore } from '@/stores/auth';
|
import { useAuthStore } from '@/stores/auth';
|
||||||
import { inject } from 'vue';
|
import { inject } from 'vue';
|
||||||
@@ -106,9 +105,9 @@
|
|||||||
{ title: 'Compra adm', route: '/compra_admin', icon: 'mdi-cart'},
|
{ title: 'Compra adm', route: '/compra_admin', icon: 'mdi-cart'},
|
||||||
{ title: 'Gestión de Productos', route: '/admin/products', icon: 'mdi-package-variant'},
|
{ title: 'Gestión de Productos', route: '/admin/products', icon: 'mdi-package-variant'},
|
||||||
{ title: 'Ver Ventas por Catálogo', route: '/admin/catalog-sales', icon: 'mdi-cart-arrow-down'},
|
{ title: 'Ver Ventas por Catálogo', route: '/admin/catalog-sales', icon: 'mdi-cart-arrow-down'},
|
||||||
{ title: 'Actualizar Productos De Tryton', route: '/sincronizar_productos_tryton', icon: 'trytonIcon'},
|
{ title: 'Actualizar Productos De Tryton', route: '/sincronizar_productos_tryton', icon: 'mdi-sync'},
|
||||||
{ title: 'Actualizar Clientes De Tryton', route: '/sincronizar_clientes_tryton', icon: 'trytonIcon'},
|
{ title: 'Actualizar Clientes De Tryton', route: '/sincronizar_clientes_tryton', icon: 'mdi-sync'},
|
||||||
{ title: 'Actualizar Ventas Tryton', route: '/sincronizar_ventas_tryton', icon: 'trytonIcon'}
|
{ title: 'Actualizar Ventas Tryton', route: '/sincronizar_ventas_tryton', icon: 'mdi-sync'}
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ import { ref, watch, inject, onMounted, computed } from "vue";
|
|||||||
|
|
||||||
// Estado
|
// Estado
|
||||||
const api = inject("api");
|
const api = inject("api");
|
||||||
const activeFilter = ref("all");
|
const activeFilter = ref("false");
|
||||||
const products = ref([]);
|
const products = ref([]);
|
||||||
const selected = ref([]);
|
const selected = ref([]);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
@@ -180,8 +180,8 @@ const filteredProducts = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const query = searchQuery.value.toLowerCase().trim();
|
const query = searchQuery.value.toLowerCase().trim();
|
||||||
return products.value.filter(product =>
|
return products.value.filter((product) =>
|
||||||
product.name.toLowerCase().includes(query)
|
product.name.toLowerCase().includes(query),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user