diff --git a/src/pages/clients/components/ClientDetailInfoSection.vue b/src/pages/clients/components/ClientDetailInfoSection.vue
index 25a91db..7e2eb82 100644
--- a/src/pages/clients/components/ClientDetailInfoSection.vue
+++ b/src/pages/clients/components/ClientDetailInfoSection.vue
@@ -15,7 +15,13 @@
.flex.flex-col(v-for="(item, key) in sectionInfo" class="gap-y-1.5")
span.title-section.font-semibold.text-xs(v-if="settings[section].options") {{settings[section].options[key]}}
span.title-section.font-semibold.text-xs(v-if="item.header") {{item.header}}
- client-detail-input.text-sm.text-sm.w-max-fit(v-if="section!=='docs' && isChange" :style="{fontWeight:key === 'numba'&&600}" v-model:value="sectionInfo[key]" :width="settings[section].width")
+ client-detail-input.text-sm.text-sm.w-max-fit(
+ :sharp="settings[section].sharps[key]"
+ v-if="section!=='docs' && isChange"
+ :style="{fontWeight:key === 'numba'&&600}"
+ v-model:value="sectionInfo[key]"
+ :width="settings[section].width"
+ )
.copy.icon-copy.cursor-pointer(v-if="item.copy" @click="() => copyValue(item)")
.flex(v-if="settings[section].options && !isChange")
span.text-sm.w-fit(:style="{fontWeight:key === 'numba'&&600}") {{item}}
@@ -47,7 +53,9 @@ export default {
section: String,
deleteDoc: Function,
updateDocument: Function,
+ updateAddress: Function,
},
+
data() {
return {
additionalData: {
@@ -76,7 +84,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() {
this.isOpenAddingWrap = true;
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 @@
.input-wrapper.flex.gap-x-2.px-3.box-border.w-max-fit(class="py-2.5")
- textarea.place-input.w-full.outline-0.text-sm.not-italic.resize-none(:rows="Math.ceil(value.length/heightInput)" :value="value" @input="$emit('update:value', $event.target.value)")
+ input.place-input.w-full.outline-0.text-sm.not-italic.resize-none(
+ :rows="Math.ceil(value.length/heightInput)"
+ :value="value"
+ @input="$emit('update:value', $event.target.value)"
+ v-mask="sharp"
+ )
slot