修饰后入库-导出

This commit is contained in:
bb_pan 2025-10-31 15:38:37 +08:00
parent fb7349d8bb
commit f216915484
1 changed files with 16 additions and 7 deletions

View File

@ -90,6 +90,11 @@
>批量驳回
</el-button>
</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
:showSearch.sync="showSearch"
@queryTable="getList"
@ -156,6 +161,8 @@
import {
getTestedListApi,repairInputWarehouseApi,rejectWarehouseApi
} from "@/api/repair/testedInBound";
import { formatTime } from '@/utils/bonus'
export default {
name: "testedInBound",
dicts: ["repair_end_task_status"],
@ -323,13 +330,15 @@ export default {
.catch(() => {});
},
handleExport() {
// this.download(
// "/material/wh_house_info/export",
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`
// );
try {
let fileName = `修饰后入库_${formatTime(new Date())}.xLsx`
let url = '/material/repair_input_details/export'
const params = { ...this.queryParams }
console.log('🚀 ~ 导出 ~ params:', params)
this.download(url, params, fileName)
} catch (error) {
console.log('导出数据失败', error)
}
},
},