diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index e55216d0..8b71a63d 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -80,24 +80,19 @@ const columnsEmployee = [ field: 'firstName', sortable: true, }, - { - name: 'type', - align: 'left', - label: 'type', - field: 'type', - sortable: true, - }, + { name: 'formDialogInputNationality', align: 'left', label: 'formDialogInputNationality', field: 'nationality', }, + { - name: 'formDialogEmployeeNRCNo', + name: 'formDialogInputPassportNo', align: 'left', - label: 'formDialogEmployeeNRCNo', - field: 'nrcNo', + label: 'formDialogInputPassportNo', + field: 'passportNumber', }, { name: 'formDialogInputAge', @@ -106,12 +101,34 @@ const columnsEmployee = [ field: 'dateOfBirth', }, + { + name: 'passportExpiryDate', + align: 'left', + label: 'passportExpire', + field: 'passportExpiryDate', + }, + + { + name: 'formDialogEmployeeNRCNo', + align: 'left', + label: 'formDialogEmployeeNRCNo', + field: 'nrcNo', + }, + { name: 'branchLabel', align: 'left', label: 'branchLabel', field: 'customerBranch', }, + + { + name: 'type', + align: 'left', + label: 'type', + field: 'type', + sortable: true, + }, ] satisfies QTableProps['columns']; const columnsCustomer = [ @@ -256,30 +273,36 @@ const fieldDisplayEmployee = ref< label: t('nameEmployee'), value: 'firstName', }, - { - label: t('type'), - value: 'type', - }, - { label: t('formDialogInputNationality'), value: 'formDialogInputNationality', }, - { - label: t('formDialogEmployeeNRCNo'), - value: 'formDialogEmployeeNRCNo', + label: t('formDialogInputPassportNo'), + value: 'formDialogInputPassportNo', }, { label: t('formDialogInputAge'), value: 'formDialogInputAge', }, + { + label: t('passportExpire'), + value: 'passportExpiryDate', + }, + { + label: t('formDialogEmployeeNRCNo'), + value: 'formDialogEmployeeNRCNo', + }, { label: t('branchLabel'), value: 'branchLabel', }, + { + label: t('type'), + value: 'type', + }, ]); const fieldSelected = ref< @@ -291,19 +314,22 @@ const fieldSelected = ref< | 'branchEmail' | 'firstName' | 'formDialogInputNationality' + | 'formDialogInputPassportNo' + | 'passportExpiryDate' | 'formDialogEmployeeNRCNo' | 'formDialogInputAge' | 'branchLabel' )[] >([ 'customerName', - 'type', 'personName', 'telephoneNo', 'branchEmail', 'firstName', 'formDialogInputNationality', - 'formDialogInputNationality', + 'formDialogInputPassportNo', + 'passportExpiryDate', + 'type', 'formDialogEmployeeNRCNo', 'formDialogInputAge', 'branchLabel', @@ -2287,7 +2313,7 @@ watch([inputSearch, currentStatus], async () => {
@@ -2314,10 +2340,10 @@ watch([inputSearch, currentStatus], async () => { v-for="col in props.cols" :key="col.name" :props="props" + st > {{ $t(col.label) }} - @@ -2343,7 +2369,10 @@ watch([inputSearch, currentStatus], async () => { " > -
+
- - {{ $t('EMPLOYEE') }} - - + + {{ props.row.passportNumber || '-' }} + + + + {{ calculateAge(props.row.dateOfBirth) }} + + + + {{ calculateAge(props.row.passportExpiryDate) }} + + - {{ calculateAge(props.row.dateOfBirth) }} - {
+ + + + {{ $t('EMPLOYEE') }} + +