diff --git a/wms-vue/src/components/duochaxun/JianHuoXiaoLv.vue b/wms-vue/src/components/duochaxun/JianHuoXiaoLv.vue index 8e0c6e0..e138814 100644 --- a/wms-vue/src/components/duochaxun/JianHuoXiaoLv.vue +++ b/wms-vue/src/components/duochaxun/JianHuoXiaoLv.vue @@ -351,6 +351,18 @@ export default { this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx') }); }, + downloadFile(obj, name, suffix) { + //解析流文件,进行下载保存 + const url = window.URL.createObjectURL(new Blob([obj])) + const link = document.createElement('a') + link.style.display = 'none' + link.href = url + const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix + link.setAttribute('download', fileName) + document.body.appendChild(link) + link.click() + document.body.removeChild(link) + }, KuS(){ //库区下拉列表数据加载 this.$axios.post(this.$httpUrl + '/Kucunhuizong/ku', {