|
@@ -8,17 +8,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="top-bar">
|
|
<view class="top-bar">
|
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
- <view style="font-size:28upx;color:#666666;">
|
|
|
|
|
- <view style="width:116upx;text-align:center;display:inline-block;" @click="rankByFn('amount')">按金额</view>
|
|
|
|
|
- <view style="width:116upx;text-align:center;display:inline-block;" @click="rankByFn('gross')">按毛利</view>
|
|
|
|
|
- <view style="width:122upx;text-align:center;display:inline-block;" @click="rankByFn('mll')">按毛利率</view>
|
|
|
|
|
- </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
<view class="space-view ex-table">
|
|
|
<block v-if="!$util.isEmpty(profile)">
|
|
<block v-if="!$util.isEmpty(profile)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
- <t-tr header><t-th>花材</t-th><t-th>总数量</t-th><t-th>总金额</t-th><t-th>毛利</t-th><t-th>毛利率</t-th></t-tr>
|
|
|
|
|
|
|
+ <t-tr header>
|
|
|
|
|
+ <t-th>花材</t-th>
|
|
|
|
|
+ <t-th><view @click="rankByFn('num')">总数量<i class="iconfont iconsanjiao_xia"></i></view></t-th>
|
|
|
|
|
+ <t-th><view @click="rankByFn('amount')">总金额<i class="iconfont iconsanjiao_xia"></i></view></t-th>
|
|
|
|
|
+ <t-th><view @click="rankByFn('gross')">毛利<i class="iconfont iconsanjiao_xia"></i></view></t-th>
|
|
|
|
|
+ <t-th><view @click="rankByFn('mll')">毛利率<i class="iconfont iconsanjiao_xia"></i></view></t-th>
|
|
|
|
|
+ </t-tr>
|
|
|
<view v-for="(item, index) in profile" :key="index">
|
|
<view v-for="(item, index) in profile" :key="index">
|
|
|
<t-tr>
|
|
<t-tr>
|
|
|
<t-td><view style="color:black;font-size:26upx;">{{item.name}}</view></t-td>
|
|
<t-td><view style="color:black;font-size:26upx;">{{item.name}}</view></t-td>
|