From beaed6d077e7c3e9abfad68acb8c587835b5a406 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期六, 12 四月 2025 16:17:16 +0800
Subject: [PATCH] feat(eims): 添加点检计划和保养计划的导入功能

---
 eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue b/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue
index 3b1b351..191f18e 100644
--- a/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue
+++ b/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue
@@ -3,7 +3,7 @@
 
 import { onMounted, ref } from 'vue';
 
-import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
+import { Page, useVbenDrawer, useVbenModal, type VbenFormProps } from '@vben/common-ui';
 import { $t } from '@vben/locales';
 import { addFullName, getPopupContainer, getVxePopupContainer } from '@vben/utils';
 
@@ -19,6 +19,7 @@
 
 import { columns, querySchema } from './data';
 import inspPlanDrawer from './insp-plan-drawer.vue';
+import inspPlanImportModal from './insp-plan-import-modal.vue';
 
 defineExpose({
   tableSelect
@@ -94,6 +95,17 @@
 const [InspRecordDrawer, inspRecordDrawerApi] = useVbenDrawer({
   connectedComponent: inspRecordDrawer
 });
+
+/**
+ * 瀵煎叆
+ */
+const [InspPlanImportModal, inspPlanImportModalApi] = useVbenModal({
+  connectedComponent: inspPlanImportModal
+});
+
+function handleImport() {
+  inspPlanImportModalApi.open();
+}
 
 function handleAdd() {
   inspPlanDrawerApi.setData({});
@@ -251,6 +263,9 @@
             <a-button v-access:code="['eims:inspectPlan:export']" @click="handleDownloadExcel">
               {{ $t('pages.common.export') }}
             </a-button>
+            <a-button v-access:code="['eims:inspectPlan:import']" @click="handleImport">
+              {{ $t('pages.common.import') }}
+            </a-button>
             <a-button
               :disabled="!vxeCheckboxChecked(tableApi)"
               danger
@@ -298,5 +313,6 @@
     </div>
     <InspPlanDrawer @reload="tableApi.query()" />
     <InspRecordDrawer @reload="tableApi.query()" />
+    <InspPlanImportModal @reload="tableApi.query()" />
   </Page>
 </template>

--
Gitblit v1.9.3