Commit 8bb2ba3a by chenwq

数据处理

1 parent 7efd90a9
......@@ -56,7 +56,7 @@ Component({
name: 'noUpgradeCount'
}, {
label: '转化率',
name: 'conversionRate',
name: 'calTransform',
suffix: '%'
}],
'SC001': [{
......
......@@ -187,8 +187,9 @@ Component({
case 'SC002':
res.merchantList.forEach(item => {
let _dto = item.orderSummaryTotalDTO
item.orderSummaryTotalDTO.calUpPrice = Math.round(_dto.totalSubOrderOrderMoney / _dto.upgradeCount).toFixed(2)
_list.push(item.orderSummaryTotalDTO)
_dto.calTransform = Math.round((_dto.upgradeCount * 100) / _dto.experienceCount).toFixed(0)
_dto.calUpPrice = Math.round(_dto.totalSubOrderOrderMoney / _dto.upgradeCount).toFixed(2)
_list.push(_dto)
})
break
case 'SC001':
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!