parent
539f5255e3
commit
a5754f351b
|
@ -59,10 +59,11 @@
|
|||
<el-table-column prop="position_name" label="岗位" align="center"/>
|
||||
<el-table-column prop="corporation_name" label="企业名称" align="center"/>
|
||||
<el-table-column prop="dept_name" label="部门名称" align="center"/>
|
||||
<el-table-column prop="IS_IN_SYSTEM" label="是否对比成功" >
|
||||
<el-table-column prop="IS_IN_SYSTEM" label="是否在三端存在" >
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.IS_IN_SYSTEM =='0'">否</span>
|
||||
<span v-if="row.IS_IN_SYSTEM =='1'">是</span>
|
||||
<span v-if="row.IS_IN_SYSTEM =='1'">通过姓名和手机号确认</span>
|
||||
<span v-if="row.IS_IN_SYSTEM =='2'">用户已手动确认</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
|
@ -78,6 +78,14 @@
|
|||
<span v-if="row.STATUS =='1'">禁用</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="IN_HR_USER" label="是否对比成功" >
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.IN_HR_USER =='0'">未确认</span>
|
||||
<span v-if="row.IN_HR_USER =='1'">通过姓名手机号确认</span>
|
||||
<span v-if="row.IN_HR_USER =='2'">已手动确认</span>
|
||||
<span v-if="row.IN_HR_USER =='3'">人资系统修改人员信息</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="500">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-show="edit" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)">编辑</el-button>
|
||||
|
@ -87,6 +95,7 @@
|
|||
<el-button v-show="row.STATUS== 1" type="primary" icon="el-icon-edit" size="mini" @click="handleEditStatus(row,'0', row.USER_ID)">启用</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.USER_ID,row.USERNAME)">删除</el-button>
|
||||
<el-button v-if="row.ISPUSH == '0'" type="primary" icon="el-icon-position" size="mini" @click="goPush(row)">推送</el-button>
|
||||
<el-button v-if="row.IN_HR_USER == '0' || row.IN_HR_USER == '1'" type="primary" icon="el-icon-position" size="mini" @click="bind(row.USER_ID)">绑定</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -184,6 +193,45 @@
|
|||
<el-button v-show="!ISCHECK" type="primary" @click="goCheck">校 验</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog :visible.sync="humanResourceForm" :before-close="cancel" title="绑定人资系统人员" width="600px">
|
||||
<template>
|
||||
<div class="app-container">
|
||||
|
||||
<el-form ref="form" :model="formModel" label-width="110px" class="in-uploader">
|
||||
<el-form-item label="人员信息">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12"><div class="grid-content bg-purple"/>
|
||||
<el-autocomplete
|
||||
v-model="formModel.userName"
|
||||
:fetch-suggestions="querySearch"
|
||||
placeholder="请输入或选择用户名"
|
||||
class="filter-item"
|
||||
@select="handleSelect"
|
||||
>
|
||||
<template slot-scope="{ item }">
|
||||
{{ item.NAME }}
|
||||
</template>
|
||||
</el-autocomplete>
|
||||
</el-col>
|
||||
<el-col :span="12"><div class="grid-content bg-purple"/>
|
||||
<el-input
|
||||
v-model="formModel.cardId"
|
||||
placeholder="身份证号"
|
||||
readonly
|
||||
class="filter-item"
|
||||
style="margin-left: 10px;"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -239,6 +287,13 @@ export default {
|
|||
}
|
||||
}
|
||||
return {
|
||||
humanResourceForm: false,
|
||||
userInfoList: [],
|
||||
formModel: {
|
||||
userId: '',
|
||||
userName: '',
|
||||
cardId: ''
|
||||
},
|
||||
LOGIN_USER: JSON.parse(sessionStorage.getItem('user')).USER_ID,
|
||||
treeLoading: false,
|
||||
treeData: [],
|
||||
|
@ -416,6 +471,47 @@ export default {
|
|||
this.getTreeList()
|
||||
},
|
||||
methods: {
|
||||
cancel() {
|
||||
this.humanResourceForm = false
|
||||
this.formModel.cardId = ''
|
||||
this.formModel.userName = ''
|
||||
},
|
||||
querySearch(queryString, cb) {
|
||||
const results = queryString ? this.userInfoList.filter(item => item.NAME.toLowerCase().includes(queryString.toLowerCase())) : this.userInfoList
|
||||
cb(results)
|
||||
},
|
||||
handleSelect(item) {
|
||||
this.formModel.userName = item.NAME
|
||||
this.formModel.cardId = item.CARD_ID // 根据选择的用户名填充身份证号
|
||||
},
|
||||
bind(USER_ID) {
|
||||
this.humanResourceForm = true
|
||||
this.getHrUserInfo()
|
||||
this.formModel.userId = USER_ID
|
||||
},
|
||||
submitForm() {
|
||||
requestFN(
|
||||
'/openApi/hr/jgBindHrUser',
|
||||
{
|
||||
USER_NAME: this.formModel.userName,
|
||||
CARD_ID: this.formModel.cardId,
|
||||
USER_ID: this.formModel.userId
|
||||
}
|
||||
).then((data) => {
|
||||
this.humanResourceForm = false
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
},
|
||||
getHrUserInfo() {
|
||||
requestFN(
|
||||
'/openApi/hr/getUserInfoListByCorpName'
|
||||
).then((data) => {
|
||||
this.userInfoList = data.varList
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
},
|
||||
goPush(row) {
|
||||
requestFN(
|
||||
'user/goPush',
|
||||
|
|
Loading…
Reference in New Issue