yaowanxin
15 小时以前 ec7bdf965d4d7be3483046ece279b4ceea182163
src/views/basicData/product/ImportExcel/index.vue
@@ -5,7 +5,7 @@
  <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"
@@ -23,11 +23,12 @@
</template>
<script setup>
import { reactive } from "vue";
import { reactive, ref, getCurrentInstance } from "vue";
import { getToken } from "@/utils/auth.js";
import { FileUpload } from "@/components/Upload";
import { ElMessage } from "element-plus";
const { proxy } = getCurrentInstance();
defineOptions({
  name: "产品维护导入",
});
@@ -45,6 +46,7 @@
  headers: { Authorization: "Bearer " + getToken() },
  // 上传的地址
  url: import.meta.env.VITE_APP_BASE_API + "/system/supplier/import",
  updateSupport: true,
});
// 点击导入
const handleImport = () => {
@@ -54,7 +56,7 @@
// 下载模板
const downloadTemplate = () =>{
  proxy.download("/basic/customer/downloadTemplate", {}, "产品导入模板.xlsx");
  proxy.download("/basic/product/downloadTemplate", {}, "产品导入模板.xlsx");
}
const submitFileForm = () => {