feat: add i18n
This commit is contained in:
parent
52c18e6a6c
commit
6c30e4412d
5 changed files with 48 additions and 18 deletions
|
|
@ -401,6 +401,20 @@ export default {
|
||||||
mother: 'Mother',
|
mother: 'Mother',
|
||||||
motherBirthPlace: 'Mother Birth Place',
|
motherBirthPlace: 'Mother Birth Place',
|
||||||
},
|
},
|
||||||
|
fileType: {
|
||||||
|
passport: 'Passport',
|
||||||
|
visa: 'VISA',
|
||||||
|
tm6: 'TM.6',
|
||||||
|
workPermit: 'Work Permit',
|
||||||
|
noticeJobEmployment: 'Foreign Worker Employment Notification Form',
|
||||||
|
noticeJobEntry:
|
||||||
|
'Foreign Worker Employment Commencement Notification Form',
|
||||||
|
historyJob: 'Employment History Form',
|
||||||
|
acceptJob:
|
||||||
|
'Acknowledgement of Foreign Worker Employment Notification Form',
|
||||||
|
receipt: 'Receipt',
|
||||||
|
other: 'Other',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
customerBranch: {
|
customerBranch: {
|
||||||
tab: {
|
tab: {
|
||||||
|
|
|
||||||
|
|
@ -400,6 +400,18 @@ export default {
|
||||||
mother: 'มารดา',
|
mother: 'มารดา',
|
||||||
motherBirthPlace: 'สถานที่เกิดของมารดา',
|
motherBirthPlace: 'สถานที่เกิดของมารดา',
|
||||||
},
|
},
|
||||||
|
fileType: {
|
||||||
|
passport: 'ข้อมูลหนังสือการเดินทาง',
|
||||||
|
visa: 'ข้อมูลการตรวจลงตรา',
|
||||||
|
tm6: 'ตม.6',
|
||||||
|
workPermit: 'ใบอนุญาตทำงาน',
|
||||||
|
noticeJobEmployment: 'แบบแจ้งการจ้างคนต่างด้าวทำงาน',
|
||||||
|
noticeJobEntry: 'แบบแจ้งเข้าทำงานของคนต่างด้าว',
|
||||||
|
historyJob: 'ใบคัดประวัติระบบจัดหางาน',
|
||||||
|
acceptJob: 'ใบตอบรับการแจ้งเกี่ยวกับการทำงานของคนต่างด้าว',
|
||||||
|
receipt: 'ใบเสร็จรับเงิน',
|
||||||
|
other: 'อื่นๆ',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
customerBranch: {
|
customerBranch: {
|
||||||
tab: {
|
tab: {
|
||||||
|
|
|
||||||
|
|
@ -3120,7 +3120,11 @@ const emptyCreateDialog = ref(false);
|
||||||
const _group = c.group || 'other';
|
const _group = c.group || 'other';
|
||||||
if (!a[_group]) {
|
if (!a[_group]) {
|
||||||
a[_group] = {
|
a[_group] = {
|
||||||
label: _group,
|
label: $t(
|
||||||
|
uploadFileListEmployee.find(
|
||||||
|
(v) => v.value === _group,
|
||||||
|
)?.label || _group,
|
||||||
|
),
|
||||||
file: [
|
file: [
|
||||||
{
|
{
|
||||||
label:
|
label:
|
||||||
|
|
|
||||||
|
|
@ -49,43 +49,43 @@ export const uploadFileListEmployee: {
|
||||||
value: string;
|
value: string;
|
||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
label: 'ข้อมูลหนังสือการเดินทาง',
|
label: 'customerEmployee.fileType.passport',
|
||||||
value: 'travelBook',
|
value: 'passport',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ข้อมูลการตรวจลงตรา',
|
label: 'customerEmployee.fileType.visa',
|
||||||
value: 'checkList',
|
value: 'visa',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ตม.6',
|
label: 'customerEmployee.fileType.tm6',
|
||||||
value: 'tm6',
|
value: 'tm6',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ใบอนุญาตทำงาน',
|
label: 'customerEmployee.fileType.workPermit',
|
||||||
value: 'license',
|
value: 'workPermit',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'แบบแจ้งการจ้างคนต่างด้าวทำงาน',
|
label: 'customerEmployee.fileType.noticeJobEmployment',
|
||||||
value: 'noticeJob',
|
value: 'noticeJobEmployment',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'แบบแจ้งเข้าทำงานของคนต่างด้าว',
|
label: 'customerEmployee.fileType.noticeJobEntry',
|
||||||
value: 'noticeJobOther',
|
value: 'noticeJobEntry',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ใบคัดประวัติระบบจัดหางาน',
|
label: 'customerEmployee.fileType.historyJob',
|
||||||
value: 'historyJob',
|
value: 'historyJob',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ใบตอบรับการแจ้งเกี่ยวกับการทำงานของคนต่างด้าว',
|
label: 'customerEmployee.fileType.acceptJob',
|
||||||
value: 'acceptJob',
|
value: 'acceptJob',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ใบเสร็จรับเงิน',
|
label: 'customerEmployee.fileType.receipt',
|
||||||
value: 'receipt',
|
value: 'receipt',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'อื่นๆ',
|
label: 'customerEmployee.fileType.other',
|
||||||
value: 'other',
|
value: 'other',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -88,9 +88,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
||||||
const _name = file.name;
|
const _name = file.name;
|
||||||
const _ext = _name.split('.').at(-1);
|
const _ext = _name.split('.').at(-1);
|
||||||
|
|
||||||
let filename = group || 'other' + '-' + Date.now();
|
let filename = (group || 'other') + '-' + Date.now();
|
||||||
|
|
||||||
if (_ext) filename += '.' + _ext;
|
if (_ext) filename = filename + '.' + _ext;
|
||||||
|
|
||||||
await uploadAttachment(res.data.id, file, filename);
|
await uploadAttachment(res.data.id, file, filename);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue