diff --git a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue index e810de4..8cffe19 100644 --- a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue +++ b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue @@ -2,7 +2,7 @@ import { deleteQuotationDetail, insertQuotationDetail, - searchQuotationDetailPageByHeaderId + searchQuotationDetailPageByHeaderId, updateQuotationDetail } from "../../../../api/quotation/quotationHeader"; import {getProjectPart, getProjectPartList} from "../../../../api/project/project"; import ToolQuotation from "./quotationDetail/toolQuotation.vue"; @@ -327,7 +327,21 @@ export default { if (!this.$refs.cost.ruleCostForm()) { return } - this.$message.success(this.$refs.cost.getQuotationDetail()) + let params = this.$refs.cost.getQuotationDetail(); + this.editQuotationDetailLoading = true; + updateQuotationDetail(params).then(({data}) => { + this.editQuotationDetailLoading = false; + if (data.code === 200) { + this.quotationDetailFlag = false; + this.initData(); + this.$message.success(data.msg); + } else { + this.$message.error(data.msg); + } + }).catch((error)=>{ + this.editQuotationDetailLoading = false; + }) + // this.$message.success(this.$refs.cost.getQuotationDetail()) // this.quotationDetailFlag = false; }, tabClick(tab){