|
@@ -1303,8 +1303,84 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-collapse-transition>
|
|
|
+ <!-- 劳动合同 -->
|
|
|
+ </el-card>
|
|
|
+ <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="addLaborContract()">新增</el-button>
|
|
|
+ <el-divider direction="vertical" />
|
|
|
+ <el-button :type="changeFlag[8] ? 'warning' : 'success'" @click="changeInfoList(8)">{{
|
|
|
+ changeFlag[8] ? "收起" : "展开"
|
|
|
+ }}</el-button>
|
|
|
+ </el-divider>
|
|
|
+ </template>
|
|
|
+ <el-collapse-transition>
|
|
|
+ <el-row :gutter="26" v-if="changeFlag[8]">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-collapse
|
|
|
+ v-if="inputForm.laborContractInfoList && inputForm.laborContractInfoList.length > 0">
|
|
|
+ <div style="padding: 0 30px;"
|
|
|
+ v-for="(item, index) in inputForm.laborContractInfoList">
|
|
|
+ <el-collapse-item>
|
|
|
+ <template #title="{ isActive }">
|
|
|
+ <div class="collapseTitle">
|
|
|
+ <span style="font-size: 16px;"> {{
|
|
|
+ $dictUtils.getDictLabel("labor_contract_type", item.type, '-')
|
|
|
+ }}</span>
|
|
|
+ <span style="font-size: 16px;"> {{ "-" +
|
|
|
+ $dictUtils.getDictLabel("labor_contract_term",
|
|
|
+ item.term,
|
|
|
+ '-')
|
|
|
+ }}</span>
|
|
|
+ <div style="margin-left: auto;">
|
|
|
+ <el-button type="text"
|
|
|
+ @click.stop="editLaborContract(item.id)">修改</el-button>
|
|
|
+ <el-button type="text" @click.stop="delLaborContract(item.id)"
|
|
|
+ style="color: red;">删除</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <el-descriptions title="" border :column="2">
|
|
|
+ <el-descriptions-item label="合同类型:">{{
|
|
|
+ $dictUtils.getDictLabel("labor_contract_type", item.type,
|
|
|
+ '-')
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="合同编号:">{{ item.code
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="合同期限:">{{
|
|
|
+ $dictUtils.getDictLabel("labor_contract_term",
|
|
|
+ item.term,
|
|
|
+ '-')
|
|
|
+ }}</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="试用期结束日期:">{{
|
|
|
+ handleDateFormatter(item.trialEndDate)
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="办理日期:">{{
|
|
|
+ handleDateFormatter(item.processeDate)
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="附件:">
|
|
|
+ <AttachmentView :fileList="item.files">
|
|
|
+ </AttachmentView>
|
|
|
+ </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-form>
|
|
|
<template #footer>
|
|
@@ -1330,6 +1406,9 @@
|
|
|
<FamilyInfo ref="familyInfo" @addFamilyInfo="handleAddFamilyInfo"></FamilyInfo>
|
|
|
<!-- 表彰与奖励 -->
|
|
|
<RewardInfo ref="rewardInfo" @addRewardInfo="handleAddRewardInfo"></RewardInfo>
|
|
|
+ <!-- 劳动合同 -->
|
|
|
+ <LaborContractInfo ref="laborContractInfo" @addLaborContractInfo="handleAddLaborContractInfo">
|
|
|
+ </LaborContractInfo>
|
|
|
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -1353,6 +1432,7 @@ import LanguageInfo from "./components/LanguageInfo";
|
|
|
import FamilyInfo from "./components/FamilyInfo";
|
|
|
import RewardInfo from "./components/RewardInfo";
|
|
|
import AttachmentView from './components/AttachmentView'
|
|
|
+import LaborContractInfo from "./components/LaborContractInfo"
|
|
|
|
|
|
import postService from "@/api/sys/postService";
|
|
|
import roleService from "@/api/sys/roleService";
|
|
@@ -1542,14 +1622,8 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
rewardInfoList: [
|
|
|
- {
|
|
|
- enrollmentRegistrationId: '',
|
|
|
- name: "", // 奖项
|
|
|
- rewardDate: "", // 获奖日期
|
|
|
- description: "", // 简述
|
|
|
- files: []
|
|
|
- }
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ laborContractInfoList: []
|
|
|
},
|
|
|
workActiveNames: [],
|
|
|
eduActiveNames: [],
|
|
@@ -1557,7 +1631,7 @@ export default {
|
|
|
roleList: [],
|
|
|
postList: [],
|
|
|
changeFlag: [
|
|
|
- true, true, true, true, true, true, true, true
|
|
|
+ true, true, true, true, true, true, true, true, true
|
|
|
]
|
|
|
|
|
|
}
|
|
@@ -1575,7 +1649,8 @@ export default {
|
|
|
LanguageInfo,
|
|
|
FamilyInfo,
|
|
|
RewardInfo,
|
|
|
- AttachmentView
|
|
|
+ AttachmentView,
|
|
|
+ LaborContractInfo
|
|
|
},
|
|
|
computed: {
|
|
|
bus: {
|
|
@@ -1741,6 +1816,7 @@ export default {
|
|
|
languageInfoList: [],
|
|
|
familyInfoList: [],
|
|
|
rewardInfoList: [],
|
|
|
+ laborContractInfoList: [],
|
|
|
loginName: ""
|
|
|
}
|
|
|
if (method === 'add') {
|
|
@@ -1808,6 +1884,11 @@ export default {
|
|
|
if (this.commonJS.isEmpty(this.inputForm.rewardInfoList)) {
|
|
|
this.inputForm.rewardInfoList = []
|
|
|
}
|
|
|
+ // 劳动合同
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.laborContractInfoList)) {
|
|
|
+ this.inputForm.laborContractInfoList = []
|
|
|
+ }
|
|
|
+
|
|
|
this.inputForm.certificateInfoList.forEach(temp => {
|
|
|
this.changeType(temp.type, temp)
|
|
|
})
|
|
@@ -2576,6 +2657,40 @@ export default {
|
|
|
this.inputForm.rewardInfoList = res
|
|
|
})
|
|
|
},
|
|
|
+ //表彰与奖励处理
|
|
|
+ addLaborContract() {
|
|
|
+ this.$refs.laborContractInfo.init("add", null, this.inputForm.userId)
|
|
|
+ },
|
|
|
+ editLaborContract(id) {
|
|
|
+ this.$refs.laborContractInfo.init("edit", id, this.inputForm.userId)
|
|
|
+ },
|
|
|
+ delLaborContract(id) {
|
|
|
+ this.$confirm('确定删除此条合同信息吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.loading = true
|
|
|
+ enrollmentRegistrationService.deleteLaborContractInfoById(id).then(res => {
|
|
|
+ this.$message.success(res)
|
|
|
+ this.loading = false
|
|
|
+ this.handleGetLaborContractInfo()
|
|
|
+ })
|
|
|
+
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleAddLaborContractInfo(id) {
|
|
|
+ this.handleGetLaborContractInfo()
|
|
|
+ },
|
|
|
+ handleGetLaborContractInfo() {
|
|
|
+ enrollmentRegistrationService.findLaborContractInfo({
|
|
|
+ userId: this.inputForm.userId
|
|
|
+ }).then(res => {
|
|
|
+ this.inputForm.laborContractInfoList = res
|
|
|
+ })
|
|
|
+ },
|
|
|
// 日期格式化
|
|
|
handleDateFormatter(dateStr) {
|
|
|
if (!dateStr) return ''; // 如果为空,返回空字符串
|
|
@@ -2616,11 +2731,6 @@ export default {
|
|
|
row.profession = obj.label
|
|
|
}
|
|
|
}
|
|
|
- console.log(row);
|
|
|
- console.log(row);
|
|
|
- console.log(row);
|
|
|
- console.log(row);
|
|
|
- console.log(row);
|
|
|
|
|
|
},
|
|
|
}
|