fix: typos
This commit is contained in:
parent
5008a5e42b
commit
14ab67ccfe
2 changed files with 5 additions and 4 deletions
|
|
@ -262,7 +262,7 @@ export const useQuotationForm = defineStore('form-quotation', () => {
|
||||||
let status = false;
|
let status = false;
|
||||||
|
|
||||||
if (invoicePayload.value.id === undefined) {
|
if (invoicePayload.value.id === undefined) {
|
||||||
const res = await invoiceStore.creatInvoice(invoicePayload.value);
|
const res = await invoiceStore.createInvoice(invoicePayload.value);
|
||||||
if (res) status = true;
|
if (res) status = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,9 @@ export const useInvoice = defineStore('invoice-store', () => {
|
||||||
page?: number;
|
page?: number;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
query?: string;
|
query?: string;
|
||||||
|
quotationId?: string;
|
||||||
}) {
|
}) {
|
||||||
const res = await api.get<PaginationResult<Invoice>>('/workflow-template', {
|
const res = await api.get<PaginationResult<Invoice>>('/invoice', {
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -53,7 +54,7 @@ export const useInvoice = defineStore('invoice-store', () => {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function creatInvoice(data: InvoicePayload) {
|
async function createInvoice(data: InvoicePayload) {
|
||||||
const res = await api.post<Invoice>('/invoice', data);
|
const res = await api.post<Invoice>('/invoice', data);
|
||||||
if (res.status >= 400) return null;
|
if (res.status >= 400) return null;
|
||||||
return res;
|
return res;
|
||||||
|
|
@ -82,7 +83,7 @@ export const useInvoice = defineStore('invoice-store', () => {
|
||||||
|
|
||||||
getInvoice,
|
getInvoice,
|
||||||
getInvoiceList,
|
getInvoiceList,
|
||||||
creatInvoice,
|
createInvoice,
|
||||||
editInvoice,
|
editInvoice,
|
||||||
deleteInvoice,
|
deleteInvoice,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue