lilei 1 month ago
parent
commit
559235f8a7

+ 9 - 2
src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

@@ -234,7 +234,7 @@ export default {
           fixed: 'left',
           renderBodyCell: ({ row, column, rowIndex }, h) => {
             return (<div style="width:100%;display:flex;justify-content: space-between;" title={row[column.field]} onClick={() => _this.showDesc(row)}>
-              <div class="table-link-text" title={row[column.field]}>
+              <div class="table-link-text" title={row.promotionTitle + '-' + row[column.field]}>
                 <span style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{row[column.field]}</span>
               </div>
               <div style="position:absolute;right:0;">
@@ -562,9 +562,12 @@ export default {
         // 特价产品
         const isYuan2 = item.gateRuleUnit == 'YUAN'
         const specialPriceUnit = isYuan2 ? '元' : '个' // 单位
-        const specialPriceQuota = item.promotionRule.promotionRuleType === 'PROMO_PROD' ? item.gateQuotaAmount : 0 // 配额
+        const discountRuleUnit = item.discountRuleUnit == 'YUAN' ? '元' : '个' // 单位
         const specialPriceSelected = isYuan2 ? item.discountAmount : item.discountQty || 0 // 已选
+        const specialPriceQuota = item.promotionRule.promotionRuleType === 'PROMO_PROD' ? item.gateQuotaAmount : 0 // 配额
         const specialPriceBalance = !specialPriceQuota ? 0 : isYuan ? item.discountCeAmount : item.discountCeQty// 差额 = 配额 - 已选
+        const discountRuleValue = item.discountRuleUnit == 'YUAN' ? Number(item.discountRuleValue).toFixed(2) : item.discountRuleValue
+        const discountRuleNextValue = item.discountRuleUnit == 'YUAN' ? Number(item.discountRuleNextValue).toFixed(2) : item.discountRuleNextValue
         // 正价统计
         const isYuan1 = item.regularRuleUnit == 'YUAN'
         const regularUnit = isYuan1 ? '元' : '个' // 单位
@@ -590,6 +593,7 @@ export default {
           ruleType: item.promotionRule.promotionRuleType,
           promotionRuleType: item.promotionRule.promotionRuleTypeDictValue,
           promotionRuleDesc: item.promotionRule.description,
+          promotionTitle: item.promotion.title,
           // 门槛
           gateUnit, // 单位
           gateQuota, // 配额
@@ -599,9 +603,12 @@ export default {
           geteBalance, // 差额 = 配额 - 已选 - 累计
           // 特价产品
           specialPriceUnit, // 单位
+          discountRuleUnit,
           specialPriceQuota, // 配额
           specialPriceSelected, // 已选
           specialPriceBalance, // 差额
+          discountRuleValue,
+          discountRuleNextValue,
           // 正价
           regularUnit, // 单位
           regularQuota, // 配额