[新增功能](hyx_humanResource):

- 监管端人员绑定人资系统
hyx_humanResource
huangyuxuan 2024-12-18 09:28:16 +08:00
parent 539f5255e3
commit a5754f351b
2 changed files with 99 additions and 2 deletions

View File

@ -59,10 +59,11 @@
<el-table-column prop="position_name" label="岗位" align="center"/> <el-table-column prop="position_name" label="岗位" align="center"/>
<el-table-column prop="corporation_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="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}"> <template slot-scope="{row}">
<span v-if="row.IS_IN_SYSTEM =='0'"></span> <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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -78,6 +78,14 @@
<span v-if="row.STATUS =='1'"></span> <span v-if="row.STATUS =='1'"></span>
</template> </template>
</el-table-column> </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"> <el-table-column label="操作" align="center" width="500">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button v-show="edit" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button> <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="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-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.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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -184,6 +193,45 @@
<el-button v-show="!ISCHECK" type="primary" @click="goCheck"> </el-button> <el-button v-show="!ISCHECK" type="primary" @click="goCheck"> </el-button>
</div> </div>
</el-dialog> </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> </div>
</template> </template>
@ -239,6 +287,13 @@ export default {
} }
} }
return { return {
humanResourceForm: false,
userInfoList: [],
formModel: {
userId: '',
userName: '',
cardId: ''
},
LOGIN_USER: JSON.parse(sessionStorage.getItem('user')).USER_ID, LOGIN_USER: JSON.parse(sessionStorage.getItem('user')).USER_ID,
treeLoading: false, treeLoading: false,
treeData: [], treeData: [],
@ -416,6 +471,47 @@ export default {
this.getTreeList() this.getTreeList()
}, },
methods: { 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) { goPush(row) {
requestFN( requestFN(
'user/goPush', 'user/goPush',