From d82372c0a98dc3571529263a3ad9e9293a551ca7 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 2 May 2024 17:13:53 +0200 Subject: [PATCH 01/44] 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 789dffe2e21e88ed05109542ffd7735cafc5078b Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 19 Jun 2024 12:05:21 +0200 Subject: [PATCH 02/44] refs #6898 vntable, traductions --- src/i18n/locale/en.yml | 8 ++ src/i18n/locale/es.yml | 8 ++ src/pages/Supplier/SupplierList.vue | 141 +++++++++++++++------------- 3 files changed, 90 insertions(+), 67 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 4e7d7bb8a..f740ba9e0 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1015,6 +1015,14 @@ supplier: payDay: Pay day account: Account newSupplier: New supplier + tableVisibleColumns: + id: Id + name: Name + nif: NIF/CIF + nickname: Alias + account: Account + payMethod: Pay Method + payDay: Pay Day summary: responsible: Responsible notes: Notes diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 68ffc4e5b..bf3b60ffc 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1000,6 +1000,14 @@ supplier: payDay: Día de pago account: Cuenta newSupplier: Nuevo proveedor + tableVisibleColumns: + id: Id + name: Nombre + nif: NIF/CIF + nickname: Alias + account: Cuenta + payMethod: Método de pago + payDay: Dia de pago summary: responsible: Responsable notes: Notas diff --git a/src/pages/Supplier/SupplierList.vue b/src/pages/Supplier/SupplierList.vue index d53781a38..9491a938b 100644 --- a/src/pages/Supplier/SupplierList.vue +++ b/src/pages/Supplier/SupplierList.vue @@ -1,85 +1,92 @@ From a803250cb913e1a821ff6a1bb2eb230ee20ecf88 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 19 Jun 2024 13:01:31 +0200 Subject: [PATCH 03/44] refs #6898 fix create --- src/pages/Supplier/SupplierList.vue | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/pages/Supplier/SupplierList.vue b/src/pages/Supplier/SupplierList.vue index 9491a938b..89ab12a67 100644 --- a/src/pages/Supplier/SupplierList.vue +++ b/src/pages/Supplier/SupplierList.vue @@ -1,11 +1,12 @@ From 677e71d1a752dad74982f40dbb3ad55a303e9d95 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 26 Jun 2024 08:26:04 +0200 Subject: [PATCH 04/44] 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" > @@ -187,5 +187,4 @@ 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/Entry/Card/EntryDescriptor.vue b/src/pages/Entry/Card/EntryDescriptor.vue index 317400181..a55ad67cd 100644 --- a/src/pages/Entry/Card/EntryDescriptor.vue +++ b/src/pages/Entry/Card/EntryDescriptor.vue @@ -18,10 +18,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -119,7 +115,7 @@ watch; :subtitle="data.subtitle" @on-fetch="setData" data-key="entry" - :summary="$props.summary" + :summary="$attrs" > - - -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 a0e0aaf3a..2fa0e77e0 100644 --- a/src/pages/Route/Card/RouteDescriptor.vue +++ b/src/pages/Route/Card/RouteDescriptor.vue @@ -14,10 +14,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -80,7 +76,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity :subtitle="data.subtitle" data-key="routeData" @on-fetch="setData" - :summary="$props.summary" + :summary="$attrs" > @@ -76,5 +76,4 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity es: Roadmap: Troncal Carrier: Transportista - Go to module index: Ir al índice del módulo diff --git a/src/pages/Shelving/Card/ShelvingDescriptor.vue b/src/pages/Shelving/Card/ShelvingDescriptor.vue index 0fac92f65..9322faaa0 100644 --- a/src/pages/Shelving/Card/ShelvingDescriptor.vue +++ b/src/pages/Shelving/Card/ShelvingDescriptor.vue @@ -14,10 +14,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -55,7 +51,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity :subtitle="data.subtitle" data-key="Shelvings" @on-fetch="setData" - :summary="$props.summary" + :summary="$attrs" > @@ -90,8 +86,3 @@ const setData = (entity) => (data.value = useCardDescription(entity.code, entity - - -es: - Go to module index: Ir al indice del modulo - diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index 3c5e6c80d..ab95ee643 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -16,10 +16,6 @@ const $props = defineProps({ required: false, default: null, }, - summary: { - type: Object, - default: null, - }, }); const route = useRoute(); @@ -87,7 +83,7 @@ const setData = (entity) => :subtitle="data.subtitle" data-key="ticketData" @on-fetch="setData" - :summary="$props.summary" + :summary="$attrs" >