zouyu
2023-12-11 41e0df8413624e6034c967f3afae30da59370879
src/views/technology/completeproductstructure/completeproductstructure-form.vue
@@ -294,7 +294,6 @@
  },
  computed: {
    editable: function() {
      console.log()
      if (!this.dataForm.id) {
        return true
      }
@@ -335,32 +334,11 @@
      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()