This commit is contained in:
Taric Xin
2022-02-11 15:20:43 +08:00
parent 16aebd5930
commit 038e0f5891
17 changed files with 306 additions and 183 deletions

View File

@ -22,11 +22,8 @@
</nz-card>
<nz-card class="content-box">
<st #st [data]="service.$api_get_shipper_account_page" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading">
<st #st [data]="service.$api_get_shipper_account_page" [columns]="columns" [req]="{ process: beforeReq }"
[loading]="service.http.loading" [scroll]="{ x: '1200px' }">
<ng-template st-row="description" let-item let-index="index">
<a (click)="showAccountDetail(item)">{{ (parseFloat(item.availableBalance) +
parseFloat(item.freezeBalance)).toFixed(2) | currency}}</a>

View File

@ -159,12 +159,12 @@ export class FreightAccountComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '企业名称', index: 'tenantName' },
{ title: '联系人', index: 'name' },
{ title: '联系人电话', index: 'phone' },
{ title: '网络货运人', index: 'ltdName' },
{ title: '银行类型', index: 'bankTypeLabel' },
{ title: '虚拟账户', index: 'virtualAccount' },
{ title: '企业名称', width: 140, index: 'tenantName' },
{ title: '联系人', width: 120, index: 'name' },
{ title: '联系人电话', width: 140, index: 'phone' },
{ title: '网络货运人', width: 140, index: 'ltdName' },
{ title: '银行类型',width: 120, index: 'bankTypeLabel' },
{ title: '虚拟账户', width: 140, index: 'virtualAccount' },
{
title: '可用余额',
index: 'availableBalance',
@ -184,17 +184,20 @@ export class FreightAccountComponent implements OnInit {
{
title: '账户总余额',
render: 'description',
width: 140,
className: 'text-right'
},
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
{
title: '状态',
index: 'stateDeleted',
type: 'badge',
badge: { 0: { text: '正常', color: 'success' }, 1: { text: '停用', color: 'warning' } }
index: 'stateDeletedLabel',
width: 80,
},
{
title: '操作',
width: 120,
className: 'text-center',
fixed: 'right',
buttons: [
{
text: '查看明细',