lilei 7 月之前
父节点
当前提交
324aadb853
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

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

@@ -207,7 +207,7 @@ export default {
           ]
         },
         {
-          title: '正价产品(数量/金额)',
+          title: '正价产品(金额)',
           children: [
             {
               field: 'regularSelected',
@@ -452,8 +452,8 @@ export default {
         const purchaseUnit = '元'
         const purchaseLimit = item.totalPromoGiftsAmount // 额度
         const purchaseSelected = item.totalUsePromoGiftsAmount // 已选
-        const purchaseSurplus = (purchaseLimit - purchaseSelected) || '-' // 结余
-        const purchaseOverspend = (purchaseSelected - purchaseLimit) || '-' // 超支
+        const purchaseSurplus = (purchaseLimit - purchaseSelected) || 0 // 结余
+        const purchaseOverspend = (purchaseSelected - purchaseLimit) || 0 // 超支
         // 特价产品
         const isYuan2 = item.specialPriceUnit == 'YUAN'
         const specialPriceUnit = isYuan2 ? '元' : '个' // 单位
@@ -482,6 +482,7 @@ export default {
           promoSelected, // 已选
           promoBalance, // 差额 = 额度 - 已选
           // 采购额
+          purchaseUnit,
           purchaseLimit, // 额度
           purchaseSelected, // 已选
           purchaseSurplus, // 结余