diff --git a/src/components/TabComponent.vue b/src/components/TabComponent.vue index ee9a4665..79bcfb34 100644 --- a/src/components/TabComponent.vue +++ b/src/components/TabComponent.vue @@ -17,6 +17,8 @@ const index = ref(0); function addData() { index.value++; customerBranch.value.push({ + code: '', + branchNo: undefined, address: '', addressEN: '', provinceId: '', @@ -91,7 +93,7 @@ function close(index: number) { v-for="(v, index) in customerBranch" :key="index" :name="index" - :label="`${$t('customerBranchFormTab')} ${index + 1}`" + :label="`${$t('customerBranchFormTab')} `" @click="tab = index" no-caps :class="tab === index ? '' : 'bordered-b bordered-r'" diff --git a/src/stores/customer/types.ts b/src/stores/customer/types.ts index 816d7156..bbc1ec58 100644 --- a/src/stores/customer/types.ts +++ b/src/stores/customer/types.ts @@ -63,7 +63,7 @@ export type CustomerBranch = { export type CustomerBranchCreate = { code?: string; - branchNo: number; + branchNo?: number; address: string; addressEN: string; provinceId?: string | null;