|
|
|
@ -13,12 +13,12 @@
|
|
|
|
|
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d3">
|
|
|
|
|
<v-table v-if="activeIndex == 0" ref="rtable" :columns="columns" :loading="tableLoad" :pagination="pagination" :data="tbData">
|
|
|
|
|
<v-table v-if="activeIndex == 0" ref="rtable" :columns="columns" :loading="tableLoad" :pagination="pagination" @change="handlerPagnation" :data="tbData">
|
|
|
|
|
<template slot="about" slot-scope="text, record">
|
|
|
|
|
<a-button @click="onSalePro(record)">销量明细</a-button>
|
|
|
|
|
</template>
|
|
|
|
|
</v-table>
|
|
|
|
|
<v-table v-if="activeIndex == 1" ref="rtable" :columns="columns2" :loading="tableLoad" :pagination="pagination" :data="tbData2">
|
|
|
|
|
<v-table v-if="activeIndex == 1" ref="rtable" :columns="columns2" :loading="tableLoad" :pagination="pagination2" @change="handlerPagnation2" :data="tbData2">
|
|
|
|
|
<template slot="about" slot-scope="text, record">
|
|
|
|
|
<a-button @click="onSaleCity(record)">销量明细</a-button>
|
|
|
|
|
</template>
|
|
|
|
@ -83,7 +83,14 @@ export default {
|
|
|
|
|
tbData: [],
|
|
|
|
|
tbData2: [],
|
|
|
|
|
pagination: {
|
|
|
|
|
pageSize: 20
|
|
|
|
|
total: 0,
|
|
|
|
|
current: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
},
|
|
|
|
|
pagination2: {
|
|
|
|
|
total: 0,
|
|
|
|
|
current: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
},
|
|
|
|
|
//窗口1
|
|
|
|
|
visible: false,
|
|
|
|
@ -148,11 +155,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
getSalesType1(obj).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination.total = res.totalNum
|
|
|
|
|
this.tbData = data
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
});
|
|
|
|
|
getSalesType0(obj).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination2.total = res.totalNum
|
|
|
|
|
this.tbData2 = data;
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
})
|
|
|
|
@ -180,11 +189,13 @@ export default {
|
|
|
|
|
this.form.sEndTime = this.selTime[1];
|
|
|
|
|
getSalesType1(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination.total = res.totalNum
|
|
|
|
|
this.tbData = data
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
});
|
|
|
|
|
getSalesType0(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination2.total = res.totalNum
|
|
|
|
|
this.tbData2 = data;
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
})
|
|
|
|
@ -205,6 +216,7 @@ export default {
|
|
|
|
|
this.dataProCity = data
|
|
|
|
|
})
|
|
|
|
|
getSalesType6(obj).then(res => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.dataProBrand = data
|
|
|
|
|
})
|
|
|
|
@ -234,6 +246,31 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
this.visible2 = true;
|
|
|
|
|
},
|
|
|
|
|
//改变页面数据
|
|
|
|
|
handlerPagnation(page) {
|
|
|
|
|
this.tableLoading = true;
|
|
|
|
|
let cur = page.current;
|
|
|
|
|
this.pagination.current = cur;
|
|
|
|
|
this.form.iPageIndex = cur;
|
|
|
|
|
getSalesType1(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination.total = res.totalNum
|
|
|
|
|
this.tbData = data;
|
|
|
|
|
this.tableLoading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handlerPagnation2(page) {
|
|
|
|
|
this.tableLoading = true;
|
|
|
|
|
let cur = page.current;
|
|
|
|
|
this.pagination.current = cur;
|
|
|
|
|
this.form.iPageIndex = cur;
|
|
|
|
|
getSalesType0(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination2.total = res.totalNum
|
|
|
|
|
this.tbData = data;
|
|
|
|
|
this.tableLoading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//改变窗口模式
|
|
|
|
|
handlerProMode(activeIndex) {
|
|
|
|
|
this.pValue = activeIndex
|
|
|
|
|