From ea2b68753337b2491fab6485f7f5cf371295ee57 Mon Sep 17 00:00:00 2001 From: Nyavokevin <42602932+nyavokevin@users.noreply.github.com> Date: Wed, 22 Oct 2025 14:42:46 +0300 Subject: [PATCH] ajout activity --- .../Organism/CRM/ClientDetailPresentation.vue | 6 + .../CRM/client/ClientDetailContent.vue | 11 + .../molecules/client/ClientActivityTab.vue | 451 ++++++++++++++++++ .../molecules/client/ClientContactsTab.vue | 109 ++++- .../molecules/client/ClientLocationsTab.vue | 107 +++-- .../molecules/client/ClientTabNavigation.vue | 6 + .../molecules/contact/ContactModal.vue | 38 +- .../molecules/location/LocationModal.vue | 300 +++++++++--- .../src/views/pages/CRM/ClientDetailNew.vue | 72 ++- .../src/views/pages/CRM/ClientDetails.vue | 10 + 10 files changed, 966 insertions(+), 144 deletions(-) create mode 100644 thanasoft-front/src/components/molecules/client/ClientActivityTab.vue diff --git a/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue b/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue index 2c7d6a4..de43c67 100644 --- a/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue +++ b/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue @@ -53,6 +53,7 @@ @change-tab="activeTab = $event" @updating-client="handleUpdateClient" @create-contact="handleAddContact" + @updating-contact="handleModifiedContact" @create-location="handleAddLocation" @modify-location="handleModifyLocation" @remove-location="handleRemoveLocation" @@ -114,6 +115,7 @@ const emit = defineEmits([ "updateTheClient", "handleFileInput", "add-new-contact", + "updating-contact", "add-new-location", "modify-location", "remove-location", @@ -144,6 +146,10 @@ const handleAddContact = (data) => { emit("add-new-contact", data); }; +const handleModifiedContact = (modifiedContact) => { + emit("updating-contact", modifiedContact); +}; + const handleAddLocation = (data) => { emit("add-new-location", data); }; diff --git a/thanasoft-front/src/components/Organism/CRM/client/ClientDetailContent.vue b/thanasoft-front/src/components/Organism/CRM/client/ClientDetailContent.vue index a80e6a5..8ab9773 100644 --- a/thanasoft-front/src/components/Organism/CRM/client/ClientDetailContent.vue +++ b/thanasoft-front/src/components/Organism/CRM/client/ClientDetailContent.vue @@ -16,6 +16,10 @@ +
+ +
+
@@ -58,6 +63,7 @@ import ClientAddressTab from "@/components/molecules/client/ClientAddressTab.vue import ClientLocationsTab from "@/components/molecules/client/ClientLocationsTab.vue"; import ClientNotesTab from "@/components/molecules/client/ClientNotesTab.vue"; import { defineProps, defineEmits } from "vue"; +import ClientActivityTab from "@/components/molecules/client/ClientActivityTab.vue"; defineProps({ activeTab: { @@ -101,6 +107,7 @@ const emit = defineEmits([ "create-location", "modify-location", "remove-location", + "updating-contact", ]); const updateClient = (updatedClient) => { @@ -111,6 +118,10 @@ const handleCreateContact = (newContact) => { emit("create-contact", newContact); }; +const handleModifiedContact = (modifiedContact) => { + emit("updating-contact", modifiedContact); +}; + const handleCreateLocation = (newLocation) => { emit("create-location", newLocation); }; diff --git a/thanasoft-front/src/components/molecules/client/ClientActivityTab.vue b/thanasoft-front/src/components/molecules/client/ClientActivityTab.vue new file mode 100644 index 0000000..fcb0d9f --- /dev/null +++ b/thanasoft-front/src/components/molecules/client/ClientActivityTab.vue @@ -0,0 +1,451 @@ + + + + + diff --git a/thanasoft-front/src/components/molecules/client/ClientContactsTab.vue b/thanasoft-front/src/components/molecules/client/ClientContactsTab.vue index 1f1fe2f..725c11a 100644 --- a/thanasoft-front/src/components/molecules/client/ClientContactsTab.vue +++ b/thanasoft-front/src/components/molecules/client/ClientContactsTab.vue @@ -1,26 +1,29 @@