From c0be47a2e41fb4e354b6f5fedb1c95bb10660fa7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 26 Nov 2024 11:29:52 +0000 Subject: [PATCH 1/5] style: limit space QCheckbox when is children's QItemSection --- src/css/app.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/css/app.scss b/src/css/app.scss index d4c76ad6b..5f19731d7 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -292,3 +292,7 @@ input::-webkit-inner-spin-button { .no-visible { visibility: hidden; } + +.q-item > .q-item__section > .q-checkbox { + max-width: fit-content; +} From e3fa756b1483c665d2f78fa7f59d615e3678d99a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 26 Nov 2024 11:36:05 +0000 Subject: [PATCH 2/5] style: remove space from checkbox --- src/css/app.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/css/app.scss b/src/css/app.scss index 5f19731d7..86eeb6116 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -293,6 +293,10 @@ input::-webkit-inner-spin-button { visibility: hidden; } -.q-item > .q-item__section > .q-checkbox { - max-width: fit-content; +.q-item > .q-item__section:has(.q-checkbox) { + max-width: min-content; +} + +.row > .column:has(.q-checkbox) { + max-width: min-content; } From a1254b25b4309d32de3ecfb54e0dbc0810d2d736 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 20 Jan 2025 11:26:57 +0100 Subject: [PATCH 3/5] fix: fix ticketSale quantity --- src/pages/Ticket/Card/TicketSale.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 8aa785c74..7a8b4a83d 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -54,7 +54,6 @@ const transfer = ref({ }); const tableRef = ref([]); const canProceed = ref(); -const isLoading = ref(false); watch( () => route.params.id, @@ -197,6 +196,7 @@ const changeQuantity = async (sale) => { try { if (!rowToUpdate.value) return; rowToUpdate.value = null; + sale.isNew = false; await updateQuantity(sale); } catch (e) { const { quantity } = tableRef.value.CrudModelRef.originalData.find( @@ -214,9 +214,6 @@ const updateQuantity = async ({ quantity, id }) => { }; const addSale = async (sale) => { - if (isLoading.value) return; - - isLoading.value = true; const params = { barcode: sale.itemFk, quantity: sale.quantity, @@ -237,6 +234,7 @@ const addSale = async (sale) => { sale.item = newSale.item; notify('globals.dataSaved', 'positive'); + sale.isNew = false; arrayData.fetch({}); }; From a3cdb18535da81554c280e4aa3d424dfd6a03280 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 20 Jan 2025 12:04:59 +0100 Subject: [PATCH 4/5] fix: fix use-like --- src/pages/Ticket/Card/TicketSale.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 7a8b4a83d..b849b3b35 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -752,6 +752,7 @@ watch( option-label="name" option-value="id" v-model="row.itemFk" + :use-like="false" @update:model-value="updateItem(row)" >