jws-frontend/src/pages/03_customer-management/constant.ts

222 lines
4.2 KiB
TypeScript
Raw Normal View History

2024-08-02 13:58:44 +07:00
import { QTableProps } from 'quasar';
export const uploadFileListCustomer: {
label: string;
value: string;
}[] = [
{
label: 'customer.typeFile.citizenId',
value: 'citizenId',
},
{
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;
}[] = [
{
label: 'ข้อมูลหนังสือการเดินทาง',
value: 'travelBook',
},
{
label: 'ข้อมูลการตรวจลงตรา',
value: 'checkList',
},
{
label: 'ตม.6',
value: 'tm6',
},
{
label: 'ใบอนุญาตทำงาน',
value: 'license',
},
{
label: 'แบบแจ้งการจ้างคนต่างด้าวทำงาน',
value: 'noticeJob',
},
{
label: 'แบบแจ้งเข้าทำงานของคนต่างด้าว',
value: 'noticeJobOther',
},
{
label: 'ใบคัดประวัติระบบจัดหางาน',
value: 'historyJob',
},
{
label: 'ใบตอบรับการแจ้งเกี่ยวกับการทำงานของคนต่างด้าว',
value: 'acceptJob',
},
{
label: 'ใบเสร็จรับเงิน',
value: 'receipt',
},
{
label: 'อื่นๆ',
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-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
{
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: 'businessTypePure',
2024-08-02 13:58:44 +07:00
align: 'center',
2024-08-20 17:56:05 +07:00
label: 'customer.table.businessTypePure',
field: 'businessTypePure',
2024-08-02 13:58:44 +07:00
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',
},
2024-08-02 13:58:44 +07:00
] satisfies QTableProps['columns'];