refactor: handle btn
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
This commit is contained in:
parent
044a530b8d
commit
02d02cf3a1
1 changed files with 7 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
"
|
||||
/>
|
||||
</nav>
|
||||
<!-- #TODO add goToQuotation as @goto-quotation-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue