|
|
|
@ -437,6 +437,7 @@ export default { |
|
|
|
partNo:row.partNo, |
|
|
|
configurationId:row.configurationId, |
|
|
|
} |
|
|
|
this.queryLoading = true |
|
|
|
queryPartUnitCostList(params).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.testSoBom.componentPartNo = row.partNo; |
|
|
|
@ -448,8 +449,10 @@ export default { |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg); |
|
|
|
} |
|
|
|
this.queryLoading = false |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
this.queryLoading = false |
|
|
|
}) |
|
|
|
}else { |
|
|
|
this.testSoBom.componentPartNo = row.partNo; |
|
|
|
@ -673,6 +676,13 @@ export default { |
|
|
|
this.total = 0; |
|
|
|
this.closePartDialog(); |
|
|
|
} |
|
|
|
}, |
|
|
|
queryLoading(newVal,oldVal){ |
|
|
|
if (newVal){ |
|
|
|
setTimeout(()=>{ |
|
|
|
this.queryLoading = false |
|
|
|
},5000) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|