|
|
|
@ -322,7 +322,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleCheckedVersion() { |
|
|
|
this.handleQueryQuoteDetailBomTreeVersion(); |
|
|
|
let node = this.$refs.tree.getCurrentNode(); |
|
|
|
if (node) { |
|
|
|
this.bomEngChgLevel = { |
|
|
|
@ -334,26 +333,19 @@ export default { |
|
|
|
alternativeNo: node.alternativeNo, |
|
|
|
} |
|
|
|
} |
|
|
|
this.handleQueryQuoteDetailBomTreeVersion(); |
|
|
|
this.versionVisible = true |
|
|
|
}, |
|
|
|
handleQueryQuoteDetailBomTreeVersion() { |
|
|
|
let node = this.$refs.tree.getCurrentNode(); |
|
|
|
let params = { |
|
|
|
site: this.quoteDetail.site, |
|
|
|
partNo: this.quoteDetail.partNo, |
|
|
|
buNo: this.quoteDetail.buNo, |
|
|
|
} |
|
|
|
if (node) { |
|
|
|
params = { |
|
|
|
site: node.site, |
|
|
|
partNo: node.partNo, |
|
|
|
bomType: node.bomType, |
|
|
|
buNo: node.buNo, |
|
|
|
} |
|
|
|
...this.bomEngChgLevel, |
|
|
|
engChgLevel: '', |
|
|
|
alternativeNo: '', |
|
|
|
} |
|
|
|
queryQuoteDetailBomTreeLevel(params).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.versionList = data.rows; |
|
|
|
this.handleQueryQuoteDetailBomAlternative(); |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg); |
|
|
|
} |
|
|
|
@ -367,7 +359,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
alternativeRowStyle({row}) { |
|
|
|
let node = this.$refs.tree.getCurrentNode(); |
|
|
|
if (row.engChgLevel === this.bomEngChgLevel.engChgLevel && row.alternativeNo === this.bomEngChgLevel.alternativeNo) { |
|
|
|
return {'background-color': '#E8F7F6'}; |
|
|
|
} |
|
|
|
@ -378,6 +369,9 @@ export default { |
|
|
|
this.bomEngChgLevel.site = row.site; |
|
|
|
this.bomEngChgLevel.engChgLevel = row.engChgLevel; |
|
|
|
this.bomEngChgLevel.bomType = row.bomType; |
|
|
|
this.handleQueryQuoteDetailBomAlternative(); |
|
|
|
}, |
|
|
|
handleQueryQuoteDetailBomAlternative() { |
|
|
|
let params = { |
|
|
|
...this.bomEngChgLevel |
|
|
|
} |
|
|
|
@ -458,24 +452,6 @@ export default { |
|
|
|
isAllBom(newVal, oldVal) { |
|
|
|
this.handleQueryQuoteDetailBom(); |
|
|
|
}, |
|
|
|
'bomEngChgLevel.engChgLevel'(newVal, oldVal) { |
|
|
|
if (newVal) { |
|
|
|
let node = this.$refs.tree.getCurrentNode(); |
|
|
|
let row = { |
|
|
|
partNo: this.quoteDetail.partNo, |
|
|
|
buNo: this.quoteDetail.buNo, |
|
|
|
site: this.quoteDetail.site, |
|
|
|
engChgLevel: newVal, |
|
|
|
} |
|
|
|
if (node) { |
|
|
|
row.partNo = node.partNo; |
|
|
|
row.bomType = node.bomType; |
|
|
|
row.buNo = node.buNo; |
|
|
|
row.site = node.site; |
|
|
|
} |
|
|
|
this.levelRowClick(row) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|