From 044a530b8d7babfca2d8c8423a9a60f1ccb0732a Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 18 Aug 2025 09:24:11 +0700 Subject: [PATCH 1/2] refactor: edit i18n --- src/i18n/tha.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index cfc68f19..0558bd78 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -799,7 +799,7 @@ export default { branch: 'สาขาที่ออกใบเสนอราคา', branchVirtual: 'จุดรับบริการที่ออกใบเสนอราคา', customer: 'ลูกค้า', - newCustomer: 'ลูกค้าใหม่', + newCustomer: 'แรงงานใหม่', employeeList: 'รายชื่อแรงงาน', employee: 'แรงงาน', employeeName: 'ชื่อ-นามสกุล แรงงาน', From 02d02cf3a18d97b3940a214f9f2dcb705b1da6e0 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 18 Aug 2025 09:24:49 +0700 Subject: [PATCH 2/2] refactor: handle btn --- src/pages/12_debit-note/FormPage.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pages/12_debit-note/FormPage.vue b/src/pages/12_debit-note/FormPage.vue index 0b6b1870..143d9f9b 100644 --- a/src/pages/12_debit-note/FormPage.vue +++ b/src/pages/12_debit-note/FormPage.vue @@ -386,7 +386,7 @@ async function assignFormData(id: string) { selectedProductGroup.value = data.productServiceList[0]?.product.productGroup?.id || ''; - ((previousValue = { + (previousValue = { id: data.id || undefined, debitNoteQuotationId: data.debitNoteQuotationId || undefined, productServiceList: structuredClone( @@ -412,7 +412,7 @@ async function assignFormData(id: string) { quotationId: data.debitNoteQuotationId, remark: data.remark || undefined, }), - (currentFormData.value = structuredClone(previousValue))); + (currentFormData.value = structuredClone(previousValue)); assignProductServiceList(); assignSelectedWorker(); @@ -1046,7 +1046,11 @@ async function submitAccepted() { :status-active="i.active?.()" :status-done="i.status === 'done'" :status-waiting="i.status === 'waiting'" - @click="i.handler()" + @click=" + () => { + if (pageState.mode !== 'create') i.handler(); + } + " />