lilei hai 1 ano
pai
achega
75865eb840
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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