Compare commits
2 Commits
8f084c2990
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c0e5035b4 | |||
| 95e7379cfa |
@@ -182,13 +182,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style="display: flex;justify-content: center;align-items: center;min-width: 130px;text-align: left;">
|
style="display: flex;justify-content: center;align-items: center;min-width: 130px;text-align: left;">
|
||||||
<div>审批人: </div>
|
<div>签名: </div>
|
||||||
<div>
|
<div>
|
||||||
<!-- <el-image style="width: 100px; height: 50px; margin-left: 10px; border: 1px solid #eee"
|
<el-image style="width: 100px; height: 50px; margin-left: 10px; border: 1px solid #eee"
|
||||||
:src="baseUrl + renderData.studentPromiseSign"
|
:src="baseUrl + item.signature"
|
||||||
:preview-src-list="[baseUrl + renderData.studentPromiseSign]">
|
:preview-src-list="[baseUrl + item.signature]" :alt="item.approverName">
|
||||||
</el-image> -->
|
</el-image>
|
||||||
{{ item.approverName }}
|
<!-- {{ item.approverName }} -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left: 10px;">日期: {{ item.approvalTime }}</div>
|
<div style="margin-left: 10px;">日期: {{ item.approvalTime }}</div>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
<!-- (调整顺序,驳回优先级最高) -->
|
<!-- (调整顺序,驳回优先级最高) -->
|
||||||
<el-tag v-else-if="scope.row.status == 0 || scope.row.status == ''" type="info">待提交</el-tag>
|
<el-tag v-else-if="scope.row.status == 0 || scope.row.status == ''" type="info">待提交</el-tag>
|
||||||
<el-tag v-else-if="scope.row.status == 1">待辅导员审批</el-tag>
|
<el-tag v-else-if="scope.row.status == 1">待辅导员审批</el-tag>
|
||||||
<el-tag v-else-if="scope.row.status == 2">待学院书记审批</el-tag>
|
<el-tag v-else-if="scope.row.status == 2">待二级学院书记审批</el-tag>
|
||||||
<el-tag v-else-if="scope.row.status == 3">待学工处审批</el-tag>
|
<el-tag v-else-if="scope.row.status == 3">待学工处审批</el-tag>
|
||||||
<el-tag v-else-if="scope.row.status == 4">待学校领导审批</el-tag>
|
<el-tag v-else-if="scope.row.status == 4">待学校领导审批</el-tag>
|
||||||
<el-tag v-else-if="scope.row.status == 5" type="success">审核通过</el-tag>
|
<el-tag v-else-if="scope.row.status == 5" type="success">审核通过</el-tag>
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
v-hasPermi="['dormitory:outsideAccommodationApply:edit']"
|
v-hasPermi="['dormitory:outsideAccommodationApply:edit']"
|
||||||
v-if="scope.row.status == 0 || getRejectInfo(scope.row.outsideAccommodationApprovals).isReject">修改</el-button>
|
v-if="scope.row.status == 0 || getRejectInfo(scope.row.outsideAccommodationApprovals).isReject">修改</el-button>
|
||||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['dormitory:outsideAccommodationApply:remove']" v-if="scope.row.status == 0 && scope.row.processInstanceId == null">删除</el-button>
|
v-hasPermi="['dormitory:outsideAccommodationApply:remove']" v-if="scope.row.status == 0 || roleGroup.includes('管理员')">删除</el-button>
|
||||||
<el-button v-if="scope.row.applyStatus != 0" size="mini" type="text" icon="el-icon-info"
|
<el-button v-if="scope.row.applyStatus != 0" size="mini" type="text" icon="el-icon-info"
|
||||||
@click="detail(scope.row)">详情</el-button>
|
@click="detail(scope.row)">详情</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -376,10 +376,6 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item span="4" v-for="item in form.enlistmentReserveApprovalList" >
|
<el-descriptions-item span="4" v-for="item in form.enlistmentReserveApprovalList" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<template slot="label"> {{ item.opinionType }} </template>
|
<template slot="label"> {{ item.opinionType }} </template>
|
||||||
<div style="padding-top: 10px;">
|
<div style="padding-top: 10px;">
|
||||||
{{ item.approvalOpinion || "暂无意见" }}
|
{{ item.approvalOpinion || "暂无意见" }}
|
||||||
@@ -391,7 +387,16 @@
|
|||||||
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
||||||
<el-tag v-else type="danger">驳回</el-tag>
|
<el-tag v-else type="danger">驳回</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0 10px;">签名: {{ item.approverName }}</div>
|
<div
|
||||||
|
style="display: flex;justify-content: center;align-items: center;min-width: 130px;text-align: left;">
|
||||||
|
<div>签名: </div>
|
||||||
|
<div>
|
||||||
|
<el-image style="width: 100px; height: 50px; margin-left: 10px; border: 1px solid #eee"
|
||||||
|
:src="baseUrl + item.signature" :preview-src-list="[baseUrl + item.signature]"
|
||||||
|
:alt="item.approverName">
|
||||||
|
</el-image>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -374,7 +374,16 @@
|
|||||||
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
||||||
<el-tag v-else type="danger">驳回</el-tag>
|
<el-tag v-else type="danger">驳回</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0 10px;">签名: {{ item.approverName }}</div>
|
<div
|
||||||
|
style="display: flex;justify-content: center;align-items: center;min-width: 130px;text-align: left;">
|
||||||
|
<div>签名: </div>
|
||||||
|
<div>
|
||||||
|
<el-image style="width: 100px; height: 50px; margin-left: 10px; border: 1px solid #eee"
|
||||||
|
:src="baseUrl + item.signature" :preview-src-list="[baseUrl + item.signature]"
|
||||||
|
:alt="item.approverName">
|
||||||
|
</el-image>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -413,7 +413,16 @@
|
|||||||
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
||||||
<el-tag v-else type="danger">驳回</el-tag>
|
<el-tag v-else type="danger">驳回</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0 10px;">签名: {{ item.approverName }}</div>
|
<div
|
||||||
|
style="display: flex;justify-content: center;align-items: center;min-width: 130px;text-align: left;">
|
||||||
|
<div>签名: </div>
|
||||||
|
<div>
|
||||||
|
<el-image style="width: 100px; height: 50px; margin-left: 10px; border: 1px solid #eee"
|
||||||
|
:src="baseUrl + item.signature" :preview-src-list="[baseUrl + item.signature]"
|
||||||
|
:alt="item.approverName">
|
||||||
|
</el-image>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -431,7 +440,9 @@
|
|||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
|
||||||
<!-- 外宿申请表单 -->
|
<!-- 外宿申请表单 -->
|
||||||
<div v-if="outsideAccommodationForm"><detailApply :formData="form" :isShwo="false"></detailApply></div>
|
<div v-if="outsideAccommodationForm">
|
||||||
|
<detailApply :formData="form" :isShwo="false"></detailApply>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 退伍复学表单 -->
|
<!-- 退伍复学表单 -->
|
||||||
<el-descriptions v-if="basicForm" class="margin-top" title="退伍复学申请表" :column="4" size="medium" border
|
<el-descriptions v-if="basicForm" class="margin-top" title="退伍复学申请表" :column="4" size="medium" border
|
||||||
@@ -739,7 +750,7 @@
|
|||||||
<h1>休学证明</h1>
|
<h1>休学证明</h1>
|
||||||
<h4>桂水电院 {{ form.quitYear }} 休字第 {{ form.quitNumber }}号</h4>
|
<h4>桂水电院 {{ form.quitYear }} 休字第 {{ form.quitNumber }}号</h4>
|
||||||
<p>{{ form.stuName }},{{ form.gender }},{{ form.mz }},{{ form.birthday }}出生,{{ form.jg }}人,{{ form.className
|
<p>{{ form.stuName }},{{ form.gender }},{{ form.mz }},{{ form.birthday }}出生,{{ form.jg }}人,{{ form.className
|
||||||
}}学生,学号:{{ form.stuNo }}.该生于个人原因-{{ form.reasonApplying }},申请休学.经学校研究,同意休学,时间从{{ form.quitStartTime }}至{{
|
}}学生,学号:{{ form.stuNo }}.该生于个人原因-{{ form.reasonApplying }},申请休学.经学校研究,同意休学,时间从{{ form.quitStartTime }}至{{
|
||||||
form.quitEndTime }}.</p>
|
form.quitEndTime }}.</p>
|
||||||
<p>抄送:教务处、财务处、{{ form.departmentName }}</p>
|
<p>抄送:教务处、财务处、{{ form.departmentName }}</p>
|
||||||
<div class="stamp">
|
<div class="stamp">
|
||||||
@@ -946,10 +957,10 @@ export default {
|
|||||||
flowRecordList: [], // 流程流转数据
|
flowRecordList: [], // 流程流转数据
|
||||||
formConfCopy: {},
|
formConfCopy: {},
|
||||||
src: null,
|
src: null,
|
||||||
// 班级名称
|
// 班级名称
|
||||||
saveClassName:null,
|
saveClassName: null,
|
||||||
// 年级名称
|
// 年级名称
|
||||||
saveGradeName:null,
|
saveGradeName: null,
|
||||||
rules: {
|
rules: {
|
||||||
penaltyNumber: [{ required: true, message: '请输入处分文号', trigger: 'blur' }],
|
penaltyNumber: [{ required: true, message: '请输入处分文号', trigger: 'blur' }],
|
||||||
letterServiceContent: [{ required: true, message: '请输入送达书', trigger: 'blur' }],
|
letterServiceContent: [{ required: true, message: '请输入送达书', trigger: 'blur' }],
|
||||||
@@ -982,7 +993,8 @@ export default {
|
|||||||
variables: {},
|
variables: {},
|
||||||
approvalOpinion: '', // 必须初始化,避免 null 报错
|
approvalOpinion: '', // 必须初始化,避免 null 报错
|
||||||
approvalResult: '',
|
approvalResult: '',
|
||||||
targetNodeName: ''
|
targetNodeName: '',
|
||||||
|
signature: ''
|
||||||
},
|
},
|
||||||
penaltyNumber: '',
|
penaltyNumber: '',
|
||||||
letterServiceContent: '',
|
letterServiceContent: '',
|
||||||
@@ -1037,7 +1049,7 @@ export default {
|
|||||||
outsideAccommodationForm: false, // 外宿申请表单
|
outsideAccommodationForm: false, // 外宿申请表单
|
||||||
basicForm: false,//退伍复学表单
|
basicForm: false,//退伍复学表单
|
||||||
BasicTestData: 0, // 新增:默认0,仅退回学生申请时改为1
|
BasicTestData: 0, // 新增:默认0,仅退回学生申请时改为1
|
||||||
|
user: [], // 当前登录用户
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -1092,9 +1104,15 @@ export default {
|
|||||||
} else if (this.category == 'enlistmentReserve') {
|
} else if (this.category == 'enlistmentReserve') {
|
||||||
this.enlistmentReserveForm = true
|
this.enlistmentReserveForm = true
|
||||||
this.getEnlistmentReserve(this.taskForm.procInsId)
|
this.getEnlistmentReserve(this.taskForm.procInsId)
|
||||||
|
getUserProfile().then(res => {
|
||||||
|
this.user = res.data
|
||||||
|
})
|
||||||
} else if (this.category == 'outsideAccommodation') {
|
} else if (this.category == 'outsideAccommodation') {
|
||||||
this.outsideAccommodationForm = true
|
this.outsideAccommodationForm = true
|
||||||
this.getOutsideAccommodation(this.taskForm.procInsId)
|
this.getOutsideAccommodation(this.taskForm.procInsId)
|
||||||
|
getUserProfile().then(res => {
|
||||||
|
this.user = res.data
|
||||||
|
})
|
||||||
} else if (this.category == '退伍复学') {
|
} else if (this.category == '退伍复学') {
|
||||||
this.basicForm = true
|
this.basicForm = true
|
||||||
this.getBasicApplication(this.startUser)
|
this.getBasicApplication(this.startUser)
|
||||||
@@ -1193,7 +1211,7 @@ export default {
|
|||||||
this.listGrade()
|
this.listGrade()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 获取班级名称列表 */
|
/** 获取班级名称列表 */
|
||||||
getClassNameList() {
|
getClassNameList() {
|
||||||
getClassName().then(res => {
|
getClassName().then(res => {
|
||||||
this.ClassNameList = res.data
|
this.ClassNameList = res.data
|
||||||
@@ -1203,36 +1221,36 @@ export default {
|
|||||||
if (element.value == this.form.maList[0].data1) {
|
if (element.value == this.form.maList[0].data1) {
|
||||||
// console.log(element.label)
|
// console.log(element.label)
|
||||||
element.children.forEach(elementTwo => {
|
element.children.forEach(elementTwo => {
|
||||||
if (elementTwo.value == this.form.maList[0].data2) {
|
if (elementTwo.value == this.form.maList[0].data2) {
|
||||||
// console.log(elementTwo.label)
|
// console.log(elementTwo.label)
|
||||||
elementTwo.children.forEach(elementFree => {
|
elementTwo.children.forEach(elementFree => {
|
||||||
this.saveClassName = elementFree.label
|
this.saveClassName = elementFree.label
|
||||||
// console.log(elementFree.label)
|
// console.log(elementFree.label)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 获取年级列表 */
|
/** 获取年级列表 */
|
||||||
async listGrade() {
|
async listGrade() {
|
||||||
try {
|
try {
|
||||||
let res = await listGrade()
|
let res = await listGrade()
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.grade_list = [...res.rows]
|
this.grade_list = [...res.rows]
|
||||||
console.log(this.grade_list)
|
console.log(this.grade_list)
|
||||||
this.grade_list.forEach(element => {
|
this.grade_list.forEach(element => {
|
||||||
if(element.gradeId == this.form.maList[0].newgrade){
|
if (element.gradeId == this.form.maList[0].newgrade) {
|
||||||
this.saveGradeName = element.gradeName
|
this.saveGradeName = element.gradeName
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('获取年级列表失败:', error)
|
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取年级列表失败:', error)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
getStuInfo(stuNo) {
|
getStuInfo(stuNo) {
|
||||||
getStuInfo(stuNo).then((res) => {
|
getStuInfo(stuNo).then((res) => {
|
||||||
@@ -1349,6 +1367,8 @@ export default {
|
|||||||
// this.completeOpen = true;
|
// this.completeOpen = true;
|
||||||
// this.completeTitle = "流程审批";
|
// this.completeTitle = "流程审批";
|
||||||
this.submitForm(null)
|
this.submitForm(null)
|
||||||
|
// 获取当前用户的签名,并赋值给this.taskForm.variables.signature传入监听器
|
||||||
|
this.taskForm.variables.signature = this.user.signature
|
||||||
},
|
},
|
||||||
/** 用户审批任务 */
|
/** 用户审批任务 */
|
||||||
taskComplete() {
|
taskComplete() {
|
||||||
@@ -1409,7 +1429,7 @@ export default {
|
|||||||
this.updateRtStuQuitSchool()
|
this.updateRtStuQuitSchool()
|
||||||
} else if (this.category == 'enlistmentReserve') { // 是应征入伍保留学籍申请,才执行
|
} else if (this.category == 'enlistmentReserve') { // 是应征入伍保留学籍申请,才执行
|
||||||
if (this.taskName == '教务处主管领导审批') { // (最后一个领导审核完成之后,修改学生学籍状态, status:07是入伍保留学籍)
|
if (this.taskName == '教务处主管领导审批') { // (最后一个领导审核完成之后,修改学生学籍状态, status:07是入伍保留学籍)
|
||||||
updateStudent({ stuId: this.form.studentId, status: '07'}).then(response => { })
|
updateStudent({ stuId: this.form.studentId, status: '07' }).then(response => { })
|
||||||
}
|
}
|
||||||
this.$modal.msgSuccess(response.msg)
|
this.$modal.msgSuccess(response.msg)
|
||||||
} else if (this.category == "退伍复学") {
|
} else if (this.category == "退伍复学") {
|
||||||
@@ -1436,7 +1456,7 @@ export default {
|
|||||||
zsTime: new Date(),
|
zsTime: new Date(),
|
||||||
// zsIdea:字段缺失改为zsIdea字段
|
// zsIdea:字段缺失改为zsIdea字段
|
||||||
zsIdea: assigneeName,
|
zsIdea: assigneeName,
|
||||||
processId:this.taskForm.procInsId
|
processId: this.taskForm.procInsId
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.$modal.msgSuccess(response.msg)
|
this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1453,7 +1473,7 @@ export default {
|
|||||||
fdIdea: this.taskForm.comment,
|
fdIdea: this.taskForm.comment,
|
||||||
fdTime: new Date(),
|
fdTime: new Date(),
|
||||||
fdQm: assigneeName,
|
fdQm: assigneeName,
|
||||||
processId:this.taskForm.procInsId
|
processId: this.taskForm.procInsId
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.$modal.msgSuccess(response.msg)
|
this.$modal.msgSuccess(response.msg)
|
||||||
})
|
})
|
||||||
@@ -1715,23 +1735,23 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// 监听退回节点选择变化
|
// 监听退回节点选择变化
|
||||||
handleReturnNodeChange(val) {
|
handleReturnNodeChange(val) {
|
||||||
// 1. 找到选中的节点
|
// 1. 找到选中的节点
|
||||||
const selectedNode = this.returnTaskList.find(item => item.id === val);
|
const selectedNode = this.returnTaskList.find(item => item.id === val);
|
||||||
if (!selectedNode) {
|
if (!selectedNode) {
|
||||||
this.BasicTestData = 0;
|
this.BasicTestData = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. 仅退伍复学场景 + 节点name是“学生申请” → testData=1
|
// 2. 仅退伍复学场景 + 节点name是“学生申请” → testData=1
|
||||||
if (this.category === "退伍复学" && selectedNode.name === "学生申请") {
|
if (this.category === "退伍复学" && selectedNode.name === "学生申请") {
|
||||||
this.BasicTestData = 1;
|
this.BasicTestData = 1;
|
||||||
// console.log("已选中学生申请,testData=", this.testData); // 调试
|
// console.log("已选中学生申请,testData=", this.testData); // 调试
|
||||||
} else {
|
} else {
|
||||||
this.BasicTestData = 0;
|
this.BasicTestData = 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 可退回任务列表 */
|
/** 可退回任务列表 */
|
||||||
handleReturn() {
|
handleReturn() {
|
||||||
@@ -1760,7 +1780,7 @@ export default {
|
|||||||
|
|
||||||
else if (this.category == "退伍复学") {
|
else if (this.category == "退伍复学") {
|
||||||
|
|
||||||
console.log("数据",this.returnTaskList)
|
console.log("数据", this.returnTaskList)
|
||||||
// updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {})
|
// updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {})
|
||||||
var stNameData = ''
|
var stNameData = ''
|
||||||
// let newName = this.startUser.replace(/-/g, "");
|
// let newName = this.startUser.replace(/-/g, "");
|
||||||
@@ -2061,7 +2081,8 @@ export default {
|
|||||||
variables: {}, // 保留原有的嵌套 variables 结构(后端可能依赖)
|
variables: {}, // 保留原有的嵌套 variables 结构(后端可能依赖)
|
||||||
approvalOpinion: '', // 初始化审批意见为空白
|
approvalOpinion: '', // 初始化审批意见为空白
|
||||||
approvalResult: '', // 审批状态
|
approvalResult: '', // 审批状态
|
||||||
targetNodeName: '' // 审批节点
|
targetNodeName: '', // 审批节点
|
||||||
|
signature: '' // 签名
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 情况2:variables 已存在 → 保留原有字段,补充 approvalOpinion(无则添加,有则保留原值)
|
// 情况2:variables 已存在 → 保留原有字段,补充 approvalOpinion(无则添加,有则保留原值)
|
||||||
@@ -2069,74 +2090,73 @@ export default {
|
|||||||
...this.taskForm.variables, // 展开原有所有字段(如 variables、其他自定义字段)
|
...this.taskForm.variables, // 展开原有所有字段(如 variables、其他自定义字段)
|
||||||
approvalOpinion: this.taskForm.variables.approvalOpinion || '', // 兜底:若原有未定义则设为空白
|
approvalOpinion: this.taskForm.variables.approvalOpinion || '', // 兜底:若原有未定义则设为空白
|
||||||
approvalResult: this.taskForm.variables.approvalResult || '',
|
approvalResult: this.taskForm.variables.approvalResult || '',
|
||||||
targetNodeName: this.taskForm.variables.targetNodeName || ''
|
targetNodeName: this.taskForm.variables.targetNodeName || '',
|
||||||
|
signature: this.taskForm.variables.signature || '',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 退回或驳回的时候生成入伍保留学籍申请审核
|
// 退回或驳回的时候生成入伍保留学籍申请审核
|
||||||
taskReturnApproval(text) {
|
taskReturnApproval(text) {
|
||||||
getUserProfile().then(res => {
|
let data = {
|
||||||
let data = {
|
applyId: this.form.id,
|
||||||
applyId: this.form.id,
|
processInstanceId: this.form.processInstanceId,
|
||||||
processInstanceId: this.form.processInstanceId,
|
taskId: this.taskForm.taskId,
|
||||||
taskId: this.taskForm.taskId,
|
nodeName: this.taskName,
|
||||||
nodeName: this.taskName,
|
approverId: this.user.userId,
|
||||||
approverId: res.data.userId,
|
approverName: this.user.nickName,
|
||||||
approverName: res.data.nickName,
|
approvalOpinion: this.taskForm.comment,
|
||||||
approvalOpinion: this.taskForm.comment,
|
approvalResult: 2,
|
||||||
approvalResult: 2,
|
studentName: this.form.studentName,
|
||||||
studentName: this.form.studentName,
|
studentNo: this.form.studentNo,
|
||||||
studentNo: this.form.studentNo
|
signature: this.user.signature
|
||||||
}
|
}
|
||||||
// 生成审核记录
|
// 生成审核记录
|
||||||
insertOrUpdateByStuAndApprover(data).then(ress => {
|
insertOrUpdateByStuAndApprover(data).then(ress => {
|
||||||
// 审核记录生成之后,判断退回或驳回是不是到学生申请,如果是则更新申请表状态
|
// 审核记录生成之后,判断退回或驳回是不是到学生申请,如果是则更新申请表状态
|
||||||
// if (text == '退回') {
|
// if (text == '退回') {
|
||||||
// let nodeName = ''
|
// let nodeName = ''
|
||||||
// this.returnTaskList.forEach(element => {
|
// this.returnTaskList.forEach(element => {
|
||||||
// if (element.id == this.taskForm.targetKey) { // 如果选中的节点id等于列表里面的id,就将节点名称获取到nodeName
|
// if (element.id == this.taskForm.targetKey) { // 如果选中的节点id等于列表里面的id,就将节点名称获取到nodeName
|
||||||
// nodeName = element.documentation
|
// nodeName = element.documentation
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
// if (nodeName == '学生申请') { // 如果退回选择的是学生节点更新申请表状态
|
// if (nodeName == '学生申请') { // 如果退回选择的是学生节点更新申请表状态
|
||||||
// this.form.applyStatus = 0
|
// this.form.applyStatus = 0
|
||||||
// updateEnlistmentReserve(this.form).then(result => {
|
// updateEnlistmentReserve(this.form).then(result => {
|
||||||
// this.$modal.closeLoading()
|
// this.$modal.closeLoading()
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// } else {
|
// } else {
|
||||||
// // 驳回
|
// // 驳回
|
||||||
// if (this.taskName == '辅导员审批') { // 当前节点如果是辅导员审批,证明驳回就到了学生,所以更新申请表状态
|
// if (this.taskName == '辅导员审批') { // 当前节点如果是辅导员审批,证明驳回就到了学生,所以更新申请表状态
|
||||||
// this.form.applyStatus = 0
|
// this.form.applyStatus = 0
|
||||||
// updateEnlistmentReserve(this.form).then(result => {
|
// updateEnlistmentReserve(this.form).then(result => {
|
||||||
// this.$modal.closeLoading()
|
// this.$modal.closeLoading()
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.$modal.closeLoading()
|
this.$modal.closeLoading()
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 退回或驳回的时候生成外宿申请审核
|
// 退回或驳回的时候生成外宿申请审核
|
||||||
taskReturnAccommodationApproval() {
|
taskReturnAccommodationApproval() {
|
||||||
getUserProfile().then(res => {
|
let data = {
|
||||||
let data = {
|
applyId: this.form.id,
|
||||||
applyId: this.form.id,
|
processInstanceId: this.form.processInstanceId,
|
||||||
processInstanceId: this.form.processInstanceId,
|
applyNo: this.form.applyNo,
|
||||||
applyNo: this.form.applyNo,
|
approvalNode: this.taskName,
|
||||||
approvalNode: this.taskName,
|
approverId: this.user.userId,
|
||||||
approverId: res.data.userId,
|
approverName: this.user.nickName,
|
||||||
approverName: res.data.nickName,
|
approvalOpinion: this.taskForm.comment,
|
||||||
approvalOpinion: this.taskForm.comment,
|
approvalResult: 0,
|
||||||
approvalResult: 0,
|
studentName: this.form.studentName,
|
||||||
studentName: this.form.studentName,
|
studentNo: this.form.studentNo,
|
||||||
studentNo: this.form.studentNo
|
signature: this.user.signature
|
||||||
}
|
}
|
||||||
// 生成审核记录
|
// 生成审核记录
|
||||||
addOrUpdateAccommodationApproval(data).then(ress => {
|
addOrUpdateAccommodationApproval(data).then(ress => {
|
||||||
// 退回或者驳回生产审批记录之后,更新申请表里面的驳回信息
|
// 退回或者驳回生产审批记录之后,更新申请表里面的驳回信息
|
||||||
updateOutsideAccommodationApply({id: this.form.id, rejectReason: this.taskForm.comment})
|
updateOutsideAccommodationApply({ id: this.form.id, rejectReason: this.taskForm.comment })
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -83,7 +83,16 @@
|
|||||||
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
<el-tag v-if="item.approvalResult == 1" type="success">通过</el-tag>
|
||||||
<el-tag v-else type="danger">驳回</el-tag>
|
<el-tag v-else type="danger">驳回</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0 10px;">签名: {{ item.approverName }}</div>
|
<div
|
||||||
|
style="display: flex;justify-content: center;align-items: center;min-width: 130px;text-align: left;">
|
||||||
|
<div>签名: </div>
|
||||||
|
<div>
|
||||||
|
<el-image style="width: 100px; height: 50px; margin-left: 10px; border: 1px solid #eee"
|
||||||
|
:src="baseUrl + item.signature" :preview-src-list="[baseUrl + item.signature]"
|
||||||
|
:alt="item.approverName">
|
||||||
|
</el-image>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
<div style="padding: 0 10px;">日期: {{ item.approvalTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -372,7 +381,8 @@ export default {
|
|||||||
createTime: '',
|
createTime: '',
|
||||||
updateTime: '',
|
updateTime: '',
|
||||||
remark: '',
|
remark: '',
|
||||||
affixId: null
|
affixId: null,
|
||||||
|
baseUrl: process.env.VUE_APP_BASE_API,
|
||||||
},
|
},
|
||||||
enlistmentReserveAttachList: [],
|
enlistmentReserveAttachList: [],
|
||||||
formRules: {
|
formRules: {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['routine:enlistmentReserve:edit']" v-if="scope.row.applyStatus == 0 || getRejectInfo(scope.row.enlistmentReserveApprovalList).isReject">修改</el-button>
|
v-hasPermi="['routine:enlistmentReserve:edit']" v-if="scope.row.applyStatus == 0 || getRejectInfo(scope.row.enlistmentReserveApprovalList).isReject">修改</el-button>
|
||||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['routine:enlistmentReserve:remove']" v-if="scope.row.applyStatus == 0 && scope.row.processInstanceId == ''">删除</el-button>
|
v-hasPermi="['routine:enlistmentReserve:remove']" v-if="scope.row.applyStatus == 0 || roleGroup.includes('管理员')">删除</el-button>
|
||||||
<el-button size="mini" type="text" icon="el-icon-info"
|
<el-button size="mini" type="text" icon="el-icon-info"
|
||||||
@click="detail(scope.row)">详情</el-button>
|
@click="detail(scope.row)">详情</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user