|
|
@@ -17,13 +17,9 @@
|
|
|
<el-button type="primary"> 更多 </el-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-item v-on:click="changeDept()"
|
|
|
- >变更机构</el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item v-on:click="changeDept()">变更机构</el-dropdown-item>
|
|
|
<el-dropdown-item v-on:click="resign()">操作离职</el-dropdown-item>
|
|
|
- <el-dropdown-item v-on:click="transfer()"
|
|
|
- >资源转移</el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item v-on:click="transfer()">资源转移</el-dropdown-item>
|
|
|
<el-dropdown-item v-on:click="delUser()">删除</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
@@ -35,10 +31,10 @@
|
|
|
<el-descriptions title="" class="info-list" :column="2">
|
|
|
<el-descriptions-item label="工号:">{{
|
|
|
operationForm.userId
|
|
|
- }}</el-descriptions-item>
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="手机号:">{{
|
|
|
operationForm.mobile
|
|
|
- }}</el-descriptions-item>
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="所在机构:">
|
|
|
{{ operationForm.deptName }}
|
|
|
</el-descriptions-item>
|
|
|
@@ -67,12 +63,8 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <el-form
|
|
|
- :model="operationForm"
|
|
|
- ref="OperationFormRef"
|
|
|
- label-width="120"
|
|
|
- style=" box-sizing: border-box; padding: 20px;background-color: #fff;"
|
|
|
- >
|
|
|
+ <el-form :model="operationForm" ref="OperationFormRef" label-width="120"
|
|
|
+ style=" box-sizing: border-box; padding: 20px;background-color: #fff;">
|
|
|
<el-tabs v-model="activeName" class="demo-tabs">
|
|
|
<el-tab-pane label="基本信息" name="first">
|
|
|
<el-descriptions title="个人信息">
|
|
|
@@ -104,10 +96,7 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item
|
|
|
- prop="identityTimeStart"
|
|
|
- label="证件有效期始:"
|
|
|
- >
|
|
|
+ <el-form-item prop="identityTimeStart" label="证件有效期始:">
|
|
|
{{ operationForm.identityTimeStart }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -259,7 +248,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item prop="team" label="是否计算机专业:">
|
|
|
- {{ operationForm.isComputer?'是':'否' }}
|
|
|
+ {{ operationForm.isComputer ? '是' : '否' }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -319,262 +308,95 @@
|
|
|
<el-descriptions v-show="recordShow" title="资料附件">
|
|
|
<el-descriptions-item>
|
|
|
<template #default>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="身份证(人像面)"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!IDCardFront"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 1)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="身份证(人像面)" label-width="150" label-position="left" v-if="IDCardFront">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ IDCardFrontName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 1)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(1)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+ <el-icon class="btn-icon" @click="imageView(1)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="身份证(国徽面)"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!IDCardBack"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 2)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="身份证(国徽面)" label-width="150" label-position="left" v-if="IDCardBack">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ IDCardBackName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 2)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(2)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+ <el-icon class="btn-icon" @click="imageView(2)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="银行卡"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!bankSize"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 3)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="银行卡" label-width="150" label-position="left" v-if="bankSize">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ bankName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 3)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(3)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+
|
|
|
+ <el-icon class="btn-icon" @click="imageView(3)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="劳动合同"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!contract"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 4)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="劳动合同" label-width="150" label-position="left" v-if="contract">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ contractName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 4)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(4)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+ <el-icon class="btn-icon" @click="imageView(4)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="应聘表"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!applicant"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 5)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="应聘表" label-width="150" label-position="left" v-if="applicant">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ applicantName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 5)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(5)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+ <el-icon class="btn-icon" @click="imageView(5)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="定薪表"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!decidePay"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 6)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="定薪表" label-width="150" label-position="left" v-if="decidePay">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ decidePayName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 6)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(6)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+ <el-icon class="btn-icon" @click="imageView(6)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- prop=""
|
|
|
- label="离职表"
|
|
|
- label-width="150"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- v-if="!dimission"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 7)"
|
|
|
- >
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- <div class="fileInfo" v-else>
|
|
|
+ <el-form-item prop="" label="离职表" label-width="150" label-position="left" v-if="dimission">
|
|
|
+ <div class="fileInfo" >
|
|
|
<div class="fileName">{{ dimissionName }}</div>
|
|
|
<div class="fileBtn">
|
|
|
- <el-upload
|
|
|
- :auto-upload="false"
|
|
|
- action="#"
|
|
|
- :show-file-list="false"
|
|
|
- accept=".png, .jpg, .jpeg"
|
|
|
- @change="uploadImage($event, 7)"
|
|
|
- style="display: flex; align-items: center;"
|
|
|
- >
|
|
|
- <el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="imageView(7)"
|
|
|
- ><View
|
|
|
- /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Download /></el-icon>
|
|
|
- <el-icon class="btn-icon"><Delete /></el-icon>
|
|
|
+ <el-icon class="btn-icon" @click="imageView(7)">
|
|
|
+ <View />
|
|
|
+ </el-icon>
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Download />
|
|
|
+ </el-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
@@ -594,13 +416,7 @@
|
|
|
<div class="image-view" v-if="imageShow" @click="imageShow = false">
|
|
|
<img :src="imageUrl" />
|
|
|
</div>
|
|
|
- <el-dialog
|
|
|
- v-model="dialogVisible"
|
|
|
- :title="leave?'操作离职':'资源转移'"
|
|
|
- width="800"
|
|
|
- draggable
|
|
|
- append-to-body
|
|
|
- >
|
|
|
+ <el-dialog v-model="dialogVisible" :title="leave ? '操作离职' : '资源转移'" width="800" draggable append-to-body>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="20">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
@@ -613,7 +429,7 @@
|
|
|
</el-row>
|
|
|
<p style="margin-left: 50px;">工号:{{ transferInfo.userId }}</p>
|
|
|
<p style="margin-left: 50px;">所在机构:{{ transferInfo.deptName }}</p>
|
|
|
- <el-divider v-show="leave"/>
|
|
|
+ <el-divider v-show="leave" />
|
|
|
<!-- 资源转移--->
|
|
|
<p style="margin-left: 50px;" v-show="!leave">需要转移的资源</p>
|
|
|
<el-table :data="[{}]" style="width: 100%;" v-show="!leave">
|
|
|
@@ -628,16 +444,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="address" label="资源接收人">
|
|
|
<template #default>
|
|
|
- <el-input
|
|
|
- :value="receiveInfo?.name"
|
|
|
- @click="deptDialogVisible = true"
|
|
|
- placeholder="输入姓名,手机号,工号查找"
|
|
|
- ></el-input>
|
|
|
+ <el-input :value="receiveInfo?.name" @click="deptDialogVisible = true"
|
|
|
+ placeholder="输入姓名,手机号,工号查找"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <!-- 操作离职--->
|
|
|
+ <!-- 操作离职--->
|
|
|
<!-- <el-radio-group v-model="radio1">
|
|
|
<el-radio value="1" size="large">转移给其他成员</el-radio>
|
|
|
<el-radio value="0" size="large">不转移</el-radio>
|
|
|
@@ -647,44 +460,19 @@
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取消</el-button>
|
|
|
<el-button type="primary" @click="confirmTransfer">
|
|
|
- 确认{{ leave?'离职':'转移' }}
|
|
|
+ 确认{{ leave ? '离职' : '转移' }}
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
- <setDept
|
|
|
- :dialogVisible="deptDialogVisible"
|
|
|
- :dept-list="tableData"
|
|
|
- :dept-ids="[]"
|
|
|
- @close-dialog="confirmDialogInfo"
|
|
|
- title="选择交接人"
|
|
|
- @cancel-dialog="deptDialogVisible=false"
|
|
|
- ></setDept>
|
|
|
- <el-dialog
|
|
|
- v-model="changeDeptDialog"
|
|
|
- title="变更机构"
|
|
|
- width="600"
|
|
|
- append-to-body
|
|
|
- draggable
|
|
|
- >
|
|
|
+ <setDept :dialogVisible="deptDialogVisible" :dept-list="tableData" :dept-ids="[]" @close-dialog="confirmDialogInfo"
|
|
|
+ title="选择交接人" @cancel-dialog="deptDialogVisible = false"></setDept>
|
|
|
+ <el-dialog v-model="changeDeptDialog" title="变更机构" width="600" append-to-body draggable>
|
|
|
<div>
|
|
|
- <el-input
|
|
|
- v-model="filterText"
|
|
|
- style="width: 240px;"
|
|
|
- placeholder="请输入机构名称查找"
|
|
|
- :prefix-icon="Search"
|
|
|
- />
|
|
|
- <el-tree
|
|
|
- ref="treeRef"
|
|
|
- style="max-width: 600px;"
|
|
|
- class="filter-tree"
|
|
|
- :data="tableData"
|
|
|
- :props="tableProps"
|
|
|
- :default-expand-all="true"
|
|
|
- :expand-on-click-node="false"
|
|
|
- :filter-node-method="filterNode"
|
|
|
- @node-click="treeClick"
|
|
|
- >
|
|
|
+ <el-input v-model="filterText" style="width: 240px;" placeholder="请输入机构名称查找" :prefix-icon="Search" />
|
|
|
+ <el-tree ref="treeRef" style="max-width: 600px;" class="filter-tree" :data="tableData" :props="tableProps"
|
|
|
+ :default-expand-all="true" :expand-on-click-node="false" :filter-node-method="filterNode"
|
|
|
+ @node-click="treeClick">
|
|
|
<template #default="{ node, data }">
|
|
|
<span class="custom-tree-node">
|
|
|
<span>{{ node.label }}</span>
|
|
|
@@ -764,8 +552,8 @@ onMounted(async () => {
|
|
|
if (res.code === 200) {
|
|
|
operationForm.value = res.data;
|
|
|
let formData = res.data
|
|
|
- operationForm.value.roleNames=operationForm.value.roleNames.join(',')
|
|
|
- if(formData.fileList) {
|
|
|
+ operationForm.value.roleNames = operationForm.value.roleNames.join(',')
|
|
|
+ if (formData.fileList) {
|
|
|
let sfz1 = formData.fileList.find(item => item.fileType == 'sfz1')
|
|
|
let sfz2 = formData.fileList.find(item => item.fileType == 'sfz2')
|
|
|
|
|
|
@@ -774,37 +562,37 @@ onMounted(async () => {
|
|
|
let applicantImg = formData.fileList.find(item => item.fileType == 'applicant')
|
|
|
let salaryTable = formData.fileList.find(item => item.fileType == 'salary')
|
|
|
let leaveTable = formData.fileList.find(item => item.fileType == 'leave')
|
|
|
- if(sfz1) {
|
|
|
+ if (sfz1) {
|
|
|
operationForm.value.sfz1 = sfz1.id
|
|
|
IDCardFrontName.value = sfz1.fileName
|
|
|
IDCardFront.value = sfz1.fileUrl
|
|
|
}
|
|
|
- if(sfz2) {
|
|
|
+ if (sfz2) {
|
|
|
operationForm.value.sfz2 = sfz2.id
|
|
|
IDCardBackName.value = sfz2.fileName
|
|
|
IDCardBack.value = sfz2.fileUrl
|
|
|
}
|
|
|
- if(qualification) {
|
|
|
+ if (qualification) {
|
|
|
operationForm.value.qualification = qualification.id
|
|
|
bankName.value = qualification.fileName
|
|
|
bankSize.value = qualification.fileUrl
|
|
|
}
|
|
|
- if(contractImg) {
|
|
|
+ if (contractImg) {
|
|
|
operationForm.value.contract = contractImg.id
|
|
|
contractName.value = contractImg.fileName
|
|
|
contract.value = contractImg.fileUrl
|
|
|
}
|
|
|
- if(applicantImg) {
|
|
|
+ if (applicantImg) {
|
|
|
operationForm.value.applicant = applicantImg.id
|
|
|
applicantName.value = applicantImg.fileName
|
|
|
applicant.value = applicantImg.fileUrl
|
|
|
}
|
|
|
- if(salaryTable) {
|
|
|
+ if (salaryTable) {
|
|
|
operationForm.value.salaryTable = salaryTable.id
|
|
|
decidePayName.value = salaryTable.fileName
|
|
|
decidePay.value = salaryTable.fileUrl
|
|
|
}
|
|
|
- if(leaveTable) {
|
|
|
+ if (leaveTable) {
|
|
|
operationForm.value.leaveTable = leaveTable.id
|
|
|
dimissionName.value = leaveTable.fileName
|
|
|
dimission.value = leaveTable.fileUrl
|
|
|
@@ -1115,7 +903,7 @@ interface transfer {
|
|
|
const transferInfo = ref<transfer>({});
|
|
|
function transfer() {
|
|
|
// console.log(123)
|
|
|
- leave.value=false
|
|
|
+ leave.value = false
|
|
|
api.userApi
|
|
|
.getTransferInfo({
|
|
|
userId: operationForm.value.userId,
|
|
|
@@ -1133,10 +921,10 @@ function transfer() {
|
|
|
}
|
|
|
|
|
|
//操作离职
|
|
|
-const leave=ref(false)
|
|
|
+const leave = ref(false)
|
|
|
function resign() {
|
|
|
// console.log(123)
|
|
|
- leave.value=true
|
|
|
+ leave.value = true
|
|
|
api.userApi
|
|
|
.getTransferInfo({
|
|
|
userId: operationForm.value.userId,
|
|
|
@@ -1147,30 +935,30 @@ function resign() {
|
|
|
if (res.data.count < 1) {
|
|
|
// ElMessage.error("当前用户没有可转移的资源");
|
|
|
ElMessageBox.confirm(
|
|
|
- "离职后,账号将无法访问本企业,请确定是否离职?",
|
|
|
- `确定要将${operationForm.value.name}设置为离职吗?`,
|
|
|
- {
|
|
|
- confirmButtonText: "确认",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- api.userApi
|
|
|
- .userQuitApply({
|
|
|
- userId:operationForm.value.userId,
|
|
|
- })
|
|
|
- .then((res: any) => {
|
|
|
- if(res.code==200){
|
|
|
- ElMessage.success(res.msg)
|
|
|
- router.back()
|
|
|
- }
|
|
|
- });
|
|
|
- // console.log(123);
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- ElMessage.warning("用户取消操作");
|
|
|
- });
|
|
|
+ "离职后,账号将无法访问本企业,请确定是否离职?",
|
|
|
+ `确定要将${operationForm.value.name}设置为离职吗?`,
|
|
|
+ {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ api.userApi
|
|
|
+ .userQuitApply({
|
|
|
+ userId: operationForm.value.userId,
|
|
|
+ })
|
|
|
+ .then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ ElMessage.success(res.msg)
|
|
|
+ router.back()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // console.log(123);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ ElMessage.warning("用户取消操作");
|
|
|
+ });
|
|
|
} else {
|
|
|
ElMessage.warning("当前用户有资源未转移,请转移后执行离职操作");
|
|
|
// dialogVisible.value = true;
|
|
|
@@ -1189,7 +977,7 @@ function confirmDialogInfo(item: any) {
|
|
|
//资源转移确认
|
|
|
function confirmTransfer() {
|
|
|
|
|
|
- api.userApi
|
|
|
+ api.userApi
|
|
|
.transfer({
|
|
|
originalUserId: transferInfo.value.userId,
|
|
|
transferUserId: receiveInfo.value.id,
|
|
|
@@ -1202,18 +990,18 @@ function confirmTransfer() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- // api.userApi
|
|
|
- // .userQuitApply({
|
|
|
- // originalUserId: transferInfo.value.userId,
|
|
|
- // transferUserId: receiveInfo.value.id,
|
|
|
- // })
|
|
|
- // .then((res: any) => {
|
|
|
- // // console.log(res)
|
|
|
- // if (res.code === 200) {
|
|
|
- // ElMessage.success(res.msg);
|
|
|
- // dialogVisible.value = false;
|
|
|
- // }
|
|
|
- // });
|
|
|
+ // api.userApi
|
|
|
+ // .userQuitApply({
|
|
|
+ // originalUserId: transferInfo.value.userId,
|
|
|
+ // transferUserId: receiveInfo.value.id,
|
|
|
+ // })
|
|
|
+ // .then((res: any) => {
|
|
|
+ // // console.log(res)
|
|
|
+ // if (res.code === 200) {
|
|
|
+ // ElMessage.success(res.msg);
|
|
|
+ // dialogVisible.value = false;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
|
|
|
}
|
|
|
@@ -1298,7 +1086,7 @@ function delUser() {
|
|
|
ids: [operationForm.value.id],
|
|
|
})
|
|
|
.then((res: any) => {
|
|
|
- if(res.code==200){
|
|
|
+ if (res.code == 200) {
|
|
|
ElMessage.success(res.msg)
|
|
|
router.back()
|
|
|
}
|