From b0aabd1979c3b4dc1447234125cd7f6b4a41a0a0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 30 十月 2026 10:52:44 +0800
Subject: [PATCH] feat(hrm): 离职申请改为按系统用户选择申请人

---
 src/views/hrm/resignation/data.ts |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/hrm/resignation/data.ts b/src/views/hrm/resignation/data.ts
index 3131c33..0c7d084 100644
--- a/src/views/hrm/resignation/data.ts
+++ b/src/views/hrm/resignation/data.ts
@@ -2,10 +2,13 @@
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 import type { HrmResignationApi } from '#/api/hrm/resignation';
 
+import { markRaw } from 'vue';
+
 import { DICT_TYPE } from '#/packages/constants/src';
 import { getDictOptions } from '#/packages/effects/hooks/src';
 
 import { getEmployeeSimpleList } from '#/api/hrm/employee';
+import { UserSelect } from '#/views/system/user/components';
 
 /** 琛ㄥ崟绫诲瀷 */
 export type FormType = 'create' | 'detail' | 'update';
@@ -20,6 +23,13 @@
         triggerFields: [''],
         show: () => false,
       },
+    },
+    {
+      fieldName: 'userId',
+      label: '绂昏亴鐢宠浜�',
+      component: markRaw(UserSelect),
+      componentProps: { placeholder: '璇烽�夋嫨绂昏亴鐢宠浜�' },
+      rules: 'selectRequired',
     },
     {
       fieldName: 'resignationType',
@@ -121,7 +131,7 @@
 export function useGridColumns(): VxeTableGridOptions<HrmResignationApi.Resignation>['columns'] {
   return [
     { field: 'id', title: '鐢宠缂栧彿', width: 80 },
-    { field: 'employeeName', title: '鐢宠浜�', minWidth: 100 },
+    { field: 'userName', title: '绂昏亴鐢宠浜�', minWidth: 100 },
     { field: 'deptName', title: '閮ㄩ棬', minWidth: 120 },
     { field: 'postName', title: '宀椾綅', minWidth: 120 },
     {
@@ -168,4 +178,4 @@
       },
     },
   ];
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3