学生资助、学生奖惩等内容提交
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
<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-view" @click="lookVClick(scope.row)">查看</el-button>
|
||||
<el-button v-if="scope.row.applyStatus != 1" size="mini" type="text" icon="el-icon-refresh-left" @click="handleRevoke(scope.row)">撤回</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -121,7 +122,7 @@ import {getTokenKeySessionStorage as getToken} from '@/utils/auth'
|
||||
import TufaApply from '@/views/comprehensive/knzzZzqApply/cpnt/TufaApply.vue'
|
||||
import TufaLook from '@/views/comprehensive/knzzZzqApply/cpnt/TufaLook.vue'
|
||||
|
||||
import {listFdyAll as listView, doAudit} from '@/api/comprehensive/knzzZzqApply'
|
||||
import {listFdyAll as listView, doEdit} from '@/api/comprehensive/knzzZzqApply'
|
||||
|
||||
import {getOwnSign} from '@/api/workstudy/post'
|
||||
|
||||
@@ -212,6 +213,29 @@ export default {
|
||||
|
||||
this.lookV = true
|
||||
},
|
||||
// 撤回到“已提交审核”(applyStatus=1)
|
||||
async handleRevoke(row) {
|
||||
try {
|
||||
await this.$confirm('确定撤回该申请至“已提交审核”状态吗?', '提示', { type: 'warning' })
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
const loading = this.$loading({ lock: true, text: '撤回中…' })
|
||||
try {
|
||||
const payload = { id: row.id, applyStatus: 1 }
|
||||
const res = await doEdit(payload)
|
||||
if (res.code === 200) {
|
||||
this.$message.success('撤回成功,状态已变更为:已提交审核')
|
||||
this.getList()
|
||||
} else {
|
||||
this.$message.error(res.msg || '撤回失败')
|
||||
}
|
||||
} catch (err) {
|
||||
this.$message.error(`撤回失败:${err?.message || '网络错误'}`)
|
||||
} finally {
|
||||
loading.close && loading.close()
|
||||
}
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('/comprehensive/knzzZzqApply/export', {
|
||||
|
||||
Reference in New Issue
Block a user