+
+
+ {
+ employeeFormStore.resetFormDataEmployee();
+ employeeFormState.isEmployeeEdit = false;
+ employeeFormState.dialogType = 'info';
+ }
+ "
+ type="button"
+ />
+
+ {
+ employeeFormState.isEmployeeEdit = true;
+ employeeFormState.dialogType = 'edit';
+ }
+ "
+ type="button"
+ />
+ deleteEmployeeById({ id: currentFromDataEmployee.id })
+ "
+ type="button"
+ />
+
+
+
+
+
+
+
+
+ {
employeeFormState.currentIndex = index;
- currentFromDataEmployee.employeeCheckup[index].statusSave =
- false;
+ notify('create', $t('success'));
}
- }
- "
- @undo="
- (index) => {
- if (
- currentFromDataEmployee.employeeCheckup?.[index]
- .statusSave === false
- ) {
- employeeFormState.currentIndex = -1;
- currentFromDataEmployee.employeeCheckup[index].statusSave =
- true;
- employeeFormStore.resetFormDataEmployee();
+ "
+ @edit="
+ (index) => {
+ if (
+ currentFromDataEmployee.employeeCheckup?.[index]
+ .statusSave
+ ) {
+ employeeFormState.currentIndex = index;
+ currentFromDataEmployee.employeeCheckup[
+ index
+ ].statusSave = false;
+ }
}
- }
- "
- @delete="
- (index) => {
- employeeFormState.currentIndex = index;
- deleteEmployeeById({ type: 'healthCheck' });
- }
- "
- />
-
-
-
- {
- employeeFormState.currentIndex = index;
- deleteEmployeeById({ type: 'work' });
- }
- "
- @save="
- (index) => {
- employeeFormState.currentIndex = index;
- }
- "
- @undo="
- (index) => {
- if (
- currentFromDataEmployee.employeeWork?.[index].statusSave ===
- false
- ) {
- employeeFormState.currentIndex = -1;
- currentFromDataEmployee.employeeWork[index].statusSave =
- true;
+ "
+ @undo="
+ (index) => {
+ if (
+ currentFromDataEmployee.employeeCheckup?.[index]
+ .statusSave === false
+ ) {
+ employeeFormState.currentIndex = -1;
+ currentFromDataEmployee.employeeCheckup[
+ index
+ ].statusSave = true;
+ employeeFormStore.resetFormDataEmployee();
+ }
}
- }
- "
- @edit="
- (index) => {
- if (
- currentFromDataEmployee.employeeWork?.[index].statusSave
- ) {
+ "
+ @delete="
+ (index) => {
employeeFormState.currentIndex = index;
- currentFromDataEmployee.employeeWork[index].statusSave =
- false;
+ deleteEmployeeById({ type: 'healthCheck' });
}
- }
- "
- />
-
-
-
- {
- if (
- currentFromDataEmployee.employeeOtherInfo?.statusSave ===
- false
- ) {
- currentFromDataEmployee.employeeOtherInfo.statusSave = true;
+ "
+ />
+
+
+ {
+ employeeFormState.currentIndex = index;
+ deleteEmployeeById({ type: 'work' });
}
- }
- "
- @edit="
- () => {
- if (currentFromDataEmployee.employeeOtherInfo?.statusSave) {
- currentFromDataEmployee.employeeOtherInfo.statusSave = false;
+ "
+ @save="
+ (index) => {
+ employeeFormState.currentIndex = index;
}
- }
- "
- />
-
+ "
+ @undo="
+ (index) => {
+ if (
+ currentFromDataEmployee.employeeWork?.[index]
+ .statusSave === false
+ ) {
+ employeeFormState.currentIndex = -1;
+ currentFromDataEmployee.employeeWork[index].statusSave =
+ true;
+ }
+ }
+ "
+ @edit="
+ (index) => {
+ if (
+ currentFromDataEmployee.employeeWork?.[index].statusSave
+ ) {
+ employeeFormState.currentIndex = index;
+ currentFromDataEmployee.employeeWork[index].statusSave =
+ false;
+ }
+ }
+ "
+ />
+
+
+ {
+ if (
+ currentFromDataEmployee.employeeOtherInfo?.statusSave ===
+ false
+ ) {
+ currentFromDataEmployee.employeeOtherInfo.statusSave = true;
+ }
+ }
+ "
+ @edit="
+ () => {
+ if (currentFromDataEmployee.employeeOtherInfo?.statusSave) {
+ currentFromDataEmployee.employeeOtherInfo.statusSave = false;
+ }
+ }
+ "
+ />
+
+