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;
|
||||
|
||||
if (invoicePayload.value.id === undefined) {
|
||||
const res = await invoiceStore.creatInvoice(invoicePayload.value);
|
||||
const res = await invoiceStore.createInvoice(invoicePayload.value);
|
||||
if (res) status = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,8 +43,9 @@ export const useInvoice = defineStore('invoice-store', () => {
|
|||
page?: number;
|
||||
pageSize?: number;
|
||||
query?: string;
|
||||
quotationId?: string;
|
||||
}) {
|
||||
const res = await api.get<PaginationResult<Invoice>>('/workflow-template', {
|
||||
const res = await api.get<PaginationResult<Invoice>>('/invoice', {
|
||||
params,
|
||||
});
|
||||
|
||||
|
|
@ -53,7 +54,7 @@ export const useInvoice = defineStore('invoice-store', () => {
|
|||
return res.data;
|
||||
}
|
||||
|
||||
async function creatInvoice(data: InvoicePayload) {
|
||||
async function createInvoice(data: InvoicePayload) {
|
||||
const res = await api.post<Invoice>('/invoice', data);
|
||||
if (res.status >= 400) return null;
|
||||
return res;
|
||||
|
|
@ -82,7 +83,7 @@ export const useInvoice = defineStore('invoice-store', () => {
|
|||
|
||||
getInvoice,
|
||||
getInvoiceList,
|
||||
creatInvoice,
|
||||
createInvoice,
|
||||
editInvoice,
|
||||
deleteInvoice,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue