From ec226b03fbd26bc178137ad20d7bd030ef2c5c8b Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期三, 24 六月 2026 15:01:40 +0800
Subject: [PATCH] Merge branch 'refs/heads/dev_NEW_pro' into dev_宁夏_铭远环保

---
 src/views/personnelManagement/monthlyStatistics/index.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/views/personnelManagement/monthlyStatistics/index.vue b/src/views/personnelManagement/monthlyStatistics/index.vue
index 4ac9e97..f581070 100644
--- a/src/views/personnelManagement/monthlyStatistics/index.vue
+++ b/src/views/personnelManagement/monthlyStatistics/index.vue
@@ -107,7 +107,7 @@
   nextTick,
 } from "vue";
 import { ElMessageBox } from "element-plus";
-import Cookies from "js-cookie";
+import useUserStore from "@/store/modules/user";
 import FormDia from "./components/formDia.vue";
 import BankSettingDia from "./components/bankSettingDia.vue";
 import AuditDia from "./components/auditDia.vue";
@@ -167,7 +167,12 @@
       {
         name: "瀹℃牳",
         type: "text",
-        disabled: (row) => Number(row?.status) !== 3,
+        disabled: (row) => {
+          const currentUserId = Number(userStore.id);
+          const auditUserId = Number(row?.auditUserId);
+          // 鐘舵�佷笉鏄緟瀹℃牳 鎴� 褰撳墠鐢ㄦ埛涓嶆槸鎸囧畾鐨勫鏍镐汉锛屽垯绂佺敤瀹℃牳鎸夐挳
+          return Number(row?.status) !== 3 || !currentUserId || currentUserId !== auditUserId;
+        },
         clickFun: (row) => openAudit(row),
       },
       {
@@ -193,6 +198,7 @@
 const operationType = ref("add");
 const currentRow = ref({});
 const { proxy } = getCurrentInstance();
+const userStore = useUserStore();
 const bankSetting = ref({});
 const bankDialogVisible = ref(false);
 const bankDiaRef = ref(null);
@@ -378,8 +384,8 @@
 
 const handleExport = () => {
   proxy.download(
-    "/compensationPerformance/export",
-    { ...searchForm.value, current: page.current, size: page.size },
+    "/staffSalaryMain/export",
+    { ...searchForm.value },
     "宸ヨ祫琛�.xlsx"
   );
 };
@@ -404,4 +410,4 @@
 .table_list {
   margin-top: 20px;
 }
-</style>
+</style>
\ No newline at end of file

--
Gitblit v1.9.3