lilei 7 maanden geleden
bovenliggende
commit
5cb086d321
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

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

@@ -433,16 +433,16 @@ export default {
         // 门槛统计
         const isYuan = item.gateRuleUnit == 'YUAN'
         const gateUnit = isYuan ? '元' : '个' // 单位
-        const gateSelected = isYuan ? item.gateTotalAmount : item.gateTotalQty // 已选
+        const gateSelected = isYuan ? item.gateTotalAmount : item.gateQty // 已选
         const gateTotal = isYuan ? item.gateBorrowAmount : item.gateBorrowQty // 累计
         const gateQuota = isYuan ? item.gateQuotaAmount : item.gateQuotaQty // 配额
-        const geteBalance = gateQuota ? gateQuota - (gateSelected + gateTotal) : '-' // 差额 = 配额 - 已选 - 累计
+        const geteBalance = item.gateShortfallValue // 差额 = 配额 - 已选 - 累计
         // 正价统计
         const isYuan1 = item.regularRuleUnit == 'YUAN'
         const regularUnit = isYuan1 ? '元' : '个' // 单位
         const regularSelected = isYuan1 ? item.regularTotalAmount : item.regularTotalQty // 已选
         const regularTotal = isYuan1 ? item.regularBorrowAmount : item.regularBorrowQty // 累计
-        const regularBalance = (isYuan1 ? item.regularQuotaAmount || 0 : item.regularQuotaQty || 0) - (regularSelected + regularTotal) // 差额 = 额 - 已选 - 累计
+        const regularBalance = 0 // 差额 = 额 - 已选 - 累计
         // 促销品
         const promoUnit = '个'
         const promoLimit = 0 // 额度
@@ -468,6 +468,7 @@ export default {
           promotionRuleDesc: item.promotionRule.description,
           // 门槛
           gateUnit, // 单位
+          gateQuota, // 配额
           gateSelected, // 已选
           gateTotal, // 累计
           geteBalance, // 差额 = 配额 - 已选 - 累计