diff --git a/src/components/03_customer-management/TableEmpoloyee.vue b/src/components/03_customer-management/TableEmpoloyee.vue new file mode 100644 index 00000000..6613b116 --- /dev/null +++ b/src/components/03_customer-management/TableEmpoloyee.vue @@ -0,0 +1,315 @@ + + + + + + + + + {{ $t(col.label) }} + + + + + + + { + // employeeFormState.drawerModal = true; + // employeeFormStore.assignFormDataEmployee( + // props.row.id, + // ); + // $router.push(`/customer-management/${props.row.id}/branch`); + // openDialogInputForm('INFO', props.row.id); + } + " + > + + + + + + + + + + + + + + + + {{ `${props.row.firstName} ${props.row.lastName}` || '-' }} + + + + + {{ `${props.row.firstNameEN} ${props.row.lastNameEN}` || '-' }} + + + + + + + {{ props.row.nationality || '-' }} + + + + {{ props.row.passportNumber || '-' }} + + + + {{ calculateAge(props.row.dateOfBirth) }} + + + + {{ dateFormat(props.row.passportExpiryDate) }} + + + + {{ props.row.nrcNo || '-' }} + + + + + + + {{ props.row.customerBranch.code }} + + + {{ + $i18n.locale === 'en-US' + ? `${props.row.customerBranch.nameEN}` + : `${props.row.customerBranch.name}` + }} + + + + + + + + {{ $t('EMPLOYEE') }} + + + + + + + + + $emit('view', props.row)" + clickable + dense + class="row q-py-sm" + style="white-space: nowrap" + > + + + {{ $t('viewDetail') }} + + + + $emit('edit', props.row)" + > + + + {{ $t('edit') }} + + + $emit('delete', props.row)" + > + + + {{ $t('delete') }} + + + + + + + $emit('status', props.row)" + /> + + {{ + props.row.status !== 'INACTIVE' + ? $t('switchOnLabel') + : $t('switchOffLabel') + }} + + + + + + + + + + + + + + $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('status', props.row)" + /> + + + + + +