feat: เพิ่ม i18n
This commit is contained in:
parent
c69283e1b1
commit
7def527426
3 changed files with 22 additions and 5 deletions
|
|
@ -172,4 +172,7 @@ export default {
|
||||||
formDialogTabWork: 'Work ',
|
formDialogTabWork: 'Work ',
|
||||||
|
|
||||||
formDialogEmployerRanchCode: 'Branch Code',
|
formDialogEmployerRanchCode: 'Branch Code',
|
||||||
|
|
||||||
|
formTitleCustomer: 'Company {msg}',
|
||||||
|
formTitleBranch: 'Branch {msg}',
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -171,4 +171,7 @@ export default {
|
||||||
formDialogTabWork: 'ครั้งที่ ',
|
formDialogTabWork: 'ครั้งที่ ',
|
||||||
|
|
||||||
formDialogEmployerRanchCode: 'รหัสสาขา',
|
formDialogEmployerRanchCode: 'รหัสสาขา',
|
||||||
|
|
||||||
|
formTitleCustomer: 'บริษัท {msg}',
|
||||||
|
formTitleBranch: 'สาขา {msg}',
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,12 @@ const statsCustomerType = ref<CustomerStats>();
|
||||||
const currentCustomerId = ref<string>('');
|
const currentCustomerId = ref<string>('');
|
||||||
const dialogInputCustomerBranchForm = ref<boolean>(false);
|
const dialogInputCustomerBranchForm = ref<boolean>(false);
|
||||||
const currentCustomer = ref<Customer>();
|
const currentCustomer = ref<Customer>();
|
||||||
|
|
||||||
|
const currentBranch = ref<{ name: string; code: string }>({
|
||||||
|
name: '',
|
||||||
|
code: '',
|
||||||
|
});
|
||||||
|
|
||||||
const branch = ref<CustomerBranch[]>();
|
const branch = ref<CustomerBranch[]>();
|
||||||
|
|
||||||
const currentPageCustomer = ref<number>(1);
|
const currentPageCustomer = ref<number>(1);
|
||||||
|
|
@ -1282,12 +1288,17 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
@dialog="dialogInputCustomerBranchForm = true"
|
@dialog="dialogInputCustomerBranchForm = true"
|
||||||
@viewDetail="
|
@viewDetail="
|
||||||
(v) => {
|
(v) => {
|
||||||
infoDrawerBranch = true;
|
|
||||||
currentBranchId = v[0].id;
|
currentBranchId = v[0].id;
|
||||||
|
|
||||||
|
currentBranch = {
|
||||||
|
name: v[0].name,
|
||||||
|
code: v[0].code,
|
||||||
|
};
|
||||||
|
|
||||||
if (!!currentCustomer && !!v) {
|
if (!!currentCustomer && !!v) {
|
||||||
assignFormData({ ...currentCustomer, branch: v });
|
assignFormData({ ...currentCustomer, branch: v });
|
||||||
}
|
}
|
||||||
|
infoDrawerBranch = true;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
v-model:branch="branch"
|
v-model:branch="branch"
|
||||||
|
|
@ -1875,9 +1886,9 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
<!-- DRAWER INFO ของ นายจ้าง -->
|
<!-- DRAWER INFO ของ นายจ้าง -->
|
||||||
|
|
||||||
<DrawerInfo
|
<DrawerInfo
|
||||||
title="บริษัททดสอบ"
|
:title="$t('formTitleCustomer', { msg: currentCustomer?.customerName })"
|
||||||
v-model:drawer-open="infoDrawer"
|
v-model:drawer-open="infoDrawer"
|
||||||
badgeLabel="HQ006"
|
:badgeLabel="currentCustomer?.code"
|
||||||
badgeClass="app-bg-pers"
|
badgeClass="app-bg-pers"
|
||||||
:undo="() => undo()"
|
:undo="() => undo()"
|
||||||
:isEdit="infoDrawerEdit"
|
:isEdit="infoDrawerEdit"
|
||||||
|
|
@ -2065,9 +2076,9 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
|
|
||||||
<!-- DRAWER INFO ของ สาขา -->
|
<!-- DRAWER INFO ของ สาขา -->
|
||||||
<DrawerInfo
|
<DrawerInfo
|
||||||
title="สาขา"
|
:title="$t('formTitleBranch', { msg: currentBranch.name })"
|
||||||
v-model:drawer-open="infoDrawerBranch"
|
v-model:drawer-open="infoDrawerBranch"
|
||||||
badgeLabel="HQ006"
|
:badgeLabel="currentBranch.code"
|
||||||
badgeClass="app-bg-pers"
|
badgeClass="app-bg-pers"
|
||||||
:undo="() => undo()"
|
:undo="() => undo()"
|
||||||
:isEdit="infoDrawerEdit"
|
:isEdit="infoDrawerEdit"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue