diff --git a/src/components/02_personnel-management/FormPerson.vue b/src/components/02_personnel-management/FormPerson.vue index a7759872..8fa73a46 100644 --- a/src/components/02_personnel-management/FormPerson.vue +++ b/src/components/02_personnel-management/FormPerson.vue @@ -371,6 +371,7 @@ watch( const today = new Date(); const date = parseAndFormatDate(v, locale); birthDate = date && date > today ? today : date; + console.log(today); } } " diff --git a/src/components/03_customer-management/FormEmployeePassport.vue b/src/components/03_customer-management/FormEmployeePassport.vue index 02c02bf6..22fe8747 100644 --- a/src/components/03_customer-management/FormEmployeePassport.vue +++ b/src/components/03_customer-management/FormEmployeePassport.vue @@ -153,7 +153,14 @@ watch( hide-bottom-space class="col-6" :label="$t('formDialogInputPassportRef')" - v-model="previousPassportReference" + :model-value=" + readonly + ? previousPassportReference || '-' + : previousPassportReference + " + @update:model-value=" + (v) => (typeof v === 'string' ? (previousPassportReference = v) : '') + " /> {{ $t(`${title}`) }} @@ -107,7 +107,6 @@ watch( hide-selected hide-bottom-space input-debounce="0" - v-model="visaType" option-value="value" option-label="label" lazy-rules="ondemand" @@ -119,6 +118,11 @@ watch( :for="`${prefixId}-select-visa-type`" :label="$t('formDialogInputVisaType')" @filter="visaTypeFilter" + :model-value="readonly ? visaType || '-' : visaType" + @update:model-value=" + (v) => (typeof v === 'string' ? (visaType = v) : '') + " + @clear="visaType = ''" >