| | |
| | | </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: "产品维护导入", |
| | | }); |
| | |
| | | headers: { Authorization: "Bearer " + getToken() }, |
| | | // 上传的地址 |
| | | url: import.meta.env.VITE_APP_BASE_API + "/system/supplier/import", |
| | | updateSupport: true, |
| | | }); |
| | | // 点击导入 |
| | | const handleImport = () => { |
| | |
| | | |
| | | // 下载模板 |
| | | const downloadTemplate = () =>{ |
| | | proxy.download("/basic/customer/downloadTemplate", {}, "产品导入模板.xlsx"); |
| | | proxy.download("/basic/product/downloadTemplate", {}, "产品导入模板.xlsx"); |
| | | } |
| | | |
| | | const submitFileForm = () => { |