修饰后入库-导出
This commit is contained in:
		
							parent
							
								
									fb7349d8bb
								
							
						
					
					
						commit
						f216915484
					
				| 
						 | 
					@ -90,6 +90,11 @@
 | 
				
			||||||
            >批量驳回
 | 
					            >批量驳回
 | 
				
			||||||
          </el-button>
 | 
					          </el-button>
 | 
				
			||||||
      </el-col>
 | 
					      </el-col>
 | 
				
			||||||
 | 
					      <el-col :span="1.5">
 | 
				
			||||||
 | 
					        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">
 | 
				
			||||||
 | 
					          导出
 | 
				
			||||||
 | 
					        </el-button>
 | 
				
			||||||
 | 
					      </el-col>
 | 
				
			||||||
      <right-toolbar
 | 
					      <right-toolbar
 | 
				
			||||||
        :showSearch.sync="showSearch"
 | 
					        :showSearch.sync="showSearch"
 | 
				
			||||||
        @queryTable="getList"
 | 
					        @queryTable="getList"
 | 
				
			||||||
| 
						 | 
					@ -156,6 +161,8 @@
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
  getTestedListApi,repairInputWarehouseApi,rejectWarehouseApi
 | 
					  getTestedListApi,repairInputWarehouseApi,rejectWarehouseApi
 | 
				
			||||||
} from "@/api/repair/testedInBound";
 | 
					} from "@/api/repair/testedInBound";
 | 
				
			||||||
 | 
					import { formatTime } from '@/utils/bonus'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
  name: "testedInBound",
 | 
					  name: "testedInBound",
 | 
				
			||||||
  dicts: ["repair_end_task_status"],
 | 
					  dicts: ["repair_end_task_status"],
 | 
				
			||||||
| 
						 | 
					@ -323,13 +330,15 @@ export default {
 | 
				
			||||||
        .catch(() => {});
 | 
					        .catch(() => {});
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    handleExport() {
 | 
					    handleExport() {
 | 
				
			||||||
      // this.download(
 | 
					      try {
 | 
				
			||||||
      //   "/material/wh_house_info/export",
 | 
					        let fileName = `修饰后入库_${formatTime(new Date())}.xLsx`
 | 
				
			||||||
      //   {
 | 
					        let url = '/material/repair_input_details/export'
 | 
				
			||||||
      //     ...this.queryParams,
 | 
					        const params = { ...this.queryParams }
 | 
				
			||||||
      //   },
 | 
					        console.log('🚀 ~ 导出 ~ params:', params)
 | 
				
			||||||
      //   `修饰入库_${new Date().getTime()}.xlsx`
 | 
					        this.download(url, params, fileName)
 | 
				
			||||||
      // );
 | 
					      } catch (error) {
 | 
				
			||||||
 | 
					        console.log('导出数据失败', error)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue