src/views/dnc/base/modules/ProductStructure/Part/PartModal.vue
@@ -44,10 +44,12 @@
        this.visible = true
        this.isAddNextLevel = true
        this.$nextTick(() => {
          this.$refs.realForm.add({
            productId: this.currentTreeNodeInfo.rfield,
            componentId: this.currentTreeNodeInfo.id
          })
          if (this.$refs.realForm) {
            this.$refs.realForm.add({
              productId: this.currentTreeNodeInfo.entity.productId,
              componentId: this.currentTreeNodeInfo.entity.componentId
            })
          }
        })
      },
@@ -58,10 +60,12 @@
        this.visible = true
        this.isAddNextLevel = false
        this.$nextTick(() => {
          this.$refs.realForm.add({
            productId: this.currentTreeNodeInfo.rfield,
            componentId: this.currentTreeNodeInfo.parentId
          })
          if (this.$refs.realForm) {
            this.$refs.realForm.add({
              productId: this.currentTreeNodeInfo.productId,
              componentId: this.currentTreeNodeInfo.componentId
            })
          }
        })
      },
@@ -72,7 +76,9 @@
        this.visible = true
        this.isAddNextLevel = false
        this.$nextTick(() => {
          this.$refs.realForm.edit({ id: this.currentTreeNodeInfo.id, ...this.currentTreeNodeInfo.entity })
          if (this.$refs.realForm) {
            this.$refs.realForm.edit({ id: this.currentTreeNodeInfo.id, ...this.currentTreeNodeInfo.entity })
          }
        })
      },