From 2cb77a3487b8c5da6fe02f3c1018dcf70f73d29a Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期一, 19 十月 2026 10:25:22 +0800
Subject: [PATCH] feat(hrm): 社保公积金方案新增大病医疗/长期护理(输入支持两位小数)
---
src/views/hrm/employee/modules/import-form.vue | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/views/hrm/employee/modules/import-form.vue b/src/views/hrm/employee/modules/import-form.vue
index 790d0da..b9f256e 100644
--- a/src/views/hrm/employee/modules/import-form.vue
+++ b/src/views/hrm/employee/modules/import-form.vue
@@ -22,6 +22,7 @@
const [Modal, modalApi] = useVbenModal({
async onConfirm() {
+ let shouldClose = false;
if (fileList.value.length === 0) {
message.warning('璇烽�夋嫨瑕佸鍏ョ殑鏂囦欢');
return;
@@ -38,13 +39,24 @@
// 瀹屾垚锛氳繘搴︽潯璧版弧
stopMockProgress();
progressPercent.value = 100;
- await delay(500);
- message.success('瀵煎叆瀹屾垚');
+ await delay(300);
emit('success');
+ const failedCount = Object.keys(importResult.value?.failureNames ?? {}).length;
+ if (failedCount > 0) {
+ message.warning(
+ `瀵煎叆瀹屾垚锛氭垚鍔� ${createCount.value} 鏉°�佽鐩� ${updateCount.value} 鏉★紝澶辫触 ${failedCount} 鏉★紝璇锋煡鐪嬩笅鏂瑰け璐ユ槑缁哷,
+ );
+ } else {
+ message.success('瀵煎叆瀹屾垚');
+ shouldClose = true;
+ }
} finally {
stopMockProgress();
importing.value = false;
modalApi.unlock();
+ if (shouldClose) {
+ await modalApi.close();
+ }
}
},
});
--
Gitblit v1.9.3