diff --git a/src/components/LoggedInLayout.vue b/src/components/LoggedInLayout.vue index 9023f4a..172f217 100644 --- a/src/components/LoggedInLayout.vue +++ b/src/components/LoggedInLayout.vue @@ -4,7 +4,6 @@ :is-open-form="isOpenForm", :close-form="closeForm", :open-form="openForm", - :current-year="currentYear", @update-client="setUpdatedClients" ) .flex.flex-auto @@ -12,7 +11,6 @@ router-view( :open-form="openForm", :is-open-form="isOpenForm", - :current-year="currentYear", :updated-clients="updatedClients", @reset-updated-clients="resetUpdatedClients" ) @@ -30,7 +28,6 @@ export default { data() { return { isOpenForm: false, - currentYear: null, updatedClients: false, }; }, @@ -41,9 +38,6 @@ export default { closeForm() { this.isOpenForm = false; }, - printCurrentYear() { - return new Date().getFullYear(); - }, setUpdatedClients() { this.updatedClients = true; }, @@ -51,8 +45,5 @@ export default { this.updatedClients = false; }, }, - mounted: function () { - this.currentYear = this.printCurrentYear(); - }, }; diff --git a/src/components/TheHeader.vue b/src/components/TheHeader.vue index ec05d4e..9d0afdc 100644 --- a/src/components/TheHeader.vue +++ b/src/components/TheHeader.vue @@ -3,7 +3,6 @@ base-client-form-create( v-if="isOpenForm", :close-form="closeForm", - :current-year="currentYear", @update-client="transmitUpdateClient" ) .flex.items-center.box-border.cursor-pointer.mr-auto @@ -43,7 +42,6 @@ export default { openForm: Function, closeForm: Function, isOpenForm: Boolean, - currentYear: Number, }, data() { return { diff --git a/src/components/base/BaseClientFormCreate.vue b/src/components/base/BaseClientFormCreate.vue index 063c8c3..2a8e108 100644 --- a/src/components/base/BaseClientFormCreate.vue +++ b/src/components/base/BaseClientFormCreate.vue @@ -12,7 +12,7 @@ v-for="img in image" ) .icon-download.text-xl(v-if="img === defaultIcon") - .flex.w-10.h-10(v-else) + .wrapper-img.flex.w-10.h-10(v-else) img.current-avatar(:src="img") base-popup.right-5.top-7(v-if="showPopup", :width="230") .flex.items-center.gap-x-2 @@ -56,13 +56,11 @@ :choose-option="chooseOptionNetworks" :choose-priority="choosePriority" :priority-list="priorityList" - :current-year="currentYear" - ) + ) .flex(:style="{display :'none'}" ref="doc") form-create-identity-documents( :identity-document="infoClient.identity_document", - :save-client="saveClient", - :current-year="currentYear" + :save-client="saveClient" ) .flex(:style="{display :'none'}" ref="address") form-create-addresses( @@ -109,7 +107,6 @@ export default { }, props: { closeForm: Function, - currentYear: Number, }, data() { return { @@ -263,15 +260,14 @@ export default { }, postNewClient() { const formData = new FormData(); + formData.append("full_name", this.infoClient.basic.full_name); this.imageData.forEach((e) => { formData.append("photo", e); - formData.append("full_name", this.infoClient.basic.full_name); }); if (this.infoClient.basic.birth_date) formData.append("birth_date", this.infoClient.basic.birth_date); - let foundElement = this.prioritySettings.settings.find( - (el) => el.text === this.infoClient.basic.priority + (el) => el.priority === this.infoClient.basic.priority.id ); if (foundElement) formData.append("priority", foundElement.priority); fetchWrapper @@ -452,4 +448,12 @@ export default { background-size: cover background-repeat: no-repeat background-position: center + &:hover + display: none + +.wrapper-img + background-size: 20px + background-repeat: no-repeat + background-position: center + background-image: url(@/assets/icons/download.svg) diff --git a/src/components/base/BaseInputDate.vue b/src/components/base/BaseInputDate.vue index 096d053..b433ccf 100644 --- a/src/components/base/BaseInputDate.vue +++ b/src/components/base/BaseInputDate.vue @@ -1,14 +1,16 @@