2024-08-02 13:58:44 +07:00
|
|
|
import { QTableProps } from 'quasar';
|
|
|
|
|
|
2024-08-05 16:47:38 +07:00
|
|
|
export const formMenuIconEmployee = [
|
|
|
|
|
{
|
2024-08-09 02:10:06 +00:00
|
|
|
icon: 'mdi-briefcase-outline',
|
2024-08-05 16:47:38 +07:00
|
|
|
color: 'hsl(var(--info-bg))',
|
|
|
|
|
bgColor: 'var(--surface-1)',
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-08-09 02:10:06 +00:00
|
|
|
icon: 'mdi-map-marker-radius-outline',
|
2024-08-05 16:47:38 +07:00
|
|
|
color: 'hsl(var(--info-bg))',
|
|
|
|
|
bgColor: 'var(--surface-1)',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
export const columnsEmployee = [
|
2024-08-19 13:19:07 +07:00
|
|
|
{
|
|
|
|
|
name: 'orderNumber',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'orderNumber',
|
|
|
|
|
field: 'branchNo',
|
|
|
|
|
},
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
|
|
|
|
name: 'firstName',
|
|
|
|
|
align: 'left',
|
|
|
|
|
label: 'nameEmployee',
|
|
|
|
|
field: 'firstName',
|
2024-08-19 13:19:07 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'formDialogInputAge',
|
|
|
|
|
align: 'left',
|
|
|
|
|
label: 'formDialogInputAge',
|
|
|
|
|
field: 'dateOfBirth',
|
2024-08-02 13:58:44 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'formDialogInputNationality',
|
|
|
|
|
align: 'left',
|
|
|
|
|
label: 'formDialogInputNationality',
|
|
|
|
|
field: 'nationality',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'formDialogInputPassportNo',
|
|
|
|
|
align: 'left',
|
|
|
|
|
label: 'formDialogInputPassportNo',
|
|
|
|
|
field: 'passportNumber',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
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: 'action',
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'action',
|
|
|
|
|
},
|
|
|
|
|
] satisfies QTableProps['columns'];
|
|
|
|
|
|
|
|
|
|
export const columnsCustomer = [
|
2024-08-20 17:56:05 +07:00
|
|
|
{
|
|
|
|
|
name: 'orderNumber',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'customer.table.orderNumber',
|
|
|
|
|
field: 'branchNo',
|
|
|
|
|
},
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
|
|
|
|
name: 'customerName',
|
|
|
|
|
align: 'left',
|
2024-08-20 17:56:05 +07:00
|
|
|
label: 'customer.table.fullname',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'customerName',
|
|
|
|
|
sortable: true,
|
|
|
|
|
},
|
2024-08-20 17:56:05 +07:00
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
|
|
|
|
name: 'type',
|
|
|
|
|
align: 'center',
|
2024-08-20 17:56:05 +07:00
|
|
|
label: 'customer.table.businessTypePure',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'customerType',
|
|
|
|
|
sortable: true,
|
|
|
|
|
},
|
2024-08-20 17:56:05 +07:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'address',
|
|
|
|
|
align: 'left',
|
|
|
|
|
label: 'customer.table.address',
|
|
|
|
|
field: 'address',
|
|
|
|
|
},
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
2024-08-20 17:56:05 +07:00
|
|
|
name: 'workPlace',
|
2024-08-02 13:58:44 +07:00
|
|
|
align: 'left',
|
2024-08-20 17:56:05 +07:00
|
|
|
label: 'customer.table.workPlace',
|
|
|
|
|
field: 'workPlace',
|
2024-08-02 13:58:44 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2024-08-20 17:56:05 +07:00
|
|
|
name: 'contactName',
|
2024-08-02 13:58:44 +07:00
|
|
|
align: 'left',
|
2024-08-20 17:56:05 +07:00
|
|
|
label: 'customer.table.contactName',
|
|
|
|
|
field: 'contactName',
|
2024-08-02 13:58:44 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2024-08-20 17:56:05 +07:00
|
|
|
name: 'contactPhone',
|
2024-08-02 13:58:44 +07:00
|
|
|
align: 'left',
|
2024-08-20 17:56:05 +07:00
|
|
|
label: 'customer.table.contactPhone',
|
|
|
|
|
field: 'contactPhone',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'action',
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'action',
|
2024-08-02 13:58:44 +07:00
|
|
|
},
|
|
|
|
|
] satisfies QTableProps['columns'];
|