feat: #7648 handle EntryList
This commit is contained in:
parent
361024abe2
commit
4bbf0f29d5
|
@ -12,6 +12,8 @@ import { useStateStore } from 'stores/useStateStore';
|
|||
import { toDate } from 'src/filters/index';
|
||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||
// import { useVnConfirm } from 'composables/useVnConfirm';
|
||||
// const { openConfirmationModal } = useVnConfirm();
|
||||
|
||||
const stateStore = useStateStore();
|
||||
const router = useRouter();
|
||||
|
@ -29,6 +31,21 @@ const redirectToCreateView = () => {
|
|||
onMounted(async () => {
|
||||
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>
|
||||
<template>
|
||||
<VnSearchbar
|
||||
|
@ -107,6 +124,12 @@ onMounted(async () => {
|
|||
color="primary"
|
||||
type="submit"
|
||||
/>
|
||||
<QBtn
|
||||
:label="t('globals.print')"
|
||||
@click.stop="printBuys(row.id)"
|
||||
color="primary"
|
||||
type="submit"
|
||||
/>
|
||||
</template>
|
||||
</CardList>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue