|
@@ -1498,6 +1498,128 @@
|
|
|
</el-collapse-transition>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane label="社会及行业职务">
|
|
|
+ <el-card style="width: 100%" shadow="hover" class="card-info">
|
|
|
+ <template #header>
|
|
|
+ <el-divider content-position="left"><i class="el-icon-document"></i> <span
|
|
|
+ style="font-weight: 900; font-size: 16px; color: #606266;">社会及行业职务</span>
|
|
|
+ <el-divider direction="vertical" />
|
|
|
+ <el-button type="primary" @click="addSociety()"
|
|
|
+ :disabled="auditStatus == 2">新增</el-button>
|
|
|
+ <el-divider direction="vertical" />
|
|
|
+ <el-button :type="changeFlag[9] ? 'warning' : 'success'"
|
|
|
+ @click="changeInfoList(9)">{{
|
|
|
+ changeFlag[9] ? "收起" : "展开"
|
|
|
+ }}</el-button>
|
|
|
+ </el-divider>
|
|
|
+ </template>
|
|
|
+ <el-collapse-transition>
|
|
|
+ <el-row :gutter="26" v-if="changeFlag[9]">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-collapse v-model="activeNames[9]"
|
|
|
+ v-if="societyInfoList && societyInfoList.length > 0">
|
|
|
+ <div style="padding: 0 30px;" v-for="(item, index) in societyInfoList">
|
|
|
+ <el-collapse-item :name="item.id">
|
|
|
+ <template #title="{ isActive }">
|
|
|
+ <div class="collapseTitle">
|
|
|
+ <span style="font-size: 16px;"> {{ item.name }}</span>
|
|
|
+ <div style="margin-left: auto;">
|
|
|
+ <el-button type="text"
|
|
|
+ @click.stop="editSociety(item.id)"
|
|
|
+ :disabled="auditStatus == 2">修改</el-button>
|
|
|
+ <el-button type="text" @click.stop="delSociety(item.id)"
|
|
|
+ style="color: red;"
|
|
|
+ :disabled="auditStatus == 2">删除</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <el-descriptions title="" border>
|
|
|
+ <el-descriptions-item label="职务名称:">{{ item.name
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="任职开始日期:">{{
|
|
|
+ handleDateFormatter(item.startDate)
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="任职开始日期:">{{
|
|
|
+ handleDateFormatter(item.endDate)
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="任职机构:">{{ item.institution
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </el-collapse-item>
|
|
|
+ </div>
|
|
|
+ </el-collapse>
|
|
|
+ <el-empty image-size="80px"
|
|
|
+ style="margin-top: 0 !important;padding: 0 !important;" v-else
|
|
|
+ description="暂无社会及行业职务信息"></el-empty>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-collapse-transition>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="工作业绩">
|
|
|
+ <el-card style="width: 100%" shadow="hover" class="card-info">
|
|
|
+ <template #header>
|
|
|
+ <el-divider content-position="left"><i class="el-icon-document"></i> <span
|
|
|
+ style="font-weight: 900; font-size: 16px; color: #606266;">工作业绩</span>
|
|
|
+ <el-divider direction="vertical" />
|
|
|
+ <el-button type="primary" @click="addPerformance()"
|
|
|
+ :disabled="auditStatus == 2">新增</el-button>
|
|
|
+ <el-divider direction="vertical" />
|
|
|
+ <el-button :type="changeFlag[10] ? 'warning' : 'success'"
|
|
|
+ @click="changeInfoList(10)">{{
|
|
|
+ changeFlag[10] ? "收起" : "展开"
|
|
|
+ }}</el-button>
|
|
|
+ </el-divider>
|
|
|
+ </template>
|
|
|
+ <el-collapse-transition>
|
|
|
+ <el-row :gutter="26" v-if="changeFlag[10]">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-collapse v-model="activeNames[10]"
|
|
|
+ v-if="performanceInfoList && performanceInfoList.length > 0">
|
|
|
+ <div style="padding: 0 30px;" v-for="(item, index) in performanceInfoList">
|
|
|
+ <el-collapse-item :name="item.id">
|
|
|
+ <template #title="{ isActive }">
|
|
|
+ <div class="collapseTitle">
|
|
|
+ <span style="font-size: 16px;"> {{ item.name }}</span>
|
|
|
+ <div style="margin-left: auto;">
|
|
|
+ <el-button type="text"
|
|
|
+ @click.stop="editPerformance(item.id)"
|
|
|
+ :disabled="auditStatus == 2">修改</el-button>
|
|
|
+ <el-button type="text"
|
|
|
+ @click.stop="delPerformance(item.id)"
|
|
|
+ style="color: red;"
|
|
|
+ :disabled="auditStatus == 2">删除</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <el-descriptions title="" border>
|
|
|
+ <el-descriptions-item label="项目名称:">{{ item.name
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="委托方:">{{ item.client
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="工程分类:">{{ item.type
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="规模类型/单位/数量:">{{ item.info
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="担任职务:">{{
|
|
|
+ $dictUtils.getDictLabel("position_held",
|
|
|
+ item.position,
|
|
|
+ '-')
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="参与内容:">{{ item.participateContent
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </el-collapse-item>
|
|
|
+ </div>
|
|
|
+ </el-collapse>
|
|
|
+ <el-empty image-size="80px"
|
|
|
+ style="margin-top: 0 !important;padding: 0 !important;" v-else
|
|
|
+ description="暂无工作业绩信息"></el-empty>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-collapse-transition>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="劳动合同">
|
|
|
<el-card style="width: 100%" shadow="hover" class="card-info">
|
|
|
<template #header>
|
|
@@ -1794,6 +1916,11 @@
|
|
|
<FamilyInfo ref="familyInfo" @addFamilyInfo="handleAddFamilyInfo"></FamilyInfo>
|
|
|
<!-- 表彰与奖励 -->
|
|
|
<RewardInfo ref="rewardInfo" @addRewardInfo="handleAddRewardInfo"></RewardInfo>
|
|
|
+ <!-- 社会及行业职务 -->
|
|
|
+ <SocietyInfo ref="societyInfo" @addSocietyInfo="handleAddSocietyInfo"></SocietyInfo>
|
|
|
+ <!-- 工作业绩 -->
|
|
|
+ <PerformanceInfo ref="performanceInfo" @addPerformanceInfo="handleAddPerformanceInfo"></PerformanceInfo>
|
|
|
+
|
|
|
</el-container>
|
|
|
</template>
|
|
|
|
|
@@ -1814,6 +1941,9 @@ import SkillInfo from "./components/SkillInfo";
|
|
|
import LanguageInfo from "./components/LanguageInfo";
|
|
|
import FamilyInfo from "./components/FamilyInfo";
|
|
|
import RewardInfo from "./components/RewardInfo";
|
|
|
+import SocietyInfo from "./components/SocietyInfo";
|
|
|
+import PerformanceInfo from "./components/PerformanceInfo";
|
|
|
+
|
|
|
import AttachmentView from './components/AttachmentView'
|
|
|
import UpLoadComponent from '@/views/common/UpLoadComponentCardStyle'
|
|
|
import processService from '@/api/flowable/processService'
|
|
@@ -1836,6 +1966,8 @@ export default {
|
|
|
LanguageInfo,
|
|
|
FamilyInfo,
|
|
|
RewardInfo,
|
|
|
+ SocietyInfo,
|
|
|
+ PerformanceInfo,
|
|
|
AttachmentView,
|
|
|
UpLoadComponent
|
|
|
},
|
|
@@ -2038,7 +2170,7 @@ export default {
|
|
|
{ validator: validatePass2, trigger: "blur" },
|
|
|
],
|
|
|
changeFlag: [
|
|
|
- true, true, true, true, true, true, true, true, true
|
|
|
+ true, true, true, true, true, true, true, true, true, true, true
|
|
|
],
|
|
|
activeNames: [],
|
|
|
//教育经历
|
|
@@ -2070,6 +2202,8 @@ export default {
|
|
|
rewardInfoList: [
|
|
|
|
|
|
],
|
|
|
+ societyInfoList: [],
|
|
|
+ performanceInfoList: [],
|
|
|
laborContractInfoList: [],
|
|
|
auditStatus: "0",
|
|
|
flowData: [],
|
|
@@ -2212,6 +2346,14 @@ export default {
|
|
|
if (this.commonJS.isNotEmpty(data.laborContractInfoList)) {
|
|
|
this.laborContractInfoList = data.laborContractInfoList
|
|
|
}
|
|
|
+ // 社会及行业职务
|
|
|
+ if (this.commonJS.isNotEmpty(data.societyInfoList)) {
|
|
|
+ this.societyInfoList = data.societyInfoList
|
|
|
+ }
|
|
|
+ //工作业绩
|
|
|
+ if (this.commonJS.isNotEmpty(data.performanceInfoList)) {
|
|
|
+ this.performanceInfoList = data.performanceInfoList
|
|
|
+ }
|
|
|
|
|
|
if (this.commonJS.isEmpty(this.generalForm.idCardFront)) {
|
|
|
this.generalForm.idCardFront = []
|
|
@@ -2232,6 +2374,8 @@ export default {
|
|
|
this.activeNames[6] = this.familyInfoList.map(item => item.id)
|
|
|
this.activeNames[7] = this.rewardInfoList.map(item => item.id)
|
|
|
this.activeNames[8] = this.laborContractInfoList.map(item => item.id)
|
|
|
+ this.activeNames[9] = this.societyInfoList.map(item => item.id)
|
|
|
+ this.activeNames[10] = this.performanceInfoList.map(item => item.id)
|
|
|
|
|
|
//后面的fileType是限制上传类型
|
|
|
this.$refs.idCardFront.newUpload('edit', this.generalForm.idCardFront, 'idCard', null, null, null, null, null, [...this.fileType])
|
|
@@ -2342,6 +2486,9 @@ export default {
|
|
|
this.rewardInfoList = data.rewardInfoList
|
|
|
this.laborContractInfoList = data.laborContractInfoList
|
|
|
this.workInfoList = data.workInfoList
|
|
|
+ this.societyInfoList = data.societyInfoList
|
|
|
+ this.performanceInfoList = data.performanceInfoList
|
|
|
+
|
|
|
this.concatForm.email = data.email
|
|
|
this.activeNames[0] = this.eduInfoList.map(item => item.id)
|
|
|
this.activeNames[1] = this.workInfoList.map(item => item.id)
|
|
@@ -2352,6 +2499,9 @@ export default {
|
|
|
this.activeNames[6] = this.familyInfoList.map(item => item.id)
|
|
|
this.activeNames[7] = this.rewardInfoList.map(item => item.id)
|
|
|
this.activeNames[8] = this.laborContractInfoList.map(item => item.id)
|
|
|
+ this.activeNames[9] = this.societyInfoList.map(item => item.id)
|
|
|
+ this.activeNames[10] = this.performanceInfoList.map(item => item.id)
|
|
|
+
|
|
|
if (this.commonJS.isEmpty(this.generalForm.idCardFront)) {
|
|
|
this.generalForm.idCardFront = []
|
|
|
}
|
|
@@ -2435,6 +2585,8 @@ export default {
|
|
|
this.generalForm.familyInfoList = this.familyInfoList
|
|
|
this.generalForm.trainingInfoList = this.trainingInfoList
|
|
|
this.generalForm.languageInfoList = this.languageInfoList
|
|
|
+ this.generalForm.societyInfoList = this.societyInfoList
|
|
|
+ this.generalForm.performanceInfoList = this.performanceInfoList
|
|
|
|
|
|
enrollmentRegistrationService.updateInfoAudit(this.generalForm).then((data) => {
|
|
|
this.close()
|
|
@@ -3135,6 +3287,86 @@ export default {
|
|
|
this.rewardInfoList = res
|
|
|
})
|
|
|
},
|
|
|
+ //社会及行业职务
|
|
|
+ addSociety() {
|
|
|
+ this.$refs.societyInfo.init("add", null, this.userId)
|
|
|
+ },
|
|
|
+ editSociety(row) {
|
|
|
+ this.$refs.societyInfo.init("edit", row, this.userId)
|
|
|
+ },
|
|
|
+ delSociety(id) {
|
|
|
+ this.$confirm('确定删除此条社会及行业职务信息吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.societyInfoList = this.societyInfoList.filter(item => item.id !== id)
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleAddSocietyInfo(row) {
|
|
|
+ const { id } = row
|
|
|
+ let index = this.societyInfoList.findIndex(item => item.id === row.id)
|
|
|
+ if (index === -1) {
|
|
|
+ // 不存在就新增
|
|
|
+ this.societyInfoList.push(row)
|
|
|
+ } else {
|
|
|
+ // 存在就更新
|
|
|
+ this.societyInfoList[index] = row
|
|
|
+ }
|
|
|
+ if (!this.activeNames[9].includes(id)) {
|
|
|
+ this.activeNames[9].push(id);
|
|
|
+ }
|
|
|
+ this.uploadKey = Date.now().toString();
|
|
|
+ },
|
|
|
+ handleGetSocietyInfo(row) {
|
|
|
+ enrollmentRegistrationService.findSocietyInfo({
|
|
|
+ userId: this.userId
|
|
|
+ }).then(res => {
|
|
|
+ this.societyInfoList = res
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //工作业绩
|
|
|
+ addPerformance() {
|
|
|
+ this.$refs.performanceInfo.init("add", null, this.userId)
|
|
|
+ },
|
|
|
+ editPerformance(row) {
|
|
|
+ this.$refs.performanceInfo.init("edit", row, this.userId)
|
|
|
+ },
|
|
|
+ delPerformance(id) {
|
|
|
+ this.$confirm('确定删除此条工作业绩信息吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.performanceInfoList = this.performanceInfoList.filter(item => item.id !== id)
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleAddPerformanceInfo(row) {
|
|
|
+ const { id } = row
|
|
|
+ let index = this.performanceInfoList.findIndex(item => item.id === row.id)
|
|
|
+ if (index === -1) {
|
|
|
+ // 不存在就新增
|
|
|
+ this.performanceInfoList.push(row)
|
|
|
+ } else {
|
|
|
+ // 存在就更新
|
|
|
+ this.performanceInfoList[index] = row
|
|
|
+ }
|
|
|
+ if (!this.activeNames[10].includes(id)) {
|
|
|
+ this.activeNames[10].push(id);
|
|
|
+ }
|
|
|
+ this.uploadKey = Date.now().toString();
|
|
|
+ },
|
|
|
+ handleGetPerformanceInfo(row) {
|
|
|
+ enrollmentRegistrationService.findPerformanceInfo({
|
|
|
+ userId: this.userId
|
|
|
+ }).then(res => {
|
|
|
+ this.performanceInfoList = res
|
|
|
+ })
|
|
|
+ },
|
|
|
changeType(value, row) {
|
|
|
|
|
|
if (value === '1' || value === '2') {
|