diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 1f2f073d..a75cd3cd 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -767,8 +767,13 @@ async function filterBySellerId() { :worker-count="item.row._count.worker" :worker-max="item.row.workerMax || item.row._count.worker" :customer-name=" - item.row.customerBranch.registerName || - `${item.row.customerBranch.firstName || '-'} ${item.row.customerBranch.lastName || ''}` + item.row.customerBranch.customer.customerType === 'CORP' + ? $i18n.locale === 'tha' + ? item.row.customerBranch.registerName + : item.row.customerBranch.registerNameEN + : $i18n.locale === 'tha' + ? `${item.row.customerBranch.firstName || '-'} ${item.row.customerBranch.lastName || ''}` + : `${item.row.customerBranch.firstNameEN || '-'} ${item.row.customerBranch.lastNameEN || ''}` " :reporter=" $i18n.locale === 'eng'