出入库明细导出按钮

This commit is contained in:
zzyuan 2026-01-16 15:08:47 +08:00
parent f254838154
commit 95168e6443
1 changed files with 48 additions and 2 deletions

View File

@ -25,12 +25,22 @@
style="width: 240px" style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<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"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="tableListData"> <el-table v-loading="loading" :data="tableListData">
@ -117,7 +127,17 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery2">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery2">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport2"
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList2"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList2"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="tableListData2"> <el-table v-loading="loading" :data="tableListData2">
@ -367,6 +387,32 @@ export default {
this.total2 = Number(response.total); this.total2 = Number(response.total);
this.loading = false; this.loading = false;
}); });
},
/** 导出按钮操作 */
handleExport() {
// this.download(
// 'system/user/export',
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
},
handleExport2() {
// let param = {
// "pageNum": this.queryParams2.pageNum,
// "pageSize": this.queryParams2.pageSize,
// "areaIdList": [this.queryParams2.areaId],
// "warehouseIdList": [this.queryParams2.warehouseId],
// "materialName": this.queryParams2.materialName
// }
// this.download(
// 'system/user/export',
// {
// ...param,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
defaultDateRange() { defaultDateRange() {
const end = new Date(new Date().toLocaleDateString()); const end = new Date(new Date().toLocaleDateString());