diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue index 74a0575..5404a3a 100644 --- a/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue @@ -233,7 +233,6 @@ export default { quoteDetailId:this.detail.quotationDetailId } this.treeLoading = true - this.$emit("update:loadingStatus",this.treeLoading) getBomTreeStructure(params).then(({data})=>{ if (data && data.code === 0){ this.bomTreeStructure = data.rows; @@ -312,7 +311,6 @@ export default { }, searchQuoteBomListPost(params){ this.dataListLoading = true; - this.$emit("update:loadingStatus",this.dataListLoading) searchQuoteBomList(params).then(({data})=>{ if (data && data.code === 0){ this.bomDetailList = data.rows diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue index e733438..13b47b4 100644 --- a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue @@ -20,7 +20,11 @@ export default { height:{ type:Number, default:400, - } + }, + loadingStatus:{ + type:Boolean, + default:false, + }, }, data(){ return{ @@ -409,9 +413,11 @@ export default { this.$message.warning(data.msg) } this.treeLoading = false; + this.$emit("update:loadingStatus",this.treeLoading) }).catch((error)=>{ this.$message.error(error) this.treeLoading = false; + this.$emit("update:loadingStatus",this.treeLoading) }) }, changeSelect(){ @@ -480,8 +486,10 @@ export default { }else { this.$message.warning(data.msg) } + this.$emit("update:loadingStatus",this.dataListLoading) }).catch((error)=>{ this.dataListLoading = false; + this.$emit("update:loadingStatus",this.dataListLoading) this.$message.error(error) }) }, diff --git a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue index 6a4c83e..787380a 100644 --- a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue +++ b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue @@ -905,9 +905,7 @@ export default { }else { this.$message.warning(data.msg) } - this.loadingStatus = false }).catch((error)=>{ - this.loadingStatus = false this.$message.error(error) }) }, @@ -1088,7 +1086,7 @@ export default { - +