Commit 8dbad01f by chenwq

数据处理

1 parent 586477ef
...@@ -56,7 +56,8 @@ Component({ ...@@ -56,7 +56,8 @@ Component({
name: 'noUpgradeCount' name: 'noUpgradeCount'
}, { }, {
label: '转化率', label: '转化率',
name: 'conversionRate' name: 'conversionRate',
suffix: '%'
}], }],
'SC001': [{ 'SC001': [{
label: '营业额', label: '营业额',
...@@ -82,7 +83,7 @@ Component({ ...@@ -82,7 +83,7 @@ Component({
}, { }, {
label: '转化率', label: '转化率',
name: 'conversionRate', name: 'conversionRate',
isNum: true suffix: '%'
}] }]
} }
}, },
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<view class="price"> <view class="price">
{{item.prefix || ''}} {{item.prefix || ''}}
{{item.isNum ? filter.money_three_for_two_thousands(info[item.name] || 0.00) : (info[item.name] || 0)}} {{item.isNum ? filter.money_three_for_two_thousands(info[item.name] || 0.00) : (info[item.name] || 0)}}
{{item.suffix || ''}}
</view> </view>
<view>{{item.label}}</view> <view>{{item.label}}</view>
</view> </view>
......
...@@ -144,7 +144,6 @@ Component({ ...@@ -144,7 +144,6 @@ Component({
this.setData({ this.setData({
crowdOrderObj: _obj crowdOrderObj: _obj
}) })
console.log(this.data.crowdOrderObj, 'crowdOrderObj-')
}, },
getBusiStatistics(isReset = false, isBusiTab = false) { getBusiStatistics(isReset = false, isBusiTab = false) {
...@@ -194,11 +193,15 @@ Component({ ...@@ -194,11 +193,15 @@ Component({
break break
case 'SC001': case 'SC001':
res.merchantList.forEach(item => { 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 break
} }
console.log(_list)
this.setData({ this.setData({
busiObj: res, busiObj: res,
busiTotalList: _list busiTotalList: _list
...@@ -220,7 +223,6 @@ Component({ ...@@ -220,7 +223,6 @@ Component({
}, },
clientRefresh(isPull = false) { clientRefresh(isPull = false) {
this.getPMerchantInfo() this.getPMerchantInfo()
console.log('clientRefresh');
this.setData({ this.setData({
['pageObj.currentPage']: 1, ['pageObj.currentPage']: 1,
list: [] list: []
...@@ -306,7 +308,6 @@ Component({ ...@@ -306,7 +308,6 @@ Component({
}, },
/**长按海报 */ /**长按海报 */
async longtouch(e) { async longtouch(e) {
console.log('长按海报', e)
this.clientRefresh() this.clientRefresh()
let { activityId } = e.detail let { activityId } = e.detail
const res = await outputApi.reportPosterTrack({ 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!