外宿申请-表单调整
This commit is contained in:
@@ -602,7 +602,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<!-- 入伍保留学籍申请表单 -->
|
||||
<el-form-item v-if="enlistmentReserveForm" label="审批意见" prop="approvalOpinion">
|
||||
<el-form-item v-if="enlistmentReserveForm || outsideAccommodationForm" label="审批意见" prop="approvalOpinion">
|
||||
<el-input type="textarea" :rows="3" v-model="taskForm.variables.approvalOpinion" placeholder="请输入审批意见" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -664,6 +664,7 @@ import { getEnlistmentReserveByProcessInstanceId, updateEnlistmentReserve } from
|
||||
import { insertOrUpdateByStuAndApprover } from "@/api/routine/enlistmentReserve/enlistmentReserveApproval";
|
||||
import { getUserProfile } from '@/api/system/user' // 获取当前登录用户
|
||||
import { updateStudent } from '@/api/stuCQS/basedata/student'
|
||||
import { getOutsideAccommodationApplyByProcessInstanceId } from "@/api/dormitory/outsideAccommodation/outsideAccommodationApply";
|
||||
|
||||
export default {
|
||||
name: 'Record',
|
||||
@@ -784,6 +785,7 @@ export default {
|
||||
showFileDowload: false, //是否显示下载下文
|
||||
quitTypeOptions: [], //休学类别
|
||||
enlistmentReserveForm: false, // 入伍保留学籍表单
|
||||
outsideAccommodationForm: false, // 外宿申请表单
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -838,6 +840,9 @@ export default {
|
||||
} else if (this.category == 'enlistmentReserve') {
|
||||
this.enlistmentReserveForm = true
|
||||
this.getEnlistmentReserve(this.taskForm.procInsId)
|
||||
} else if (this.category == 'outsideAccommodation') {
|
||||
this.outsideAccommodationForm = true
|
||||
this.getOutsideAccommodation(this.taskForm.procInsId)
|
||||
}
|
||||
// 流程任务获取变量信息
|
||||
if (this.taskForm.taskId) {
|
||||
@@ -916,6 +921,12 @@ export default {
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
// 请求 外宿申请表单数据
|
||||
getOutsideAccommodation(procInsId) {
|
||||
getOutsideAccommodationApplyByProcessInstanceId(procInsId.toString()).then((res) => {
|
||||
this.form = res.data
|
||||
})
|
||||
},
|
||||
getStuInfo(stuNo) {
|
||||
getStuInfo(stuNo).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user