Browse Source

2024-03-26 报价BOM修改

master
zelian_wu 2 years ago
parent
commit
6d659fdb00
  1. 2
      src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue
  2. 10
      src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue
  3. 4
      src/views/modules/quotation/sellForQuotation/quoteDetail.vue

2
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

10
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)
})
},

4
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 {
<bill-of-materiel ref="bom" :total-cost.sync="BOMCost" :loading-status.sync="loadingStatus" :updateTree.sync="update" v-if="quotationDetailFlag" :height="fullscreen?655:415" :detail="quotationDetail"></bill-of-materiel>
</el-tab-pane>
<el-tab-pane name="routing" label="工艺">
<quote-routing ref="routing" v-if="quotationDetailFlag" :height="fullscreen?655:415" :detail="quotationDetail"></quote-routing>
<quote-routing ref="routing" v-if="quotationDetailFlag" :loading-status.sync="loadingStatus" :height="fullscreen?655:415" :detail="quotationDetail"></quote-routing>
</el-tab-pane>
<el-tab-pane name="tool" label="工具">
<tool-quotation ref="tool" :total-cost.sync="ToolCost" v-if="quotationDetailFlag" :height="fullscreen?660:420" :detail="quotationDetail"></tool-quotation>

Loading…
Cancel
Save