From 33032d320cb75854def7391026b0401f1bfb8360 Mon Sep 17 00:00:00 2001
From: 黎星凯 <13949086503@163.com>
Date: 星期六, 11 五月 2024 17:26:02 +0800
Subject: [PATCH] 20240511修改: 分发单优化, 分类,物品,分发单明细,采购单明细数据导入

---
 admin-web/src/views/foundation/classification/index.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/admin-web/src/views/foundation/classification/index.vue b/admin-web/src/views/foundation/classification/index.vue
index 115890d..774aa37 100644
--- a/admin-web/src/views/foundation/classification/index.vue
+++ b/admin-web/src/views/foundation/classification/index.vue
@@ -69,15 +69,15 @@
         dialogShow: false,
         fileSettings: {
           data: {},
-          uploadUrl: getBaseUrl() + '/pc/fin/sys/tenant/import', // 涓婁紶鍦板潃
+          uploadUrl: getBaseUrl() + '/pc/base/category/import', // 涓婁紶鍦板潃
           accept: '.xls', // 鏍煎紡
           type: 'text', // 鍥炴樉褰㈠紡
-          loading: false, // 瀵煎叆鏁堟灉
+          loading: true, // 瀵煎叆鏁堟灉
         },
         /* 妯℃澘涓嬭浇 */
         templateSettings: {
           templateName: '瀵煎叆妯℃澘.xls', // 鍚嶇О
-          templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate', // 涓嬭浇鍦板潃
+          templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate?type=classification', // 涓嬭浇鍦板潃
         },
         onSuccess: null,
       },
@@ -108,6 +108,12 @@
               name: '鏂板',
               click: () => {
                 this.showAdd(null);
+              },
+            },
+            {
+              name: '瀵煎叆',
+              click: () => {
+                this.openImport(null);
               },
             },
           ],
@@ -288,6 +294,10 @@
       this.filterFrom = Object.assign(this.filterFrom, params);
       this.search(1);
     },
+
+    openImport(){
+      this.importOrg();
+    },
   },
 };
 </script>

--
Gitblit v1.9.1