| | |
| | | margin-bottom: 10px; |
| | | padding: 0 20px; |
| | | } |
| | | |
| | | |
| | | .standard .title *{ |
| | | font-size: 16px; |
| | | } |
| | |
| | | .standard .title .el-button * { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | |
| | | .standard .title .el-button--default{ |
| | | color: #004EA2; |
| | | } |
| | |
| | | <el-dialog |
| | | title="BOM新增" |
| | | :visible.sync="bomAddModelVisible" |
| | | width="30%" |
| | | :before-close="handleClose"> |
| | | width="30%"> |
| | | <el-form> |
| | | |
| | | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="bomAddModelVisible = false">取 消</el-button> |
| | |
| | | this.$refs.tree.filter(val); |
| | | }, |
| | | tableType(val){ |
| | | console.log(val) |
| | | this.selectProductTableData() |
| | | } |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | handleNodeClick(data) { |
| | | // console.log(data); |
| | | this.checkTreeNode = data |
| | | // this.selectMaterialTree() |
| | | this.selectProductTableData() |
| | |
| | | this.$nextTick().then(() => { |
| | | const firstNode = document.querySelector('.el-tree-node .el-tree-node__children .el-tree-node .el-tree-node__children .el-tree-node .el-tree-node__children .el-tree-node') |
| | | firstNode.click() |
| | | // console.log(firstNode) |
| | | }) |
| | | }) |
| | | |
| | | |
| | | }, |
| | | async selectProductTableData() { |
| | | switch (this.tableType) { |
| | | case 0: |
| | | const {data:technologyList} = await this.$axios.get(this.$api.url.selectTechnologyByMaterial,{params:{specificationId:this.checkTreeNode.id,technologyName:this.searchName}}) |
| | | this.tableData = technologyList |
| | | this.tableData = technologyList |
| | | break; |
| | | case 1: |
| | | const {data:productList} = await this.$axios.get(this.$api.url.selectProductByMaterial,{params:{specifications:this.checkTreeNode.id,project:this.searchName}}) |
| | |
| | | this.tableData = productList |
| | | break; |
| | | } |
| | | console.log(this.tableData) |
| | | } |
| | | } |
| | | } |