refactor: แก้ i18n

This commit is contained in:
Net 2024-07-05 13:17:59 +07:00
parent 33bab7efb1
commit a600e52b08
2 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,8 @@ const index = ref<number>(0);
function addData() { function addData() {
index.value++; index.value++;
customerBranch.value.push({ customerBranch.value.push({
code: '',
branchNo: undefined,
address: '', address: '',
addressEN: '', addressEN: '',
provinceId: '', provinceId: '',
@ -91,7 +93,7 @@ function close(index: number) {
v-for="(v, index) in customerBranch" v-for="(v, index) in customerBranch"
:key="index" :key="index"
:name="index" :name="index"
:label="`${$t('customerBranchFormTab')} ${index + 1}`" :label="`${$t('customerBranchFormTab')} `"
@click="tab = index" @click="tab = index"
no-caps no-caps
:class="tab === index ? '' : 'bordered-b bordered-r'" :class="tab === index ? '' : 'bordered-b bordered-r'"

View file

@ -63,7 +63,7 @@ export type CustomerBranch = {
export type CustomerBranchCreate = { export type CustomerBranchCreate = {
code?: string; code?: string;
branchNo: number; branchNo?: number;
address: string; address: string;
addressEN: string; addressEN: string;
provinceId?: string | null; provinceId?: string | null;