refactor: handle QuotationStatus at create
This commit is contained in:
parent
b74a8d1a09
commit
d9c4de6315
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export const useQuotationStore = defineStore('quotation-store', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createQuotation(data: QuotationPayload) {
|
async function createQuotation(data: QuotationPayload) {
|
||||||
const { _count, ...payload } = data;
|
const { _count, quotationStatus, ...payload } = data;
|
||||||
|
|
||||||
const res = await api.post('/quotation', {
|
const res = await api.post('/quotation', {
|
||||||
...payload,
|
...payload,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue