Commit 8bb2ba3a by chenwq

数据处理

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