refactor: create function accepted
This commit is contained in:
parent
ec230fe472
commit
536b4314f0
1 changed files with 9 additions and 0 deletions
|
|
@ -234,6 +234,13 @@ export const useQuotationForm = defineStore('form-quotation', () => {
|
||||||
cancel: () => {},
|
cancel: () => {},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
async function accepted(id: string) {
|
||||||
|
const res = await quotationStore.changeStatus(id, 'Accepted');
|
||||||
|
if (res) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
DEFAULT_DATA,
|
DEFAULT_DATA,
|
||||||
|
|
@ -249,6 +256,8 @@ export const useQuotationForm = defineStore('form-quotation', () => {
|
||||||
dialogDelete,
|
dialogDelete,
|
||||||
resetForm,
|
resetForm,
|
||||||
|
|
||||||
|
accepted,
|
||||||
|
|
||||||
submitQuotation,
|
submitQuotation,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue