From d82372c0a98dc3571529263a3ad9e9293a551ca7 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 2 May 2024 17:13:53 +0200 Subject: [PATCH 001/117] feat: refs #6449 show summaryId --- src/components/common/VnLog.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 340a9e550..c8d69307e 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -49,6 +49,7 @@ const filter = { 'changedModelId', 'changedModelValue', 'description', + 'summaryId', ], include: [ { @@ -455,12 +456,12 @@ setLogTree(); :style="{ backgroundColor: useColor(modelLog.model), }" - :title="modelLog.model" + :title="`${modelLog.model} #${modelLog.id}`" > {{ t(modelLog.modelI18n) }} - #{{ modelLog.id }}#{{ modelLog.summaryId }} {{ modelLog.showValue }} From 1558b600bebe044c32716cc08c72780a30660b73 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 23 May 2024 09:20:16 +0200 Subject: [PATCH 002/117] refactor: refs #5447 changed warehouse filter --- src/pages/Travel/ExtraCommunityFilter.vue | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/pages/Travel/ExtraCommunityFilter.vue b/src/pages/Travel/ExtraCommunityFilter.vue index 7fe628180..6123b0384 100644 --- a/src/pages/Travel/ExtraCommunityFilter.vue +++ b/src/pages/Travel/ExtraCommunityFilter.vue @@ -7,6 +7,7 @@ import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; +import axios from 'axios'; const { t } = useI18n(); const props = defineProps({ @@ -34,6 +35,30 @@ const decrement = (paramsObj, key) => { paramsObj[key]--; }; + +const warehouseAm = ref([]); +const warehouses = async () => { + const warehouses = await axios.get('Warehouses'); + const countries = await axios.get('Countries'); + const continents = await axios.get('Continents'); + + const countryContinent = countries.data.reduce((acc, c) => { + acc[c.id] = c.continentFk; + return acc; + }, {}); + + const continentAMId = continents.data.find((continent) => continent.code === 'AM').id; + + const countriesInAM = Object.keys(countryContinent).filter( + (countryId) => countryContinent[countryId] === continentAMId.toString() + ); + + warehouseAm.value = warehouses.data.filter((w) => + countriesInAM.includes(w.countryFk.toString()) + ); + console.log('warehouseAm: ', warehouseAm.value); +}; +warehouses(); From 151978160b0f1cf2f02d3ca474d051817f0da14d Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Jun 2024 23:01:26 +0200 Subject: [PATCH 023/117] fix: ticket order --- src/router/modules/ticket.js | 61 +++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 26 deletions(-) diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 475552585..2766d034a 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'TicketMain' }, menus: { - main: ['TicketList', 'TicketAdvance', 'TicketFuture'], + main: ['TicketList', 'TicketAdvance', 'TicketWeekly', 'TicketFuture'], card: [ 'TicketBasicData', 'TicketBoxing', @@ -49,13 +49,13 @@ export default { component: () => import('src/pages/Ticket/TicketCreate.vue'), }, { - name: 'TicketAdvance', - path: 'advance', + name: 'TicketWeekly', + path: 'weekly', meta: { - title: 'ticketAdvance', - icon: 'keyboard_double_arrow_left', + title: 'weeklyTickets', + icon: 'access_time', }, - component: () => import('src/pages/Ticket/TicketAdvance.vue'), + component: () => import('src/pages/Ticket/TicketWeekly.vue'), }, { name: 'TicketFuture', @@ -66,6 +66,15 @@ export default { }, component: () => import('src/pages/Ticket/TicketFuture.vue'), }, + { + name: 'TicketAdvance', + path: 'advance', + meta: { + title: 'ticketAdvance', + icon: 'keyboard_double_arrow_left', + }, + component: () => import('src/pages/Ticket/TicketAdvance.vue'), + }, ], }, { @@ -103,22 +112,14 @@ export default { component: () => import('src/pages/Ticket/Card/TicketSale.vue'), }, { - path: 'boxing', - name: 'TicketBoxing', + path: 'request', + name: 'TicketPurchaseRequest', meta: { - title: 'boxing', - icon: 'vn:package', + title: 'purchaseRequest', + icon: 'vn:buyrequest', }, - component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), - }, - { - path: 'sms', - name: 'TicketSms', - meta: { - title: 'sms', - icon: 'sms', - }, - component: () => import('src/pages/Ticket/Card/TicketSms.vue'), + component: () => + import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'), }, { path: 'tracking', @@ -139,14 +140,22 @@ export default { component: () => import('src/pages/Ticket/Card/TicketLog.vue'), }, { - path: 'request', - name: 'TicketPurchaseRequest', + path: 'boxing', + name: 'TicketBoxing', meta: { - title: 'purchaseRequest', - icon: 'vn:buyrequest', + title: 'boxing', + icon: 'vn:package', }, - component: () => - import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'), + component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), + }, + { + path: 'sms', + name: 'TicketSms', + meta: { + title: 'sms', + icon: 'sms', + }, + component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, ], }, From 677e71d1a752dad74982f40dbb3ad55a303e9d95 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 26 Jun 2024 08:26:04 +0200 Subject: [PATCH 024/117] refactor: refs #7543 standarized descriptors --- src/pages/Agency/Card/AgencyDescriptor.vue | 21 ++++++++++++ src/pages/Claim/Card/ClaimDescriptor.vue | 17 ++++++++++ .../Customer/Card/CustomerDescriptor.vue | 14 -------- src/pages/Entry/Card/EntryDescriptor.vue | 8 ++++- src/pages/Entry/Card/EntryDescriptorProxy.vue | 3 +- .../InvoiceIn/Card/InvoiceInDescriptor.vue | 17 +++++++++- .../Card/InvoiceInDescriptorProxy.vue | 9 +++-- src/pages/Order/Card/OrderDescriptor.vue | 21 ++++++++++++ src/pages/Route/Card/RouteDescriptor.vue | 7 +++- src/pages/Route/Card/RouteDescriptorProxy.vue | 3 +- src/pages/Route/Roadmap/RoadmapDescriptor.vue | 17 ++++++++++ .../Shelving/Card/ShelvingDescriptor.vue | 26 +++++++++++++++ .../Shelving/Card/ShelvingDescriptorProxy.vue | 5 +-- src/pages/Ticket/Card/TicketDescriptor.vue | 6 ++++ .../Ticket/Card/TicketDescriptorProxy.vue | 3 +- src/pages/Travel/Card/TravelDescriptor.vue | 33 ++++++++----------- .../Travel/Card/TravelDescriptorProxy.vue | 3 +- src/pages/Worker/Card/WorkerDescriptor.vue | 1 + src/pages/Zone/Card/ZoneDescriptor.vue | 27 ++++++--------- src/pages/Zone/Card/ZoneDescriptorProxy.vue | 3 +- 20 files changed, 182 insertions(+), 62 deletions(-) diff --git a/src/pages/Agency/Card/AgencyDescriptor.vue b/src/pages/Agency/Card/AgencyDescriptor.vue index b9772037c..8b6a6603e 100644 --- a/src/pages/Agency/Card/AgencyDescriptor.vue +++ b/src/pages/Agency/Card/AgencyDescriptor.vue @@ -28,8 +28,29 @@ const card = computed(() => store.data); :title="card?.name" :subtitle="props.id" > + + + +es: + Go to module index: Ir al índice del modulo + diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue index 5336c4427..e4b96b5b6 100644 --- a/src/pages/Claim/Card/ClaimDescriptor.vue +++ b/src/pages/Claim/Card/ClaimDescriptor.vue @@ -61,6 +61,22 @@ onMounted(async () => { @on-fetch="setData" data-key="Claim" > + @@ -171,4 +187,5 @@ onMounted(async () => { claimRate: Claming rate es: claimRate: Ratio de reclamación + Go to module index: Ir al índice del módulo diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 2d3b17bc9..5e688076a 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -45,20 +45,6 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity :summary="$props.summary" data-key="customerData" > - diff --git a/src/pages/Entry/Card/EntryDescriptor.vue b/src/pages/Entry/Card/EntryDescriptor.vue index 3c925ead6..317400181 100644 --- a/src/pages/Entry/Card/EntryDescriptor.vue +++ b/src/pages/Entry/Card/EntryDescriptor.vue @@ -1,5 +1,5 @@ + + +es: + Go to module index: Ir al índice del módulo + diff --git a/src/pages/Route/Card/RouteDescriptor.vue b/src/pages/Route/Card/RouteDescriptor.vue index 218764277..a0e0aaf3a 100644 --- a/src/pages/Route/Card/RouteDescriptor.vue +++ b/src/pages/Route/Card/RouteDescriptor.vue @@ -14,6 +14,10 @@ const $props = defineProps({ required: false, default: null, }, + summary: { + type: Object, + default: null, + }, }); const route = useRoute(); @@ -74,8 +78,9 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity :filter="filter" :title="data.title" :subtitle="data.subtitle" - data-key="Routes" + data-key="routeData" @on-fetch="setData" + :summary="$props.summary" >