|
|
|
@ -7,29 +7,62 @@ |
|
|
|
|
<!-- end 面包屑 --> |
|
|
|
|
|
|
|
|
|
<!--条件搜索--> |
|
|
|
|
<div class="inner-content" *ngIf="roleType == 3"> |
|
|
|
|
<div nz-row style="margin-top: 20px;" [nzGutter]="16" (click)="isVisibleOil = true"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-card nzHoverable [nzLoading]="loading"> |
|
|
|
|
<h3>预充值账号余额</h3> |
|
|
|
|
<p>余额:{{balanceData['amounts']}}</p> |
|
|
|
|
</nz-card> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-card nzHoverable [nzLoading]="loading"> |
|
|
|
|
<h3>预充值账号今日收入</h3> |
|
|
|
|
<p>今日收入:{{todayBalanceData['incomePrice'] == null ? '0': todayBalanceData['incomePrice']}}</p> |
|
|
|
|
<p>今日收款笔数:{{todayBalanceData['incomeCount'] == null ? '0': todayBalanceData['incomeCount']}}</p> |
|
|
|
|
<div class="inner-content" *ngIf="gasCountData.history.length != 0"> |
|
|
|
|
<div *ngIf="adminInfoObject['merchantStore']['prestoreType'] == 1" style="width: 100%;text-align: center;"> |
|
|
|
|
<nz-row [nzGutter]="16"> |
|
|
|
|
<nz-col [nzSpan]="24"> |
|
|
|
|
<nz-statistic [nzValue]="'¥' + balanceData['amounts']" [nzTitle]="'预存账户余额'" [nzSuffix]="suffixTpl"></nz-statistic> |
|
|
|
|
<ng-template #suffixTpl><a (click)="isVisibleOil = true" style="font-size: 13px;">记录</a></ng-template> |
|
|
|
|
</nz-col> |
|
|
|
|
</nz-row> |
|
|
|
|
</div> |
|
|
|
|
<br/><br/><br/> |
|
|
|
|
<nz-card nzTitle="历史加油订单"> |
|
|
|
|
<nz-row [nzGutter]="16"> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.history.totalPrice ? gasCountData.history.totalPrice : 0" [nzTitle]="'加油总金额'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.history.totalCount ? gasCountData.history.totalCount : 0" [nzTitle]="'加油总数量'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.history.incomePrice ? gasCountData.history.incomePrice : 0" [nzTitle]="'加油金额'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.history.incomeCount ? gasCountData.history.incomeCount : 0" [nzTitle]="'加油数量'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.history.refundPrice ? gasCountData.history.refundPrice : 0" [nzTitle]="'退款金额'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.history.refundCount ? gasCountData.history.refundCount : 0" [nzTitle]="'退款数量'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
</nz-row> |
|
|
|
|
</nz-card> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-card nzHoverable [nzLoading]="loading"> |
|
|
|
|
<h3>预充值账号今日退款</h3> |
|
|
|
|
<p>今日退款金额:{{todayBalanceData['refundPrice'] == null ? '0': todayBalanceData['refundPrice']}}</p> |
|
|
|
|
<p>今日退款笔数:{{todayBalanceData['incomeCount'] == null ? '0': todayBalanceData['incomeCount']}}</p> |
|
|
|
|
<br/><br/><br/> |
|
|
|
|
<nz-card nzTitle="今日加油订单"> |
|
|
|
|
<nz-row [nzGutter]="16"> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.today.totalPrice ? gasCountData.today.totalPrice : 0" [nzTitle]="'加油总金额'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.today.totalCount ? gasCountData.today.totalCount : 0" [nzTitle]="'加油总数量'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.today.incomePrice ? gasCountData.today.incomePrice : 0" [nzTitle]="'加油金额'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.today.incomeCount ? gasCountData.today.incomeCount : 0" [nzTitle]="'加油数量'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.today.refundPrice ? gasCountData.today.refundPrice : 0" [nzTitle]="'退款金额'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
<nz-col [nzSpan]="4"> |
|
|
|
|
<nz-statistic [nzValue]="gasCountData.today.refundCount ? gasCountData.today.refundCount : 0" [nzTitle]="'退款数量'"></nz-statistic> |
|
|
|
|
</nz-col> |
|
|
|
|
</nz-row> |
|
|
|
|
</nz-card> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!--渠道公司--> |
|
|
|
|
<div class="inner-content" *ngIf="roleType == 7"> |
|
|
|
@ -149,7 +182,6 @@ |
|
|
|
|
</nz-table> |
|
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="isVisibleAdd" nzTitle="新增预充值余额" (nzOnCancel)="isVisibleAdd = false" (nzOnOk)="handleOk()"> |
|
|
|
|
<div nz-row> |
|
|
|
|
<div nz-col nzSpan="18"> |
|
|
|
@ -163,25 +195,25 @@ |
|
|
|
|
</div> |
|
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="isVisibleOil" nzWidth="900" nzTitle="预充值账户记录" (nzOnCancel)="isVisibleOil = false" (nzOnOk)="isVisibleOil = false"> |
|
|
|
|
<nz-table #RecordList [nzData]="recordList" style="margin-top: 20px;" [nzScroll]="{ x: '900px' }"> |
|
|
|
|
<nz-modal [(nzVisible)]="isVisibleOil" nzWidth="900" nzTitle="预充值账户记录" [nzBodyStyle]="{ padding: '15px', height: '600px'}" (nzOnCancel)="isVisibleOil = false" [nzFooter]="null"> |
|
|
|
|
<nz-table #RecordList [nzData]="recordList" [nzScroll]="{ y: '470px', x : '900px' }"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="80px">编号</th> |
|
|
|
|
<th nzWidth="100px">类型</th> |
|
|
|
|
<th nzWidth="120px">金额</th> |
|
|
|
|
<th nzWidth="140px">变更前金额</th> |
|
|
|
|
<th nzWidth="140px">变更后金额</th> |
|
|
|
|
<th nzWidth="180px">内容</th> |
|
|
|
|
<th nzWidth="50px">编号</th> |
|
|
|
|
<th nzWidth="50px">类型</th> |
|
|
|
|
<th nzWidth="80px">交易金额</th> |
|
|
|
|
<th nzWidth="80px">变更前金额</th> |
|
|
|
|
<th nzWidth="80px">变更后金额</th> |
|
|
|
|
<th nzWidth="300px">内容</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of RecordList.data; let i = index"> |
|
|
|
|
<td>{{i+1}}</td> |
|
|
|
|
<td>{{data.type == 1 ? '进账': '出账'}}</td> |
|
|
|
|
<td>{{data.amount}}</td> |
|
|
|
|
<td>{{data.beforeAmount}}</td> |
|
|
|
|
<td>{{data.afterAmount}}</td> |
|
|
|
|
<td>{{'¥' + data.amount}}</td> |
|
|
|
|
<td>{{'¥' + data.beforeAmount}}</td> |
|
|
|
|
<td>{{'¥' + data.afterAmount}}</td> |
|
|
|
|
<td>{{data.sourceContent}}</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|