forked from verdnatura/salix-front
Fix CustomerSummaryTableActions import
This commit is contained in:
parent
01d68734b6
commit
7c8b0a345e
|
@ -1,12 +1,10 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
import { useQuasar } from 'quasar';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
|
import TicketSummary from 'src/pages/Ticket/Card/TicketSummary.vue';
|
||||||
import TicketSummaryDialog from 'src/pages/Ticket/Card/TicketSummaryDialog.vue';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const quasar = useQuasar();
|
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
|
@ -15,14 +13,7 @@ const $props = defineProps({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const viewSummary = () => {
|
const { viewSummary } = useSummaryDialog();
|
||||||
quasar.dialog({
|
|
||||||
component: TicketSummaryDialog,
|
|
||||||
componentProps: {
|
|
||||||
id: $props.id,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -33,7 +24,7 @@ const viewSummary = () => {
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
<QIcon
|
<QIcon
|
||||||
@click.stop="viewSummary"
|
@click.stop="viewSummary(id, TicketSummary)"
|
||||||
class="q-ml-md"
|
class="q-ml-md"
|
||||||
color="primary"
|
color="primary"
|
||||||
name="preview"
|
name="preview"
|
||||||
|
|
Loading…
Reference in New Issue