入职离职工作流基础架构搭建

This commit is contained in:
2025-02-24 18:48:42 +08:00
parent 46d601745f
commit f229565c36
7 changed files with 89 additions and 43 deletions

View File

@@ -25,7 +25,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:offboarding:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@@ -36,7 +37,8 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:offboarding:edit']"
>修改</el-button>
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@@ -47,7 +49,8 @@
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:offboarding:remove']"
>删除</el-button>
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@@ -57,15 +60,16 @@
size="mini"
@click="handleExport"
v-hasPermi="['system:offboarding:export']"
>导出</el-button>
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="offboardingList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="序号" align="center" type="index"/>
<el-table-column label="姓名" align="center" prop="nickName" />
<el-table-column label="姓名" align="center" prop="nickName"/>
<el-table-column label="离职日期" align="center" prop="resignationDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.resignationDate, '{y}-{m}-{d}') }}</span>
@@ -73,32 +77,42 @@
</el-table-column>
<el-table-column label="离职面谈" align="center" prop="exitInterview">
<template slot-scope="scope">
<el-tag :type="scope.row.exitInterview===1?'success':'warning'">{{ scope.row.exitInterview===1?'完成':'未完成' }}</el-tag>
<el-tag :type="scope.row.exitInterview===1?'success':'warning'">
{{ scope.row.exitInterview === 1 ? '完成' : '未完成' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="工作交接" align="center" prop="handoverCompleted">
<template slot-scope="scope">
<el-tag :type="scope.row.handoverCompleted===1?'success':'warning'">{{ scope.row.handoverCompleted===1?'完成':'未完成' }}</el-tag>
<el-tag :type="scope.row.handoverCompleted===1?'success':'warning'">
{{ scope.row.handoverCompleted === 1 ? '完成' : '未完成' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="离职原因" align="center" prop="exitReason" />
<el-table-column label="最终工资" align="center" prop="finalSalary" />
<el-table-column label="离职原因" align="center" prop="exitReason"/>
<el-table-column label="最终工资" align="center" prop="finalSalary"/>
<el-table-column label="离职申请书" align="center" prop="resignationApplicationSubmitted">
<template slot-scope="scope">
<el-tag :type="scope.row.resignationApplicationSubmitted===1?'success':'warning'">{{ scope.row.resignationApplicationSubmitted===1?'已提交':'未提交' }}</el-tag>
<el-tag :type="scope.row.resignationApplicationSubmitted===1?'success':'warning'">
{{ scope.row.resignationApplicationSubmitted === 1 ? '已提交' : '未提交' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="离职证明" align="center" prop="exitCertificateIssued">
<template slot-scope="scope">
<el-tag :type="scope.row.exitCertificateIssued===1?'success':'warning'">{{ scope.row.exitCertificateIssued===1?'已开据':'未开据' }}</el-tag>
<el-tag :type="scope.row.exitCertificateIssued===1?'success':'warning'">
{{ scope.row.exitCertificateIssued === 1 ? '已开据' : '未开据' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="离职状态" align="center" prop="offboardingConfirmed">
<template slot-scope="scope">
<el-tag :type="scope.row.exitCertificateIssued===1?'success':'warning'">{{ scope.row.exitCertificateIssued===1?'已离职':'手续未完善' }}</el-tag>
<el-tag :type="scope.row.exitCertificateIssued===1?'success':'warning'">
{{ scope.row.exitCertificateIssued === 1 ? '已离职' : '手续未完善' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="备注" align="center" prop="remark"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope">
<el-button
@@ -108,14 +122,16 @@
v-if="scope.row.dataBackupCompleted!==1"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:offboarding:edit']"
>离职跟进</el-button>
>离职跟进
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:offboarding:remove']"
>删除</el-button>
>删除
</el-button>
<el-button
size="mini"
@@ -124,7 +140,8 @@
v-if="scope.row.offboardingConfirmed===1&&scope.row.dataBackupCompleted!==1"
@click="handleClose(scope.row)"
v-hasPermi="['system:offboarding:remove']"
>离职完成</el-button>
>离职完成
</el-button>
</template>
</el-table-column>
</el-table>
@@ -140,7 +157,7 @@
</template>
<script>
import { listOffboarding, getOffboarding, delOffboarding, addOffboarding, updateOffboarding } from "@/api/oa/offboarding";
import {listOffboarding, getOffboarding, delOffboarding, addOffboarding, updateOffboarding} from "@/api/oa/offboarding";
import {delUser} from "@/api/system/user";
export default {
@@ -188,9 +205,7 @@ export default {
// 表单参数
form: {},
// 表单校验
rules: {
}
rules: {}
};
},
created() {
@@ -198,7 +213,7 @@ export default {
},
methods: {
// 操作离职删除oa账号
handleClose(row){
handleClose(row) {
this.$confirm('此操作将永久删除该办公系统账号, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@@ -275,7 +290,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.offboardingId)
this.single = selection.length!==1
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
@@ -284,7 +299,7 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.$router.push('/people/updateOffboarding/' + row.offboardingId);
this.$router.push('/people/updateOffboarding/' + row.offboardingId);
},
/** 提交按钮 */
submitForm() {