From 3387e2397617c18977d133fff17df3446611bb48 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 17 八月 2026 09:26:17 +0800
Subject: [PATCH] fix: MOM 1.公司部署修改

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

diff --git a/src/views/hrm/resignation/modules/form.vue b/src/views/hrm/resignation/modules/form.vue
index 8ba43bb..d1ebf27 100644
--- a/src/views/hrm/resignation/modules/form.vue
+++ b/src/views/hrm/resignation/modules/form.vue
@@ -78,7 +78,17 @@
     }
     modalApi.lock();
     try {
-      await formApi.setValues(await getResignation(data.id));
+      const detail = await getResignation(data.id);
+      await formApi.setValues(detail);
+      if (detail.attachmentList?.length) {
+        await formApi.setFieldValue('blobIds', detail.attachmentList.map(item => ({
+          uid: String(item.id),
+          name: item.name || '',
+          url: item.url || '',
+          status: 'done',
+          id: item.id,
+        })));
+      }
     } finally {
       modalApi.unlock();
     }
@@ -87,7 +97,7 @@
 </script>
 
 <template>
-  <Modal :title="getTitle" class="w-[600px]">
+  <Modal :title="getTitle" class="w-[850px]">
     <Form class="mx-4" />
   </Modal>
 </template>
\ No newline at end of file

--
Gitblit v1.9.3