订单导出

This commit is contained in:
yanran200730
2023-04-14 15:58:12 +08:00
parent c37a19036a
commit 87ae42f7fe
2 changed files with 19 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<ai-search-bar> <ai-search-bar>
<template slot="left"> <template slot="left">
<ai-select <ai-select
v-model="search.type" v-model="search.goodsType"
@change="(search.current = 1), getList()" @change="(search.current = 1), getList()"
placeholder="请选择商品类型" placeholder="请选择商品类型"
:selectList="dict.getDict('integralSGType')"> :selectList="dict.getDict('integralSGType')">
@@ -31,6 +31,13 @@
placeholder="选择订单结束日期" placeholder="选择订单结束日期"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</el-date-picker> </el-date-picker>
<ai-download
:instance="instance"
url="/app/appintegralsupermarketorder/export"
:params="search"
fileName="订单列表"
:disabled="tableData.length == 0">
</ai-download>
</template> </template>
<template slot="right"> <template slot="right">
<el-input <el-input
@@ -110,7 +117,7 @@
data() { data() {
return { return {
search: { search: {
type: '', goodsType: '',
title: '', title: '',
current: 1, current: 1,
status: '', status: '',

View File

@@ -4,7 +4,7 @@
<ai-search-bar> <ai-search-bar>
<template slot="left"> <template slot="left">
<ai-select <ai-select
v-model="search.type" v-model="search.goodsType"
@change="(search.current = 1), getList()" @change="(search.current = 1), getList()"
placeholder="请选择商品类型" placeholder="请选择商品类型"
:selectList="dict.getDict('integralSGType')"> :selectList="dict.getDict('integralSGType')">
@@ -31,6 +31,13 @@
placeholder="选择订单结束日期" placeholder="选择订单结束日期"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</el-date-picker> </el-date-picker>
<ai-download
:instance="instance"
url="/app/appintegralsupermarketorder/export"
:params="search"
fileName="订单列表"
:disabled="tableData.length == 0">
</ai-download>
</template> </template>
<template slot="right"> <template slot="right">
<el-input <el-input
@@ -111,7 +118,7 @@
data() { data() {
return { return {
search: { search: {
type: '', goodsType: '',
title: '', title: '',
current: 1, current: 1,
status: '', status: '',
@@ -155,7 +162,7 @@
params: { params: {
...this.search, ...this.search,
type: 1, type: 1,
areaId: this.areaId girdCode: this.areaId
} }
}).then((res) => { }).then((res) => {
if (res.code == 0) { if (res.code == 0) {