From 2ef8f81f7959065c0cc8c8278b0f9c15c9904184 Mon Sep 17 00:00:00 2001 From: Kaveh Hajinajaf Date: Sun, 27 Apr 2025 16:15:26 +0330 Subject: [PATCH] ADD: Belonging Transactions To Menu FIX: Upload Document and Image system completely FIX: ImageGallery and ImageGallery components bugs FORCE: Dark Mode FIX: Minor bug in login page --- index.html | 2 +- .../dashboard/RecentSalesWidget.vue | 16 +- src/layout/AppMenu.vue | 3 +- src/main.js | 2 + src/service/TransactionService.js | 147 ++++++++ src/views/pages/Belonging/CreateBelonging.vue | 344 ++++++++++++++++-- src/views/pages/Belonging/ListBelongings.vue | 30 +- .../pages/Belonging/TransactionDialog.vue | 134 +++++++ src/views/pages/auth/Login.vue | 38 +- src/views/uikit/ImageGallery.vue | 42 ++- src/views/uikit/ImageUploader.vue | 32 +- 11 files changed, 699 insertions(+), 91 deletions(-) create mode 100644 src/service/TransactionService.js create mode 100644 src/views/pages/Belonging/TransactionDialog.vue diff --git a/index.html b/index.html index d4273ea..c558e77 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/src/components/dashboard/RecentSalesWidget.vue b/src/components/dashboard/RecentSalesWidget.vue index b272ccb..4d80d82 100644 --- a/src/components/dashboard/RecentSalesWidget.vue +++ b/src/components/dashboard/RecentSalesWidget.vue @@ -12,26 +12,30 @@ function formatCurrency(value) { onMounted(() => { BelongingService.getAllBelongings().then((data) => (products.value = data)); }); + +function editBelonging(belongingId) { + router.push('/belonging/edit-belonging/' + belongingId); +}