feat: uncomment submit
This commit is contained in:
parent
84f5a06874
commit
74e5c6e78b
1 changed files with 5 additions and 5 deletions
|
|
@ -81,13 +81,13 @@ export const useQuotationForm = defineStore('form-quotation', () => {
|
||||||
|
|
||||||
async function submitQuotation() {
|
async function submitQuotation() {
|
||||||
if (currentFormState.value.mode === 'create') {
|
if (currentFormState.value.mode === 'create') {
|
||||||
// await quotationStore.createQuotation();
|
await quotationStore.createQuotation(currentFormData.value);
|
||||||
}
|
}
|
||||||
if (currentFormState.value.mode === 'edit' && currentFormData.value.id) {
|
if (currentFormState.value.mode === 'edit' && currentFormData.value.id) {
|
||||||
// await quotationStore.editQuotation({
|
await quotationStore.editQuotation({
|
||||||
// id: currentFormData.value.id,
|
id: currentFormData.value.id,
|
||||||
// ...currentFormData.value,
|
...currentFormData.value,
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
currentFormState.value.mode = 'info';
|
currentFormState.value.mode = 'info';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue