| src/views/inventoryManagement/stockManagement/Import.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/stockManagement/Qualified.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/inventoryManagement/stockManagement/Import.vue
@@ -8,6 +8,7 @@ :disabled="upload.isUploading" :showTip="true" @success="handleFileSuccess" :downloadTemplate="downloadTemplate" /> <template #footer> <div class="dialog-footer"> @@ -19,7 +20,7 @@ </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"; @@ -27,6 +28,8 @@ defineOptions({ name: "导入库存", }); const { proxy } = getCurrentInstance() const props = defineProps({ visible: { @@ -80,6 +83,10 @@ } }; const downloadTemplate = () => { proxy.download("/stockInventory/downloadStockInventory", {}, "库存导入模板.xlsx"); } const closeModal = () => { isShow.value = false; }; src/views/inventoryManagement/stockManagement/Qualified.vue
@@ -11,7 +11,6 @@ </div> <div> <el-button type="primary" @click="isShowNewModal = true">新增库存</el-button> <el-button @click="importTemplate">下载导入模板</el-button> <el-button type="info" plain icon="Upload" @click="isShowImportModal = true"> 导入库存 </el-button> @@ -161,10 +160,6 @@ }).catch(() => { proxy.$modal.msg("已取消") }) } const importTemplate =() =>{ proxy.download("/stockInventory/downloadStockInventory", {}, "库存导入模板.xlsx"); } onMounted(() => {