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

1 year ago
  1. <script>
  2. export default {
  3. name: "quoteDetailBom",
  4. props:{
  5. quoteDetail:{
  6. type:Object,
  7. required:true
  8. },
  9. },
  10. model:{
  11. prop: "quoteDetail",
  12. event: "update"
  13. },
  14. data(){
  15. return{
  16. isAllBom:false,
  17. }
  18. },
  19. methods:{
  20. handleQueryQuoteDetailBom(){
  21. console.log(this.quoteDetail.id)
  22. },
  23. },
  24. created() {
  25. if (this.quoteDetail && this.quoteDetail.id){
  26. this.handleQueryQuoteDetailBom();
  27. }
  28. },
  29. watch:{
  30. 'quoteDetail.id'(newVal,oldVal){
  31. this.handleQueryQuoteDetailBom();
  32. },
  33. }
  34. }
  35. </script>
  36. <template>
  37. <div>
  38. <div style="margin-bottom: 10px">
  39. <el-link style="margin-right: 20px">切换版本</el-link>
  40. <el-checkbox v-model="isAllBom">全级BOM结构</el-checkbox>
  41. </div>
  42. <el-container>
  43. <el-aside width="300px">
  44. </el-aside>
  45. <el-main style="padding: 0">
  46. </el-main>
  47. </el-container>
  48. </div>
  49. </template>
  50. <style scoped>
  51. </style>