feat: #7648 handle EntryList

This commit is contained in:
Javier Segarra 2024-06-29 00:07:09 +02:00
parent 361024abe2
commit 4bbf0f29d5
1 changed files with 23 additions and 0 deletions

View File

@ -12,6 +12,8 @@ import { useStateStore } from 'stores/useStateStore';
import { toDate } from 'src/filters/index'; import { toDate } from 'src/filters/index';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import RightMenu from 'src/components/common/RightMenu.vue'; import RightMenu from 'src/components/common/RightMenu.vue';
// import { useVnConfirm } from 'composables/useVnConfirm';
// const { openConfirmationModal } = useVnConfirm();
const stateStore = useStateStore(); const stateStore = useStateStore();
const router = useRouter(); const router = useRouter();
@ -29,6 +31,21 @@ const redirectToCreateView = () => {
onMounted(async () => { onMounted(async () => {
stateStore.rightDrawer = true; stateStore.rightDrawer = true;
}); });
import { useQuasar } from 'quasar';
// import EntryBuys from './Card/EntryBuys.vue';
import EntryBuysTableDialog from './EntryBuysTableDialog.vue';
const quasar = useQuasar();
const printBuys = (rowId) => {
// router.push({ path: `/entry/${rowId}/buys` });
quasar.dialog({
component: EntryBuysTableDialog,
componentProps: {
id: rowId,
},
});
};
</script> </script>
<template> <template>
<VnSearchbar <VnSearchbar
@ -107,6 +124,12 @@ onMounted(async () => {
color="primary" color="primary"
type="submit" type="submit"
/> />
<QBtn
:label="t('globals.print')"
@click.stop="printBuys(row.id)"
color="primary"
type="submit"
/>
</template> </template>
</CardList> </CardList>
</template> </template>