fix: typo

This commit is contained in:
Methapon Metanipat 2024-10-24 13:57:22 +07:00
parent d8051703ec
commit 0bc7aac41f
2 changed files with 5 additions and 6 deletions

View file

@ -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();
});
}

View file

@ -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<string>('');
const data = ref<Quotation[]>([]);
const page = ref<number>(1);
const pageMax = ref<number>(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,
};
});