From ad950f33c68fb6e18c65a974e482e80c771f3089 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 26 Jun 2024 08:27:36 -0300 Subject: [PATCH 01/41] WIP --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketExpedition.vue | 244 +++++++++++++++++++++ src/pages/Ticket/locale/en.yml | 10 + src/pages/Ticket/locale/es.yml | 10 + src/router/modules/ticket.js | 25 ++- 6 files changed, 286 insertions(+), 5 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketExpedition.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index d121dfb66..849f00c88 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -446,6 +446,7 @@ ticket: sale: Sale ticketAdvance: Advance tickets futureTickets: Future tickets + expedition: Expedition list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 3654f4a72..6c722e43d 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -445,6 +445,7 @@ ticket: sale: Lineas del pedido ticketAdvance: Adelantar tickets futureTickets: Tickets a futuro + expedition: Expedición list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketExpedition.vue b/src/pages/Ticket/Card/TicketExpedition.vue new file mode 100644 index 000000000..280e82b8a --- /dev/null +++ b/src/pages/Ticket/Card/TicketExpedition.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index a89671a0c..04822df3e 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -80,3 +80,13 @@ futureTickets: moveTicketSuccess: Tickets moved successfully! searchInfo: Search future tickets by date futureTicket: Future tickets +expedition: + id: Expedition + item: Item + name: Name + packageType: Package type + counter: Counter + externalId: externalId + created: Created + state: State + historyAction: Status log diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index ce52e18ba..7cbbd02bd 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -79,6 +79,16 @@ ticketSale: shipped: F. Envío agency: Agencia address: Consignatario +expedition: + id: Expedición + item: Artículo + name: Nombre + packageType: Package type + counter: Contador + externalId: externalId + created: Fecha creación + state: Estado + historyAction: Historial de estados card: search: Buscar tickets searchInfo: Buscar tickets por identificador o alias diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 9c105be32..878396604 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,13 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList', 'TicketAdvance', 'TicketFuture'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketLog'], + card: [ + 'TicketBoxing', + 'TicketSms', + 'TicketSale', + 'TicketLog', + 'TicketExpedition', + ], }, children: [ { @@ -94,13 +100,13 @@ export default { component: () => import('src/pages/Ticket/Card/TicketSale.vue'), }, { - path: 'boxing', - name: 'TicketBoxing', + path: 'expedition', + name: 'TicketExpedition', meta: { - title: 'boxing', + title: 'expedition', icon: 'vn:package', }, - component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), + component: () => import('src/pages/Ticket/Card/TicketExpedition.vue'), }, { path: 'sms', @@ -120,6 +126,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketLog.vue'), }, + { + path: 'boxing', + name: 'TicketBoxing', + meta: { + title: 'boxing', + icon: 'vn:science', + }, + component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), + }, ], }, ], From defd26fe914cccc519c180731b8dd26786a984dd Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 26 Jun 2024 12:25:01 +0000 Subject: [PATCH 02/41] feat: define Sticky Button --- src/components/VnTable/VnTable.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 493f1480e..cb691de69 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -66,6 +66,7 @@ const route = useRoute(); const router = useRouter(); const quasar = useQuasar(); +const filterPanel = ref(null); const DEFAULT_MODE = 'card'; const TABLE_MODE = 'table'; const mode = ref(DEFAULT_MODE); @@ -191,7 +192,16 @@ defineExpose({ show-if-above > + Date: Wed, 26 Jun 2024 12:26:05 +0000 Subject: [PATCH 03/41] feat: remove button from panel --- src/components/ui/VnFilterPanel.vue | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 3c1a4c8a5..f6241ffe8 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -55,6 +55,7 @@ const $props = defineProps({ }, }); +defineExpose({ search }); const emit = defineEmits(['refresh', 'clear', 'search', 'init', 'remove']); const arrayData = useArrayData($props.dataKey, { @@ -248,23 +249,6 @@ function formatValue(value) { - Date: Thu, 27 Jun 2024 08:37:48 -0300 Subject: [PATCH 04/41] WIP --- src/pages/Ticket/Card/ExpeditionNewTicket.vue | 78 +++++ src/pages/Ticket/Card/TicketExpedition.vue | 284 +++++++++++++++--- src/pages/Ticket/locale/en.yml | 8 + src/pages/Ticket/locale/es.yml | 8 + 4 files changed, 344 insertions(+), 34 deletions(-) create mode 100644 src/pages/Ticket/Card/ExpeditionNewTicket.vue diff --git a/src/pages/Ticket/Card/ExpeditionNewTicket.vue b/src/pages/Ticket/Card/ExpeditionNewTicket.vue new file mode 100644 index 000000000..da775a368 --- /dev/null +++ b/src/pages/Ticket/Card/ExpeditionNewTicket.vue @@ -0,0 +1,78 @@ + + + diff --git a/src/pages/Ticket/Card/TicketExpedition.vue b/src/pages/Ticket/Card/TicketExpedition.vue index 280e82b8a..002dc9b22 100644 --- a/src/pages/Ticket/Card/TicketExpedition.vue +++ b/src/pages/Ticket/Card/TicketExpedition.vue @@ -1,16 +1,17 @@ + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index 39aed4af7..1b9619fd3 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -164,3 +164,9 @@ tracking: worker: Worker created: Created addState: Add state +package: + package: Package + quantity: Quantity + added: Added + addPackage: Add package + removePackage: Remove package diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index d5b50efc5..32744e557 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -164,5 +164,11 @@ ticketSale: shipped: F. Envío agency: Agencia address: Consignatario +package: + package: Package + quantity: Cantidad + added: Añadido + addPackage: Añadir embalaje + removePackage: Quitar embalaje Search ticket: Buscar tickets You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 1e635470b..e14fe7908 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -23,6 +23,7 @@ export default { 'TicketTracking', 'TicketVolume', 'TicketNotes', + 'TicketPackage', ], }, children: [ @@ -188,6 +189,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketNotes.vue'), }, + { + path: 'package', + name: 'TicketPackage', + meta: { + title: 'packages', + icon: 'vn:bin', + }, + component: () => import('src/pages/Ticket/Card/TicketPackage.vue'), + }, ], }, ], From cdbbd576e379a45344c2c648217fa075e9b3ecc6 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 2 Jul 2024 14:54:14 +0200 Subject: [PATCH 11/41] refactor: refs #6899 end invoiceOut migration with VnTable --- src/components/CreateManualInvoiceForm.vue | 25 +- src/components/TransferInvoiceForm.vue | 167 ++++---- src/components/VnTable/VnTable.vue | 16 +- src/components/ui/CardDescriptor.vue | 5 +- .../InvoiceOut/Card/InvoiceOutDescriptor.vue | 4 +- .../Card/InvoiceOutDescriptorMenu.vue | 31 +- .../InvoiceOut/Card/InvoiceOutSummary.vue | 8 +- src/pages/InvoiceOut/InvoiceOutFilter.vue | 3 +- src/pages/InvoiceOut/InvoiceOutGlobal.vue | 9 +- src/pages/InvoiceOut/InvoiceOutList.vue | 379 ++++++++++-------- .../InvoiceOut/InvoiceOutNegativeBases.vue | 225 ++++++----- src/pages/InvoiceOut/locale/en.yml | 25 ++ src/pages/InvoiceOut/locale/es.yml | 29 ++ src/router/modules/invoiceOut.js | 2 +- 14 files changed, 527 insertions(+), 401 deletions(-) create mode 100644 src/pages/InvoiceOut/locale/en.yml diff --git a/src/components/CreateManualInvoiceForm.vue b/src/components/CreateManualInvoiceForm.vue index 92399c20c..1aa95011f 100644 --- a/src/components/CreateManualInvoiceForm.vue +++ b/src/components/CreateManualInvoiceForm.vue @@ -46,22 +46,6 @@ const onDataSaved = async (formData, requestResponse) => { @on-fetch="(data) => (taxAreasOptions = data)" auto-load /> - - { option-value="id" v-model="data.ticketFk" @update:model-value="data.clientFk = null" + url="Tickets" + :where="{ refFk: null }" + :fields="['id', 'nickname']" + :filter-options="{ order: 'shipped DESC' }" > + + diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 493f1480e..8c00bb3f2 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -59,6 +59,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + hasSubtoolbar: { + type: Boolean, + default: true, + }, }); const { t } = useI18n(); const stateStore = useStateStore(); @@ -177,9 +181,12 @@ function columnName(col) { function getColAlign(col) { return 'text-' + (col.align ?? 'left') } + +const emit = defineEmits(['onFetch', 'update:selected', 'saveChanges']); defineExpose({ reload, redirect: redirectFn, + selected });