修饰后入库-导出
This commit is contained in:
parent
fb7349d8bb
commit
f216915484
|
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue