diff --git a/src/views/corpInfo/centercorpinfouser/components/detail.vue b/src/views/corpInfo/centercorpinfouser/components/detail.vue new file mode 100644 index 0000000..b567e75 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/components/detail.vue @@ -0,0 +1,757 @@ + + + + + {{ this.$parent.USER_ID == '' ? '新增用户' : '查看用户' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.NAME }} + + + + + + {{ form.letDutiesType === 'select' ? '输入' : '选择' }} + + + + + + + + + + {{ item.NAME }} + + + + + + {{ form.letTitleType === 'select' ? '输入' : '选择' }} + + + + + + + + + + + + {{ item.NAME }} + + + + + + {{ form.letTypeOfWorkType === 'select' ? '输入' : '选择' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 返 回 + + + + + + + + + diff --git a/src/views/corpInfo/centercorpinfouser/components/indexList.vue b/src/views/corpInfo/centercorpinfouser/components/indexList.vue new file mode 100644 index 0000000..f1fb5e3 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/components/indexList.vue @@ -0,0 +1,280 @@ + + + + + + + + + + 查看 + + + + + + + + + + + + + + + diff --git a/src/views/corpInfo/centercorpinfouser/components/index_view.vue b/src/views/corpInfo/centercorpinfouser/components/index_view.vue new file mode 100644 index 0000000..8615590 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/components/index_view.vue @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + 返回 + + + + + + diff --git a/src/views/corpInfo/centercorpinfouser/index.vue b/src/views/corpInfo/centercorpinfouser/index.vue new file mode 100644 index 0000000..e9a16c0 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/index.vue @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + diff --git a/src/views/system/group/centerUserInfo/index.vue b/src/views/system/group/centerUserInfo/index.vue new file mode 100644 index 0000000..e17264a --- /dev/null +++ b/src/views/system/group/centerUserInfo/index.vue @@ -0,0 +1,973 @@ + + + + + + + 用户名称: + + 人员类型: + + + + + + + + + + 部门名称: + + + + + + + 搜索 + + + 重置 + + + + + + + + + + + 股份 + 分公司 + 相关方 + + + + + + + + 查看记录 + + + + + + + + + + + + + + + + + + + {{row.CREATORNAME ? row.CREATORNAME : row.NAMEX ? row.NAMEX : row.NAMER}} + + + + + + + + + + + + + + + + + + + + + + + + + + + 男 + 女 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 是 + 否 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/group/user/index.vue b/src/views/system/group/user/index.vue index 528d6b4..62fcc94 100644 --- a/src/views/system/group/user/index.vue +++ b/src/views/system/group/user/index.vue @@ -78,7 +78,7 @@ 禁用 - + 编辑 重置密码 @@ -86,6 +86,7 @@ 禁用 启用 删除 + 推送 @@ -108,13 +109,16 @@ - + - - + + + + + 男 @@ -147,6 +151,15 @@ + + + + + 是 @@ -167,7 +180,8 @@ @@ -245,12 +259,13 @@ export default { keyDeptType: '', keyDepeName: '', keyJobLeven: '', + ISCHECK: false, dialogFormEdit: false, editloading: false, dialogType: 'add', rules: { EMAIL: [ - { required: false, message: '请输入邮箱', trigger: 'blur' }, + { required: true, message: '请输入邮箱', trigger: 'blur' }, { pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/, message: '请输入正确的邮箱' @@ -260,11 +275,7 @@ export default { ROLE_ID: [ { required: true, message: '角色不能为空', trigger: 'blur' } ], - USERNAME: [ - { required: true, message: '用户名不能为空', trigger: 'blur' }, - { min: 2, max: 30, message: '长度在 2 到 30 个字符', trigger: 'blur' }, - { validator: hasUser, trigger: 'blur' } - ], + NAME: [ { required: true, message: '姓名不能为空', trigger: 'blur' }, { min: 2, max: 30, message: '长度在 2 到 30 个字符', trigger: 'blur' } @@ -272,6 +283,9 @@ export default { SEX: [ { required: true, message: '请选择性别', trigger: 'blur' } ], + NATION: [ + { required: true, message: '请选择民族', trigger: 'blur' } + ], PHONE: [ { required: true, message: '手机号不能为空', trigger: 'blur' }, { min: 11, max: 11, message: '请输入11位手机号码', trigger: 'blur' }, @@ -294,9 +308,20 @@ export default { ], ISASSESS: [ { required: true, message: '请选择是否审核人员', trigger: 'blur' } + ], + USER_ID_CARD: [{ required: true, message: '身份证号不能为空', trigger: 'blur' }, + { + pattern: /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/, + message: '请输入正确的身份证号' + } ] }, + uesrInfoDic: { + minzuList: [], // 民族 0a0e406f27f74ee698fe9979d25f62dd + xingbieList: [], // 性别情况 21501808bbc344d593fbf9ccfe6c4531 + }, pd: { + USER_ID: '', ROLE_ID: [], // 角色ID USERNAME: '', // 用户名 NAME: '', // 姓名 @@ -315,7 +340,9 @@ export default { VILLAGE: '', // 所属乡镇 JOB_LEVEL: '', // 职务级别 ISASSESS: '', - JOB: ''// 职务 + JOB: '', // 职务 + USER_ID_CARD: '', //身份证号 + NATION: '' //民族 }, roleList: [], multipleSelectionAll: [], // 所有选中的数据包含跨页数据 @@ -374,6 +401,8 @@ export default { created() { this.getList() this.hasButton() + this.getDict2('0a0e406f27f74ee698fe9979d25f62dd', 'minzuList') + this.getDict2('21501808bbc344d593fbf9ccfe6c4531', 'xingbieList') this.getDict('3e057d284c294a48af32948d58e92e3d', 'deptTypeLevenAllList') this.getDict('3f3a6ac41247438e91df2830765068ba', 'unitTypeList') this.getDepartTreeList() @@ -382,6 +411,103 @@ export default { this.getTreeList() }, methods: { + goPush(row) { + requestFN( + 'user/goPush', + { + STATUS: row.STATUS, + BZ: row.BZ, + SKIN: row.SKIN, + PHONE: row.PHONE, + NUMBER: row.NUMBER, + ISMAIN: row.ISMAIN, + OPENID: row.APPID, + SORT: row.SORT, + LEARNERCATEGORY: row.LEARNERCATEGORY, + USERAVATARPREFIX: row.USERAVATARPREFIX, + USERAVATARURL: row.USERAVATARURL, + SHIFTDUTYONE: row.SHIFTDUTYONE, + SHIFTDUTYTWO: row.SHIFTDUTYTWO, + DURATION: row.DURATION, + WORKSTATUS: row.WORKSTATUS, + WORKPERIOD: row.WORKPERIOD, + PERSONNEL_TYPE: row.PERSONNEL_TYPE, + TITLE: row.TITLE, + ISSTATE: row.ISSTATE, + INCUMBENCY: row.INCUMBENCY, + WORKING_DATE: row.WORKING_DATE, + ENTRY_DATE: row.ENTRY_DATE, + TYPE_OF_WORK: row.TYPE_OF_WORK, + DUTIES: row.DUTIES, + DEGREE_OF_EDUCATION: row.DEGREE_OF_EDUCATION, + DATE_OF_BIRTH: row.DATE_OF_BIRTH, + POLITICAL_OUTLOOK: row.POLITICAL_OUTLOOK, + PROVINCE: row.PROVINCE, + CITY: row.CITY, + COUNTRY: row.COUNTRY, + VILLAGE: row.VILLAGE, + USER_ID: row.USER_ID, + CARD_NO: row.USER_ID_CARD, + USERNAME: row.USERNAME, + NAME: row.NAME, + CORPINFO_ID: row.CORPINFO_ID, + CORPINFO_NAME: row.CORPINFO_NAME || '', + DEPARTMENT_ID: row.DEPARTMENT_ID, + DEPARTMENT_NAME: row.DEPARTMENT_NAME, + EMAIL: row.EMAIL || '', + CARD_TYPE: '111', + CARD_TYPE_NAME: '身份证', + NATION: row.NATION_NAME || '', + SEX: row.SEX === '0' ? '男' : '女', + USER_TYPE: '1', + ISDELETE: row.ISDELETE + } + ).then((data) => { + if (data.result === 'success') { + this.$message.success('推送成功') + this.getList() + } else { + this.$message.error('推送失败,' + data.msg) + this.getList() + } + }).catch((e) => { + this.listLoading = false + }) + }, + goCheck() { + if (this.pd.USER_ID_CARD && this.pd.PHONE) { + const phoneJudge = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/ + const phoneResult = phoneJudge.test(this.pd.PHONE) + const cardJudge = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/ + const cardResult = cardJudge.test(this.pd.USER_ID_CARD) + if (phoneResult && cardResult) { + console.log('格式校验通过') + requestFN( + 'user/goCheck', + { + CARD_NO: this.pd.USER_ID_CARD, + USERNAME: this.pd.PHONE, + USER_ID: this.pd.USER_ID || '' + } + ).then((data) => { + if (data.result === 'success') { + this.$message.success('验证通过') + this.ISCHECK = true + } else { + this.$message.error('验证失败,请确认身份证号与手机号是否正确') + this.ISCHECK = false + } + }).catch((e) => { + this.listLoading = false + this.ISCHECK = false + }) + } else { + this.ISCHECK = false + } + } else { + this.ISCHECK = false + } + }, getList() { this.listLoading = true requestFN( @@ -397,7 +523,8 @@ export default { PROVINCE: this.keyShudi[0] || '', CITY: this.keyShudi[1] || '', COUNTRY: this.keyShudi[2] || '', - VILLAGE: this.keyShudi[3] || '' + VILLAGE: this.keyShudi[3] || '', + ISPUSH: '1' } ).then((data) => { this.listLoading = false @@ -471,6 +598,7 @@ export default { }, handleAdd() { this.dialogFormEdit = true + this.ISCHECK = false this.pd = {} this.dialogType = 'saveUser' this.pd.PASSWORD = 'Aa@123456789' @@ -501,7 +629,7 @@ export default { this.varList = [] this.$refs.deptTree.clearHandle() this.listQuery.page = 1 - this.getList() + this.goPush(data.pd) }).catch((e) => { this.listLoading = false }) @@ -643,6 +771,7 @@ export default { ).then((data) => { if (data.result == 'success') { this.listLoading = false + this.goPush(row) this.getList() } }).catch((e) => { @@ -684,6 +813,17 @@ export default { this.listLoading = false }) }, + // 获取数据字典数据 + getDict2(dicID, listName) { + requestFN( + 'dictionaries/getLevels', + { DICTIONARIES_ID: dicID } + ).then((data) => { + this.uesrInfoDic[listName] = data.list + }).catch((e) => { + this.listLoading = false + }) + }, getDepartTreeList() { this.pd.DEPARTMENT_ID = '' if (this.$refs.deptTree) { diff --git a/src/views/system/group/userCenter/index.vue b/src/views/system/group/userCenter/index.vue new file mode 100644 index 0000000..8bcebea --- /dev/null +++ b/src/views/system/group/userCenter/index.vue @@ -0,0 +1,930 @@ + + + + + + + + + + 用户名称: + + 职务级别: + + + + + + + + + + 部门名称: + + + + + + + 搜索 + + + 重置 + + + 一键密码重置 + + + + + + + + + + 男 + 女 + + + + + + + 启用 + 禁用 + + + + + 编辑 + 重置密码 + 帐号解锁 + 禁用 + 启用 + 删除 + 推送 + + + + + + + 新增 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + 男 + 女 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 是 + 否 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/xgf/allPeopleList/components/list.vue b/src/views/xgf/allPeopleList/components/list.vue index 8a8bd8f..7fe5ba3 100644 --- a/src/views/xgf/allPeopleList/components/list.vue +++ b/src/views/xgf/allPeopleList/components/list.vue @@ -206,7 +206,7 @@ export default { this.form.FLOWS_TYPE = '2' if (this.form.TYPE !== '2') { this.loading = true - requestFN('/xgf/user/approveMax', this.form) + requestFN('/xgf/user/repeatPush', this.form) .then((data) => { if (data.code === '0') { this.$message.success('推送成功') @@ -234,7 +234,7 @@ export default { } } this.loading = true - upload('/xgf/user/approveMax', formData) + upload('/xgf/user/repeatPush', formData) .then((data) => { this.$message.success('推送成功') this.visible = false