出入库明细导出按钮
This commit is contained in:
parent
f254838154
commit
95168e6443
|
|
@ -25,12 +25,22 @@
|
|||
style="width: 240px"
|
||||
/>
|
||||
</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 icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<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>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="tableListData">
|
||||
|
|
@ -117,7 +127,17 @@
|
|||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery2">重置</el-button>
|
||||
</el-form-item>
|
||||
</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>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="tableListData2">
|
||||
|
|
@ -367,6 +387,32 @@ export default {
|
|||
this.total2 = Number(response.total);
|
||||
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() {
|
||||
const end = new Date(new Date().toLocaleDateString());
|
||||
|
|
|
|||
Loading…
Reference in New Issue