lxf 1 year ago
parent
commit
08fd5cb577
1 changed files with 4 additions and 15 deletions
  1. 4 15
      src/views/process/processApproval/index.vue

+ 4 - 15
src/views/process/processApproval/index.vue

@@ -318,8 +318,7 @@ const flowKeyCollect = reactive({
     detail: "/purchase/detail",
   },
   order: {
-    backPath: "/group/order/order-management",
-    backPathTwo: "/subsidiary/order/subsidiary-order-management",
+    backPath: "/subsidiary/order/subsidiary-order-management",
     edit: "/orderInfo/edit",
     add: "/orderInfo/add",
     detail: "/orderInfo/detail",
@@ -432,20 +431,10 @@ const skipPage = () => {
     ElMessage({ message: "操作成功!", type: "success" });
     if (queryData.query.flowKey == "order") {
       refreshStore().setRefresh("order");
-      if (proxy.useUserStore().user.deptId === "100") {
-        router.replace({
-          path: flowKeyCollect[queryData.query.flowKey].backPath,
-        });
-      } else {
-        router.replace({
-          path: flowKeyCollect[queryData.query.flowKey].backPathTwo,
-        });
-      }
-    } else {
-      router.replace({
-        path: flowKeyCollect[queryData.query.flowKey].backPath,
-      });
     }
+    router.replace({
+      path: flowKeyCollect[queryData.query.flowKey].backPath,
+    });
   }
 };
 const queryData = reactive({