From 666cb519c5c99ddf52ee3a0f6d08e9b1166520eb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sat, 29 Jun 2024 00:08:35 +0200 Subject: [PATCH] feat: #7648 handle EntryBuys --- src/components/UserPanel.vue | 2 +- src/components/ui/VnImg.vue | 2 +- src/pages/Entry/EntryBuysTableDialog.vue | 184 +++++++++++++++++++++++ src/pages/Entry/EntryFilter.vue | 14 +- 4 files changed, 195 insertions(+), 7 deletions(-) create mode 100644 src/pages/Entry/EntryBuysTableDialog.vue diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 38e66d67d..0247bb4d6 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -102,7 +102,7 @@ function saveUserData(param, value) { axios.post('UserConfigs/setUserConfig', { [param]: value }); localUserData(); } -const isEmployee = computed(() => useRole().hasAny(['employee'])); +const isEmployee = computed(() => useRole().isEmployee());