From 581a23d740296686b72eda41a4ec70fadef42505 Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Thu, 14 Mar 2024 17:53:04 +0800 Subject: [PATCH] =?UTF-8?q?2024-03-14=20=E6=8A=A5=E4=BB=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quotation/sellForQuotation/quoteDetail.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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){