lilei 2 月之前
父節點
當前提交
7ad4d4c39e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

+ 3 - 3
src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

@@ -616,9 +616,9 @@ export default {
         const regularNextVal = regularPromotionSameFlag ? undefined : nextVal1 // 下级差
         // 促销品
         const promoUnit = '个'
-        const promoSelected = item.giftQty || 0 // 已选
-        const promoBalance = item.giftShortfallQty //  差额
-        const promoLimit = item.giftGiveQty // 额度
+        const promoSelected = item.giftQty || item.giftQty == 0 ? item.giftQty : undefined// 已选
+        const promoBalance = item.giftShortfallQty || item.giftShortfallQty == 0 ? item.giftShortfallQty : undefined //  差额
+        const promoLimit = item.giftGiveQty || item.giftGiveQty == 0 ? item.giftGiveQty : undefined // 额度
         // 采购额
         const purchaseUnit = '元'
         const purchaseLimit = item.totalPromoGiftsAmount || item.totalPromoGiftsAmount == 0 ? Number(item.totalPromoGiftsAmount).toFixed(2) : undefined // 额度