From f749664174cde1fcc88873072ac0009478fe8dd5 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 05 三月 2025 16:02:40 +0800
Subject: [PATCH] 主公司可以查看、办理子公司的任务

---
 src/views/projectProcess/detail/index.vue |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 95a42ab..00e54ed 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -417,12 +417,9 @@
     showHandle(row) {
       if (row.taskStatus === '寰呭姙' || row.taskStatus === '鎸傝捣') {
         if (row.handlerType === "USER") {
-          console.log(row.handlerId.indexOf(this.$store.state.user.id) !== -1, "鎴戞槸涓嶆槸")
           return row.handlerId.indexOf(this.$store.state.user.id) !== -1
         } else if (row.handlerType === "DEPT") {
-          console.log(this.$store.state.user.deptId, "閮ㄩ棬id", row.handlerUnitId)
-          return row.handlerUnitId.indexOf(this.$store.state.user.deptId) !== -1
-          // return this.$store.state.user.name === '甯傚彂灞曟敼闈╁' || this.$store.state.user.name === '甯備綇寤哄眬'
+          return row.handlerUnitId.indexOf(this.$store.state.user.deptId) !== -1 || row.handlerUnitId.some(id => this.$store.state.user.childDeptIds.indexOf(id) !== -1)
         } else if (row.handlerType === "ROLE") {
           return row.handlerUnitId.some(roleId => this.$store.state.user.roleIds.indexOf(roleId) !== -1)
         }

--
Gitblit v1.8.0