feat: นิติบุคคล เพิ่ม input ชื่อเจ้าของบริษัท

This commit is contained in:
Net 2024-06-17 15:51:14 +07:00
parent 46b44a08cb
commit d3456493e9

View file

@ -2,6 +2,7 @@
import { CustomerBranch } from 'src/stores/customer/types'; import { CustomerBranch } from 'src/stores/customer/types';
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
const ownerName = defineModel<string>('ownerName');
const customerName = defineModel<string>('customerName'); const customerName = defineModel<string>('customerName');
const customerNameEn = defineModel<string>('customerNameEn'); const customerNameEn = defineModel<string>('customerNameEn');
const taxNo = defineModel<string | null | undefined>('taxNo'); const taxNo = defineModel<string | null | undefined>('taxNo');
@ -50,12 +51,12 @@ onMounted(async () => {});
v-if="typeCustomer === 'PERS'" v-if="typeCustomer === 'PERS'"
:dense="dense" :dense="dense"
:outlined="!readonly" :outlined="!readonly"
:readonly="true" :readonly="readonly"
:borderless="readonly" :borderless="readonly"
hide-bottom-space hide-bottom-space
class="col-6" class="col-6"
:label="$t('formDialogEmployerID')" :label="$t('formDialogCustomerName')"
v-model="employerID" v-model="ownerName"
/> />
<q-input <q-input
for="input-tax-no" for="input-tax-no"
@ -80,7 +81,9 @@ onMounted(async () => {});
:borderless="readonly" :borderless="readonly"
hide-bottom-space hide-bottom-space
class="col-6" class="col-6"
:label="$t('corporationThaiName')" :label="
$t(typeCustomer === 'PERS' ? 'corporationThai' : 'corporationThaiName')
"
v-model="customerName" v-model="customerName"
/> />
<q-input <q-input
@ -92,9 +95,28 @@ onMounted(async () => {});
:borderless="readonly" :borderless="readonly"
hide-bottom-space hide-bottom-space
class="col-6" class="col-6"
:label="$t('corporationEnglishName')" :label="
$t(
typeCustomer === 'PERS'
? 'corporationEnglish'
: 'corporationEnglishName',
)
"
v-model="customerNameEn" v-model="customerNameEn"
/> />
<q-input
v-if="typeCustomer !== 'PERS'"
for="input-owner-name"
:dense="dense"
:outlined="!readonly"
:readonly="readonly"
:borderless="readonly"
hide-bottom-space
class="col-6"
:label="$t('companyOwnerName')"
v-model="ownerName"
/>
</div> </div>
<div v-if="employee" class="col-9 row q-col-gutter-md"> <div v-if="employee" class="col-9 row q-col-gutter-md">