From 593cb2e46b22617cb513c891c5af7a07c7d412d8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 28 八月 2026 17:01:27 +0800
Subject: [PATCH] fix: MOM 1.点击采购订单生成后跳转出来的页面会一点点缩小

---
 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