Compare commits

...

2 commits

Author SHA1 Message Date
Thanaphon Frappet
02d02cf3a1 refactor: handle btn
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
2025-08-18 09:24:49 +07:00
Thanaphon Frappet
044a530b8d refactor: edit i18n 2025-08-18 09:24:11 +07:00
2 changed files with 8 additions and 4 deletions

View file

@ -799,7 +799,7 @@ export default {
branch: 'สาขาที่ออกใบเสนอราคา', branch: 'สาขาที่ออกใบเสนอราคา',
branchVirtual: 'จุดรับบริการที่ออกใบเสนอราคา', branchVirtual: 'จุดรับบริการที่ออกใบเสนอราคา',
customer: 'ลูกค้า', customer: 'ลูกค้า',
newCustomer: 'ลูกค้าใหม่', newCustomer: 'แรงงานใหม่',
employeeList: 'รายชื่อแรงงาน', employeeList: 'รายชื่อแรงงาน',
employee: 'แรงงาน', employee: 'แรงงาน',
employeeName: 'ชื่อ-นามสกุล แรงงาน', employeeName: 'ชื่อ-นามสกุล แรงงาน',

View file

@ -386,7 +386,7 @@ async function assignFormData(id: string) {
selectedProductGroup.value = selectedProductGroup.value =
data.productServiceList[0]?.product.productGroup?.id || ''; data.productServiceList[0]?.product.productGroup?.id || '';
((previousValue = { (previousValue = {
id: data.id || undefined, id: data.id || undefined,
debitNoteQuotationId: data.debitNoteQuotationId || undefined, debitNoteQuotationId: data.debitNoteQuotationId || undefined,
productServiceList: structuredClone( productServiceList: structuredClone(
@ -412,7 +412,7 @@ async function assignFormData(id: string) {
quotationId: data.debitNoteQuotationId, quotationId: data.debitNoteQuotationId,
remark: data.remark || undefined, remark: data.remark || undefined,
}), }),
(currentFormData.value = structuredClone(previousValue))); (currentFormData.value = structuredClone(previousValue));
assignProductServiceList(); assignProductServiceList();
assignSelectedWorker(); assignSelectedWorker();
@ -1046,7 +1046,11 @@ async function submitAccepted() {
:status-active="i.active?.()" :status-active="i.active?.()"
:status-done="i.status === 'done'" :status-done="i.status === 'done'"
:status-waiting="i.status === 'waiting'" :status-waiting="i.status === 'waiting'"
@click="i.handler()" @click="
() => {
if (pageState.mode !== 'create') i.handler();
}
"
/> />
</nav> </nav>
<!-- #TODO add goToQuotation as @goto-quotation--> <!-- #TODO add goToQuotation as @goto-quotation-->