|
@@ -375,7 +375,9 @@ export default {
|
|
// 查询正常产品明细列表
|
|
// 查询正常产品明细列表
|
|
if (this.promoFlag == 0 || this.promoFlag == undefined) {
|
|
if (this.promoFlag == 0 || this.promoFlag == undefined) {
|
|
this.dataSource = await salesDetailAllList(params).then(res => res.data || [])
|
|
this.dataSource = await salesDetailAllList(params).then(res => res.data || [])
|
|
- this.countData = await salesDetaiCount(params).then(res => res.data)
|
|
|
|
|
|
+ if (this.activeList.length > 0) {
|
|
|
|
+ this.countData = await salesDetaiCount(params).then(res => res.data)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -384,7 +386,6 @@ export default {
|
|
this.dataSource = await salesDetailExtPromoList({ salesPromoSnSet: this.salesPromoSnSet, ...params }).then(res => res.data || [])
|
|
this.dataSource = await salesDetailExtPromoList({ salesPromoSnSet: this.salesPromoSnSet, ...params }).then(res => res.data || [])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(this.dataSource)
|
|
|
|
this.$emit('hideTable', this.type, this.dataSource.length)
|
|
this.$emit('hideTable', this.type, this.dataSource.length)
|
|
|
|
|
|
// 格式化数据
|
|
// 格式化数据
|