diff --git a/src/pages/clients/components/ClientDetailInfoSection.vue b/src/pages/clients/components/ClientDetailInfoSection.vue index fd52f41..713bb97 100644 --- a/src/pages/clients/components/ClientDetailInfoSection.vue +++ b/src/pages/clients/components/ClientDetailInfoSection.vue @@ -49,6 +49,7 @@ :style="{fontWeight:key === 'numba'&&600}", v-model:value="sectionInfo[key]", :width="settings[section].width" + :sharp="settings[section].sharps[key]" ) .copy.icon-copy.cursor-pointer( v-if="item.copy", @@ -91,7 +92,9 @@ export default { section: String, deleteDoc: Function, updateDocument: Function, + updateAddress: Function, }, + data() { return { additionalData: { @@ -119,7 +122,11 @@ export default { saveChange() { this.isOpenChange = false; this.isChange = false; - this.updateDocument(); + if (this.section === "pass") { + this.updateDocument(); + } else if (this.section === "addresses") { + this.updateAddress(); + } }, openAddingWrap() { if (!this.isChange) { diff --git a/src/pages/clients/components/ClientDetailInfoWrapper.vue b/src/pages/clients/components/ClientDetailInfoWrapper.vue index 0467561..9c5c751 100644 --- a/src/pages/clients/components/ClientDetailInfoWrapper.vue +++ b/src/pages/clients/components/ClientDetailInfoWrapper.vue @@ -3,9 +3,14 @@ client-detail-info-section( v-model:section-info="dataDocument" section="pass" + :update-document="updateDocument" ) .flex.flex-col - client-detail-info-section(:section-info="dataAddress" section="addresses") + client-detail-info-section( + :section-info="dataAddress" + section="addresses" + :update-address="updateAddress" + ) .flex.flex-col client-detail-info-section( :section-info="dataAttachments" @@ -27,6 +32,8 @@ export default { saveNewDoc: Function, deleteDoc: Function, dataDocument: Object, + updateDocument: Function, + updateAddress: Function, }, }; diff --git a/src/pages/clients/components/ClientDetailInput.vue b/src/pages/clients/components/ClientDetailInput.vue index ef80414..95348da 100644 --- a/src/pages/clients/components/ClientDetailInput.vue +++ b/src/pages/clients/components/ClientDetailInput.vue @@ -1,16 +1,25 @@