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 { 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>
|
||||||
|
|
Loading…
Reference in New Issue