yijiusmile
2021-03-05 c91dc03aeae2d815977d3dc23e3cbe16e2dba02d
在职和离职员工查询修改
2个文件已修改
48 ■■■■■ 已修改文件
src/views/user/inemployees.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/outemployess.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/inemployees.vue
@@ -23,7 +23,7 @@
            <el-col :span="4">身份证号:
              <el-input v-model="queryParams.certificateNumb" size="small" maxlength="18" style="width:140px" />
            </el-col>
            <el-col :span="3">护卫点:
            <el-col :span="3">部门(护卫点):
              <el-input v-model="queryParams.deptName" size="small" maxlength="20" style="width:100px" />
            </el-col>
            <el-col :span="8">入职日期:
@@ -64,7 +64,7 @@
                  </td>
                </tr>
                <tr>
                  <td class="td">最高学历:</td>
                  <td class="td">学历:</td>
                  <td class="td-group">
                    <el-checkbox-group v-model="queryParams.education" class="fj-checkbox">
                      <el-checkbox label="" @change="selectAllEducation">全部</el-checkbox>
@@ -213,14 +213,14 @@
              >编辑</span>
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip="true" prop="deptName" label="护卫点" />
          <el-table-column show-overflow-tooltip="true" prop="deptName" label="部门(护卫点)" />
          <el-table-column show-overflow-tooltip="true" prop="jobName" label="岗位" width="100" />
          <el-table-column show-overflow-tooltip="true" prop="empNumb" label="员工编号" width="100" />
          <el-table-column show-overflow-tooltip="true" prop="empName" label="姓名" width="100" />
          <el-table-column show-overflow-tooltip="true" prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip="true" prop="sex" label="性别" width="80" :formatter="sexFormat" />
          <el-table-column show-overflow-tooltip="true" prop="age" label="年龄" width="80" />
          <el-table-column show-overflow-tooltip="true" prop="education" label="最高学历" width="100" :formatter="educationFormat" />
          <el-table-column show-overflow-tooltip="true" prop="education" label="学历" width="100" :formatter="educationFormat" />
          <el-table-column show-overflow-tooltip="true" prop="nativePlace" label="籍贯" :formatter="nativePlaceFormat" />
          <el-table-column show-overflow-tooltip="true" prop="telePhone" label="联系电话" />
          <el-table-column show-overflow-tooltip="true" prop="entryDate" label="入职日期" />
@@ -319,8 +319,8 @@
                    />
                  </el-select>
                </el-form-item>
                <el-form-item label="最高学历" prop="education">
                  <el-select v-model="empBaseInfoForm.education" placeholder="请选择最高学历">
                <el-form-item label="学历" prop="education">
                  <el-select v-model="empBaseInfoForm.education" placeholder="请选择学历">
                    <el-option
                      v-for="dict in educationOptions"
                      :key="dict.dicItemCode"
@@ -711,7 +711,7 @@
            <td>
              <el-checkbox label="birthdate"><span /></el-checkbox>
            </td>
            <td>最高学历</td>
            <td>学历</td>
            <td>
              <el-checkbox label="educationName"><span /></el-checkbox>
            </td>
@@ -1187,7 +1187,9 @@
        ageStr: [],
        archivesStatus: [],
        insuranceType: [],
        empStatus: []
        empStatus: [],
        empCardStatus: [],
        handbookStatus: []
      }
      this.search()
    },
src/views/user/outemployess.vue
@@ -23,7 +23,7 @@
            <el-col :span="4">身份证号:
              <el-input v-model="queryParams.certificateNumb" size="small" maxlength="18" style="width:140px" />
            </el-col>
            <el-col :span="3">护卫点:
            <el-col :span="3">部门(护卫点):
              <el-input v-model="queryParams.deptName" size="small" maxlength="20" style="width:100px" />
            </el-col>
            <el-col :span="8">入职日期:
@@ -83,7 +83,7 @@
                    </td>
                  </tr>
                  <tr>
                    <td class="td">最高学历:</td>
                    <td class="td">学历:</td>
                    <td class="td-group">
                      <el-checkbox-group v-model="queryParams.education" class="fj-checkbox">
                        <el-checkbox label="" @change="selectAllEducation">全部</el-checkbox>
@@ -190,7 +190,7 @@
          style="width: 100%;"
        >
          <el-table-column type="selection" width="55" />
          <el-table-column label="操作" width="120">
          <el-table-column label="操作" width="70">
            <template slot-scope="scope">
              <!--              <el-button-->
              <!--                type="text"-->
@@ -202,24 +202,25 @@
              <!--              </el-button>-->
              <span
                style="color: #a00515;display: inline-block;width: 50%;cursor: pointer"
                style="color: #a00515;display: inline-block;width: 100%;cursor: pointer"
                @click="editArchives(scope.row)"
              >档案</span>
              <span
              <!-- <span
                style="color: #a00515;display: inline-block;width: 50%;cursor: pointer"
                @click="editEmpBase(scope.row)"
              >编辑</span>
              >编辑</span> -->
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip="true" prop="empNumb" label="员工编号" width="100" />
          <el-table-column show-overflow-tooltip="true" prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip="true" prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip="true" prop="jobName" label="岗位" width="100" />
          <el-table-column show-overflow-tooltip="true" prop="empName" label="姓名" width="100" />
          <el-table-column show-overflow-tooltip="true" prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip="true" prop="sex" label="性别" width="60" :formatter="sexFormat" />
          <el-table-column show-overflow-tooltip="true" prop="age" label="年龄" width="60" />
          <el-table-column show-overflow-tooltip="true" prop="education" label="最高学历" width="100" :formatter="educationFormat" />
          <el-table-column show-overflow-tooltip="true" prop="censusAddress" label="籍贯" />
          <el-table-column show-overflow-tooltip="true" prop="education" label="学历" width="100" :formatter="educationFormat" />
          <el-table-column show-overflow-tooltip="true" prop="nativePlaceName" label="籍贯" />
          <el-table-column show-overflow-tooltip="true" prop="empType" label="员工类型" :formatter="empTypeFormat" />
          <el-table-column show-overflow-tooltip="true" prop="telePhone" label="联系电话" />
          <el-table-column show-overflow-tooltip="true" prop="entryDate" label="入职日期" />
          <el-table-column show-overflow-tooltip="true" prop="dimissionDate" label="离职日期" />
@@ -328,7 +329,7 @@
                <td>群众</td>
                <td>出生日期</td>
                <td>1974-02-22</td>
                <td>最高学历</td>
                <td>学历</td>
                <td>高中</td>
              </tr>
              <tr>
@@ -1025,7 +1026,8 @@
      ageStrOptions: [],
      insuranceTypeOptions: [],
      archivesStatusOptions: [],
      sexOptions: []
      sexOptions: [],
      empTypeOptions: []
    }
  },
  mounted() {
@@ -1048,6 +1050,9 @@
    this.getDicts('ageStr').then(response => {
      this.ageStrOptions = response.data
    })
    this.getDicts('empType').then(response => {
      this.empTypeOptions = response.data
    })
  },
  methods: {
    educationFormat(row, column) {
@@ -1056,6 +1061,9 @@
    sexFormat(row, column) {
      return this.selectDictLabel(this.sexOptions, row.sex)
    },
    empTypeFormat(row, column) {
      return this.selectDictLabel(this.empTypeOptions, row.empType)
    },
    editClose() {
      this.dialog.isVisible = false
    },