From 2d3530a7c11557a40807ad7c0b9e302ce6ce3a9f Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期五, 28 八月 2026 10:16:32 +0800
Subject: [PATCH] feat: 综合业务模块页面重构与交互完善

---
 src/views/officeProcessAutomation/ApproveManage/approve-shared/useApprovalInstanceModule.js |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/src/views/officeProcessAutomation/ApproveManage/approve-shared/useApprovalInstanceModule.js b/src/views/officeProcessAutomation/ApproveManage/approve-shared/useApprovalInstanceModule.js
index 8dd8bba..6793523 100644
--- a/src/views/officeProcessAutomation/ApproveManage/approve-shared/useApprovalInstanceModule.js
+++ b/src/views/officeProcessAutomation/ApproveManage/approve-shared/useApprovalInstanceModule.js
@@ -29,6 +29,10 @@
 } from "../approve-template/selectOptionSource.js";
 import { enrichInstanceRowFromFormConfig } from "./approvalInstanceFormConfigTable.js";
 import {
+  filterInstanceRowsByModuleSearch,
+  hasActiveModuleSearch,
+} from "./approvalInstanceListSearch.js";
+import {
   getApprovalModuleConfig,
   getModuleListBusinessType,
   resolveModuleBusinessType,
@@ -146,8 +150,14 @@
       const caches = await fetchSelectOptionCaches(
         collectOptionSourcesFromFields(allFields)
       );
-      tableData.value = mapped.map((row) => mapListRow(row, caches));
-      page.total = total;
+      let rows = mapped.map((row) => mapListRow(row, caches));
+      if (hasActiveModuleSearch(moduleKey, searchForm)) {
+        rows = filterInstanceRowsByModuleSearch(moduleKey, rows, searchForm);
+      }
+      tableData.value = rows;
+      page.total = hasActiveModuleSearch(moduleKey, searchForm)
+        ? rows.length
+        : total;
     } catch {
       tableData.value = [];
       page.total = 0;
@@ -347,11 +357,11 @@
         disabled: (row) => !canEditBusinessInstanceRow(row),
         clickFun: (row) => openEdit(row),
       },
-      {
-        name: "鍒犻櫎",
-        type: "danger",
-        clickFun: (row) => removeInstance(row),
-      },
+      // {
+      //   name: "鍒犻櫎",
+      //   type: "danger",
+      //   clickFun: (row) => removeInstance(row),
+      // },
       ...extraOperations,
     ];
   }

--
Gitblit v1.9.3