diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 2c0d8b9f..f554c6aa 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -160,7 +160,7 @@ async function submitCustomer() { async function triggerDialogDeleteQuottaion(id: string) { quotationFormStore.dialogDelete(async () => { - await quotationStore.deleteQuottaion(id); + await quotationStore.deleteQuotation(id); await fetchQuotationList(); }); } diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index 4f99a99b..d5a54891 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -12,12 +12,11 @@ import { PaymentPayload, } from './types'; import { PaginationResult } from 'src/types'; -import { AxiosInstance, AxiosProgressEvent } from 'axios'; +import { AxiosProgressEvent } from 'axios'; -import { baseUrl, manageAttachment } from '../utils'; +import { manageAttachment } from '../utils'; export const useQuotationStore = defineStore('quotation-store', () => { - const base = ref(''); const data = ref([]); const page = ref(1); const pageMax = ref(1); @@ -110,7 +109,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { return null; } - async function deleteQuottaion(id: string) { + async function deleteQuotation(id: string) { const res = await api.delete(`/quotation/${id}`); if (res.status < 400) { return res.data; @@ -129,7 +128,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { getQuotationList, createQuotation, editQuotation, - deleteQuottaion, + deleteQuotation, }; });