流程修改
This commit is contained in:
1 parent
2a6b21be7c
commit
7b75d9c1c7
2 files changed
+15
-7
No files matched your search
@@ -6,7 +6,7 @@
|
||||
</template>
|
||||
<template #default>
|
||||
<div class="w-full h-full" v-loading="loading">
|
||||
<el-card class="box-card" v-if="curAssignTask.taskId">
|
||||
<el-card class="box-card">
|
||||
<form-render ref="formRenderRef" :form-list="currentOpenFlowForm" />
|
||||
</el-card>
|
||||
<flow-node-format
|
||||
@@ -64,12 +64,13 @@ const openProcessDrawer = async (row: any) => {
|
||||
|
||||
loading.value = true
|
||||
try {
|
||||
const assignTask = await queryAssignTaskOne({ processInstanceId: row.processId })
|
||||
if (assignTask.code === 0) {
|
||||
curAssignTask.value = assignTask.data
|
||||
if (row.processId) {
|
||||
const assignTask = await queryAssignTaskOne({ processInstanceId: row.processId })
|
||||
if (assignTask.code === 0) {
|
||||
curAssignTask.value = assignTask.data
|
||||
}
|
||||
}
|
||||
|
||||
const res = await queryTask(curAssignTask.value.taskId, false).finally(() => (loading.value = false))
|
||||
const res = await queryTask(curAssignTask.value.taskId || row.taskId, false).finally(() => (loading.value = false))
|
||||
if (res.code === 0) {
|
||||
currentOpenFlowForm.value = res.data.formItems
|
||||
}
|
||||
|
||||
@@ -79,7 +79,14 @@
|
||||
<el-button icon="delete" text type="primary" v-auth="'supermarket_smErpCgPlan_del'" @click="handleDelete([scope.row.id])">
|
||||
删除
|
||||
</el-button>
|
||||
<el-button type="primary" size="small" v-if="scope.row.checkStatus != '2'" link icon="VideoPlay" @click="deal(scope.row)">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
v-if="scope.row.checkStatus != '2' && scope.row.taskId"
|
||||
link
|
||||
icon="VideoPlay"
|
||||
@click="deal(scope.row)"
|
||||
>
|
||||
开始处理
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user