diff --git a/src/views/system/group/humanResourceUseer/index.vue b/src/views/system/group/humanResourceUseer/index.vue index 8249858..1f7f211 100644 --- a/src/views/system/group/humanResourceUseer/index.vue +++ b/src/views/system/group/humanResourceUseer/index.vue @@ -59,10 +59,11 @@ - + diff --git a/src/views/system/group/user/index.vue b/src/views/system/group/user/index.vue index 0219a25..b5e5020 100644 --- a/src/views/system/group/user/index.vue +++ b/src/views/system/group/user/index.vue @@ -78,6 +78,14 @@ 禁用 + + + @@ -184,6 +193,45 @@ 校 验 + + + + @@ -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',