diff --git a/src/components/03_customer-management/FormEmployeeHealthCheck.vue b/src/components/03_customer-management/FormEmployeeHealthCheck.vue index 1eb0ab13..6b5e01b6 100644 --- a/src/components/03_customer-management/FormEmployeeHealthCheck.vue +++ b/src/components/03_customer-management/FormEmployeeHealthCheck.vue @@ -173,7 +173,16 @@ const insuranceCompanyFilter = selectFilterOptionRefMod( padding="xs" color="red" :class="{ dark: $q.dark.isActive }" - @click.stop="removeData(index)" + @click.stop=" + () => { + if (employeeCheckup?.[index].statusSave) { + $emit('remove', index); + removeData(index); + } else { + removeData(index); + } + } + " /> diff --git a/src/components/03_customer-management/FormEmployeeWorkHistory.vue b/src/components/03_customer-management/FormEmployeeWorkHistory.vue index 72b43e68..a4dd0b51 100644 --- a/src/components/03_customer-management/FormEmployeeWorkHistory.vue +++ b/src/components/03_customer-management/FormEmployeeWorkHistory.vue @@ -136,7 +136,16 @@ const workplaceFilter = selectFilterOptionRefMod( padding="xs" color="red" :class="{ dark: $q.dark.isActive }" - @click.stop="removeData(index)" + @click.stop=" + () => { + if (employeeWork?.[index].statusSave) { + $emit('remove', index); + removeData(index); + } else { + removeData(index); + } + } + " />