|  |  |  | @ -100,6 +100,10 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                          icon="el-icon-search" | 
			
		
	
		
			
				
					|  |  |  |  |               >查询 | 
			
		
	
		
			
				
					|  |  |  |  |               </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-button type="primary" @click="excel" | 
			
		
	
		
			
				
					|  |  |  |  |                          icon="el-icon-upload2" | 
			
		
	
		
			
				
					|  |  |  |  |               >导出 | 
			
		
	
		
			
				
					|  |  |  |  |               </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button-group> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-form> | 
			
		
	
	
		
			
				
					|  |  |  | @ -149,7 +153,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import {getStatOrderList, filterMonthList} from "@/api/inout/statData"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getStatOrderList, filterMonthList, excelImport} from "@/api/inout/statData"; | 
			
		
	
		
			
				
					|  |  |  |  | import {isBlank} from "@/utils/strUtil"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | const formJson = { | 
			
		
	
		
			
				
					|  |  |  |  |   site_id: "", | 
			
		
	
	
		
			
				
					|  |  |  | @ -256,6 +261,23 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.filterQuery.page = 1; | 
			
		
	
		
			
				
					|  |  |  |  |       this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     excel(){ | 
			
		
	
		
			
				
					|  |  |  |  |       debugger | 
			
		
	
		
			
				
					|  |  |  |  |       if(isBlank(this.currentRow.recordKey)){ | 
			
		
	
		
			
				
					|  |  |  |  |         return this.$message.error("请选择要导出的数据!"); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       let params={billNo:this.currentRow.recordKey,key:"month"}; | 
			
		
	
		
			
				
					|  |  |  |  |       excelImport(params ).then( res =>{ | 
			
		
	
		
			
				
					|  |  |  |  |         let blob = new Blob([res],{type: "application/vnd.ms-excel"}); | 
			
		
	
		
			
				
					|  |  |  |  |         let url = window.URL.createObjectURL(blob); // 创建一个临时的url指向blob对象 | 
			
		
	
		
			
				
					|  |  |  |  |         let a = document.createElement("a"); | 
			
		
	
		
			
				
					|  |  |  |  |         a.href = url; | 
			
		
	
		
			
				
					|  |  |  |  |         a.click(); | 
			
		
	
		
			
				
					|  |  |  |  |         this.$message("成功") | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     hideSearch() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.showSearch = !this.showSearch; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
	
		
			
				
					|  |  |  | 
 |