doum
2025-09-26 8a8d103173fe6bc5ff878c85347a59d3dec138de
admin/src/components/business/OperaInternalCompanyWindow.vue
@@ -15,10 +15,13 @@
            <el-form-item label="组织名称" prop="name">
                <el-input v-model="form.name" placeholder="请输入组织名称" v-trim/>
            </el-form-item>
          <el-form-item label="组织类型" prop="type" v-if="(editType === 'edit' && parentId) || (editType === 'add')">
            <el-form-item label="排序码" prop="sortnum">
                <el-input v-model="form.sortnum" placeholder="请输入排序码" v-trim/>
            </el-form-item>
          <el-form-item label="组织类型" prop="type" v-if="(editType === 'edit' && parentId) || (editType === 'add')" >
            <el-radio-group v-model="form.type" :disabled="(editType === 'edit') || (!!(editType === 'add' && parentId))">
              <el-radio :label="0">相关方组织</el-radio>
              <el-radio :label="1">内部组织</el-radio>
<!--              <el-radio :label="1">内部组织</el-radio>-->
            </el-radio-group>
          </el-form-item>
        </el-form>
@@ -43,7 +46,8 @@
        name: '',
        parentId: null,
        disable: false,
        parentName: ''
        parentName: '',
        sortnum: ''
      },
      editType: '',
      parentId: null,
@@ -86,7 +90,8 @@
        parentId: null,
        disable: false,
        parentName: '',
        parentType:null
        parentType: null,
        sortnum: null
      }
      if (target != null) {
        this.form.parentId = target.id
@@ -125,7 +130,8 @@
          this.api.create({
            parentId: this.form.parentId,
            name: this.form.name,
            type: this.form.type
            type: this.form.type,
            sortnum: this.form.sortnum
          })
            .then(() => {
              this.visible = false
@@ -143,7 +149,8 @@
            id: this.form.id,
            parentId: this.form.parentId,
            name: this.form.name,
            type: this.form.type
            type: this.form.type,
            sortnum: this.form.sortnum
          })
            .then(() => {
              this.visible = false