减免审批流完善

This commit is contained in:
BianLzhaoMin 2025-02-21 03:10:22 +08:00
parent bae3f46304
commit 35d3a53628
7 changed files with 224 additions and 171 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 获取减免申请审核列表
export function getReceiveApplyApi(query) {
return request({
url: '/material/leaseTask/auditList',
url: '/material/derateRecordQuery/getAuditList',
method: 'get',
params: query
})
@ -25,10 +25,10 @@ export function getAuditingDetailsApi(query) {
})
}
// 减免申请审核提交接口
export function submitAuditingApi(query) {
export function submitAuditingApi(data) {
return request({
url: '/material/ma_type/getMaTypeTreeSelect',
method: 'get',
params: query
url: '/material/sysWorkflowRecordHistory/update',
method: 'post',
data
})
}

View File

@ -83,7 +83,7 @@
<template slot="description">
<div class="custom-description">
<!-- {{ step.description }} -->
审核结果:
<el-tag size="mini" type="primary" v-if="step.isAccept === 0">待审批</el-tag>
<el-tag size="mini" type="success" v-if="step.isAccept === 1">已通过</el-tag>
<el-tag size="mini" type="danger" v-if="step.isAccept === 2">已驳回</el-tag>
@ -315,8 +315,15 @@ export default {
font-size: 16px;
}
.custom-description {
padding: 8px 0 8px 20px;
color: #666;
}
.node-info {
padding: 6px 0;
color: #ccc;
// padding: 2px 0;
padding-left: 20px;
color: #666;
letter-spacing: 1px;
}
</style>

View File

@ -72,20 +72,9 @@
>
<!-- 插槽 -->
<template v-slot="scope" v-if="column.prop == 'taskStatus'">
<el-tag v-if="scope.row.taskStatus == '0'" type="warning" size="mini" style="margin-right: 5px">
待审核
</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '1'" size="mini" style="margin-right: 5px">
审核中
</el-tag>
<el-tag
v-else-if="scope.row.taskStatus == '2'"
type="success"
size="mini"
style="margin-right: 5px"
>
已完成
</el-tag>
<el-tag v-if="scope.row.taskStatus == '0'" type="warning" size="mini">待审核</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '1'" size="mini">审核中</el-tag>
<el-tag v-else-if="scope.row.taskStatus == '2'" type="success" size="mini">已完成</el-tag>
</template>
</el-table-column>
<!-- 操作 -->

View File

@ -93,17 +93,27 @@
<template slot="description">
<div class="custom-description">
<!-- {{ step.description }} -->
审核结果:
<el-tag size="mini" type="primary" v-if="step.isAccept === 0">待审批</el-tag>
<el-tag size="mini" type="success" v-if="step.isAccept === 1">已通过</el-tag>
<el-tag size="mini" type="danger" v-if="step.isAccept === 2">已驳回</el-tag>
</div>
<div class="node-info" v-if="step.createTime">
审核时间:
{{ step.createTime }}
</div>
<div class="node-info" v-if="step.remark">
审核意见:
{{ step.remark }}
</div>
</template>
</el-step>
</el-steps>
</div>
<div class="auditing-container">
<div class="auditing-container" v-if="pagesType === 1">
<el-input
type="textarea"
v-model="auditingParams.remark"
@ -112,8 +122,8 @@
/>
<el-row class="btn-container">
<el-button type="success" size="mini" @click="onSubmitPass">通过</el-button>
<el-button type="danger" size="mini" @click="onSubmitReject">驳回</el-button>
<el-button type="success" size="mini" @click="onHandleAuditing(1)">通过</el-button>
<el-button type="danger" size="mini" @click="onHandleAuditing(2)">驳回</el-button>
</el-row>
</div>
</div>
@ -151,24 +161,57 @@ export default {
remark: '', //
typeId: '', // typeId
taskId: '' // taskId
}
},
pagesType: 1,
userId: ''
}
},
created() {
//
if (this.$route.query) {
const { id, taskId } = this.$route.query
const { id, taskId, type } = this.$route.query
this.pagesType = type
this.getLeaseTaskDetailFun(id, taskId)
}
this.userId = sessionStorage.getItem('userId')
},
methods: {
//
onSubmitPass() {
//
async onHandleAuditing(type) {
//
const auditingParams = {}
const currentAuditing = this.auditingList.filter(e => e.configValues.includes(this.userId)) //
const currentIndex = this.auditingList.findIndex(e => e.configValues.includes(this.userId)) //
const { recordId, id, typeId, isAccept } = currentAuditing[0]
if (isAccept != 0) {
this.$modal.msgError('当前已审核,不可重复审核')
return
}
Object.assign(this.auditingParams, {
typeId,
recordId,
nodeId: id
})
this.auditingParams.isAccept = type
if (currentIndex !== this.auditingList.length - 1) {
this.auditingParams.nextNodeId = this.auditingList[currentIndex + 1].id
}
const res = await submitAuditingApi(this.auditingParams)
console.log(res, '提交结果')
if (res.code === 200) {
this.$modal.msgSuccess('审核成功')
setTimeout(() => {
const obj = { path: '/business-examine/reduction-apply' }
this.$tab.closeOpenPage(obj)
}, 500)
}
console.log(this.auditingParams, ' this.auditingParams组装好的参数')
},
//
onSubmitReject() {},
//
async getLeaseTaskDetailFun(id, taskId) {
const { data: res } = await getDiscountViewList(id)
@ -298,4 +341,16 @@ export default {
font-weight: bold;
}
}
.custom-description {
padding: 8px 0 8px 20px;
color: #666;
}
.node-info {
// padding: 2px 0;
padding-left: 20px;
color: #666;
letter-spacing: 1px;
}
</style>

View File

@ -107,18 +107,18 @@
type="text"
size="mini"
icon="el-icon-edit"
@click="handleAuditing(scope.row)"
@click="handleAuditing(scope.row, 1)"
>
审核
</el-button>
<el-button
v-if="scope.row.taskStatus == 2"
type="text"
size="mini"
icon="el-icon-delete"
style="color: #f56c6c"
@click="handleDelete(scope.row)"
icon="el-icon-search"
@click="handleAuditing(scope.row, 2)"
>
删除
查看
</el-button>
</template>
</el-table-column>
@ -366,6 +366,7 @@ import { downloadFile, downloadFileData } from '@/utils/download'
import { getToken } from '@/utils/auth'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { getReceiveApplyApi } from '@/api/reduction-apply/index.js'
export default {
name: '',
data() {
@ -487,7 +488,7 @@ export default {
endTime: this.queryParams.time && this.queryParams.time[1]
}
getReliefRecordList(params).then(response => {
getReceiveApplyApi(params).then(response => {
this.total = response.total
this.formList = response.rows
// console.log('22222222',this.pushReviewList)
@ -600,12 +601,13 @@ export default {
},
//
handleAuditing(row) {
handleAuditing(row, type) {
this.$router.push({
name: 'reduction-apply',
query: {
id: row.id,
taskId: row.taskId
taskId: row.taskId,
type
}
}) //
// this.isView = false

View File

@ -306,10 +306,10 @@ export default {
const isSortPass = this.dataList.findIndex(e => e.nodeSort === this.form.nodeSort)
//
if (isSortPass > -1) {
this.$modal.msgError('当前输入的流程顺序已存在,请重新输入')
return
}
// if (isSortPass > -1) {
// this.$modal.msgError('')
// return
// }
//
this.form.configValues = this.form.configValuesList.join(',')

View File

@ -40,10 +40,10 @@ module.exports = {
// target: `http://192.168.0.244:18580`,//测试
// target: `http://192.168.2.223:18080`,//山
// target: `http://192.168.2.23:18080`,//洪
// target: `http://192.168.0.234:18080`,//阮
target: `http://192.168.0.234:18080`, //阮
// target: `http://192.168.137.1:18080`,//
// target: `http://192.168.0.15:18080`,// 韩傲宇
target: `http://192.168.2.209:18080`, // 赵福海
// target: `http://192.168.2.209:18080`, // 赵福海
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''