|
@@ -306,7 +306,7 @@ export default {
|
|
|
title: '配额',
|
|
|
width: 50,
|
|
|
align: 'center',
|
|
|
- renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'gateUnit')
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'quotaUnit')
|
|
|
},
|
|
|
{
|
|
|
field: 'unUseGateQuota',
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
title: '未用配额',
|
|
|
width: 60,
|
|
|
align: 'center',
|
|
|
- renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'gateUnit')
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'quotaUnit')
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -588,9 +588,10 @@ export default {
|
|
|
const gateUnit = isYuan ? '元' : '个' // 单位
|
|
|
const gateSelected = isYuan ? item.gateTotalAmount : item.gateQty // 已选
|
|
|
const gateTotal = isYuan ? item.gateBorrowAmount : item.gateBorrowQty // 累计
|
|
|
- const gateQuota = isYuan ? item.gateQuotaAmount : item.gateQuotaQty // 配额
|
|
|
- const unUseGateQuota = isYuan ? Number(item.unUseAmount).toFixed(2) : item.unUseAmount // 未用配额
|
|
|
const geteBalance = item.gateShortfallValue // 差额
|
|
|
+ const quotaUnit = item.QuotaRuleUnit == 'YUAN' ? '元' : '个' // 配额单位
|
|
|
+ const gateQuota = item.QuotaRuleUnit == 'YUAN' ? item.gateQuotaAmount : item.gateQuotaQty // 配额
|
|
|
+ const unUseGateQuota = item.unUseAmount // 未用配额
|
|
|
// 特价产品
|
|
|
const isYuan2 = item.gateRuleUnit == 'YUAN'
|
|
|
const specialPriceUnit = isYuan2 ? '元' : '个' // 已选单位
|
|
@@ -628,6 +629,7 @@ export default {
|
|
|
promotionTitle: item.promotion.title,
|
|
|
// 门槛
|
|
|
gateUnit, // 单位
|
|
|
+ quotaUnit, // 配额单位
|
|
|
gateQuota, // 配额
|
|
|
unUseGateQuota, // 未用配额
|
|
|
gateSelected, // 已选
|