lilei 2 weeks ago
parent
commit
aac8599a09
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/salesManagement/salesQueryNew/detail.vue

+ 3 - 1
src/views/salesManagement/salesQueryNew/detail.vue

@@ -664,7 +664,9 @@ export default {
     async getActiveList () {
     async getActiveList () {
       // 已参与活动列表
       // 已参与活动列表
       const list = await salesPromoQueryList({ salesBillSn: this.$route.params.sn || this.bizSn }).then(res => res.data || [])
       const list = await salesPromoQueryList({ salesBillSn: this.$route.params.sn || this.bizSn }).then(res => res.data || [])
-      this.activeList = list.filter(item => item.promotion && item.promotionRule)
+      this.activeList = list.filter(item => {
+        return item.promotion && item.promotionRule && item.totalQty > 0
+      })
       this.hideActiveTable = this.activeList.length == 0
       this.hideActiveTable = this.activeList.length == 0
       // 触发活动统计查询变量
       // 触发活动统计查询变量
       this.$nextTick(() => {
       this.$nextTick(() => {