k94314517
2025-07-04 50fb58286ed3b718c39a97e0987ee7561a295651
company/src/components/enterprise/addEmployeeWithDu.vue
@@ -14,7 +14,7 @@
                <el-form-item label="身份证号" required>
                    <el-input v-model="item.idCard" maxlength="18" placeholder="请输入"></el-input>
                </el-form-item>
              <el-form-item label="派遣单位" v-if="!companyId">
              <el-form-item label="派遣单位" v-if="hasDispatchUnit !== 1">
                <el-select v-model="item.duId" @change="selectChange(index)" placeholder="请选择" clearable>
                  <el-option
                      v-for="item in dispatching"
@@ -58,6 +58,7 @@
      dispatching: [],
      solutionId: null,
      companyId: null,
      hasDispatchUnit: null,
      list: [
        {
          memberName: '',
@@ -81,6 +82,7 @@
      this.tempIndex = tempIndex
      this.solutionId = obj.solutionId
      this.companyId = obj.companyId
      this.hasDispatchUnit = obj.hasDispatchUnit
      this.dispatching = []
      this.list = [
        {
@@ -96,7 +98,7 @@
      ]
      this.arr = obj.arr
      this.price = obj.price
      if (!obj.companyId) {
      if (obj.hasDispatchUnit === 0) {
        this.getFindListByDTO()
      } else {
        worktype({ id: obj.solutionId, queryType: 0 })
@@ -117,6 +119,7 @@
      this.list[index].options = []
      let duSolutionId = ''
      this.list[index].duName = null
      this.list[index].worktypeId = ''
      this.dispatching.forEach(item => {
        if (item.id === this.list[index].duId) {
          duSolutionId = item.duSolutionId