lilei 1 年之前
父节点
当前提交
75865eb840
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/salesManagement/salesQueryNew/edit.vue

+ 2 - 1
src/views/salesManagement/salesQueryNew/edit.vue

@@ -291,7 +291,8 @@ export default {
     // 获取销售单参与的活动列表
     async getActiveList () {
       // 已参与活动列表
-      this.activeList = await salesPromoQueryList({ salesBillSn: this.$route.params.sn }).then(res => res.data || [])
+      const list = await salesPromoQueryList({ salesBillSn: this.$route.params.sn }).then(res => res.data || [])
+      this.activeList = list.filter(item => item.promotion && item.promotionRule)
       this.activeList.map(item => {
         item.isActive = item.enabledFlag == 1
         item.showDesc = false