| | |
| | | }, |
| | | computed: { |
| | | editable: function() { |
| | | console.log() |
| | | if (!this.dataForm.id) { |
| | | return true |
| | | } |
| | |
| | | if (this.dataForm.id) { |
| | | getObj(this.dataForm.id).then((response) => { |
| | | var resultData = response.data.data |
| | | console.log(resultData) |
| | | this.treeForm = resultData |
| | | // this.treeForm.id = resultData.id |
| | | // this.treeForm.partId = resultData.partId |
| | | // this.treeForm.partNo = resultData.partNo |
| | | // this.treeForm.partName = resultData.partName |
| | | // this.treeForm.number = resultData.number |
| | | // this.treeForm.insulationColor = resultData.insulationColor |
| | | // this.treeForm.sheathColor = resultData.sheathColor |
| | | // this.treeForm.characteristicOne = resultData.characteristicOne |
| | | // this.treeForm.version = resultData.version |
| | | // this.treeForm.alternativeNo = resultData.alternativeNo |
| | | // this.treeForm.alternativeDesc = resultData.alternativeDesc |
| | | // this.treeForm.bomTypeDb = resultData.bomTypeDb |
| | | // this.treeForm.state = resultData.state |
| | | // this.treeForm.remark = resultData.remark |
| | | this.dataForm.state = resultData.state |
| | | this.preViewData = [] |
| | | this.preViewData.push(resultData.tree) |
| | | this.tableData = resultData.bomComponentVOS |
| | | // getPartAllStructureExt(this.treeForm).then((res) => { |
| | | // const result = res.data |
| | | // if (result.code === 0) { |
| | | // this.tableData.push(result.data) |
| | | // } |
| | | // }) |
| | | }) |
| | | } else { |
| | | this.initDefaultForm() |