From 677e71d1a752dad74982f40dbb3ad55a303e9d95 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 26 Jun 2024 08:26:04 +0200 Subject: [PATCH 01/15] 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" >