From 173855b299e89930b5ea2ff9a9295fde9d0f55b5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 07 十一月 2026 08:51:43 +0800
Subject: [PATCH] feat: 同步质检、生产、销售、财务与人事前端功能

---
 src/views/hrm/salary/employee-social-security/modules/history.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/hrm/salary/employee-social-security/modules/history.vue b/src/views/hrm/salary/employee-social-security/modules/history.vue
index 1a5029e..3819ee7 100644
--- a/src/views/hrm/salary/employee-social-security/modules/history.vue
+++ b/src/views/hrm/salary/employee-social-security/modules/history.vue
@@ -7,10 +7,10 @@
 
 import { Table, Tag } from 'ant-design-vue';
 
-import { getEmployeeSocialSecurityListByUser } from '#/api/hrm/salary/employee-social-security';
+import { getEmployeeSocialSecurityListByDept } from '#/api/hrm/salary/employee-social-security';
 
 const historyList = ref<HrmEmployeeSocialSecurityApi.EmployeeSocialSecurity[]>([]);
-const userName = ref<string>('');
+const deptName = ref<string>('');
 
 const columns = [
   { title: '绀句繚鏂规', dataIndex: 'schemeName', width: 180 },
@@ -31,11 +31,11 @@
       historyList.value = [];
       return;
     }
-    const data = modalApi.getData<{ userId: number; userName: string }>();
-    userName.value = data.userName;
+    const data = modalApi.getData<{ deptId: number; deptName: string }>();
+    deptName.value = data.deptName;
     modalApi.lock();
     try {
-      historyList.value = await getEmployeeSocialSecurityListByUser(data.userId);
+      historyList.value = await getEmployeeSocialSecurityListByDept(data.deptId);
     } finally {
       modalApi.unlock();
     }
@@ -44,7 +44,7 @@
 </script>
 
 <template>
-  <Modal :title="`${userName} - 绀句繚鍏Н閲戝巻鍙茶褰昤" class="w-[600px]" :footer="null">
+  <Modal :title="`${deptName} - 绀句繚鍏Н閲戝巻鍙茶褰昤" class="w-[600px]" :footer="null">
     <Table
       :columns="columns"
       :data-source="historyList"

--
Gitblit v1.9.3