Merge remote-tracking branch 'origin/master'
| | |
| | | } |
| | | return config |
| | | }, error => { |
| | | debugger |
| | | console.log(error) |
| | | Promise.reject(error) |
| | | }) |
| | |
| | | }).then(() => { |
| | | db.remove('USER_ROUTER') |
| | | db.remove('PERMISSIONS') |
| | | location.reload() |
| | | this.$get('system/dic/deleteCache').then((r) => { |
| | | location.reload() |
| | | }) |
| | | }).catch(() => { |
| | | // do nothing |
| | | }) |
| | |
| | | if (!userRouter) { |
| | | request.get(`system/menu/${user.username}`).then((res) => { |
| | | const permissions = res.data.data.permissions |
| | | save('PERMISSIONS', permissions) |
| | | store.commit('account/setPermissions', permissions) |
| | | asyncRouter = res.data.data.routes |
| | | store.commit('account/setRoutes', asyncRouter) |
| | |
| | | return this.selectDictLabel(this.contractStatusOptions, row.contractStatus) |
| | | }, |
| | | transContractStatus(contractStatus, time) { |
| | | debugger |
| | | var strtime = time.replace('/-/g', '/')// 时间转换 |
| | | // 时间 |
| | | var date1 = new Date(strtime) |
| | |
| | | this.$get('hr/statistics/empBaseInfoList', { |
| | | ...params |
| | | }).then((r) => { |
| | | debugger |
| | | const data = r.data.data |
| | | that.total = data.total |
| | | that.list = data.rows |
| | |
| | | this.selection = selection |
| | | }, |
| | | add() { |
| | | debugger |
| | | this.$refs.edit.setaddDicItem(this.queryParams.dicId) |
| | | this.dialog.title = this.$t('common.add') |
| | | this.dialog.isVisible = true |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const dicItemId = [] |
| | | this.selection.forEach((c) => { |
| | | dicItemId.push(c.dicItemId) |
| | |
| | | } |
| | | }, |
| | | setaddDicItem(val) { |
| | | debugger |
| | | this.dicItem.dicId = val |
| | | }, |
| | | setdicItem(val) { |
| | |
| | | } else { |
| | | // update |
| | | this.$put('system/dicItem', { ...this.dicItem }).then(() => { |
| | | debugger |
| | | this.buttonLoading = false |
| | | this.isVisible = false |
| | | this.$message({ |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const dicId = [] |
| | | this.selection.forEach((c) => { |
| | | dicId.push(c.dicId) |
| | |
| | | }) |
| | | }, |
| | | singleDelete(row) { |
| | | debugger |
| | | this.$refs.table.toggleRowSelection(row, true) |
| | | this.delete(row.dicId) |
| | | }, |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const positionId = [] |
| | | this.selection.forEach((c) => { |
| | | positionId.push(c.positionId) |
| | |
| | | }) |
| | | }, |
| | | singleDelete(row) { |
| | | debugger |
| | | this.$refs.table.toggleRowSelection(row, true) |
| | | this.delete(row.positionId) |
| | | }, |
| | |
| | | } else { |
| | | // update |
| | | this.$put('system/position', { ...this.position }).then(() => { |
| | | debugger |
| | | this.buttonLoading = false |
| | | this.isVisible = false |
| | | this.$message({ |
| | |
| | | if (valid) { |
| | | this.buttonLoading = true |
| | | if (this.role.roleId) { |
| | | this.role.menuIds = this.$refs.permsTree.getCheckedKeys().join(',') |
| | | this.role.menuIds = this.$refs.permsTree.getCheckedKeys().concat(this.$refs.permsTree.getHalfCheckedKeys()).join(',') |
| | | this.role.createTime = this.role.modifyTime = null |
| | | this.$put('system/role', { ...this.role }).then(() => { |
| | | this.buttonLoading = false |
| | |
| | | this.reset() |
| | | }) |
| | | } else { |
| | | this.role.menuIds = this.$refs.permsTree.getCheckedKeys().join(',') |
| | | this.role.menuIds = this.$refs.permsTree.getCheckedKeys().concat(this.$refs.permsTree.getHalfCheckedKeys()).join(',') |
| | | this.$post('system/role', { ...this.role }).then(() => { |
| | | this.buttonLoading = false |
| | | this.$message({ |
| | |
| | | <el-tree |
| | | ref="deptTree" |
| | | :data="deptTree" |
| | | :check-strictly="false" |
| | | :default-checked-keys="user.deptIdsArr" |
| | | show-checkbox |
| | | accordion |
| | |
| | | }) |
| | | }, |
| | | setUser(val) { |
| | | setTimeout(() => { |
| | | this.filterDate(val) |
| | | }, 1000) |
| | | }, |
| | | filterDate(val) { |
| | | var this_ = this |
| | | this.user = { ...val } |
| | | this.user.deptIds && (this.user.deptIdsArr = this.user.deptIds.split(',')) |
| | | var deptIdArrStr = [] |
| | | this.user.deptIds.split(',').forEach(element => { |
| | | const thisNode = this_.$refs.deptTree.getNode(element) // 获取当前节点 |
| | | if (thisNode.childNodes.length === 0) { |
| | | deptIdArrStr.push(thisNode.data.id) |
| | | return |
| | | } |
| | | }) |
| | | |
| | | this.user.deptIds && (this.user.deptIdsArr = deptIdArrStr) |
| | | }, |
| | | close() { |
| | | this.$emit('close') |
| | |
| | | if (valid) { |
| | | this.buttonLoading = true |
| | | this.user.roleId = this.user.roleId.join(',') |
| | | this.user.deptIds = this.$refs.deptTree.getCheckedKeys() |
| | | this.user.deptIds = this.$refs.deptTree.getCheckedKeys().concat(this.$refs.deptTree.getHalfCheckedKeys()) |
| | | if (!this.user.userId) { |
| | | // create |
| | | this.$post('system/user', { ...this.user }).then(() => { |
| | |
| | | <el-container> |
| | | <el-aside width="175px"> |
| | | <el-timeline style="padding-left: 15px"> |
| | | <el-timeline-item @click.native="isShow(showArr[0].show, 0)"> |
| | | <el-timeline-item v-show="timelineShow('empBaseinfo:list')" @click.native="isShow(showArr[0].show, 0)"> |
| | | <span :class="thisShowIndex===0?'selectedTimeline':''">基本信息</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[1].show, 1)"> |
| | | <el-timeline-item v-show="timelineShow('empWorkexperience:list')" @click.native="isShow(showArr[1].show, 1)"> |
| | | <span :class="thisShowIndex===1?'selectedTimeline':''">工作经历</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[2].show, 2)"> |
| | | <el-timeline-item v-show="timelineShow('empPhysicalexam:list')" @click.native="isShow(showArr[2].show, 2)"> |
| | | <span :class="thisShowIndex===2?'selectedTimeline':''">体检信息</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[3].show, 3)"> |
| | | <el-timeline-item v-show="timelineShow('empContractinfo:list')" @click.native="isShow(showArr[3].show, 3)"> |
| | | <span :class="thisShowIndex===3?'selectedTimeline':''">合同信息</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[4].show, 4)"> |
| | | <el-timeline-item v-show="timelineShow('empDimissionattend:list')" @click.native="isShow(showArr[4].show, 4)"> |
| | | <span :class="thisShowIndex===4?'selectedTimeline':''">离职当月考勤</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[5].show, 5)"> |
| | | <el-timeline-item v-show="timelineShow('empLeaveinfo:list')" @click.native="isShow(showArr[5].show, 5)"> |
| | | <span :class="thisShowIndex===5?'selectedTimeline':''">请假记录</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[6].show, 6)"> |
| | | <el-timeline-item v-show="timelineShow('empResign:list')" @click.native="isShow(showArr[6].show, 6)"> |
| | | <span :class="thisShowIndex===6?'selectedTimeline':''">辞职申请</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[7].show, 7)"> |
| | | <el-timeline-item v-show="timelineShow('empUnemployment:list')" @click.native="isShow(showArr[7].show, 7)"> |
| | | <span :class="thisShowIndex===7?'selectedTimeline':''">失业金领取</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[8].show, 8)"> |
| | | <el-timeline-item v-show="timelineShow('empInsurance:list')" @click.native="isShow(showArr[8].show, 8)"> |
| | | <span :class="thisShowIndex===8?'selectedTimeline':''">社保申请</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[9].show, 9)"> |
| | | <el-timeline-item v-show="timelineShow('empAccidentcases:list')" @click.native="isShow(showArr[9].show, 9)"> |
| | | <span :class="thisShowIndex===9?'selectedTimeline':''">意外险案件</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[10].show, 10)"> |
| | | <el-timeline-item v-show="timelineShow('empOccupational:list')" @click.native="isShow(showArr[10].show, 10)"> |
| | | <span :class="thisShowIndex===10?'selectedTimeline':''">工伤案件</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[11].show, 11)"> |
| | | <el-timeline-item v-show="timelineShow('empLabortrouble:list')" @click.native="isShow(showArr[11].show, 11)"> |
| | | <span :class="thisShowIndex===11?'selectedTimeline':''">劳资案件</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[12].show, 12)"> |
| | | <el-timeline-item v-show="timelineShow('empBadrecord:list')" @click.native="isShow(showArr[12].show, 12)"> |
| | | <span :class="thisShowIndex===12?'selectedTimeline':''">不良记录</span> |
| | | </el-timeline-item> |
| | | <el-timeline-item @click.native="isShow(showArr[13].show, 13)"> |
| | | <el-timeline-item v-show="timelineShow('empRemarkinfo:list')" @click.native="isShow(showArr[13].show, 13)"> |
| | | <span :class="thisShowIndex===13?'selectedTimeline':''">备注信息</span> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </el-aside> |
| | | <el-main> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-button class="commonBtn" @click.native="dialogIsShow('0')">新增</el-button> |
| | | <el-button class="commonBtn" style="background-color: #409EFF" @click.native="butDelete()">删除</el-button> |
| | | <el-button class="commonBtn" style="float: right" @click.native="showDryg(0)">导入员工信息</el-button> |
| | |
| | | <el-table-column prop="reportStatus " label="是否已报告" width="100" :formatter="reportStatusFormat" /> |
| | | <el-table-column prop="applayStatus" label="状态" width="80" :formatter="applayStatusFormat" /> |
| | | <el-table-column prop="auditor" label="审核人" width="80" /> |
| | | <el-table-column prop="remark" label="备注" /> |
| | | <el-table-column prop="remark" label="备注" width="300" /> |
| | | </el-table> |
| | | <el-table |
| | | v-show="showArr[9].show" |
| | |
| | | :limit.sync="pagination.size" |
| | | @pagination="search" |
| | | /> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <div style="width: 250px;margin: 20px auto 0;"> |
| | | <el-button class="nomalBtn" @click="deleteFrom()">取消</el-button> |
| | | <el-button class="commonBtn" @click="submitTo()">提交</el-button> |
| | |
| | | :headers="headers()" |
| | | :on-success="importHandleAvatarSuccess" |
| | | :on-error="importHandleAvatarError" |
| | | :file-list="fileList" |
| | | :auto-upload="false" |
| | | > |
| | | <el-button slot="trigger" size="small" type="primary">选取文件</el-button> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="相关证件" prop="certificateList"> |
| | | <el-select v-model="empBaseInfoForm.certificateList" multiple placeholder="请选择相关证件"> |
| | | <el-option |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="工作单位" prop="workUnit"> |
| | | <el-input v-model="workExperienceForm.workUnit" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="主要工作内容" prop="jobContent"> |
| | | <el-input v-model="workExperienceForm.jobContent" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="体检结论" prop="conclusion"> |
| | | <el-input v-model="physicalExamForm.conclusion" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="physicalExamForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="contractInfoForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="dimissionAttendForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="leaveInfoForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="辞职事由" prop="reason"> |
| | | <el-input v-model="resignForm.reason" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="resignForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="unemploymentForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="insuranceForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="受伤经过描述" prop="injuredDescribe"> |
| | | <el-input v-model="accidentCasesForm.injuredDescribe" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="受伤经过描述" prop="injuredDescribe"> |
| | | <el-input v-model="occupationalForm.injuredDescribe" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="occupationalForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="仲裁事由" prop="arbitrationReason"> |
| | | <el-input v-model="laborTroubleForm.arbitrationReason" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="laborTroubleForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="不良记录描述" prop="badContent"> |
| | | <el-input v-model="badRecordForm.badContent" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="badRecordForm.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-col> |
| | | <el-form-item label="备注" prop="remarkContent"> |
| | | <el-input v-model="remarkInfoForm.remarkContent" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | arbitrationTypeOptions: [], |
| | | changeTypeOptions: [], |
| | | dimissionTypeOptions: [], |
| | | sexOptions: [] |
| | | sexOptions: [], |
| | | permissions: {} |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.permissions = JSON.parse(localStorage.getItem('PERMISSIONS')) |
| | | this.getDicts('PLITICAL').then(response => { |
| | | this.statusOptions = response.data |
| | | }) |
| | |
| | | this.initJob() |
| | | }, |
| | | methods: { |
| | | timelineShow(name) { |
| | | for (const v of this.permissions) { |
| | | if (v === name) { |
| | | return true |
| | | } |
| | | } |
| | | return false |
| | | }, |
| | | importHandleAvatarError() { |
| | | this.$notify.error({ |
| | | title: '错误', |
| | |
| | | this.empBaseInfoForm.version = row.version |
| | | this.dialogshowArr[0].show = true |
| | | this.empBaseInfoImageUrl = pages.getEmpBaseInfoImage + row.empId |
| | | this.empBaseInfoForm.insuranceType = row.insuranceType |
| | | }, |
| | | putEmpBase(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | selectWorkExperience() { |
| | | this.tableUrl = 'hr/empWorkExperience/list' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanWorkExperience() { |
| | | this.workExperienceForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanPhysicalExam() { |
| | | this.physicalExamForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanContractInfo() { |
| | | this.contractInfoForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanDimissionAttend() { |
| | | this.dimissionAttendForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanLeaveInfo() { |
| | | this.leaveInfoForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanResign() { |
| | | this.resignForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanUnemployment() { |
| | | this.unemploymentForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanInsurance() { |
| | | this.insuranceForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanAccidentCases() { |
| | | this.accidentCasesForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanOccupational() { |
| | | this.occupationalForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanLaborTrouble() { |
| | | this.laborTroubleForm.empId = '' |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | editBadRecord(row) { |
| | | this.isAdd = false |
| | |
| | | } |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | this.$refs[formName].clearValidate() |
| | | }, 1500) |
| | | }, |
| | | cleanRemarkInfo() { |
| | | this.remarkInfoForm.empId = '' |
| | |
| | | this.checkedArr = [] |
| | | this.$get('hr/empAccessory', { ...params }).then(r => { |
| | | r.data.data.forEach((v, i) => { |
| | | debugger |
| | | this.checkedArr.push({ isChecked: false, accessoryid: v.accessoryid }) |
| | | // 一行8个 等于8就换行 |
| | | if (i % 8 === 0 && i !== 0) { |
| | |
| | | this.remarkInfoForm.version = '' |
| | | }, |
| | | dialogIsShow() { |
| | | debugger |
| | | this.workExperienceModal = false |
| | | this.isAdd = true |
| | | this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex] |
| | |
| | | this.readon = true |
| | | }, |
| | | gzupdate1() { |
| | | const empBaseInfoForm = this.empBaseInfoForm |
| | | if (empBaseInfoForm.imagePath.indexOf('data:image/jpeg') === -1) { |
| | | this.empBaseInfoForm.imagePath = '' |
| | | } |
| | | // const empBaseInfoForm = this.empBaseInfoForm |
| | | // if (empBaseInfoForm.imagePath.indexOf('data:image/jpeg') === -1) { |
| | | // this.empBaseInfoForm.imagePath = '' |
| | | // } |
| | | this.$put('hr/empBaseInfo', { ...this.empBaseInfoForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | |
| | | this.remarkInfoForm.version = '' |
| | | }, |
| | | dialogIsShow() { |
| | | debugger |
| | | this.workExperienceModal = false |
| | | this.isAdd = true |
| | | this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex] |
| | |
| | | border-color: rgb(64, 158, 255) !important; |
| | | } |
| | | </style> |
| | | |
| | |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryParams.entryType" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllEntryType">全部</el-checkbox> |
| | | <el-checkbox :label="4">新入职</el-checkbox> |
| | | <el-checkbox :label="5">最新入职</el-checkbox> |
| | | <el-checkbox :label="6">返聘入职</el-checkbox> |
| | | <el-checkbox :label="20">新入职</el-checkbox> |
| | | <el-checkbox :label="21">重新新入职</el-checkbox> |
| | | <el-checkbox :label="22">返聘入职</el-checkbox> |
| | | <!-- <el-checkbox--> |
| | | <!-- v-for="data in dimissionTypeOptions"--> |
| | | <!-- :key="data.dicItemName"--> |
| | |
| | | <el-table-column show-overflow-tooltip="true" prop="empName" label="姓名" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="certificateNumb" label="身份证号码" width="160" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="sex" label="性别" width="60" :formatter="sexFormat" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="age" label="年龄" width="60" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="education" label="学历" width="60" :formatter="educationFormat" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="age" label="年龄" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="education" label="学历" width="80" :formatter="educationFormat" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="nativePlace" label="籍贯" width="70" :formatter="nativePlaceFormat" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="telePhone" label="联系电话" width="110" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="empTypeName" label="员工类型" width="80" /> |
| | |
| | | {{ transEmpStatus(row.empStatus) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="entryTypeName" label="入职类型" width="80" /> |
| | | <el-table-column prop="entryType" label="入职类型" width="120" sortable="custom" :sort-orders="['ascending', 'descending']"> |
| | | <template slot-scope="{row}"> |
| | | {{ transEntryType(row.entryType) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | <el-col span="24"> |
| | | <el-form-item label="离职类型" prop="dimissionType"> |
| | | <el-radio-group v-model="gbdaForm.dimissionType" @change="changeDimissionType"> |
| | | <el-radio :label="1">正常离职</el-radio> |
| | | <el-radio :label="2">自动离职</el-radio> |
| | | <el-radio :label="1">合同期满</el-radio> |
| | | <el-radio :label="2">公司劝退</el-radio> |
| | | <el-radio :label="3">公司辞退</el-radio> |
| | | <el-radio :label="7">合同期满</el-radio> |
| | | <el-radio :label="8">公司劝退</el-radio> |
| | | <el-radio :label="9">试用期内</el-radio> |
| | | <el-radio :label="4">自动离职</el-radio> |
| | | <el-radio :label="5">试用期内</el-radio> |
| | | <el-radio :label="6">正常离职</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col v-if="selectDimissionType === 2" span="12"> |
| | | <el-col v-if="selectDimissionType === 4" span="12"> |
| | | <el-form-item label="自离天数" prop="selfLeaveDay"> |
| | | <el-input v-model="gbdaForm.selfLeaveDay" onkeyup="value=value.replace(/[^0-9.]/g,'')" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col v-if="selectDimissionType === 2" span="12"> |
| | | <el-col v-if="selectDimissionType === 4" span="12"> |
| | | <el-form-item label="报告人" prop="reporter"> |
| | | <el-input v-model="gbdaForm.reporter" /> |
| | | </el-form-item> |
| | |
| | | <el-checkbox label="handbookStatusName"><span /></el-checkbox> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td>入职类型</td> |
| | | <td> |
| | | <el-checkbox label="entryTypeName"><span /></el-checkbox> |
| | | </td> |
| | | <td>离职类型</td> |
| | | <td> |
| | | <el-checkbox label="dimissionTypeName"><span /></el-checkbox> |
| | | </td> |
| | | <td>编号</td> |
| | | <td> |
| | | <el-checkbox label="empNumb"><span /></el-checkbox> |
| | | </td> |
| | | </tr> |
| | | <!-- <tr>--> |
| | | <!-- <td>家庭成员及关系</td>--> |
| | | <!-- <td>--> |
| | |
| | | <el-col span="24"> |
| | | <el-form-item label="打开类型" prop="region"> |
| | | <el-radio-group v-model="openArchivesForm.openType"> |
| | | <el-radio :label="5">重新入职</el-radio> |
| | | <el-radio :label="6">返聘</el-radio> |
| | | <el-radio :label="20">重新入职</el-radio> |
| | | <el-radio :label="21">返聘</el-radio> |
| | | </el-radio-group> |
| | | (主要对已退休员工返聘) |
| | | </el-form-item> |
| | |
| | | modifier: '', |
| | | delFlag: '0', |
| | | empStatus: 0, |
| | | version: '' |
| | | version: '', |
| | | entryType: '20' |
| | | }, |
| | | ygdgForm: { |
| | | empIds: [], |
| | |
| | | exportUrl: '', |
| | | checkAll: false, |
| | | isIndeterminate: false, |
| | | cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'insuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate'], |
| | | cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'insuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate', 'entryTypeName', 'dimissionTypeName', 'empNumb'], |
| | | checkedCities: [], |
| | | tableData: [], |
| | | selectDimissionType: 1, |
| | |
| | | dimissionTypeOptions: [], |
| | | ageStrOptions: [], |
| | | sexOptions: [], |
| | | openArchivesForm: {} |
| | | openArchivesForm: { } |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | return '离职' |
| | | case '2': |
| | | return '退休' |
| | | } |
| | | }, |
| | | transEntryType(entryType) { |
| | | switch (entryType) { |
| | | case '20': |
| | | return '新入职' |
| | | case '21': |
| | | return '重新入职' |
| | | case '22': |
| | | return '返聘入职' |
| | | } |
| | | }, |
| | | typeFormat(row, column) { |
| | |
| | | this.empBaseInfoForm.modifier = row.modifier |
| | | this.empBaseInfoForm.delFlag = row.delFlag |
| | | this.empBaseInfoForm.version = row.version |
| | | this.empBaseInfoImageUrl = pages.getEmpBaseInfoImage + row.empId |
| | | // this.empBaseInfoImageUrl = '' |
| | | this.empBaseInfoImageUrl = pages.getEmpBaseInfoImage + row.empId + '?t=' + parseInt(100 * Math.random()) |
| | | this.showXzyg(1) |
| | | }, |
| | | putEmpBase(formName) { |
| | |
| | | }, |
| | | changeDimissionType(value) { |
| | | this.selectDimissionType = value |
| | | console.log('值:' + value) |
| | | }, |
| | | validSelfLeaveDay(rule, value, callback) { |
| | | const type = this.gbdaForm.dimissionType |
| | |
| | | }, |
| | | selectAllEntryType(val) { |
| | | if (val) { |
| | | this.queryParams.entryType = [4, 5, 6] |
| | | this.queryParams.entryType = [20, 21, 22] |
| | | } else { |
| | | this.queryParams.entryType = [] |
| | | } |
| | |
| | | let tempName |
| | | switch (r.data.data.dimissionType) { |
| | | case '1': |
| | | tempName = '正常离职' |
| | | tempName = '合同期满' |
| | | break |
| | | case '2': |
| | | tempName = '自动离职' |
| | | tempName = '公司劝退' |
| | | break |
| | | case '3': |
| | | tempName = '公司辞退' |
| | | break |
| | | case '4': |
| | | tempName = '自动离职' |
| | | break |
| | | case '5': |
| | | tempName = '试用期内' |
| | | break |
| | | case '6': |
| | | tempName = '正常离职' |
| | | break |
| | | } |
| | | var msg = '该员工已存在,' + tempName + '状态!\n\r' |
| | |
| | | empId: r.data.data.empId, |
| | | empName: r.data.data.empName, |
| | | certificateNumb: r.data.data.certificateNumb, |
| | | openType: 2, |
| | | openType: 20, |
| | | openDate: this.getDateString(), |
| | | remark: '' |
| | | } |
| | |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryParams.dimissionType" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllDimissionType">全部</el-checkbox> |
| | | <el-checkbox :label="1">正常离职</el-checkbox> |
| | | <el-checkbox :label="2">自动离职</el-checkbox> |
| | | <el-checkbox :label="6">正常离职</el-checkbox> |
| | | <el-checkbox :label="4">自动离职</el-checkbox> |
| | | <el-checkbox :label="2">公司劝退</el-checkbox> |
| | | <el-checkbox :label="1">合同期满</el-checkbox> |
| | | <el-checkbox :label="3">公司辞退</el-checkbox> |
| | | <el-checkbox :label="7">合同期满</el-checkbox> |
| | | <el-checkbox :label="8">公司劝退</el-checkbox> |
| | | <el-checkbox :label="9">试用期内</el-checkbox> |
| | | <el-checkbox :label="5">试用期内</el-checkbox> |
| | | <!-- <el-checkbox--> |
| | | <!-- v-for="data in dimissionTypeOptions"--> |
| | | <!-- :key="data.dicItemName"--> |
| | |
| | | <el-table-column show-overflow-tooltip="true" prop="allDeptName" label="部门(护卫点)" width="280" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="certificateNumb" label="身份证号码" width="160" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="certificateNumb" label="身份证号码" width="160" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="sex" label="性别" width="50" :formatter="sexFormat" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="age" label="年龄" width="50" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="age" label="年龄" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column |
| | | show-overflow-tooltip="true" |
| | | prop="education" |
| | | label="学历" |
| | | width="60" |
| | | :formatter="educationFormat" |
| | | ortable="custom" |
| | | :sort-orders="['ascending', 'descending']" |
| | | /> |
| | | <el-table-column show-overflow-tooltip="true" prop="nativePlaceName" label="籍贯" width="70" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="telePhone" label="联系电话" width="110" /> |
| | |
| | | {{ transEmpStatus(row.empStatus) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="dimissionTypeName" label="离职类型" width="80" /> |
| | | <el-table-column prop="dimissionType" label="离职类型" width="120" sortable="custom" :sort-orders="['ascending', 'descending']"> |
| | | <template slot-scope="{row}"> |
| | | {{ transEntryType(row.dimissionType) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | <el-col span="24"> |
| | | <el-form-item label="打开类型" prop="region"> |
| | | <el-radio-group v-model="baseicInformationForm.openType"> |
| | | <el-radio :label="5">重新入职</el-radio> |
| | | <el-radio :label="6">返聘</el-radio> |
| | | <el-radio :label="21">重新入职</el-radio> |
| | | <el-radio :label="22">返聘</el-radio> |
| | | </el-radio-group> |
| | | (主要对已退休员工返聘) |
| | | </el-form-item> |
| | |
| | | <el-checkbox label="handbookStatusName"><span /></el-checkbox> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td>入职类型</td> |
| | | <td> |
| | | <el-checkbox label="entryTypeName"><span /></el-checkbox> |
| | | </td> |
| | | <td>离职类型</td> |
| | | <td> |
| | | <el-checkbox label="dimissionTypeName"><span /></el-checkbox> |
| | | </td> |
| | | <td>编号</td> |
| | | <td> |
| | | <el-checkbox label="empNumb"><span /></el-checkbox> |
| | | </td> |
| | | </tr> |
| | | </el-checkbox-group> |
| | | </table> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | archivesStatusOptions: [], |
| | | sexOptions: [], |
| | | empTypeOptions: [], |
| | | cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'insuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate'], |
| | | cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'insuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate', 'entryTypeName', 'dimissionTypeName', 'empNumb'], |
| | | checkedCities: [] |
| | | } |
| | | }, |
| | |
| | | return '退休' |
| | | } |
| | | }, |
| | | transEntryType(entryType) { |
| | | switch (entryType) { |
| | | case '1': |
| | | return '合同期满' |
| | | case '2': |
| | | return '公司劝退' |
| | | case '3': |
| | | return '公司辞退' |
| | | case '4': |
| | | return '自动离职' |
| | | case '5': |
| | | return '试用期内' |
| | | case '6': |
| | | return '正常离职' |
| | | } |
| | | }, |
| | | transDimissionType(dimissionType) { |
| | | switch (dimissionType) { |
| | | case '1': |
| | |
| | | empId: id, |
| | | empName: name, |
| | | certificateNumb: number, |
| | | openType: 2, |
| | | openType: 5, |
| | | openDate: year + '-' + month + '-' + day, |
| | | remark: '' |
| | | } |
| | |
| | | }, |
| | | selectAllDimissionType(val) { |
| | | if (val) { |
| | | this.queryParams.dimissionType = [1, 2, 3] |
| | | this.queryParams.dimissionType = [1, 2, 3, 4, 5, 6] |
| | | } else { |
| | | this.queryParams.dimissionType = [] |
| | | } |
| | |
| | | <el-table-column show-overflow-tooltip prop="allDeptName" label="(部门)护卫点" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="180" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="180" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="sex" label="性别" width="60" :formatter="sexFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="age" label="年龄" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="education" label="学历" width="80" :formatter="educationFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="age" label="年龄" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="education" label="学历" width="100" :formatter="educationFormat" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="nativePlace" label="籍贯" width="80" :formatter="nativePlaceFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="empType" label="员工类型" width="100" :formatter="empTypeFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="telePhone" label="电话" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="empStatus" label="员工状态" width="100"> |
| | | <el-table-column show-overflow-tooltip prop="empStatus" label="员工状态" width="120" sortable="custom" :sort-orders="['ascending', 'descending']"> |
| | | <template slot-scope="{row}"> |
| | | {{ transEmpStatus(row.empStatus) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="dimissionTypeName" label="离职类型" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="entryTypeName" label="入职日期" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="dimissionType" label="入离职类型" width="120" :formatter="dimissionTypFormat" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="entryDate" label="入职日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="dimissionDate" label="离职日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="dimissionDate" label="离职日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']"> |
| | | <template slot-scope="{row}"> |
| | | {{ transDimissionDate(row.dimissionDate) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-dialog title="导出员工" :visible.sync="dialogShowDcyg" width="40%" style="font-weight: 700;"> |
| | | <div style="font-size: 16px;font-weight: 400;height: 35px;margin-top: -30px;color: #409EFF;">请勾选需要导出的字段</div> |
| | |
| | | <td>员工手册</td> |
| | | <td> |
| | | <el-checkbox label="handbookStatusName"><span /></el-checkbox> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td>入职类型</td> |
| | | <td> |
| | | <el-checkbox label="entryTypeName"><span /></el-checkbox> |
| | | </td> |
| | | <td>离职类型</td> |
| | | <td> |
| | | <el-checkbox label="dimissionTypeName"><span /></el-checkbox> |
| | | </td> |
| | | <td>编号</td> |
| | | <td> |
| | | <el-checkbox label="empNumb"><span /></el-checkbox> |
| | | </td> |
| | | </tr> |
| | | </el-checkbox-group> |
| | |
| | | @sort-change="changeSort" |
| | | > |
| | | <el-table-column type="index" label="序号" width="50" align="center" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="allDeptName" label="(部门)护卫点" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | |
| | | <el-table-column show-overflow-tooltip prop="submitTime" label="递交资料时间" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="sbumitBy" label="递交人" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="expensesFee" label="医疗总费用" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="innsureFee" label="保险赔付费用" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="hrDoDate" label="人事处理时间" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="settleStatus" label="状态" width="80" :formatter="settleStatusFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="settleDate" label="结案时间" width="100" /> |
| | |
| | | @sort-change="changeSort" |
| | | > |
| | | <el-table-column type="index" label="序号" width="50" align="center" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="allDeptName" label="(部门)护卫点" width="300" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="140" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="180" /> |
| | | <el-table-column show-overflow-tooltip prop="badDate" label="不良记录日期" width="140" /> |
| | | <el-table-column show-overflow-tooltip prop="badContent" label="不良记录描述" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="allDeptName" label="(部门)护卫点" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="160" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="200" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="badDate" label="不良记录日期" width="160" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="badContent" label="不良记录描述" width="300" /> |
| | | <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="remark" label="备注" /> |
| | | |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'InsuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate'], |
| | | cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'InsuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate', 'entryTypeName', 'dimissionTypeName', 'empNumb'], |
| | | dialogShowDcyg: false, |
| | | isIndeterminate: false, |
| | | checkedCities: [], |
| | |
| | | arbitrationStatusFormat(row, column) { |
| | | return this.selectDictLabel(this.settleStatusOptions, row.arbitrationStatus) |
| | | }, |
| | | dimissionTypFormat(row, column) { |
| | | switch (row.empStatus) { |
| | | case '0': |
| | | return row.entryTypeName |
| | | case '1': |
| | | return row.dimissionTypeName |
| | | } |
| | | }, |
| | | handleCheckedCitiesChange(value) { |
| | | const checkedCount = value.length |
| | | this.checkAll = checkedCount === this.cityOptions.length |
| | |
| | | resetSearch() { |
| | | this.queryParams = { |
| | | delFlag: 0, |
| | | vague: '', |
| | | sex: [], |
| | | education: [], |
| | | politics: [], |
| | |
| | | archivesStatus: [], |
| | | insuranceType: [], |
| | | empStatus: [], |
| | | empType: [], |
| | | baseKey: '', |
| | | empNumb: '', |
| | | empName: '', |
| | | certificateNumb: '', |
| | | jobContent: '' |
| | | jobContent: '', |
| | | inOutType: [] |
| | | } |
| | | this.search() |
| | | }, |
| | |
| | | break |
| | | } |
| | | }, |
| | | // dic列表转为数组 |
| | | dicListToArr(dicList) { |
| | | var arr = [] |
| | | for (var i = 0; i < dicList.length; i++) { |
| | | var dic = dicList[i] |
| | | arr.push(dic.dicItemCode) |
| | | } |
| | | return arr |
| | | }, |
| | | selectAllSex(val) { |
| | | if (val) { |
| | | this.queryParams.sex = ['1', '2'] |
| | | this.queryParams.sex = this.dicListToArr(this.sexOptions) |
| | | } else { |
| | | this.queryParams.sex = [] |
| | | } |
| | | }, |
| | | selectAllEducation(val) { |
| | | if (val) { |
| | | this.queryParams.education = ['91', '81', '71', '61', '42', '41', '31', '21', '11', '10'] |
| | | this.queryParams.education = this.dicListToArr(this.educationOptions) |
| | | } else { |
| | | this.queryParams.education = [] |
| | | } |
| | | }, |
| | | selectAllPolitics(val) { |
| | | if (val) { |
| | | this.queryParams.politics = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13'] |
| | | this.queryParams.politics = this.dicListToArr(this.statusOptions) |
| | | } else { |
| | | this.queryParams.politics = [] |
| | | } |
| | | }, |
| | | selectAllAgeStr(val) { |
| | | if (val) { |
| | | this.queryParams.ageStr = ['18-29', '30-39', '40-49', '50-59', '60-69', '69-999'] |
| | | this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions) |
| | | } else { |
| | | this.queryParams.ageStr = [] |
| | | } |
| | | }, |
| | | selectAllArchivesStatus(val) { |
| | | if (val) { |
| | | this.queryParams.archivesStatus = ['0', '1'] |
| | | this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions) |
| | | } else { |
| | | this.queryParams.archivesStatus = [] |
| | | } |
| | | }, |
| | | selectAllInsuranceType(val) { |
| | | if (val) { |
| | | this.queryParams.insuranceType = ['1', '2', '3', '4', '5'] |
| | | this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions) |
| | | } else { |
| | | this.queryParams.insuranceType = [] |
| | | } |
| | | }, |
| | | selectAllEmpType(val) { |
| | | if (val) { |
| | | this.queryParams.insuranceType = ['1', '2'] |
| | | this.queryParams.empType = this.dicListToArr(this.empTypeOptions) |
| | | } else { |
| | | this.queryParams.insuranceType = [] |
| | | this.queryParams.empType = [] |
| | | } |
| | | }, |
| | | selectAllEmpStatus(val) { |
| | |
| | | }, |
| | | selectAllDimissionType(val) { |
| | | if (val) { |
| | | this.queryParams.inOutType = ['1', '2', '3', '4', '5', '6'] |
| | | this.queryParams.inOutType = this.dicListToArr(this.dimissionTypeOptions) |
| | | } else { |
| | | this.queryParams.inOutType = [] |
| | | } |
| | |
| | | return '调休假' |
| | | } |
| | | }, |
| | | transDimissionDate(val) { |
| | | var dimissDate = new Date(val) |
| | | return dimissDate.getFullYear() === 1900 ? '' : val |
| | | }, |
| | | transPhysicalExamType(physicalExamType) { |
| | | switch (physicalExamType) { |
| | | case '1': |
| | |
| | | this.advancedQueryShow = true |
| | | } |
| | | }, |
| | | showEmpInfo() { |
| | | this.dialogTableVisible = true |
| | | }, |
| | | selectAllSex(val) { |
| | | if (val) { |
| | | this.queryParams.sex = this.dicListToArr(this.sexOptions) |
| | | this.queryform.sex = this.dicListToArr(this.sexOptions) |
| | | } else { |
| | | this.queryParams.sex = [] |
| | | this.queryform.sex = [] |
| | | } |
| | | }, |
| | | selectAllEducation(val) { |
| | | if (val) { |
| | | this.queryParams.education = this.dicListToArr(this.educationOptions) |
| | | this.queryform.education = this.dicListToArr(this.educationOptions) |
| | | } else { |
| | | this.queryParams.education = [] |
| | | this.queryform.education = [] |
| | | } |
| | | }, |
| | | selectAllPolitics(val) { |
| | | if (val) { |
| | | this.queryParams.politics = this.dicListToArr(this.statusOptions) |
| | | this.queryform.politics = this.dicListToArr(this.statusOptions) |
| | | } else { |
| | | this.queryParams.politics = [] |
| | | this.queryform.politics = [] |
| | | } |
| | | }, |
| | | selectAllAgeStr(val) { |
| | | if (val) { |
| | | this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions) |
| | | this.queryform.ageStr = this.dicListToArr(this.ageStrOptions) |
| | | } else { |
| | | this.queryParams.ageStr = [] |
| | | this.queryform.ageStr = [] |
| | | } |
| | | }, |
| | | selectAllArchivesStatus(val) { |
| | | if (val) { |
| | | this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions) |
| | | this.queryform.archivesStatus = this.dicListToArr(this.archivesStatusOptions) |
| | | } else { |
| | | this.queryParams.archivesStatus = [] |
| | | this.queryform.archivesStatus = [] |
| | | } |
| | | }, |
| | | selectAllInsuranceType(val) { |
| | | if (val) { |
| | | this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions) |
| | | this.queryform.insuranceType = this.dicListToArr(this.insuranceTypeOptions) |
| | | } else { |
| | | this.queryParams.insuranceType = [] |
| | | } |
| | | }, |
| | | selectAllEmpCardStatus(val) { |
| | | if (val) { |
| | | this.queryParams.empCardStatus = this.dicListToArr(this.empCardStatusOptions) |
| | | } else { |
| | | this.queryParams.empCardStatus = [] |
| | | } |
| | | }, |
| | | selectAllHandbookStatus(val) { |
| | | if (val) { |
| | | this.queryParams.handbookStatus = this.dicListToArr(this.handbookStatusOptions) |
| | | } else { |
| | | this.queryParams.handbookStatus = [] |
| | | this.queryform.insuranceType = [] |
| | | } |
| | | }, |
| | | selectAllEmpType(val) { |
| | | if (val) { |
| | | this.queryParams.empType = this.dicListToArr(this.empTypeOptions) |
| | | this.queryform.empType = this.dicListToArr(this.empTypeOptions) |
| | | } else { |
| | | this.queryParams.empType = [] |
| | | this.queryform.empType = [] |
| | | } |
| | | }, |
| | | selectAllEntryType(val) { |
| | | selectAllHandbookStatus(val) { |
| | | if (val) { |
| | | this.queryParams.entryType = [4, 5, 6] |
| | | this.queryform.handbookStatus = this.dicListToArr(this.handbookStatusOptions) |
| | | } else { |
| | | this.queryParams.entryType = [] |
| | | this.queryform.handbookStatus = [] |
| | | } |
| | | }, |
| | | selectAllEmpStatus(val) { |
| | | if (val) { |
| | | this.queryParams.empStatus = ['0', '1', '2', '3'] |
| | | this.queryform.empStatus = ['0', '1', '2', '3'] |
| | | } else { |
| | | this.queryParams.empStatus = [] |
| | | this.queryform.empStatus = [] |
| | | } |
| | | }, |
| | | selectAllEmpCardStatus(val) { |
| | | if (val) { |
| | | this.queryform.empCardStatus = this.dicListToArr(this.empCardStatusOptions) |
| | | } else { |
| | | this.queryform.empCardStatus = [] |
| | | } |
| | | }, |
| | | selectAllDimissionType(val) { |
| | | if (val) { |
| | | this.queryform.inOutType = this.dicListToArr(this.dimissionTypeOptions) |
| | | } else { |
| | | this.queryform.inOutType = [] |
| | | } |
| | | }, |
| | | // dic列表转为数组 |
| | |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |
| | | var checke = '' |
| | | debugger |
| | | this.checkedArr.forEach((v, i) => { |
| | | if (v.isChecked) { |
| | | checke = v.accessoryid |
| | |
| | | } |
| | | }, |
| | | showFileImg(type) { |
| | | debugger |
| | | switch (type) { |
| | | case 'xls': |
| | | return require('../../assets/uploading/xls.png') |
| | |
| | | width: 100px; |
| | | height: 100px; |
| | | } |
| | | |
| | | .el-image .el-image-viewer__mask { |
| | | background-color: #fff !important; |
| | | opacity: 1; |
| | | } |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .el-main { |
| | |
| | | background-color: rgb(64, 158, 255); |
| | | border-color: rgb(64, 158, 255); |
| | | } |
| | | |
| | | </style> |
| | |
| | | this.fileDate.folderid = this.folderform.folderid |
| | | } |
| | | |
| | | const isLt50M = file.size / 1024 / 1024 < 50 |
| | | const isLt50M = file.size / 1024 / 1024 < 200 |
| | | if (!isLt50M) { |
| | | this.$message.error('上传文件不能超过 50MB!') |
| | | this.$message.error('上传文件不能超过 200MB!') |
| | | } |
| | | return isLt50M |
| | | }, |
| | |
| | | width: 100px; |
| | | height: 100px; |
| | | } |
| | | |
| | | .zs-main { |
| | | .el-tree .el-tree-node__content{ |
| | | font-size:16px; |
| | | color: #333; |
| | | height: 35px; |
| | | line-height: 35px; |
| | | } |
| | | .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { |
| | | background-color: #e8f2fd; |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .el-main { |
| | |
| | | // change xxx-api/login => mock/login |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: 'http://120.24.23.155:7301/', |
| | | // target: 'http://120.24.23.155:8301/', |
| | | target: 'http://127.0.0.1:8301/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |