Browse Source

2024-03-14 报价修改

master
zelian_wu 2 years ago
parent
commit
581a23d740
  1. 18
      src/views/modules/quotation/sellForQuotation/quoteDetail.vue

18
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){

Loading…
Cancel
Save