spring
10 小时以前 519211ac232866afe6b081ae4a97916ad5f1d7d2
src/views/inventoryManagement/stockManagement/Import.vue
@@ -6,8 +6,9 @@
      :headers="upload.headers"
      :action="upload.url"
      :disabled="upload.isUploading"
      :showTip="false"
      :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;
};