huminmin
16 小时以前 991f68ab8f645f83c490a3a50972b45e61d53f54
仓储物流:下载库存导入模板放到导入中
已修改2个文件
14 ■■■■■ 文件已修改
src/views/inventoryManagement/stockManagement/Import.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inventoryManagement/stockManagement/Qualified.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | 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(() => {