lilei 1 năm trước cách đây
mục cha
commit
ca732922ba
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/views/salesManagement/salesQueryNew/detail.vue

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

@@ -355,7 +355,10 @@ export default {
           })
           return
         }
-        if (this.detailData && this.detailData.totalConvertPromoGiftsQty) {
+        
+        const acitveList = this.$refs.productList.activeList
+        const hasConvertPromoGift = acitveList&&acitveList.find(item => item.promotionRule&&item.promotionRule.convertExpenseFlag==1&&item.promotionRule.promotionRuleType=='BUY_PROD_GIVE_PROD')
+        if (hasConvertPromoGift) {
           this.$info({
             title: '提示',
             content: '该活动规则中,促销产品可转费用报销单,不可一键审核!',
@@ -363,6 +366,7 @@ export default {
           })
           return
         }
+        
         this.showDsModal = true
         this.$refs.dsModal.setDetail(this.detailData)
       } else {