|
@@ -94,7 +94,9 @@
|
|
|
<el-popover placement="left" :width="400" trigger="hover">
|
|
|
<template #reference>
|
|
|
<el-button style="margin-left: 10px;" v-if="auditStatus == 2"
|
|
|
- type="primary">审批中</el-button> </template>
|
|
|
+ type="primary">审批中</el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
<!-- <el-table :data="flowData" ref="flowRef" style="width: 100%;"
|
|
|
highlight-current-row="true">
|
|
|
<el-table-column property="comment.status" label="节点" align="center" />
|
|
@@ -117,11 +119,14 @@
|
|
|
</el-result>
|
|
|
</el-popover>
|
|
|
|
|
|
+ <el-button style="margin-left: 10px;" v-if="auditStatus == 2" type="warning"
|
|
|
+ @click="handleRevoke">撤回</el-button>
|
|
|
+
|
|
|
<el-popover width="300" class="box-item" title="" :content="rejectMessage"
|
|
|
placement="top-start">
|
|
|
<template #reference>
|
|
|
<el-tag size="large" style="margin-left: 10px; max-width: 200px;font-size: 12px;"
|
|
|
- v-if="auditStatus == 4" type="danger">
|
|
|
+ v-if="auditStatus == 4 && this.procInsId" type="danger">
|
|
|
<span>已驳回,原因:</span>
|
|
|
<span style="
|
|
|
display: inline-block;
|
|
@@ -2062,7 +2067,8 @@ export default {
|
|
|
],
|
|
|
laborContractInfoList: [],
|
|
|
auditStatus: "0",
|
|
|
- flowData: []
|
|
|
+ flowData: [],
|
|
|
+ procInsId: ""
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -2103,7 +2109,7 @@ export default {
|
|
|
this.loading = true
|
|
|
enrollmentRegistrationService.getUserInfoAudit({ userId: userId }).then(res => {
|
|
|
if (res) {
|
|
|
-
|
|
|
+ this.procInsId = res.procInsId
|
|
|
if (res.procInsId) {
|
|
|
taskService.historicTaskList(
|
|
|
res.procInsId
|
|
@@ -3152,6 +3158,43 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ handleRevoke() {
|
|
|
+
|
|
|
+ this.$confirm('确定要撤回审批吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.loading = true
|
|
|
+ processService.revokeProcIns(this.procInsId).then(res => {
|
|
|
+ this.generalForm.idCardFront = this.$refs.idCardFront.getDataList()
|
|
|
+ this.generalForm.idCardBack = this.$refs.idCardBack.getDataList()
|
|
|
+ this.generalForm.email = this.concatForm.email
|
|
|
+ this.generalForm.eduInfoList = this.eduInfoList
|
|
|
+ this.generalForm.workInfoList = this.workInfoList
|
|
|
+ this.generalForm.certificateInfoList = this.certificateInfoList
|
|
|
+ this.generalForm.skillInfoList = this.skillInfoList
|
|
|
+ this.generalForm.rewardInfoList = this.rewardInfoList
|
|
|
+ this.generalForm.familyInfoList = this.familyInfoList
|
|
|
+ this.generalForm.trainingInfoList = this.trainingInfoList
|
|
|
+ this.generalForm.languageInfoList = this.languageInfoList
|
|
|
+ enrollmentRegistrationService.updateStatusByIdUserInfo(this.generalForm).then((data) => {
|
|
|
+ this.close()
|
|
|
+ this.$message.success(data.msg)
|
|
|
+ this.$refs.idCardBack.clearUpload()
|
|
|
+ this.$refs.idCardFront.clearUpload()
|
|
|
+ this.getDataInfo(this.userInfo.id)
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
};
|