From 3712799f3e0904f28e4268deaa5c5ee291323c38 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 08 一月 2026 09:27:53 +0800
Subject: [PATCH] 军泰伟业 1.迁移仓库

---
 src/views/basicData/product/ImportExcel/index.vue |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/views/basicData/product/ImportExcel/index.vue b/src/views/basicData/product/ImportExcel/index.vue
index fe77420..c25d254 100644
--- a/src/views/basicData/product/ImportExcel/index.vue
+++ b/src/views/basicData/product/ImportExcel/index.vue
@@ -5,13 +5,12 @@
   <el-dialog v-model="upload.open" :title="upload.title">
     <FileUpload
       ref="fileUploadRef"
-      accept=".xlsx,.xls"
+      accept=".xlsx, .xls"
       :headers="upload.headers"
       :action="upload.url + '?updateSupport=' + upload.updateSupport"
       :disabled="upload.isUploading"
-      :showTip="true"
+      :showTip="false"
       @success="handleFileSuccess"
-      @downloadTemplate="downloadTemplate"
     />
     <template #footer>
       <div class="dialog-footer">
@@ -23,12 +22,11 @@
 </template>
 
 <script setup>
-import { reactive, ref, getCurrentInstance } from "vue";
+import { reactive } from "vue";
 import { getToken } from "@/utils/auth.js";
 import { FileUpload } from "@/components/Upload";
 import { ElMessage } from "element-plus";
 
-const { proxy } = getCurrentInstance();
 defineOptions({
   name: "浜у搧缁存姢瀵煎叆",
 });
@@ -46,18 +44,12 @@
   headers: { Authorization: "Bearer " + getToken() },
   // 涓婁紶鐨勫湴鍧�
   url: import.meta.env.VITE_APP_BASE_API + "/system/supplier/import",
-  updateSupport: true,
 });
 // 鐐瑰嚮瀵煎叆
 const handleImport = () => {
   upload.open = true;
   upload.title = "浜у搧瀵煎叆";
 };
-
-// 涓嬭浇妯℃澘
-const downloadTemplate = () =>{
-  proxy.download("/basic/product/downloadTemplate", {}, "浜у搧瀵煎叆妯℃澘.xlsx");
-}
 
 const submitFileForm = () => {
   fileUploadRef.value.uploadApi();

--
Gitblit v1.9.3