From 3006090e6112bccc3057646c05e0e2e5911e9171 Mon Sep 17 00:00:00 2001 From: Remko Date: Tue, 17 Dec 2024 17:17:02 +0100 Subject: [PATCH 1/2] WIP on feature/PC108-108/multiple-contactmomenten --- lib/Controller/ZaakTypenController.php | 1 - .../contactMomenten/ContactMomentenForm.vue | 712 +++++++++++++----- .../contactMomenten/ContactMomentDetails.vue | 2 +- 3 files changed, 543 insertions(+), 172 deletions(-) diff --git a/lib/Controller/ZaakTypenController.php b/lib/Controller/ZaakTypenController.php index 3991b5d..ffed1e1 100644 --- a/lib/Controller/ZaakTypenController.php +++ b/lib/Controller/ZaakTypenController.php @@ -96,7 +96,6 @@ public function update(string $id): JSONResponse // Remove the 'id' field if it exists, as we're creating a new object unset($data['id']); - // Add the id field from the object path $data['id'] = $id; // Save the new catalog object diff --git a/src/modals/contactMomenten/ContactMomentenForm.vue b/src/modals/contactMomenten/ContactMomentenForm.vue index 7e04059..f211f41 100644 --- a/src/modals/contactMomenten/ContactMomentenForm.vue +++ b/src/modals/contactMomenten/ContactMomentenForm.vue @@ -9,190 +9,465 @@ import { contactMomentStore, navigationStore, taakStore, zaakStore } from '../.. dialog-classes="ContactMomentenForm" :close-on-click-outside="false" @closing="closeModalFromButton()"> - -

Contactmoment succesvol opgeslagen

-
- -

{{ error }}

-
- -
-
-
- - - -
-
-
- - - Persoon zoeken - -
-
- of -
-
- - - Organisatie zoeken - -
-
+
+
+ Status: {{ contactMomenten[i].status }} +
+
+ Start datum: {{ new Date(contactMomenten[i].startDate).toLocaleDateString() }} +
+
+
-
-
- - - Klant ontkoppelen - +
+ +
+
+ + +
+ + + + +
+ + + +
+ +
+ + + + +
+ + + +
+ +
+ + + + + +
+ + + +
+ +
+ + + +
+ + + +
+
+
+ +
-
-
-
- Status: {{ contactMoment.status }} + + Close tab + + + + + +
+
+ +

Contactmoment succesvol opgeslagen

+
+ +

{{ error }}

+
+ +
+
+
+ + +
-
-
- -
- -
-
- - -
- +
+ + type="primary" + @click="openSearchKlantModal('persoon')"> - - + Persoon zoeken +
- - - - - -
- + of +
+
+ + type="primary" + @click="openSearchKlantModal('organisatie')"> - - - + Organisatie zoeken +
- - - -
- -
- + +
+
+ + type="primary" + @click="klant = null"> - + Klant ontkoppelen +
- - - - - -
+
+
+
+ Status: {{ contactMoment.status }} +
+
+ Start datum: {{ new Date(contactMoment.startDate).toLocaleDateString() }} +
+
+
+ +
+ +
+
+ + +
+ + + + + +
+ + + +
+ +
+ + + + +
+ + + +
+ +
+ + + + + +
+ + + +
+ +
+ + + +
+ + + +
+
+
- + +