liukangdong
2024-06-12 a11bc1bed7953b88213330582c2085f60b5a73b1
admin/src/components/business/OperaInternalCompanyWindow.vue
@@ -16,7 +16,7 @@
                <el-input v-model="form.name" placeholder="请输入组织名称" v-trim/>
            </el-form-item>
          <el-form-item label="组织类型" prop="type">
            <el-radio-group v-model="form.type" >
            <el-radio-group v-model="form.type" :disabled="form.parentType == 0">
              <el-radio :label="0">相关方组织</el-radio>
              <el-radio :label="1">内部组织</el-radio>
            </el-radio-group>
@@ -63,7 +63,7 @@
  },
  created () {
    this.config({
      api: '/business/company',
      api: '/business/company.js',
      'field.id': 'id'
    })
  },
@@ -78,11 +78,14 @@
        name: '',
        parentId: null,
        disable: false,
        parentName: ''
        parentName: '',
        parentType:null
      }
      if (target != null) {
        this.form.parentId = target.id
        this.form.parentName = target.companyPath
        this.form.parentType = target.type
        this.form.parentName = target.companyNamePath
      }
      // 新建组织
      if (row == null) {
@@ -98,6 +101,9 @@
        for (const key in this.form) {
          this.form[key] = row[key]
        }
        if(target.type == 0){
          this.form.type = 0
        }
      })
    },
    // 确认新建/修改