fix: refs #7129 fix module routes

This commit is contained in:
Pablo Natek 2024-06-14 13:10:47 +02:00
parent d6f085dc3d
commit 20e0c84035
5 changed files with 18 additions and 8 deletions

View File

@ -992,7 +992,7 @@ route:
viewCmr: View CMR viewCmr: View CMR
downloadCmrs: Download CMRs downloadCmrs: Download CMRs
columnLabels: columnLabels:
ID: Id Id: Id
vehicle: Vehicle vehicle: Vehicle
description: Description description: Description
isServed: Served isServed: Served

View File

@ -122,7 +122,7 @@ async function fetchMana() {
} }
async function updateDiscount({ saleFk, discount, canceller }) { async function updateDiscount({ saleFk, discount, canceller }) {
const body = { salesIds: [saleFk], newDiscount: discount }; const body = { salesIds: [saleFk], newDiscount: discount, manaCode: 'mana' };
const claimId = claim.value.ticketFk; const claimId = claim.value.ticketFk;
const query = `Tickets/${claimId}/updateDiscount`; const query = `Tickets/${claimId}/updateDiscount`;

View File

@ -67,6 +67,7 @@ const filter = {
}, },
}, },
], ],
where: { id: entityId },
}; };
const openAddStopDialog = () => { const openAddStopDialog = () => {
@ -84,7 +85,7 @@ const openAddStopDialog = () => {
<CardSummary <CardSummary
data-key="RoadmapSummary" data-key="RoadmapSummary"
ref="summary" ref="summary"
:url="`Roadmaps/${entityId}`" :url="`Roadmaps`"
:filter="filter" :filter="filter"
> >
<template #header-left> <template #header-left>

View File

@ -117,9 +117,8 @@ const columns = computed(() => [
const refreshKey = ref(0); const refreshKey = ref(0);
const total = ref(() => { const total = computed(() => {
console.log('selectedRows.value: ', selectedRows.value); return selectedRows.value.reduce((sum, item) => sum + item.price, 0);
return selectedRows.value.reduce((item) => item?.price || 0, 0);
}); });
console.log('total: ', total); console.log('total: ', total);
@ -209,9 +208,18 @@ function navigateToRouteSummary(event, row) {
{{ t('Create invoiceIn') }} {{ t('Create invoiceIn') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<QBtn
icon="vn:invoice-in-create"
color="primary"
:disable="!selectedRows?.length"
@click="printVariables()"
>
<QTooltip>
{{ t('printVariables') }}
</QTooltip>
</QBtn>
</QCard> </QCard>
</div> </div>
{{ total }}
<VnPaginate <VnPaginate
:key="refreshKey" :key="refreshKey"
data-key="RouteAutonomousList" data-key="RouteAutonomousList"

View File

@ -129,7 +129,8 @@ function confirmRemove() {
} }
function navigateToRoadmapSummary(event, row) { function navigateToRoadmapSummary(event, row) {
router.push({ name: 'RoadmapSummary', params: { id: row.id } }); console.log('row.id : ', row.id);
router.push({ name: 'RoadmapSummary', params: { id: 1 } });
} }
</script> </script>