From c904f7f88bd5a39c42592440d5f1211331785deb Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 24 Jul 2024 20:25:46 +0200 Subject: [PATCH] hotFix: try to fix myEntries --- src/pages/Entry/MyEntries.vue | 68 ++++++++++++++++------------------- 1 file changed, 31 insertions(+), 37 deletions(-) diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue index d432c3272..4db1ff690 100644 --- a/src/pages/Entry/MyEntries.vue +++ b/src/pages/Entry/MyEntries.vue @@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import { toDate } from 'src/filters/index'; import { useQuasar } from 'quasar'; -// import EntryBuysTableDialog from './EntryBuysTableDialog.vue'; +import EntryBuysTableDialog from './EntryBuysTableDialog.vue'; import VnTable from 'components/VnTable/VnTable.vue'; import VnInput from 'src/components/common/VnInput.vue'; @@ -21,25 +21,21 @@ const columns = computed(() => [ // isId: true, // isTitle: false, // }, - // { - // align: 'left', - // label: t('shipped'), - // name: 'shipped', - // isTitle: false, - // create: true, - // cardVisible: true, - // component: 'date', - // columnField: { - // component: null, - // }, - // format: ({ shipped }) => toDate(shipped), - // }, + { + align: 'left', + label: t('shipped'), + name: 'shipped', + cardVisible: true, + component: 'date', + columnField: { + component: null, + }, + format: ({ shipped }) => toDate(shipped), + }, { align: 'left', label: t('landed'), name: 'landed', - isTitle: false, - create: true, cardVisible: false, component: 'date', columnField: { @@ -51,31 +47,29 @@ const columns = computed(() => [ align: 'left', label: t('globals.wareHouseIn'), name: 'warehouseInName', - isTitle: false, cardVisible: true, - create: false, }, - // { - // align: 'right', - // name: 'tableActions', - // actions: [ - // { - // title: t('printBuys'), - // icon: 'print', - // // action: (row) => printBuys(row.id), - // }, - // ], - // }, + { + align: 'right', + name: 'tableActions', + actions: [ + { + title: t('printBuys'), + icon: 'print', + action: (row) => printBuys(row.id), + }, + ], + }, ]); -// const printBuys = (rowId) => { -// quasar.dialog({ -// component: EntryBuysTableDialog, -// componentProps: { -// id: rowId, -// }, -// }); -// }; +const printBuys = (rowId) => { + quasar.dialog({ + component: EntryBuysTableDialog, + componentProps: { + id: rowId, + }, + }); +};