diff --git a/src/components/03_customer-management/TableEmployee.vue b/src/components/03_customer-management/TableEmployee.vue new file mode 100644 index 00000000..70fdf78f --- /dev/null +++ b/src/components/03_customer-management/TableEmployee.vue @@ -0,0 +1,361 @@ + + + + + + + + + {{ $t('fullname') }} + + + $emit('add')" + /> + + + {{ $t(col.label) }} + + + + + + + { + // employeeFormState.drawerModal = true; + // employeeFormStore.assignFormDataEmployee( + // props.row.id, + // ); + // $router.push(`/customer-management/${props.row.id}/branch`); + // openDialogInputForm('INFO', props.row.id); + } + " + > + + {{ (currentPage - 1) * pageSize + props.rowIndex + 1 }} + + + + + + + + + + + + + + + + + + + + + + + + + {{ `${props.row.firstNameEN} ${props.row.lastNameEN}` || '-' }} + + + + + {{ `${props.row.firstName} ${props.row.lastName}` || '-' }} + + + + + + + {{ calculateAge(props.row.dateOfBirth) || '-' }} + + + + {{ optionStore.mapOption(props.row.nationality || '-') }} + + + + {{ + props.row.employeePassport[0] + ? props.row.employeePassport[0].number + : '-' + }} + + + + {{ + props.row.employeePassport[0] + ? dateFormat(props.row.employeePassport[0].expireDate) || '-' + : '-' + }} + + + + {{ + props.row.employeeVisa[0] + ? dateFormat(props.row.employeeVisa[0].expireDate) || '-' + : '-' + }} + + + + + + + + + + + {{ props.row.customerBranch.code || '-' }} + + + {{ + $i18n.locale === 'eng' + ? `${props.row.customerBranch.registerNameEN || ''}` + : `${props.row.customerBranch.registerName || ''}` + }} + + + + + + + + + + + + + + + $emit('history', props.row)" + @update-card="() => $emit('edit', props.row)" + @enter-card="() => $emit('view', props.row)" + @delete-card="() => $emit('delete', props.row)" + @toggle-status="() => $emit('toggleStatus', props.row)" + /> + + + + + +