From 11df6530c8696871fe15f595629e92c766157319 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 21 八月 2026 15:00:06 +0800
Subject: [PATCH] 盘点条件类型枚举 与字典值保持一致

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

diff --git a/src/views/hrm/leave/modules/form.vue b/src/views/hrm/leave/modules/form.vue
index 9e76099..4aab581 100644
--- a/src/views/hrm/leave/modules/form.vue
+++ b/src/views/hrm/leave/modules/form.vue
@@ -78,7 +78,17 @@
     }
     modalApi.lock();
     try {
-      await formApi.setValues(await getLeave(data.id));
+      const detail = await getLeave(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();
     }

--
Gitblit v1.9.3