From 9c230788b42f51a1e50ab2cd0ec3788b40ec21e9 Mon Sep 17 00:00:00 2001 From: net Date: Wed, 17 Sep 2025 13:31:37 +0700 Subject: [PATCH] fix: label --- src/i18n/eng.ts | 1 + src/i18n/tha.ts | 1 + src/pages/05_quotation/preview/ViewHeader.vue | 18 ++++++++++++++---- .../09_task-order/document_view/ViewHeader.vue | 4 ++-- .../document-view/ViewHeader.vue | 18 ++++++++++++++---- .../12_debit-note/document-view/ViewHeader.vue | 18 ++++++++++++++---- 6 files changed, 46 insertions(+), 14 deletions(-) diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index dc7f840c..9afb6737 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -507,6 +507,7 @@ export default { miss: 'MISS.', }, + taxpayyerNo: 'Taxpayer Identification Number', citizenId: 'Citizen ID', religion: 'Religion', issueDate: 'Issue Date', diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 7a4a4165..3430d2f6 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -508,6 +508,7 @@ export default { religion: 'ศาสนา', issueDate: 'วันที่ออกหนังสือ', passportExpiryDate: 'วันหiมดอายุหนังสือเดินทาง', + taxpayyerNo: 'เลขที่ประจำตัวผู้เสียภาษี', ownerName: 'ชื่อนายจ้าง', firstName: 'ชื่อ ', diff --git a/src/pages/05_quotation/preview/ViewHeader.vue b/src/pages/05_quotation/preview/ViewHeader.vue index ecd08850..78f66511 100644 --- a/src/pages/05_quotation/preview/ViewHeader.vue +++ b/src/pages/05_quotation/preview/ViewHeader.vue @@ -79,8 +79,8 @@ function titleMode(mode: View): string { }) }} - เลขประจำตัวผู้เสียภาษี {{ branch.taxNo }} - เบอร์โทร {{ branch.telephoneNo }} + {{ $t('branch.form.taxNo') }} {{ branch.taxNo }} + {{ $t('taskOrder.telephone') }} {{ branch.telephoneNo }} {{ branch.webUrl }}
@@ -105,8 +105,18 @@ function titleMode(mode: View): string { }) }} - เลขประจำตัวผู้เสียภาษี {{ customer.citizenId }} - เบอร์โทร {{ customer.telephoneNo }} + + {{ + customer.customer.customerType === 'CORP' + ? `${$t('customer.form.legalPersonNo')} ` + : `${$t('customer.form.taxpayyerNo')} ` + }}{{ + customer.customer.customerType === 'CORP' + ? customer.codeCustomer + : customer.citizenId + }} + + {{ $t('taskOrder.telephone') }} {{ customer.telephoneNo }}
diff --git a/src/pages/09_task-order/document_view/ViewHeader.vue b/src/pages/09_task-order/document_view/ViewHeader.vue index 0d1a89c3..9097cc89 100644 --- a/src/pages/09_task-order/document_view/ViewHeader.vue +++ b/src/pages/09_task-order/document_view/ViewHeader.vue @@ -64,8 +64,8 @@ defineProps<{ }) }} - เลขประจำตัวผู้เสียภาษี {{ branch.taxNo }} - เบอร์โทร {{ branch.telephoneNo }} + {{ $t('branch.form.taxNo') }} {{ branch.taxNo }} + {{ $t('taskOrder.telephone') }} {{ branch.telephoneNo }} {{ branch.webUrl }}
diff --git a/src/pages/11_credit-note/document-view/ViewHeader.vue b/src/pages/11_credit-note/document-view/ViewHeader.vue index 9d56ac4d..93c51dab 100644 --- a/src/pages/11_credit-note/document-view/ViewHeader.vue +++ b/src/pages/11_credit-note/document-view/ViewHeader.vue @@ -79,8 +79,8 @@ function titleMode(mode: View): string { }) }} - เลขประจำตัวผู้เสียภาษี {{ branch.taxNo }} - เบอร์โทร {{ branch.telephoneNo }} + {{ $t('branch.form.taxNo') }} {{ branch.taxNo }} + {{ $t('taskOrder.telephone') }} {{ branch.telephoneNo }} {{ branch.webUrl }}
@@ -105,8 +105,18 @@ function titleMode(mode: View): string { }) }} - เลขประจำตัวผู้เสียภาษี {{ customer.citizenId }} - เบอร์โทร {{ customer.telephoneNo }} + + {{ + customer.customer.customerType === 'CORP' + ? `${$t('customer.form.legalPersonNo')} ` + : `${$t('customer.form.taxpayyerNo')} ` + }}{{ + customer.customer.customerType === 'CORP' + ? customer.codeCustomer + : customer.citizenId + }} + + {{ $t('taskOrder.telephone') }} {{ customer.telephoneNo }}
diff --git a/src/pages/12_debit-note/document-view/ViewHeader.vue b/src/pages/12_debit-note/document-view/ViewHeader.vue index f6174ed9..cf2c055c 100644 --- a/src/pages/12_debit-note/document-view/ViewHeader.vue +++ b/src/pages/12_debit-note/document-view/ViewHeader.vue @@ -79,8 +79,8 @@ function titleMode(mode: View): string { }) }} - เลขประจำตัวผู้เสียภาษี {{ branch.taxNo }} - เบอร์โทร {{ branch.telephoneNo }} + {{ $t('branch.form.taxNo') }} {{ branch.taxNo }} + {{ $t('taskOrder.telephone') }} {{ branch.telephoneNo }} {{ branch.webUrl }}
@@ -105,8 +105,18 @@ function titleMode(mode: View): string { }) }} - เลขประจำตัวผู้เสียภาษี {{ customer.citizenId }} - เบอร์โทร {{ customer.telephoneNo }} + + {{ + customer.customer.customerType === 'CORP' + ? `${$t('customer.form.legalPersonNo')} ` + : `${$t('customer.form.taxpayyerNo')} ` + }}{{ + customer.customer.customerType === 'CORP' + ? customer.codeCustomer + : customer.citizenId + }} + + {{ $t('taskOrder.telephone') }} {{ customer.telephoneNo }}