| | |
| | | :disabled="upload.isUploading" |
| | | :showTip="true" |
| | | @success="handleFileSuccess" |
| | | :downloadTemplate="downloadTemplate" |
| | | /> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {computed, reactive} from "vue"; |
| | | import {computed, getCurrentInstance, reactive} from "vue"; |
| | | import { getToken } from "@/utils/auth.js"; |
| | | import { FileUpload } from "@/components/Upload"; |
| | | import { ElMessage } from "element-plus"; |
| | |
| | | defineOptions({ |
| | | name: "导入库存", |
| | | }); |
| | | |
| | | const { proxy } = getCurrentInstance() |
| | | |
| | | const props = defineProps({ |
| | | visible: { |
| | |
| | | } |
| | | }; |
| | | |
| | | const downloadTemplate = () => { |
| | | proxy.download("/stockInventory/downloadStockInventory", {}, "库存导入模板.xlsx"); |
| | | } |
| | | |
| | | const closeModal = () => { |
| | | isShow.value = false; |
| | | }; |