淘宝订单筛选导出
This commit is contained in:
@@ -11,6 +11,22 @@
|
|||||||
<div class="heior_box">
|
<div class="heior_box">
|
||||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport" v-if="$local.isRoot()">导出</el-button>
|
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport" v-if="$local.isRoot()">导出</el-button>
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
|
<el-select size=small v-model="searchModel.shop" placeholder="请选择类型">
|
||||||
|
<el-option
|
||||||
|
v-for="item in shops"
|
||||||
|
:key="item.text"
|
||||||
|
:label="item.text"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-date-picker
|
||||||
|
size="small"
|
||||||
|
v-model="dateRange"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
></el-date-picker>
|
||||||
<el-input v-model="searchModel.keyWord" placeholder="请输入订单号、用户名" clearable size="small">
|
<el-input v-model="searchModel.keyWord" placeholder="请输入订单号、用户名" clearable size="small">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||||
</el-input>
|
</el-input>
|
||||||
@@ -53,12 +69,19 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
retData: { TotalCount: 0, Data: [] },
|
retData: { TotalCount: 0, Data: [] },
|
||||||
|
dateRange:[],
|
||||||
searchModel: {
|
searchModel: {
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
keyWord: '',
|
keyWord: '',
|
||||||
|
shop: '',
|
||||||
Btime: '',
|
Btime: '',
|
||||||
Etime: ''
|
Etime: ''
|
||||||
}
|
},
|
||||||
|
shops: [
|
||||||
|
{ text: "可乐开发商", value: "可乐开发商" },
|
||||||
|
{ text: "老鹰动态pptp", value: "老鹰动态pptp" },
|
||||||
|
{ text: "强子pptp动态", value: '强子pptp动态' },
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -68,6 +91,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
search () {
|
search () {
|
||||||
this.searchModel.PageIndex = 1
|
this.searchModel.PageIndex = 1
|
||||||
|
if (this.dateRange && this.dateRange.length == 2) {
|
||||||
|
this.searchModel.Btime = this.dateRange[0];
|
||||||
|
this.searchModel.Etime = this.dateRange[1];
|
||||||
|
}
|
||||||
this.get()
|
this.get()
|
||||||
},
|
},
|
||||||
get () {
|
get () {
|
||||||
|
|||||||
Reference in New Issue
Block a user