From c3510aea60dab2c4016bc87e01473c760715c9e9 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 26 Nov 2024 00:18:42 +0100 Subject: [PATCH] feat: add Options Style in AddressList from TicketCrete --- src/pages/Ticket/TicketList.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index aa666be98..a66a0b7f6 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -273,9 +273,8 @@ const fetchAddresses = async (formData) => { if (!formData.clientId) return; const filter = { - fields: ['nickname', 'street', 'city', 'id'], - where: { isActive: true }, - order: 'nickname ASC', + fields: ['nickname', 'street', 'city', 'id', 'isActive'], + order: ['isDefaultAddress DESC', 'isActive DESC', 'nickname ASC'], }; const params = { filter: JSON.stringify(filter) }; const { data } = await axios.get(`Clients/${formData.clientId}/addresses`, { @@ -643,7 +642,22 @@ function setReference(data) { @update:model-value="() => fetchAvailableAgencies(data)" >