账单报表

This commit is contained in:
limqhz
2023-02-10 18:02:59 +08:00
parent 87a1b4ce18
commit 4bb155021c
10 changed files with 165 additions and 253 deletions

View File

@@ -4,10 +4,10 @@
<t-tabs defaultValue="{{0}}" t-class="custom-tabs" theme="card">
<t-tab-panel label="总览" value="0" class="tab_content">
<view class="space_box font_big">
<text class="t-color-expend">支出\n {{sumExpend}}</text>
<text class="t-color-income">收入\n {{sumIncome}}</text>
<text class="t-color-transfer">转账\n {{sumTransfer}}</text>
<text class="t-color-repayment">还款\n {{sumRepayment}}</text>
<text class="t-color-EXPEND">支出\n {{sumExpend}}</text>
<text class="t-color-INCOME">收入\n {{sumIncome}}</text>
<text class="t-color-TRANSFER">转账\n {{sumTransfer}}</text>
<text class="t-color-REPAYMENT">还款\n {{sumRepayment}}</text>
</view>
<view class="padding_box">
<t-divider dashed content="账单明细"/>
@@ -35,13 +35,12 @@
<view wx:if="{{payTypeList != null && payTypeList.length > 0}}">
<t-cell-group theme="card">
<t-cell wx:for="{{payTypeList}}" wx:key="index"
title="{{item.title}}"
title="{{item.moneyName}}"
description="{{item.progress}}%"
align="top"
image="/image/bill/8.png"
image="{{item.moneyIcon}}"
note="{{item.money}}"
class="t-cell-{{item.type}}"
url="{{'/pages/chart/group/index?type=' + item.type}}"
url="{{'/pages/chart/group/index?expendId=' + item.expendId + '&rangeDate=' + showDate}}"
/>
</t-cell-group>
</view>
@@ -50,12 +49,13 @@
</t-tab-panel>
<t-tab-panel label="趋势" value="2">
<view class="chart-box">
<view class="center_box">月</view>
<view class="chart_title">月</view>
<ec-canvas id="mychart-dom-line1" canvas-id="mychart-line1" ec="{{ ecLine1 }}"></ec-canvas>
</view>
<view class="chart-box2">
<view class="center_box">近6月</view>
<view class="chart-title2">近6月</view>
<ec-canvas id="mychart-dom-line2" canvas-id="mychart-line2" ec="{{ ecLine2 }}"></ec-canvas>
<view class="chart-chart-bottom"></view>
</view>
</t-tab-panel>
<t-tab-panel label="排行" value="3">
@@ -65,12 +65,12 @@
<view wx:if="{{payList != null && payList.length > 0}}">
<t-cell-group theme="card">
<t-cell wx:for="{{payList}}" wx:key="index"
title="{{item.title}}"
description="{{item.dateTime}} • {{item.from}}"
title="{{item.moneyName}}"
description="{{item.date}} • {{item.accountName}}"
align="top"
image="/image/bill/2.png"
image="{{item.moneyIcon}}"
note="{{item.money}}"
class="t-cell-{{item.type}}"
class="t-cell-{{item.billType}}"
url="{{'/pages/bill/index?id=' + item.id}}"
/>
</t-cell-group>
@@ -81,12 +81,12 @@
<view wx:if="{{incomeList != null && incomeList.length > 0}}">
<t-cell-group theme="card">
<t-cell wx:for="{{incomeList}}" wx:key="index"
title="{{item.title}}"
description="{{item.dateTime}} • {{item.from}}"
title="{{item.moneyName}}"
description="{{item.date}} • {{item.accountName}}"
align="top"
image="/image/bill/4.png"
image="{{item.moneyIcon}}"
note="{{item.money}}"
class="t-cell-{{item.type}}"
class="t-cell-{{item.billType}}"
url="{{'/pages/bill/index?id=' + item.id}}"
/>
</t-cell-group>