diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index 0de9adcf..97d6cbb2 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -73,6 +73,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { const res = await api.post('/quotation', { ...payload, paySplit: data.paySplit.map((v) => ({ + name: v.name, amount: v.amount, })), productServiceList: data.productServiceList.map((v) => ({ @@ -108,6 +109,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { const res = await api.put(`/quotation/${data.id}`, { ...payload, paySplit: data.paySplit.map((v) => ({ + name: v.name, amount: v.amount, })), productServiceList: payload.productServiceList.map((v) => ({ @@ -119,6 +121,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { workId: v.work?.id, serviceId: v.service?.id, workerIndex: v.workerIndex, + installmentNo: v.installmentNo, })), id: undefined, });