|
|
|
@ -63,6 +63,21 @@ export default {
|
|
|
|
|
//切换类型
|
|
|
|
|
handlerTime(activeIndex) {
|
|
|
|
|
this.activeIndex = activeIndex
|
|
|
|
|
if(this.activeIndex == 0) {
|
|
|
|
|
getSalesType1(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination.total = res.totalNum
|
|
|
|
|
this.tbData = data
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
getSalesType0(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination2.total = res.totalNum
|
|
|
|
|
this.tbData2 = data;
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//返回
|
|
|
|
|
goBack() {
|
|
|
|
@ -76,18 +91,20 @@ export default {
|
|
|
|
|
this.tableLoad = true;
|
|
|
|
|
this.form.sStartTime = this.selTime[0];
|
|
|
|
|
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;
|
|
|
|
|
})
|
|
|
|
|
if(this.activeIndex == 0) {
|
|
|
|
|
getSalesType1(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination.total = res.totalNum
|
|
|
|
|
this.tbData = data
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
getSalesType0(this.form).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.pagination2.total = res.totalNum
|
|
|
|
|
this.tbData2 = data;
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.tableLoad = false;
|
|
|
|
|
},
|
|
|
|
|
//点击明细
|
|
|
|
|
onSalePro(record) {
|
|
|
|
@ -98,7 +115,8 @@ export default {
|
|
|
|
|
sEndTime: this.form.sEndTime,
|
|
|
|
|
sBrandType: this.form.sBrandType,
|
|
|
|
|
iPageIndex: 1,
|
|
|
|
|
sProv: record.key
|
|
|
|
|
sProv: record.key,
|
|
|
|
|
sBrand: this.form.sBrand
|
|
|
|
|
}
|
|
|
|
|
let o = {
|
|
|
|
|
sBrand: this.form.sBrand,
|
|
|
|
@ -126,7 +144,8 @@ export default {
|
|
|
|
|
sEndTime: this.form.sEndTime,
|
|
|
|
|
sBrandType: this.form.sBrandType,
|
|
|
|
|
iPageIndex: 1,
|
|
|
|
|
sCity: record.key
|
|
|
|
|
sCity: record.key,
|
|
|
|
|
sBrand: this.form.sBrand
|
|
|
|
|
}
|
|
|
|
|
getSalesType6(obj).then(res => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|