|
|
|
@ -184,17 +184,6 @@
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<el-table v-loading="loading" :data="list">
|
|
|
|
|
<el-table-column label="制单人" align="center" prop="createBy" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="创建日期"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="createTime"
|
|
|
|
|
width="180"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="业务实体" align="center" prop="company" />
|
|
|
|
|
<el-table-column label="所属部门" align="center" prop="deptName" />
|
|
|
|
|
<el-table-column label="员工姓名" align="center" prop="name" />
|
|
|
|
@ -239,12 +228,32 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="制单人" align="center" prop="createBy" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="创建日期"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="createTime"
|
|
|
|
|
width="180"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
align="center"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
fixed="right"
|
|
|
|
|
width="180px"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
@click="handleView(scope.row)"
|
|
|
|
|
>查看
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
@ -290,7 +299,21 @@
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="业务实体" prop="company">
|
|
|
|
|
<el-input v-model="form.company" placeholder="请输入业务实体" />
|
|
|
|
|
<!-- <el-input v-model="form.company" placeholder="请输入业务实体" /> -->
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.company"
|
|
|
|
|
placeholder="请选择业务实体"
|
|
|
|
|
value-key="id"
|
|
|
|
|
@change="handleCompanyChange"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in organizationList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item"
|
|
|
|
|
:label="item.organizationName"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -386,42 +409,43 @@
|
|
|
|
|
<el-input v-model="form.education" placeholder="请输入学历" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="教育经历" prop="educationExperience">
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="工作经历" prop="workExperience">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.educationExperience"
|
|
|
|
|
v-model="form.workExperience"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入教育经历"
|
|
|
|
|
placeholder="请输入工作经历"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="工作经历" prop="workExperience">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="教育经历" prop="educationExperience">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.workExperience"
|
|
|
|
|
v-model="form.educationExperience"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入工作经历"
|
|
|
|
|
placeholder="请输入教育经历"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="职位" prop="jobTitle">
|
|
|
|
|
<el-input v-model="form.jobTitle" placeholder="请输入职位" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="职位" prop="jobTitle">
|
|
|
|
|
<el-input v-model="form.jobTitle" placeholder="请输入职位" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="职位级别" prop="jobLevel">
|
|
|
|
|
<el-input v-model="form.jobLevel" placeholder="请输入职位级别" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-form-item label="职位描述">
|
|
|
|
|
<editor v-model="form.jobDescription" :min-height="192" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="薪酬" prop="salary">
|
|
|
|
@ -436,17 +460,15 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="体检记录" prop="medicalRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.medicalRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入体检记录"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-form-item label="体检记录" prop="medicalRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.medicalRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入体检记录"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="疾病史" prop="diseaseHistory">
|
|
|
|
@ -505,81 +527,63 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-form-item label="考核评价" prop="leaveRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.leaveRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入考核评价"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="奖惩记录" prop="overtimeRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.overtimeRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入奖惩记录"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="培训计划" prop="welfareBenefits">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.welfareBenefits"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入培训计划"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="培训成果" prop="performanceEvaluation">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.performanceEvaluation"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入培训成果"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="个人标签" prop="rewardsPunishments">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.rewardsPunishments"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入个人标签"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="兴趣爱好" prop="trainingRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.trainingRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入兴趣爱好"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="特长" prop="personalDescription">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.personalDescription"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="考核评价" prop="leaveRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.leaveRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入考核评价"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="奖惩记录" prop="overtimeRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.overtimeRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入奖惩记录"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="培训计划" prop="welfareBenefits">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.welfareBenefits"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入培训计划"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="培训成果" prop="performanceEvaluation">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.performanceEvaluation"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入培训成果"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="个人标签" prop="rewardsPunishments">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.rewardsPunishments"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入个人标签"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="兴趣爱好" prop="trainingRecords">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.trainingRecords"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入兴趣爱好"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="特长" prop="personalDescription">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.personalDescription"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }"
|
|
|
|
|
type="textarea"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="年度" prop="year">
|
|
|
|
|
<el-date-picker
|
|
|
|
@ -608,41 +612,20 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="借阅状态" prop="borrowStatus">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.borrowStatus"
|
|
|
|
|
placeholder="请选择借阅状态"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="归档时间" prop="recordTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
<el-form-item label="纸档位置" prop="position">
|
|
|
|
|
<el-cascader
|
|
|
|
|
v-model="siteArray"
|
|
|
|
|
:options="siteOptions"
|
|
|
|
|
:props="propName"
|
|
|
|
|
placeholder="请选择纸档位置"
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.recordTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="选择归档时间"
|
|
|
|
|
@change="handleSiteChanged"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="纸档位置" prop="position">
|
|
|
|
|
<el-input v-model="form.position" placeholder="请输入纸档位置" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="完整性" prop="cherks">
|
|
|
|
|
<el-select v-model="form.cherks" placeholder="请选择归档状态">
|
|
|
|
|
<el-select v-model="form.cherks" placeholder="请选择完整性">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in this.getDictDatas(DICT_TYPE.CHERKS)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
@ -652,24 +635,15 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="归档状态" prop="fileStatus">
|
|
|
|
|
<el-select v-model="form.fileStatus" placeholder="请选择归档状态">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in this.getDictDatas(
|
|
|
|
|
DICT_TYPE.ARCHIVES_FILE_STATUS
|
|
|
|
|
)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-form-item label="职位描述">
|
|
|
|
|
<editor v-model="form.jobDescription" :min-height="192" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm" v-if="optType != 'view'"
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -686,6 +660,8 @@ import {
|
|
|
|
|
exportElectronicEmployeeExcel,
|
|
|
|
|
} from "@/api/ea/electronicEmployee/electronicEmployee";
|
|
|
|
|
import Editor from "@/components/Editor";
|
|
|
|
|
import { getOrganizationPage } from "@/api/setting/organization";
|
|
|
|
|
import { getSiteTree } from "@/api/setting/organization";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "ElectronicEmployee",
|
|
|
|
@ -694,8 +670,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
propName: {
|
|
|
|
|
label: "pName",
|
|
|
|
|
value: "pId",
|
|
|
|
|
multiple: false,
|
|
|
|
|
},
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
optType: undefined,
|
|
|
|
|
// 导出遮罩层
|
|
|
|
|
exportLoading: false,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
@ -722,9 +704,7 @@ export default {
|
|
|
|
|
contactNumber: null,
|
|
|
|
|
idCardNumber: null,
|
|
|
|
|
year: null,
|
|
|
|
|
// year: [],
|
|
|
|
|
period: null,
|
|
|
|
|
// period: [],
|
|
|
|
|
borrowStatus: null,
|
|
|
|
|
recordTime: [],
|
|
|
|
|
position: null,
|
|
|
|
@ -739,10 +719,15 @@ export default {
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {},
|
|
|
|
|
organizationList: [],
|
|
|
|
|
siteOptions: [], //归档位置数据
|
|
|
|
|
siteArray: [], //归档位置选中值
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getOrganizationList();
|
|
|
|
|
this.getSiteList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询列表 */
|
|
|
|
@ -755,6 +740,40 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//获取归档位置
|
|
|
|
|
getSiteList() {
|
|
|
|
|
getSiteTree().then((response) => {
|
|
|
|
|
this.siteOptions = response.data;
|
|
|
|
|
this.siteOptions.map((w) => {
|
|
|
|
|
w.children.map((l) => {
|
|
|
|
|
let lstr = JSON.stringify(l.children)
|
|
|
|
|
.replace(/depotId/g, "lId")
|
|
|
|
|
.replace(/cabinetId/g, "pId")
|
|
|
|
|
.replace(/cabinetName/g, "pName");
|
|
|
|
|
l.children = JSON.parse(lstr);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let wstr = JSON.stringify(w.children)
|
|
|
|
|
.replace(/organizationId/g, "wId")
|
|
|
|
|
.replace(/depotId/g, "pId")
|
|
|
|
|
.replace(/depotName/g, "pName");
|
|
|
|
|
w.children = JSON.parse(wstr);
|
|
|
|
|
});
|
|
|
|
|
let ostr = JSON.stringify(this.siteOptions)
|
|
|
|
|
.replace(/organizationId/g, "pId")
|
|
|
|
|
.replace(/organizationName/g, "pName");
|
|
|
|
|
this.siteOptions = JSON.parse(ostr);
|
|
|
|
|
// console.log(this.siteOptions);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//选择默认的归档位置
|
|
|
|
|
handleSiteChanged(obj) {
|
|
|
|
|
if (obj != null) {
|
|
|
|
|
this.form.organizationId = obj[0];
|
|
|
|
|
this.form.depotId = obj[1];
|
|
|
|
|
this.form.cabinetId = obj[2];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 取消按钮 */
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
@ -822,11 +841,25 @@ export default {
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.optType = "add";
|
|
|
|
|
this.title = "添加员工档案";
|
|
|
|
|
},
|
|
|
|
|
/** 查看按钮操作 */
|
|
|
|
|
handleView(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.optType = "view";
|
|
|
|
|
const id = row.id;
|
|
|
|
|
getElectronicEmployee(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.dateArray(this.form.birthdate);
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "查看员工档案";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.optType = "edit";
|
|
|
|
|
const id = row.id;
|
|
|
|
|
getElectronicEmployee(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
@ -835,6 +868,17 @@ export default {
|
|
|
|
|
this.title = "修改员工档案";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 获取业务实体
|
|
|
|
|
getOrganizationList() {
|
|
|
|
|
getOrganizationPage().then((response) => {
|
|
|
|
|
this.organizationList = response.data.list;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 业务实体选择事件
|
|
|
|
|
handleCompanyChange(val) {
|
|
|
|
|
this.form.companyId = val.id;
|
|
|
|
|
this.form.company = val.organizationName;
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|