no message
							parent
							
								
									fbfb4802ad
								
							
						
					
					
						commit
						2f67757ad3
					
				| 
						 | 
					@ -351,6 +351,18 @@ export default {
 | 
				
			||||||
        this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx')
 | 
					        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(){
 | 
					    KuS(){
 | 
				
			||||||
      //库区下拉列表数据加载
 | 
					      //库区下拉列表数据加载
 | 
				
			||||||
      this.$axios.post(this.$httpUrl + '/Kucunhuizong/ku', {
 | 
					      this.$axios.post(this.$httpUrl + '/Kucunhuizong/ku', {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue