This commit is contained in:
Taric Xin
2022-01-19 17:37:30 +08:00
parent 94c8c45126
commit 2837f3ef07
17 changed files with 127 additions and 276 deletions

View File

@ -52,7 +52,7 @@
</div>
</nz-card>
<nz-card class="content-box" nzBordered>
<nz-card nzBordered>
<st #st [data]="service.$api_get_driver_account_detail" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"

View File

@ -1,40 +0,0 @@
:host::ng-deep {
.search-box {
.ant-card-body {
padding-bottom: 18px;
}
}
.content-box {
.ant-card-body {
padding-top: 16px;
}
}
nz-range-picker {
width: 100%;
}
.bold {
.ant-statistic-title {
font-weight: 600;
color : #000;
font-size : 16px;
}
}
}
.expend-options {
margin-top: 0px;
}
@media (min-width: 990px) {
.expend-options {
margin-top: -40px;
max-width : 400px;
position : absolute;
right : 0;
bottom : 25px;
}
}

View File

@ -8,7 +8,7 @@ import { FreightAccountService } from '../../../services/freight-account.service
@Component({
selector: 'app-driver-account-detail',
templateUrl: './driver-account-detail.component.html',
styleUrls: ['./driver-account-detail.component.less']
styleUrls: ['../../../../commom/less/box.less', '../../../../commom/less/expend-but.less']
})
export class DriverAccountDetailComponent implements OnInit {
@ViewChild('st', { static: true })
@ -41,8 +41,8 @@ export class DriverAccountDetailComponent implements OnInit {
Object.assign(requestOptions.body, {
...this.sf.value,
createTime: {
start: this.sf.value?.createTime?.[0] || null,
end: this.sf.value?.createTime?.[1] || null
start: this.sf.value?.createTime?.[0] || '',
end: this.sf.value?.createTime?.[1] || ''
}
});
}
@ -60,8 +60,8 @@ export class DriverAccountDetailComponent implements OnInit {
pageIndex: this.st.pi,
pageSize: this.st.ps,
createTime: {
start: this.sf?.value?.createTime?.[0] || null,
end: this.sf?.value?.createTime?.[1] || null
start: this.sf?.value?.createTime?.[0] || '',
end: this.sf?.value?.createTime?.[1] || ''
}
})
.subscribe(res => {
@ -71,8 +71,7 @@ export class DriverAccountDetailComponent implements OnInit {
});
}
stChange(e: STChange): void {
}
stChange(e: STChange): void {}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
@ -165,11 +164,25 @@ export class DriverAccountDetailComponent implements OnInit {
return [
{ title: '交易时间', index: 'createTime', type: 'date' },
{ title: '流水号', index: 'channelPaySn' },
{ title: '交易类型', index: 'tradeTypeLabel' },
{ title: '交易类型', index: 'tradeTypeLabel', className: 'text-center' },
{ title: '关联单号', index: 'businessNumber' },
{ title: '收支类型', index: 'incomeTypeLabel' },
{ title: '交易金额', index: 'amount' },
{ title: '账户余额', index: 'accountBalance' }
{ title: '收支类型', index: 'incomeTypeLabel', className: 'text-center' },
{
title: '交易金额',
index: 'amount',
width: 150,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.amount }) }
},
{
title: '账户余额',
index: 'accountBalance',
width: 150,
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) }
}
];
}
}