diff --git a/src/pages/03_customer-management/components/employer/EmployerFormAbout.vue b/src/pages/03_customer-management/components/employer/EmployerFormAbout.vue index fcd31af3..0134a8e8 100644 --- a/src/pages/03_customer-management/components/employer/EmployerFormAbout.vue +++ b/src/pages/03_customer-management/components/employer/EmployerFormAbout.vue @@ -233,7 +233,10 @@ watch( class="col-6 col-md-3" :label="$t('customer.form.headQuarters.telephoneNo')" for="input-first-name-en" - v-model="telephoneNo" + :model-value="readonly ? telephoneNo || '-' : telephoneNo" + @update:model-value=" + (v) => (typeof v === 'string' ? (telephoneNo = v) : '') + " > diff --git a/src/pages/03_customer-management/components/employer/EmployerFormBasicInfo.vue b/src/pages/03_customer-management/components/employer/EmployerFormBasicInfo.vue index 33884574..ad1ec789 100644 --- a/src/pages/03_customer-management/components/employer/EmployerFormBasicInfo.vue +++ b/src/pages/03_customer-management/components/employer/EmployerFormBasicInfo.vue @@ -82,10 +82,7 @@ watch( diff --git a/src/pages/03_customer-management/components/employer/EmployerFormContact.vue b/src/pages/03_customer-management/components/employer/EmployerFormContact.vue index 093571d1..c761966f 100644 --- a/src/pages/03_customer-management/components/employer/EmployerFormContact.vue +++ b/src/pages/03_customer-management/components/employer/EmployerFormContact.vue @@ -21,7 +21,10 @@ const agent = defineModel('agent'); hide-bottom-space class="col-md-6 col-12" :label="$t('customer.table.contactName')" - v-model="contactName" + :model-value="readonly ? contactName || '-' : contactName" + @update:model-value=" + (v) => (typeof v === 'string' ? (contactName = v) : '') + " /> ('agent'); $t('form.error.invalid'), ] " - v-model="email" + :model-value="readonly ? email || '-' : email" + @update:model-value="(v) => (typeof v === 'string' ? (email = v) : '')" >