edit
This commit is contained in:
@ -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' } }"
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@ -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 }) }
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user