From f2be2b430010d647f2547a8a6d8a2b7604b894dd Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 5 Aug 2024 15:42:57 +0200 Subject: [PATCH] fea: stockBought add form and formDetail --- src/components/VnTable/VnTable.vue | 14 +- src/components/common/VnInputDate.vue | 2 +- src/components/common/VnInputTime.vue | 2 +- src/i18n/locale/en.yml | 1 + src/pages/Entry/EntryStockBought.vue | 142 ++++++++++++++++++ src/pages/Entry/EntryStockBoughtDetail.vue | 102 +++++++++++++ src/pages/Route/RouteList.vue | 3 +- src/router/modules/entry.js | 11 +- .../integration/entry/stockBought.spec.js | 36 +++++ 9 files changed, 302 insertions(+), 11 deletions(-) create mode 100644 src/pages/Entry/EntryStockBought.vue create mode 100644 src/pages/Entry/EntryStockBoughtDetail.vue create mode 100644 test/cypress/integration/entry/stockBought.spec.js diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 4e40c0ba6..8a20023f2 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -107,7 +107,7 @@ const orders = ref(parseOrder(routeQuery.filter?.order)); const CrudModelRef = ref({}); const showForm = ref(false); const splittedColumns = ref({ columns: [] }); -const columnsVisibilitySkiped = ref(); +const columnsVisibilitySkipped = ref(); const tableModes = [ { icon: 'view_column', @@ -133,7 +133,7 @@ onMounted(() => { ? CARD_MODE : $props.defaultMode; stateStore.rightDrawer = true; - columnsVisibilitySkiped.value = [ + columnsVisibilitySkipped.value = [ ...splittedColumns.value.columns .filter((c) => c.visible == false) .map((c) => c.name), @@ -325,11 +325,11 @@ defineExpose({