From d06c26c3c8f95fb6a56e3ffb7377133f38ce4a34 Mon Sep 17 00:00:00 2001 From: Aif Date: Tue, 14 Oct 2025 14:40:21 +0700 Subject: [PATCH] feat: i18n registerName --- src/pages/05_quotation/MainPage.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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'