初始化
This commit is contained in:
423
src/views/routine/rtStuDropOutSchool/detail.vue
Normal file
423
src/views/routine/rtStuDropOutSchool/detail.vue
Normal file
@@ -0,0 +1,423 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<span class="el-icon-document">退学申请详情</span>
|
||||
<el-button style="float: right" size="mini" type="danger" @click="goBack">关闭</el-button>
|
||||
<el-button style="float: right" size="mini" type="success" v-print="printobj">打印</el-button>
|
||||
</div>
|
||||
<div class="el-container" id="quitSchool">
|
||||
<div class="table-container">
|
||||
<h2 style="text-align: center">学生退学申请</h2>
|
||||
<div class="block">
|
||||
<!-- 处分表单 -->
|
||||
|
||||
<el-descriptions class="margin-top" title="" :column="3" size="medium" border style="width: 100%">
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 学号 </template>
|
||||
{{ form.stuNo }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 姓名 </template>
|
||||
{{ form.stuName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 性别 </template>
|
||||
{{ form.gender }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 院部 </template>
|
||||
{{ form.departmentName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 年级 </template>
|
||||
{{ form.gradeName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 班级 </template>
|
||||
{{ form.className }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 出生日期 </template>
|
||||
{{ form.birthday }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 家长姓名 </template>
|
||||
{{ form.parentName }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 家长电话 </template>
|
||||
{{ form.parentPhone }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 民族 </template>
|
||||
{{ form.mz }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item>
|
||||
<template slot="label"> 籍贯:省/自治区/直辖市 </template>
|
||||
{{ form.jg }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 退学类型 </template>
|
||||
{{ quitSchoolMethodFormat(form) }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 附件上传 </template>
|
||||
<Affix v-model="form.attachmentUpload" :disabled="true"></Affix>
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 申请原因 </template>
|
||||
{{ form.reasonApplying }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 签名 </template>
|
||||
<img v-if="form.applySignature" :src="baseurl + form.applySignature" width="200px" height="200px"
|
||||
class="avatar" />
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 辅导员联系情况 </template>
|
||||
{{ form.ideologicalEducation }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 在校时间说明 </template>
|
||||
{{ form.instructionSchoolHours }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 退学文号 </template>
|
||||
{{ form.quitNumber }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 退学类别 </template>
|
||||
{{ quitSchoolCategoryMethodFormat(form) }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 退学年份 </template>
|
||||
{{ form.quitYear }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item span="3">
|
||||
<template slot="label"> 备注 </template>
|
||||
{{ form.remark }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
<div class="block">
|
||||
<el-timeline>
|
||||
<el-timeline-item v-for="(item, index) in flowRecordList" :key="index" :icon="setIcon(item.finishTime)"
|
||||
:color="setColor(item.finishTime)">
|
||||
<p style="font-weight: 700">{{ item.taskName }}</p>
|
||||
<el-card :body-style="{ padding: '10px' }">
|
||||
<el-descriptions class="margin-top" :column="1" size="small" border>
|
||||
<el-descriptions-item v-if="item.assigneeName" label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-user"></i>办理人</template>
|
||||
{{ item.assigneeName }}
|
||||
<el-tag type="info" size="mini">{{ item.deptName }}</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="item.candidate" label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-user"></i>候选办理</template>
|
||||
{{ item.candidate }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-date"></i>接收时间</template>
|
||||
{{ item.createTime }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="item.finishTime" label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-date"></i>处理时间</template>
|
||||
{{ item.finishTime }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="item.duration" label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-time"></i>耗时</template>
|
||||
{{ item.duration }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="item.comment" label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-tickets"></i>处理意见</template>
|
||||
{{ item.comment.comment }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="item.finishTime" label-class-name="my-label">
|
||||
<template slot="label"><i class="el-icon-date"></i>签名</template>
|
||||
<img :src="baseurl + item.assigneeSign" width="300px" height="200px" class="avatar" />
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--流程流转记录-->
|
||||
<!--表单信息-->
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { flowXmlAndNode } from '@/api/flowable/definition'
|
||||
import { flowRecord } from '@/api/flowable/finished'
|
||||
import { getRtStuDropOutSchoolByprocInsId ,getRtStuDropOutSchool} from '@/api/routine/rtStuDropOutSchool'
|
||||
import Parser from '@/components/parser/Parser'
|
||||
import flow from '@/views/flowable/task/finished/detail/flow'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
|
||||
export default {
|
||||
name: 'RtStuDropOutSchoolDetail',
|
||||
dicts: ['rt_penalty_type', 'rt_penalty_status', 'rt_quit_type', 'rt_reentry_type', 'rt_logout_type'],
|
||||
components: {
|
||||
Parser,
|
||||
flow,
|
||||
},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
// 模型xml数据
|
||||
flowData: {},
|
||||
activeName: '1',
|
||||
// 用户表格数据
|
||||
userList: null,
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'label',
|
||||
},
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
deptId: undefined,
|
||||
},
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
flowRecordList: [], // 流程流转数据
|
||||
formConfCopy: {},
|
||||
src: null,
|
||||
taskForm: {
|
||||
multiple: false,
|
||||
comment: '', // 意见内容
|
||||
procInsId: '', // 流程实例编号
|
||||
instanceId: '', // 流程实例编号
|
||||
deployId: '', // 流程定义编号
|
||||
taskId: '', // 流程任务编号
|
||||
procDefId: '', // 流程编号
|
||||
vars: '',
|
||||
targetKey: '',
|
||||
},
|
||||
variables: [], // 流程变量数据
|
||||
variablesData: {}, // 流程变量数据
|
||||
variableOpen: false, // 是否加载流程变量数据
|
||||
category: null, // 流程分类
|
||||
leaveForm: false, // 请假表单
|
||||
disposalForm: false, // 处分表单
|
||||
dropOutForm: false, // 退学申请表单
|
||||
form: {},
|
||||
// 学生基础信息
|
||||
stuInfo: {},
|
||||
//打印
|
||||
printobj: {
|
||||
id: 'dropOutForm',
|
||||
popTitle: '打印', // 打印配置页上方标题
|
||||
extraHead: '', //最上方的头部文字,附加在head标签上的额外标签,使用逗号分隔
|
||||
preview: '', // 是否启动预览模式,默认是false(开启预览模式,可以先预览后打印)
|
||||
previewTitle: '', // 打印预览的标题(开启预览模式后出现),
|
||||
previewPrintBtnLabel: '', // 打印预览的标题的下方按钮文本,点击可进入打印(开启预览模式后出现)
|
||||
zIndex: '', // 预览的窗口的z-index,默认是 20002(此值要高一些,这涉及到预览模式是否显示在最上面)
|
||||
previewBeforeOpenCallback() {}, //预览窗口打开之前的callback(开启预览模式调用)
|
||||
previewOpenCallback() {}, // 预览窗口打开之后的callback(开启预览模式调用)
|
||||
beforeOpenCallback() {}, // 开启打印前的回调事件
|
||||
openCallback() {}, // 调用打印之后的回调事件
|
||||
closeCallback() {}, //关闭打印的回调事件(无法确定点击的是确认还是取消)
|
||||
url: '',
|
||||
standard: '',
|
||||
extraCss: '',
|
||||
},
|
||||
notupload: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.taskForm.deployId = this.$route.query && this.$route.query.deployId
|
||||
this.taskForm.procInsId = this.$route.query && this.$route.query.procInsId
|
||||
this.dropOutSchoolId = this.$route.query && this.$route.query.dropOutSchoolId
|
||||
this.category = this.$route.query.category
|
||||
if (this.category == 'dropOut') {
|
||||
this.dropOutForm = true
|
||||
if (this.dropOutSchoolId) {
|
||||
this.getRtStuDropOutSchool(this.dropOutSchoolId)
|
||||
} else {
|
||||
this.getRtStuDropOutSchoolByprocInsId(this.taskForm.procInsId)
|
||||
}
|
||||
}
|
||||
// 回显流程记录
|
||||
// 流程任务重获取变量表单
|
||||
// if (this.taskForm.taskId){
|
||||
// this.processVariables( this.taskForm.taskId)
|
||||
// }
|
||||
|
||||
this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId)
|
||||
},
|
||||
methods: {
|
||||
getRtStuDropOutSchool(dropOutSchoolId) {
|
||||
getRtStuDropOutSchool(dropOutSchoolId).then((response) => {
|
||||
this.form = response.data
|
||||
this.form.penaltyType = this.form.penaltyType.toString()
|
||||
})
|
||||
},
|
||||
// 类别
|
||||
quitSchoolCategoryMethodFormat(row, column) {
|
||||
return this.selectDictLabel(this.dict.type.rt_logout_type, row.dropOutCategory)
|
||||
},
|
||||
getRtStuDropOutSchoolByprocInsId(procInsId) {
|
||||
getRtStuDropOutSchoolByprocInsId(procInsId).then((res) => {
|
||||
this.form = res.data
|
||||
})
|
||||
},
|
||||
quitSchoolMethodFormat(row, column) {
|
||||
return this.selectDictLabel(this.dict.type.rt_reentry_type, row.dropOutType)
|
||||
},
|
||||
handleClick(tab, event) {
|
||||
if (tab.name === '3') {
|
||||
flowXmlAndNode({ procInsId: this.taskForm.procInsId, deployId: this.taskForm.deployId }).then((res) => {
|
||||
this.flowData = res.data
|
||||
})
|
||||
}
|
||||
},
|
||||
setIcon(val) {
|
||||
if (val) {
|
||||
return 'el-icon-check'
|
||||
} else {
|
||||
return 'el-icon-time'
|
||||
}
|
||||
},
|
||||
setColor(val) {
|
||||
if (val) {
|
||||
return '#2bc418'
|
||||
} else {
|
||||
return '#b3bdbb'
|
||||
}
|
||||
},
|
||||
/** 流程流转记录 */
|
||||
getFlowRecordList(procInsId, deployId) {
|
||||
const that = this
|
||||
const params = { procInsId: procInsId, deployId: deployId }
|
||||
flowRecord(params)
|
||||
.then((res) => {
|
||||
that.flowRecordList = res.data.flowList
|
||||
})
|
||||
.catch((res) => {
|
||||
this.goBack()
|
||||
})
|
||||
},
|
||||
// /** 获取流程变量内容 */
|
||||
// processVariables(taskId) {
|
||||
// if (taskId) {
|
||||
// // 提交流程申请时填写的表单存入了流程变量中后续任务处理时需要展示
|
||||
// getProcessVariables(taskId).then(res => {
|
||||
// this.variablesData = res.data.variables;
|
||||
// this.variableOpen = true
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
/** 返回页面 */
|
||||
goBack() {
|
||||
// 关闭当前标签页并返回上个页面
|
||||
// const obj = { path: 'disciplinaryApplication', query: { t: Date.now() } }
|
||||
// this.$tab.closeOpenPage(obj)
|
||||
this.$router.back()
|
||||
// 关闭窗体 index 当前层索引
|
||||
this.$tab.closePage()
|
||||
},
|
||||
// 下载违纪材料
|
||||
async uploadFile() {
|
||||
const fileList = this.form.evidenceUpload // 假设这是文件ID列表或直接的URL列表
|
||||
|
||||
if (fileList != null && fileList !== undefined && fileList !== '') {
|
||||
const files = fileList.split(',') // 分割字符串得到文件列表数组
|
||||
|
||||
files.forEach(async (file) => {
|
||||
// 直接在files上使用forEach
|
||||
if (file != null && file !== '' && file !== undefined) {
|
||||
await downloadModule.resource(file)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.test-form {
|
||||
margin: 15px auto;
|
||||
width: 800px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.clearfix:before,
|
||||
.clearfix:after {
|
||||
display: table;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.box-card {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.el-tag+.el-tag {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.my-label {
|
||||
background: #e1f3d8;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
// display: table;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.table-header,
|
||||
.table-body {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.header-cell {
|
||||
display: table-cell;
|
||||
padding: 8px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.cell {
|
||||
display: table-cell;
|
||||
padding: 8px;
|
||||
vertical-align: top;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.form-table {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
170
src/views/routine/rtStuDropOutSchool/dropOutProve.vue
Normal file
170
src/views/routine/rtStuDropOutSchool/dropOutProve.vue
Normal file
@@ -0,0 +1,170 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div slot="header" class="clearfix">
|
||||
<span class="el-icon-document">退学证明</span>
|
||||
<el-button style="float: right" size="mini" type="danger" @click="goBack">关闭</el-button>
|
||||
<el-button style="float: right" size="mini" type="success" v-print="printobj">打印</el-button>
|
||||
<el-button style="float: right" size="mini" type="success" @click="pdfExport">导出退学证明</el-button>
|
||||
</div>
|
||||
<div id="quitSchool" class="certificate">
|
||||
<h1>退学证明</h1>
|
||||
<h4>桂水电院 【{{ form.quitYear }}】 退字第 {{ form.quitNumber }}号</h4>
|
||||
<p>{{ form.stuName }},{{ form.gender }},{{ form.mz }},{{ form.birthday }}出生,{{ form.jg }}人,{{ form.className
|
||||
}}学生,学号:{{ form.stuNo }}。该生于个人原因-{{ form.quitType }},申请退学。经学校研究,同意休学,时间从{{ form.quitStartTime }}至{{
|
||||
form.quitEndTime }}。</p>
|
||||
<p>抄送:教务处、财务处、{{ form.departmentName }}</p>
|
||||
<div class="stamp">
|
||||
<img src="../../../assets/logo/stamp.png" alt="">
|
||||
<div>
|
||||
<span>学生工作处</span>
|
||||
<span>{{ form.quitStartTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getRtStuDropOutSchool } from '@/api/routine/rtStuDropOutSchool'
|
||||
import { formatDateByYearMonthDay } from '/src/utils/index'
|
||||
|
||||
export default {
|
||||
name: 'RtStuDropOutSchoolProve',
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
quitSchoolId: null,
|
||||
applicantId: null,
|
||||
applicantName: null,
|
||||
stuNo: null,
|
||||
stuName: null,
|
||||
stuId: null,
|
||||
gender: null,
|
||||
departmentName: null,
|
||||
gradeName: null,
|
||||
className: null,
|
||||
mz: null,
|
||||
birthday: null,
|
||||
parentPhone: null,
|
||||
parentName: null,
|
||||
jg: null,
|
||||
hksz2: null,
|
||||
attachmentUpload: null,
|
||||
reasonApplying: null,
|
||||
applySignature: null,
|
||||
ideologicalEducation: null,
|
||||
instructionSchoolHours: null,
|
||||
applyStatus: null,
|
||||
submissionStatus: null,
|
||||
processInstanceId: null,
|
||||
deployId: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
remark: null,
|
||||
quitYear: null,
|
||||
quitNumber: null,
|
||||
quitStartTime: null,
|
||||
quitEndTime: null,
|
||||
},
|
||||
//打印
|
||||
printobj: {
|
||||
id: 'quitSchool',
|
||||
popTitle: '打印', // 打印配置页上方标题
|
||||
extraHead: '', //最上方的头部文字,附加在head标签上的额外标签,使用逗号分隔
|
||||
preview: '', // 是否启动预览模式,默认是false(开启预览模式,可以先预览后打印)
|
||||
previewTitle: '', // 打印预览的标题(开启预览模式后出现),
|
||||
previewPrintBtnLabel: '', // 打印预览的标题的下方按钮文本,点击可进入打印(开启预览模式后出现)
|
||||
zIndex: '', // 预览的窗口的z-index,默认是 20002(此值要高一些,这涉及到预览模式是否显示在最上面)
|
||||
previewBeforeOpenCallback() { }, //预览窗口打开之前的callback(开启预览模式调用)
|
||||
previewOpenCallback() { }, // 预览窗口打开之后的callback(开启预览模式调用)
|
||||
beforeOpenCallback() { }, // 开启打印前的回调事件
|
||||
openCallback() { }, // 调用打印之后的回调事件
|
||||
closeCallback() { }, //关闭打印的回调事件(无法确定点击的是确认还是取消)
|
||||
url: '',
|
||||
standard: '',
|
||||
extraCss: '',
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$route.query.dropOutSchoolId) {
|
||||
let dropOutSchoolId = this.$route.query.dropOutSchoolId
|
||||
getRtStuDropOutSchool(dropOutSchoolId).then((response) => {
|
||||
this.form = response.data
|
||||
this.form.birthday = formatDateByYearMonthDay(this.form.birthday)
|
||||
this.form.quitStartTime = formatDateByYearMonthDay(this.form.quitStartTime)
|
||||
this.form.quitEndTime = formatDateByYearMonthDay(this.form.quitEndTime)
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pdfExport() {
|
||||
// 导出时,隐藏公章
|
||||
this.htmlToPdf('quitSchool', '休学证明')
|
||||
},
|
||||
/** 返回页面 */
|
||||
goBack() {
|
||||
// 关闭当前标签页并返回上个页面
|
||||
// const obj = { path: '/routine/relieve', query: { t: Date.now() } }
|
||||
// this.$tab.closeOpenPage(obj)
|
||||
this.$router.back()
|
||||
// 关闭窗体 index 当前层索引
|
||||
this.$tab.closePage()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.certificate {
|
||||
padding: 0 50px;
|
||||
position: relative;
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
text-align: center;
|
||||
color: #868585;
|
||||
}
|
||||
|
||||
p {
|
||||
text-indent: 32px;
|
||||
line-height: 30px;
|
||||
color: #333;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.stamp {
|
||||
position: relative;
|
||||
height: 115px;
|
||||
margin-top: 50px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #333;
|
||||
line-height: 35px;
|
||||
letter-spacing: 3px;
|
||||
align-items: flex-end;
|
||||
|
||||
&>div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-right: 28px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
top: -54px;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
503
src/views/routine/rtStuDropOutSchool/index.vue
Normal file
503
src/views/routine/rtStuDropOutSchool/index.vue
Normal file
@@ -0,0 +1,503 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="学号" prop="stuNo">
|
||||
<el-input v-model="queryParams.stuNo" placeholder="请输入学号" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="学生姓名" prop="stuName">
|
||||
<el-input v-model="queryParams.stuName" placeholder="请输入学生姓名" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="部门" prop="departmentName">
|
||||
<el-input v-model="queryParams.departmentName" placeholder="请输入部门" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['routine:rtStuDropOutSchool:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['routine:rtStuDropOutSchool:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['routine:rtStuDropOutSchool:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['routine:rtStuDropOutSchool:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="rtStuDropOutSchoolList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="学号" align="center" prop="stuNo" />
|
||||
<el-table-column label="学生姓名" align="center" prop="stuName" />
|
||||
<el-table-column label="部门" align="center" prop="departmentName" />
|
||||
<el-table-column label="年级" align="center" prop="gradeName" />
|
||||
<el-table-column label="状态" align="center" prop="applyStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.rt_drop_out_status" :value="scope.row.applyStatus" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="提交状态" align="center" prop="submissionStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.rt_submission_status" :value="scope.row.submissionStatus" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="退学类型" align="center" prop="dropOutType">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.rt_quit_type" :value="scope.row.dropOutType" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="提交时间" align="center" prop="createTime" />
|
||||
<el-table-column label="退学年份" align="center" prop="quitYear" />
|
||||
<el-table-column label="退学文号" align="center" prop="quitNumber" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['routine:rtStuDropOutSchool:edit']" v-if="scope.row.submissionStatus == 0">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['routine:rtStuDropOutSchool:remove']" v-if="scope.row.submissionStatus == 0">删除</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-info" @click="detail(scope.row)" v-if="scope.row.submissionStatus == 1">详情</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-info" @click="dropOutProve(scope.row)" v-if="scope.row.applyStatus == 1">退学证明</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||
|
||||
<!-- 添加或修改学生退学申请记录对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="80%" append-to-body :close-on-click-modal="false">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="学号" prop="stuNo">
|
||||
<el-input v-model="form.stuNo" placeholder="请输入学号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="学生姓名" prop="stuName">
|
||||
<el-input v-model="form.stuName" placeholder="请输入学生姓名" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="性别" prop="gender">
|
||||
<el-input v-model="form.gender" placeholder="请输入性别" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="部门" prop="departmentName">
|
||||
<el-input v-model="form.departmentName" placeholder="请输入部门" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="年级" prop="gradeName">
|
||||
<el-input v-model="form.gradeName" placeholder="请输入年级" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="班级" prop="className">
|
||||
<el-input v-model="form.className" placeholder="请输入班级" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="出生日期" prop="birthday">
|
||||
<el-input v-model="form.birthday" placeholder="请输入出生日期" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="家长姓名" prop="fatherName">
|
||||
<el-input v-model="form.fatherName" placeholder="请输入家长姓名" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="家长电话" prop="fatherRelation">
|
||||
<el-input v-model="form.fatherRelation" placeholder="请输入家长电话" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="民族" prop="mz">
|
||||
<el-input v-model="form.mz" placeholder="请输入民族" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="籍贯" prop="jg">
|
||||
<el-cascader :options="areaOptions" v-model="form.jg" clearable filterable> </el-cascader>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="市/县" prop="hksz2">
|
||||
<el-input v-model="form.hksz2" placeholder="请输入市/县" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="休学类型" prop="dropOutType">
|
||||
<el-radio-group v-model="form.dropOutType">
|
||||
<el-radio v-for="dict in dict.type.rt_reentry_type" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="附件上传" prop="attachmentUpload">
|
||||
<span style="color: red">备注:需要学生本人手写的书面申请.</span>
|
||||
<Affix @input="handleAffix" v-model="form.attachmentUpload"></Affix>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="申请原因" prop="reasonApplying">
|
||||
<el-input v-model="form.reasonApplying" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="签名" prop="applySignature">
|
||||
<signature :url="form.applySignature" @save-success="saveSuccessHandle"></signature>
|
||||
|
||||
<!-- <el-upload class="avatar-uploader" :action="upload.url" :headers="upload.headers" :show-file-list="false" :on-success="handleAvatarSuccess">
|
||||
<img v-if="form.applySignature" :src="baseurl + form.applySignature" width="200px" height="50px" class="avatar" />
|
||||
<span v-else> 点击上传</span>
|
||||
</el-upload> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="save">保 存</el-button>
|
||||
<el-button type="primary" @click="submitForm">提 交</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { addRtStuDropOutSchool, delRtStuDropOutSchool, getRtStuDropOutSchool, listRtStuDropOutSchool, save } from '@/api/routine/rtStuDropOutSchool'
|
||||
import { getMyStuInfo } from '@/api/routine/rtStuQuitSchool'
|
||||
import signature from '@/components/signature/index.vue'
|
||||
import { getTokenKeySessionStorage as getToken } from '@/utils/auth'
|
||||
import {
|
||||
pcaTextArr, // 省市区联动数据,纯汉字
|
||||
} from 'element-china-area-data'
|
||||
|
||||
export default {
|
||||
name: 'RtStuDropOutSchool',
|
||||
dicts: ['rt_quit_type', 'rt_submission_status', 'rt_quit_apply_status', 'rt_drop_out_status', 'rt_reentry_type'],
|
||||
components: {
|
||||
signature,
|
||||
},
|
||||
data() {
|
||||
var checkPhone = (rule, value, callback) => {
|
||||
if (!value) {
|
||||
return callback(new Error('手机号不能为空'))
|
||||
} else {
|
||||
const reg = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
|
||||
if (reg.test(value)) {
|
||||
callback()
|
||||
} else {
|
||||
return callback(new Error('请输入正确的手机号'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
//签名上传
|
||||
upload: {
|
||||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/common/upload',
|
||||
},
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 学生退学申请记录表格数据
|
||||
rtStuDropOutSchoolList: [],
|
||||
// 弹出层标题
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
applicantId: null,
|
||||
applicantName: null,
|
||||
stuNo: null,
|
||||
stuName: null,
|
||||
stuId: null,
|
||||
gender: null,
|
||||
departmentName: null,
|
||||
gradeName: null,
|
||||
className: null,
|
||||
mz: null,
|
||||
birthday: null,
|
||||
parentPhone: null,
|
||||
parentName: null,
|
||||
jg: null,
|
||||
hksz2: null,
|
||||
attachmentUpload: null,
|
||||
reasonApplying: null,
|
||||
applySignature: null,
|
||||
ideologicalEducation: null,
|
||||
instructionSchoolHours: null,
|
||||
applyStatus: null,
|
||||
submissionStatus: null,
|
||||
dropOutType: null,
|
||||
processInstanceId: null,
|
||||
deployId: null,
|
||||
quitStarttime: null,
|
||||
quitEndtime: null,
|
||||
quitYear: null,
|
||||
quitNumber: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
stuNo: [{ required: true, message: '学号不能为空', trigger: 'blur' }],
|
||||
stuName: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
|
||||
gender: [{ required: true, message: '性別不能为空', trigger: 'blur' }],
|
||||
departmentName: [{ required: true, message: '部门不能为空', trigger: 'blur' }],
|
||||
gradeName: [{ required: true, message: '年级不能为空', trigger: 'blur' }],
|
||||
className: [{ required: true, message: '班级不能为空', trigger: 'blur' }],
|
||||
birthday: [{ required: true, message: '出生日期不能为空', trigger: 'blur' }],
|
||||
parentName: [{ required: true, message: '家长姓名不能为空', trigger: 'blur' }],
|
||||
parentPhone: [{ required: true, message: '家长电话不能为空', trigger: 'blur' }],
|
||||
mz: [{ required: true, message: '民族不能为空', trigger: 'blur' }],
|
||||
jg: [{ required: true, message: '籍贯不能为空', trigger: 'blur' }],
|
||||
attachmentUpload: [{ required: true, message: '请上传附件', trigger: 'blur' }],
|
||||
reasonApplying: [{ required: true, message: '请输入申请原因', trigger: 'blur' }],
|
||||
applySignature: [{ required: true, message: '请上传申请人签名', trigger: 'blur' }],
|
||||
dropOutType: [{ required: true, message: '请选择退学类别', trigger: 'blur' }],
|
||||
fatherName: [{ required: true, message: '请输入家长姓名', trigger: 'blur' }],
|
||||
fatherRelation: [
|
||||
{ required: true, message: '请输入家长电话', trigger: 'blur' },
|
||||
{ validator: checkPhone, trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
// 省市区
|
||||
areaOptions: pcaTextArr,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
saveSuccessHandle(url) {
|
||||
this.form.applySignature = url
|
||||
},
|
||||
/** 查询学生退学申请记录列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listRtStuDropOutSchool(this.queryParams).then((response) => {
|
||||
this.rtStuDropOutSchoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
dropOutSchoolId: null,
|
||||
applicantId: null,
|
||||
applicantName: null,
|
||||
stuNo: null,
|
||||
stuName: null,
|
||||
stuId: null,
|
||||
gender: null,
|
||||
departmentName: null,
|
||||
gradeName: null,
|
||||
className: null,
|
||||
mz: null,
|
||||
birthday: null,
|
||||
parentPhone: null,
|
||||
parentName: null,
|
||||
jg: null,
|
||||
hksz2: null,
|
||||
attachmentUpload: null,
|
||||
reasonApplying: null,
|
||||
applySignature: null,
|
||||
ideologicalEducation: null,
|
||||
instructionSchoolHours: null,
|
||||
applyStatus: null,
|
||||
submissionStatus: null,
|
||||
dropOutType: null,
|
||||
processInstanceId: null,
|
||||
deployId: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
remark: null,
|
||||
quitStarttime: null,
|
||||
quitEndtime: null,
|
||||
quitYear: null,
|
||||
quitNumber: null,
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.dropOutSchoolId)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.getMyStuInfo()
|
||||
this.title = '添加学生退学申请'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const dropOutSchoolId = row.dropOutSchoolId || this.ids
|
||||
getRtStuDropOutSchool(dropOutSchoolId).then((response) => {
|
||||
this.form = response.data
|
||||
this.form.jg = this.form.jg.split(',')
|
||||
this.form.fatherName = this.form.parentName
|
||||
this.form.fatherRelation = this.form.parentPhone
|
||||
this.open = true
|
||||
this.title = '修改学生退学申请'
|
||||
})
|
||||
},
|
||||
getMyStuInfo() {
|
||||
getMyStuInfo().then((res) => {
|
||||
console.log(res.data)
|
||||
this.form = res.data
|
||||
this.form.stuName = res.data.studentName
|
||||
this.form.applySignature = res.data.assigneeSign
|
||||
})
|
||||
},
|
||||
handleAffix(affixId) {
|
||||
this.form.attachmentUpload = affixId
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$modal.loading('正在努力加载中,请稍等...')
|
||||
|
||||
this.form.jg = this.form.jg.toString()
|
||||
this.form.parentName = this.form.fatherName
|
||||
this.form.parentPhone = this.form.fatherRelation
|
||||
addRtStuDropOutSchool(this.form).then((response) => {
|
||||
this.$modal.closeLoading()
|
||||
|
||||
this.$modal.msgSuccess('提交成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
save() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
this.form.jg = this.form.jg.toString()
|
||||
this.form.parentName = this.form.fatherName
|
||||
this.form.parentPhone = this.form.fatherRelation
|
||||
if (valid) {
|
||||
save(this.form).then((response) => {
|
||||
|
||||
this.$modal.msgSuccess('保存成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 签名上传
|
||||
handleAvatarSuccess(response, file, fileList) {
|
||||
this.form.signature = response.fileName
|
||||
this.$forceUpdate()
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const dropOutSchoolIds = row.dropOutSchoolId || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除学生退学申请记录编号为"' + dropOutSchoolIds + '"的数据项?')
|
||||
.then(function () {
|
||||
return delRtStuDropOutSchool(dropOutSchoolIds)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
'routine/rtStuDropOutSchool/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`rtStuDropOutSchool_${new Date().getTime()}.xlsx`
|
||||
)
|
||||
},
|
||||
detail(row) {
|
||||
console.log(row)
|
||||
this.$router.push({
|
||||
path: '/routine/rtStuDropOutSchool/detail',
|
||||
query: {
|
||||
procInsId: row.processInstanceId,
|
||||
deployId: row.deployId,
|
||||
dropOutSchoolId:row.dropOutSchoolId,
|
||||
category: 'dropOut',
|
||||
},
|
||||
})
|
||||
},
|
||||
dropOutProve(row) {
|
||||
this.$router.push({
|
||||
path: '/routine/rtStuDropOutSchool/dropOutProve',
|
||||
query: {
|
||||
dropOutSchoolId: row.dropOutSchoolId,
|
||||
},
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user