fix: refs #7129 fix module routes
This commit is contained in:
parent
d6f085dc3d
commit
20e0c84035
|
@ -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
|
||||||
|
|
|
@ -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`;
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue