diff --git a/src/components/03_customer-management/BasicInformation.vue b/src/components/03_customer-management/BasicInformation.vue index 0cc87bd8..6636fe1f 100644 --- a/src/components/03_customer-management/BasicInformation.vue +++ b/src/components/03_customer-management/BasicInformation.vue @@ -2,6 +2,7 @@ import { CustomerBranch } from 'src/stores/customer/types'; import { onMounted, ref } from 'vue'; +const ownerName = defineModel('ownerName'); const customerName = defineModel('customerName'); const customerNameEn = defineModel('customerNameEn'); const taxNo = defineModel('taxNo'); @@ -50,12 +51,12 @@ onMounted(async () => {}); v-if="typeCustomer === 'PERS'" :dense="dense" :outlined="!readonly" - :readonly="true" + :readonly="readonly" :borderless="readonly" hide-bottom-space class="col-6" - :label="$t('formDialogEmployerID')" - v-model="employerID" + :label="$t('formDialogCustomerName')" + v-model="ownerName" /> {}); :borderless="readonly" hide-bottom-space class="col-6" - :label="$t('corporationThaiName')" + :label=" + $t(typeCustomer === 'PERS' ? 'corporationThai' : 'corporationThaiName') + " v-model="customerName" /> {}); :borderless="readonly" hide-bottom-space class="col-6" - :label="$t('corporationEnglishName')" + :label=" + $t( + typeCustomer === 'PERS' + ? 'corporationEnglish' + : 'corporationEnglishName', + ) + " v-model="customerNameEn" /> + +