feat: 03 => update expiration date handling to accept string format and improve validation

This commit is contained in:
puriphatt 2025-01-21 16:29:19 +07:00
parent 199a008095
commit 095f190f99
3 changed files with 9 additions and 9 deletions

View file

@ -2419,26 +2419,26 @@ const emptyCreateDialog = ref(false);
[
{
name: 'personalInfo',
label: 'customerEmployee.form.group.personalInfo',
label: $t('customerEmployee.form.group.personalInfo'),
},
{
name: 'passport',
label: 'customerEmployee.fileType.passport',
label: $t('customerEmployee.fileType.passport'),
},
{
name: 'visa',
label: 'customerEmployee.form.group.visa',
label: $t('customerEmployee.form.group.visa'),
},
{
name: 'healthCheck',
label: 'customerEmployee.form.group.healthCheck',
label: $t('customerEmployee.form.group.healthCheck'),
},
{
name: 'workHistory',
label: 'customerEmployee.form.group.workHistory',
label: $t('customerEmployee.form.group.workHistory'),
},
{ name: 'other', label: 'customerEmployee.form.group.other' },
{ name: 'other', label: $t('customerEmployee.form.group.other') },
].filter((v) => {
if (!employeeFormState.statusSavePersonal) {
return v.name === 'personalInfo';