Commit 8dbad01f by chenwq

数据处理

1 parent 586477ef
......@@ -56,7 +56,8 @@ Component({
name: 'noUpgradeCount'
}, {
label: '转化率',
name: 'conversionRate'
name: 'conversionRate',
suffix: '%'
}],
'SC001': [{
label: '营业额',
......@@ -82,7 +83,7 @@ Component({
}, {
label: '转化率',
name: 'conversionRate',
isNum: true
suffix: '%'
}]
}
},
......
......@@ -10,6 +10,7 @@
<view class="price">
{{item.prefix || ''}}
{{item.isNum ? filter.money_three_for_two_thousands(info[item.name] || 0.00) : (info[item.name] || 0)}}
{{item.suffix || ''}}
</view>
<view>{{item.label}}</view>
</view>
......
......@@ -144,7 +144,6 @@ Component({
this.setData({
crowdOrderObj: _obj
})
console.log(this.data.crowdOrderObj, 'crowdOrderObj-')
},
getBusiStatistics(isReset = false, isBusiTab = false) {
......@@ -194,11 +193,15 @@ Component({
break
case 'SC001':
res.merchantList.forEach(item => {
_list.push(item.quotationMerchantStatisticsDTO)
let _dto = item.quotationMerchantStatisticsDTO
_dto.turnover = (_dto.turnover / 100).toFixed(2)
_dto.fuseCustomerPrice = (_dto.fuseCustomerPrice / 100).toFixed(2)
_dto.equityCustomerPrice = (_dto.equityCustomerPrice / 100).toFixed(2)
_dto.conversionRate = (_dto.equityCustomerPrice * 100).toFixed(0)
_list.push(_dto)
})
break
}
console.log(_list)
this.setData({
busiObj: res,
busiTotalList: _list
......@@ -220,7 +223,6 @@ Component({
},
clientRefresh(isPull = false) {
this.getPMerchantInfo()
console.log('clientRefresh');
this.setData({
['pageObj.currentPage']: 1,
list: []
......@@ -306,7 +308,6 @@ Component({
},
/**长按海报 */
async longtouch(e) {
console.log('长按海报', e)
this.clientRefresh()
let { activityId } = e.detail
const res = await outputApi.reportPosterTrack({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!