lilei 2 weeks ago
parent
commit
f9fe627fd7

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

@@ -591,24 +591,24 @@ export default {
         // 门槛统计
         // 门槛统计
         const isYuan = item.gateRuleUnit == 'YUAN'
         const isYuan = item.gateRuleUnit == 'YUAN'
         const gateUnit = isYuan ? '元' : '个' // 单位
         const gateUnit = isYuan ? '元' : '个' // 单位
-        const gateSelected = isYuan ? item.gateAmount : item.gateQty // 已选
-        const gateTotal = isYuan ? item.gateBorrowAmount : item.gateBorrowQty // 累计
+        const gateSelected = isYuan ? Number(item.gateAmount).toFixed(2) : item.gateQty // 已选
+        const gateTotal = isYuan ? Number(item.gateBorrowAmount).toFixed(2) : item.gateBorrowQty // 累计
         const geteBalance = item.gateShortfallValue // 差额
         const geteBalance = item.gateShortfallValue // 差额
         const quotaUnit = item.quotaRuleUnit == 'YUAN' ? '元' : '个' // 配额单位
         const quotaUnit = item.quotaRuleUnit == 'YUAN' ? '元' : '个' // 配额单位
-        const gateQuota = item.gateQuotaAmount // 配额
-        const unUseGateQuota = item.unUseAmount // 未用配额
+        const gateQuota = Number(item.gateQuotaAmount).toFixed(2) // 配额
+        const unUseGateQuota = Number(item.unUseAmount).toFixed(2) // 未用配额
         // 特价产品
         // 特价产品
         const isYuan2 = item.discountRuleUnit == 'YUAN'
         const isYuan2 = item.discountRuleUnit == 'YUAN'
         const discountRuleUnit = isYuan2 ? '元' : '个' // 单位
         const discountRuleUnit = isYuan2 ? '元' : '个' // 单位
-        const specialPriceSelected = isYuan2 ? item.discountAmount : item.discountQty || 0 // 已选
-        const totalPromoOrigAmount = isYuan2 ? item.totalPromoOrigAmount : undefined
+        const specialPriceSelected = isYuan2 ? Number(item.discountAmount).toFixed(2) : item.discountQty || 0 // 已选
+        const totalPromoOrigAmount = isYuan2 ? Number(item.totalPromoOrigAmount).toFixed(2) : undefined
         const discountRuleValue = isYuan2 ? Number(item.discountRuleValue).toFixed(2) : item.discountRuleValue // 基础
         const discountRuleValue = isYuan2 ? Number(item.discountRuleValue).toFixed(2) : item.discountRuleValue // 基础
         const discountRuleNextValue = isYuan2 ? Number(item.discountShortfallValue).toFixed(2) : item.discountShortfallValue // 下阶差
         const discountRuleNextValue = isYuan2 ? Number(item.discountShortfallValue).toFixed(2) : item.discountShortfallValue // 下阶差
         // 正价统计
         // 正价统计
         const isYuan1 = item.regularRuleUnit == 'YUAN'
         const isYuan1 = item.regularRuleUnit == 'YUAN'
         const regularUnit = isYuan1 ? '元' : '个' // 单位
         const regularUnit = isYuan1 ? '元' : '个' // 单位
-        const regularSelected = isYuan1 ? item.regularAmount : item.regularQty // 已选
-        const regularTotal = isYuan1 ? item.regularBorrowAmount : item.regularBorrowQty // 累计
+        const regularSelected = isYuan1 ? Number(item.regularAmount).toFixed(2) : item.regularQty // 已选
+        const regularTotal = isYuan1 ? Number(item.regularBorrowAmount).toFixed(2) : item.regularBorrowQty // 累计
         const regularPromotionSameFlag = item.promotionRule.promotionRuleType === 'BUY_PROD_GIVE_PROD' && item.promotionRule.regularPromotionSameFlag == 1 // 促销品是否与正品一致
         const regularPromotionSameFlag = item.promotionRule.promotionRuleType === 'BUY_PROD_GIVE_PROD' && item.promotionRule.regularPromotionSameFlag == 1 // 促销品是否与正品一致
         const baseVal1 = isYuan1 ? Number(item.regularRuleValue).toFixed(2) : item.regularRuleValue
         const baseVal1 = isYuan1 ? Number(item.regularRuleValue).toFixed(2) : item.regularRuleValue
         const nextVal1 = isYuan1 ? Number(item.regularShortfallValue).toFixed(2) : item.regularShortfallValue
         const nextVal1 = isYuan1 ? Number(item.regularShortfallValue).toFixed(2) : item.regularShortfallValue
@@ -621,9 +621,9 @@ export default {
         const promoLimit = item.giftGiveQty // 额度
         const promoLimit = item.giftGiveQty // 额度
         // 采购额
         // 采购额
         const purchaseUnit = '元'
         const purchaseUnit = '元'
-        const purchaseLimit = item.totalPromoGiftsAmount // 额度
-        const purchaseSelected = item.totalUsePromoGiftsAmount // 已选
-        const purchaseSurplus = item.surplusAmount || 0 // 结余
+        const purchaseLimit = item.totalPromoGiftsAmount ? Number(item.totalPromoGiftsAmount).toFixed(2) : undefined // 额度
+        const purchaseSelected = item.totalUsePromoGiftsAmount ? Number(item.totalUsePromoGiftsAmount).toFixed(2) : undefined // 已选
+        const purchaseSurplus = item.surplusAmount ? Number(item.surplusAmount).toFixed(2) : undefined // 结余
 
 
         // 促销品
         // 促销品
         this.tableData.push({
         this.tableData.push({

+ 1 - 0
src/views/salesManagement/waitDispatchNew/detailProductList.vue

@@ -177,6 +177,7 @@ export default {
           field: 'prompName',
           field: 'prompName',
           key: 'm',
           key: 'm',
           align: 'center',
           align: 'center',
+          width: 80,
           operationColumn: false,
           operationColumn: false,
           ellipsis: { showTitle: false },
           ellipsis: { showTitle: false },
           renderBodyCell: ({ row, column, rowIndex }, h) => {
           renderBodyCell: ({ row, column, rowIndex }, h) => {