2024-08-02 13:58:44 +07:00
|
|
|
import { QTableProps } from 'quasar';
|
|
|
|
|
|
2024-08-29 17:00:12 +07:00
|
|
|
export const countryCode = [
|
|
|
|
|
{
|
|
|
|
|
label: 'thai',
|
|
|
|
|
value: 'th',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'myanmar',
|
|
|
|
|
value: 'mm',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'laos',
|
|
|
|
|
value: 'lo',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'cambodian',
|
|
|
|
|
value: 'kh',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'vietnam',
|
|
|
|
|
value: 'vn',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'philippines',
|
|
|
|
|
value: 'ph',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'china',
|
|
|
|
|
value: 'cn',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2024-08-27 16:19:38 +07:00
|
|
|
export const uploadFileListCustomer: {
|
|
|
|
|
label: string;
|
|
|
|
|
value: string;
|
2024-09-20 09:21:15 +07:00
|
|
|
_meta?: Record<string, any>;
|
2024-08-27 16:19:38 +07:00
|
|
|
}[] = [
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.citizenId',
|
2024-08-29 14:59:03 +07:00
|
|
|
value: 'citizen',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.registrationBook',
|
|
|
|
|
value: 'registrationBook',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.houseMap',
|
|
|
|
|
value: 'houseMap',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.businessRegistration',
|
|
|
|
|
value: 'businessRegistration',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.dbdCertificate',
|
|
|
|
|
value: 'dbdCertificate',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.vatRegistrationCertificate',
|
|
|
|
|
value: 'vatRegistrationCertificate',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.powerOfAttorney',
|
|
|
|
|
value: 'powerOfAttorney',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'customer.typeFile.others',
|
|
|
|
|
value: 'others',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const uploadFileListEmployee: {
|
|
|
|
|
label: string;
|
|
|
|
|
value: string;
|
2024-09-18 10:59:21 +07:00
|
|
|
_meta?: Record<string, any>;
|
2024-08-27 16:19:38 +07:00
|
|
|
}[] = [
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.passport',
|
|
|
|
|
value: 'passport',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.visa',
|
|
|
|
|
value: 'visa',
|
2024-09-18 10:59:21 +07:00
|
|
|
_meta: {
|
|
|
|
|
number: '',
|
|
|
|
|
type: '',
|
|
|
|
|
entryCount: 0,
|
|
|
|
|
issueCountry: '',
|
|
|
|
|
issuePlace: '',
|
|
|
|
|
issueDate: new Date(),
|
|
|
|
|
expireDate: new Date(),
|
|
|
|
|
mrz: '',
|
|
|
|
|
remark: '',
|
|
|
|
|
},
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.tm6',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.workPermit',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.noticeJobEmployment',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.noticeJobEntry',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.historyJob',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.acceptJob',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.receipt',
|
2024-09-18 10:59:21 +07:00
|
|
|
value: 'other',
|
2024-08-27 16:19:38 +07:00
|
|
|
},
|
|
|
|
|
{
|
2024-08-28 15:07:31 +07:00
|
|
|
label: 'customerEmployee.fileType.other',
|
2024-08-27 16:19:38 +07:00
|
|
|
value: 'other',
|
|
|
|
|
},
|
2024-08-26 18:05:33 +07:00
|
|
|
];
|
|
|
|
|
|
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-09-18 10:59:21 +07:00
|
|
|
export const columnsAttachment = [
|
|
|
|
|
{
|
|
|
|
|
name: 'orderNumber',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'general.orderNumber',
|
|
|
|
|
field: 'branchNo',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'document',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'general.document',
|
|
|
|
|
field: 'attachmentName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'uploadDate',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'general.uploadDate',
|
|
|
|
|
field: 'uploadDate',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'action',
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'action',
|
|
|
|
|
},
|
|
|
|
|
] satisfies QTableProps['columns'];
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
export const columnsEmployee = [
|
2024-08-19 13:19:07 +07:00
|
|
|
{
|
|
|
|
|
name: 'orderNumber',
|
|
|
|
|
align: 'center',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'general.orderNumber',
|
2024-08-19 13:19:07 +07:00
|
|
|
field: 'branchNo',
|
|
|
|
|
},
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
|
|
|
|
name: 'firstName',
|
|
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'general.name',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'firstName',
|
2024-08-19 13:19:07 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2024-08-26 16:24:08 +07:00
|
|
|
name: 'general.age',
|
2024-08-19 13:19:07 +07:00
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'general.age',
|
2024-08-19 13:19:07 +07:00
|
|
|
field: 'dateOfBirth',
|
2024-08-02 13:58:44 +07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'formDialogInputNationality',
|
|
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'general.nationality',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'nationality',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'formDialogInputPassportNo',
|
|
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'customerEmployee.form.passportNo',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'passportNumber',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'passportExpiryDate',
|
|
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'customerEmployee.form.passportExpireDate',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'passportExpiryDate',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'formDialogEmployeeNRCNo',
|
|
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'customerEmployee.form.nrcNo',
|
2024-08-02 13:58:44 +07:00
|
|
|
field: 'nrcNo',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'branchLabel',
|
|
|
|
|
align: 'left',
|
2024-08-26 16:24:08 +07:00
|
|
|
label: 'customerEmployee.branch',
|
2024-08-02 13:58:44 +07:00
|
|
|
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
|
|
|
{
|
2024-09-18 11:41:03 +07:00
|
|
|
name: 'titleName',
|
2024-08-02 13:58:44 +07:00
|
|
|
align: 'left',
|
2024-09-18 11:41:03 +07:00
|
|
|
label: 'customer.table.titleName',
|
|
|
|
|
field: 'titleName',
|
2024-08-02 13:58:44 +07:00
|
|
|
sortable: true,
|
|
|
|
|
},
|
2024-08-20 17:56:05 +07:00
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
2024-08-21 15:40:37 +07:00
|
|
|
name: 'businessTypePure',
|
2024-08-02 13:58:44 +07:00
|
|
|
align: 'center',
|
2024-08-20 17:56:05 +07:00
|
|
|
label: 'customer.table.businessTypePure',
|
2024-08-21 15:40:37 +07:00
|
|
|
field: 'businessTypePure',
|
2024-08-02 13:58:44 +07:00
|
|
|
sortable: true,
|
|
|
|
|
},
|
2024-08-20 17:56:05 +07:00
|
|
|
|
|
|
|
|
{
|
2024-09-17 18:01:13 +07:00
|
|
|
name: 'jobPosition',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'customer.table.jobPosition',
|
|
|
|
|
field: 'jobPosition',
|
|
|
|
|
sortable: true,
|
2024-08-02 13:58:44 +07:00
|
|
|
},
|
|
|
|
|
|
2024-09-18 11:41:03 +07:00
|
|
|
{
|
|
|
|
|
name: 'address',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'customer.table.address',
|
|
|
|
|
field: 'address',
|
|
|
|
|
sortable: true,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'contactName',
|
|
|
|
|
align: 'center',
|
|
|
|
|
label: 'customer.table.contactName',
|
|
|
|
|
field: 'contactName',
|
|
|
|
|
sortable: true,
|
|
|
|
|
},
|
|
|
|
|
|
2024-08-02 13:58:44 +07:00
|
|
|
{
|
2024-09-17 18:01:13 +07:00
|
|
|
name: 'officeTel',
|
2024-08-02 13:58:44 +07:00
|
|
|
align: 'left',
|
2024-09-17 18:01:13 +07:00
|
|
|
label: 'customer.table.officeTel',
|
|
|
|
|
field: 'officeTel',
|
2024-08-20 17:56:05 +07:00
|
|
|
},
|
2024-08-02 13:58:44 +07:00
|
|
|
] satisfies QTableProps['columns'];
|