From 207a5a590867aa2976a357768cb4ffb67f54acb6 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 12 Jan 2024 10:36:42 -0300 Subject: [PATCH] changes --- src/components/CreateNewPostcodeForm.vue | 4 +- src/components/FormModelPopup.vue | 6 +- .../Customer/Card/CustomerConsigneeCreate.vue | 15 +++-- .../Customer/Card/CustomerConsignees.vue | 67 ++++++++++--------- 4 files changed, 50 insertions(+), 42 deletions(-) diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index 3504445f8..a9efcf8f4 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -28,8 +28,8 @@ const countriesOptions = ref([]); const provincesOptions = ref([]); const townsLocationOptions = ref([]); -const onDataSaved = () => { - emit('onDataSaved'); +const onDataSaved = (dataSaved) => { + emit('onDataSaved', dataSaved); }; const onCityCreated = async () => { diff --git a/src/components/FormModelPopup.vue b/src/components/FormModelPopup.vue index c314f6897..04322a3c8 100644 --- a/src/components/FormModelPopup.vue +++ b/src/components/FormModelPopup.vue @@ -42,8 +42,8 @@ const { t } = useI18n(); const closeButton = ref(null); const isLoading = ref(false); -const onDataSaved = () => { - emit('onDataSaved'); +const onDataSaved = (dataSaved) => { + emit('onDataSaved', dataSaved); closeForm(); }; @@ -59,7 +59,7 @@ const closeForm = () => { :default-actions="false" :url-create="urlCreate" :model="model" - @on-data-saved="onDataSaved()" + @on-data-saved="onDataSaved($event)" >