CRM:完善合同的审批逻辑

(cherry picked from commit c1f507bcae)
This commit is contained in:
YunaiV
2024-02-23 12:58:39 +08:00
committed by shizhong
parent b0dc6208f1
commit 3a2100c69b
4 changed files with 34 additions and 6 deletions

View File

@ -183,6 +183,7 @@
<el-table-column fixed="right" label="操作" width="250">
<template #default="scope">
<el-button
v-if="scope.row.auditStatus === 0"
v-hasPermi="['crm:contract:update']"
link
type="primary"
@ -190,8 +191,8 @@
>
编辑
</el-button>
<!-- TODO @puhui999可以加下判断什么情况下可以审批然后加个查看审批按钮 -->
<el-button
v-if="scope.row.auditStatus === 0"
v-hasPermi="['crm:contract:update']"
link
type="primary"
@ -199,6 +200,15 @@
>
提交审核
</el-button>
<el-button
v-else
link
v-hasPermi="['crm:contract:update']"
type="primary"
@click="handleProcessDetail(scope.row)"
>
查看审批
</el-button>
<el-button
v-hasPermi="['crm:contract:query']"
link
@ -328,6 +338,11 @@ const handleSubmit = async (row: ContractApi.ContractVO) => {
await getList()
}
/** 查看审批 */
const handleProcessDetail = (row: ContractApi.ContractVO) => {
push({ name: 'BpmProcessInstanceDetail', query: { id: row.processInstanceId } })
}
/** 打开合同详情 */
const { push } = useRouter()
const openDetail = (id: number) => {