diff --git a/src/i18n/eng/index.ts b/src/i18n/eng/index.ts index 991198ed..94feabf8 100644 --- a/src/i18n/eng/index.ts +++ b/src/i18n/eng/index.ts @@ -366,6 +366,7 @@ export default { table: { orderNumber: 'No.', fullname: 'Full Name', + titleName: 'Name', businessTypePure: 'Business Type', jobPosition: 'Job Position', address: 'Address', diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts index c02f94c9..1da30055 100644 --- a/src/i18n/tha/index.ts +++ b/src/i18n/tha/index.ts @@ -366,6 +366,7 @@ export default { table: { orderNumber: 'ลําดับ', fullname: 'ชื่อ-นามสกุล', + titleName: 'ชื่อ บริษัท/นิติบุคคล', businessTypePure: 'ประเภทกิจการ', jobPosition: 'ตำแหน่งงาน', address: 'ที่อยู่', diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 367125a8..ad02b9d8 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -914,7 +914,16 @@ const emptyCreateDialog = ref(false); class="q-ml-sm col" :options=" currentTab === 'employer' - ? fieldDisplayCustomer + ? gridView + ? fieldDisplayCustomer.filter((v) => { + return ( + v.value !== 'orderNumber' && + v.value !== 'titleName' && + v.value !== 'address' && + v.value !== 'contactName' + ); + }) + : fieldDisplayCustomer : fieldDisplayEmployee " :display-value="$t('general.displayField')" @@ -1176,7 +1185,10 @@ const emptyCreateDialog = ref(false); }} - +
@@ -1250,21 +1262,29 @@ const emptyCreateDialog = ref(false); ? optionStore.mapOption( props.row.branch[0].jobPosition, ) - : '' + : '-' : '-' }} - + {{ props.row.branch.length !== 0 - ? props.row.branch[0].officeTel !== null - ? props.row.branch[0].officeTel - : '' + ? props.row.branch[0].address !== null + ? `${props.row.branch[0].address} ${props.row.branch[0].moo} ${props.row.branch[0].soi} ${props.row.branch[0].street} จ.${props.row.branch[0].province.name} อ.${props.row.branch[0].district.name} ต.${props.row.branch[0].subDistrict.name} ${props.row.branch[0].subDistrict.zipCode}` + : '-' : '-' }} + + {{ props.row.branch[0]?.contactName || '-' }} + + + + {{ props.row.branch[0]?.officeTel || '-' }} + + +
+ + {{ + props.row.customerType === 'CORP' + ? $t('customer.form.legalPersonCode') + : $t('customer.form.cardNumber') + }} + + + {{ + props.row.customerType === 'CORP' + ? props.row.branch[0]?.legalPersonNo + : props.row.branch[0]?.citizenId + }} + +
({ name: @@ -1945,7 +1980,21 @@ const emptyCreateDialog = ref(false); foreground: 'var(--blue-6)', }" scroll-element="#customer-form-content" - /> + > + +
{{ $t('customer.form.group.branch') }} -