fix: refs #7129 fix module routes
This commit is contained in:
parent
d6f085dc3d
commit
20e0c84035
|
@ -992,7 +992,7 @@ route:
|
|||
viewCmr: View CMR
|
||||
downloadCmrs: Download CMRs
|
||||
columnLabels:
|
||||
ID: Id
|
||||
Id: Id
|
||||
vehicle: Vehicle
|
||||
description: Description
|
||||
isServed: Served
|
||||
|
|
|
@ -122,7 +122,7 @@ async function fetchMana() {
|
|||
}
|
||||
|
||||
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 query = `Tickets/${claimId}/updateDiscount`;
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ const filter = {
|
|||
},
|
||||
},
|
||||
],
|
||||
where: { id: entityId },
|
||||
};
|
||||
|
||||
const openAddStopDialog = () => {
|
||||
|
@ -84,7 +85,7 @@ const openAddStopDialog = () => {
|
|||
<CardSummary
|
||||
data-key="RoadmapSummary"
|
||||
ref="summary"
|
||||
:url="`Roadmaps/${entityId}`"
|
||||
:url="`Roadmaps`"
|
||||
:filter="filter"
|
||||
>
|
||||
<template #header-left>
|
||||
|
|
|
@ -117,9 +117,8 @@ const columns = computed(() => [
|
|||
|
||||
const refreshKey = ref(0);
|
||||
|
||||
const total = ref(() => {
|
||||
console.log('selectedRows.value: ', selectedRows.value);
|
||||
return selectedRows.value.reduce((item) => item?.price || 0, 0);
|
||||
const total = computed(() => {
|
||||
return selectedRows.value.reduce((sum, item) => sum + item.price, 0);
|
||||
});
|
||||
console.log('total: ', total);
|
||||
|
||||
|
@ -209,9 +208,18 @@ function navigateToRouteSummary(event, row) {
|
|||
{{ t('Create invoiceIn') }}
|
||||
</QTooltip>
|
||||
</QBtn>
|
||||
<QBtn
|
||||
icon="vn:invoice-in-create"
|
||||
color="primary"
|
||||
:disable="!selectedRows?.length"
|
||||
@click="printVariables()"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ t('printVariables') }}
|
||||
</QTooltip>
|
||||
</QBtn>
|
||||
</QCard>
|
||||
</div>
|
||||
{{ total }}
|
||||
<VnPaginate
|
||||
:key="refreshKey"
|
||||
data-key="RouteAutonomousList"
|
||||
|
|
|
@ -129,7 +129,8 @@ function confirmRemove() {
|
|||
}
|
||||
|
||||
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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue