refactor: add constant
This commit is contained in:
parent
5410dcecf7
commit
9883eebd67
1 changed files with 55 additions and 7 deletions
|
|
@ -78,7 +78,17 @@ export const uploadFileListCustomer: {
|
|||
export const uploadFileListEmployee: {
|
||||
label: string;
|
||||
value: string;
|
||||
_meta?: Record<string, any>;
|
||||
}[] = [
|
||||
{
|
||||
label: 'customer.form.citizenId',
|
||||
value: 'citizen',
|
||||
_meta: {
|
||||
firstName: '',
|
||||
lastName: '',
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
label: 'customerEmployee.fileType.passport',
|
||||
value: 'passport',
|
||||
|
|
@ -86,34 +96,45 @@ export const uploadFileListEmployee: {
|
|||
{
|
||||
label: 'customerEmployee.fileType.visa',
|
||||
value: 'visa',
|
||||
_meta: {
|
||||
number: '',
|
||||
type: '',
|
||||
entryCount: 0,
|
||||
issueCountry: '',
|
||||
issuePlace: '',
|
||||
issueDate: new Date(),
|
||||
expireDate: new Date(),
|
||||
mrz: '',
|
||||
remark: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.tm6',
|
||||
value: 'tm6',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.workPermit',
|
||||
value: 'workPermit',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.noticeJobEmployment',
|
||||
value: 'noticeJobEmployment',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.noticeJobEntry',
|
||||
value: 'noticeJobEntry',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.historyJob',
|
||||
value: 'historyJob',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.acceptJob',
|
||||
value: 'acceptJob',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.receipt',
|
||||
value: 'receipt',
|
||||
value: 'other',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.other',
|
||||
|
|
@ -134,6 +155,33 @@ export const formMenuIconEmployee = [
|
|||
},
|
||||
];
|
||||
|
||||
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'];
|
||||
|
||||
export const columnsEmployee = [
|
||||
{
|
||||
name: 'orderNumber',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue