diff --git a/src/components/flowDetail/index.vue b/src/components/flowDetail/index.vue
index aebe442..24784ef 100644
--- a/src/components/flowDetail/index.vue
+++ b/src/components/flowDetail/index.vue
@@ -18,6 +18,8 @@
{{ formData.current_check_user }}
+ {{ showFlow() }}
+ {{ showDel() }}
{{ formData.copy_user }}
@@ -39,20 +41,25 @@
-
-
-
+
+
+
+
-
+
通过
-
+
拒绝
+ v-if="formData?.check_status == 0 && formData.create_user == userInfo.id">
撤销
@@ -116,6 +123,15 @@ const formData = reactive({
]
})
+// 展示审批操作
+const showFlow = () => {
+ return Boolean(formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3)
+}
+// 撤回
+const showDel = () => {
+ return Boolean(formData?.check_status == 0 && formData.create_user == userInfo.id)
+}
+
// 获取详情
const setFormData = async (data: Record) => {