You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
934 B
56 lines
934 B
<script>
|
|
export default {
|
|
name: "quoteDetailBom",
|
|
props:{
|
|
quoteDetail:{
|
|
type:Object,
|
|
required:true
|
|
},
|
|
},
|
|
model:{
|
|
prop: "quoteDetail",
|
|
event: "update"
|
|
},
|
|
data(){
|
|
return{
|
|
isAllBom:false,
|
|
}
|
|
},
|
|
methods:{
|
|
handleQueryQuoteDetailBom(){
|
|
console.log(this.quoteDetail.id)
|
|
},
|
|
},
|
|
created() {
|
|
if (this.quoteDetail && this.quoteDetail.id){
|
|
this.handleQueryQuoteDetailBom();
|
|
}
|
|
},
|
|
watch:{
|
|
'quoteDetail.id'(newVal,oldVal){
|
|
this.handleQueryQuoteDetailBom();
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div style="margin-bottom: 10px">
|
|
<el-link style="margin-right: 20px">切换版本</el-link>
|
|
<el-checkbox v-model="isAllBom">全级BOM结构</el-checkbox>
|
|
</div>
|
|
<el-container>
|
|
<el-aside width="300px">
|
|
|
|
</el-aside>
|
|
<el-main style="padding: 0">
|
|
|
|
</el-main>
|
|
</el-container>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|