edit
This commit is contained in:
@ -186,6 +186,7 @@ export class DriverAccountComponent extends BasicTableComponent implements OnIni
|
||||
buttons: [
|
||||
{
|
||||
text: '查看明细',
|
||||
acl: { ability: ['FINANCIAL-DRIVER-ACOUNT-view'] },
|
||||
click: item =>
|
||||
this.router.navigate(['/financial-management/driver-account/detail/' + item.id], {
|
||||
queryParams: {
|
||||
|
||||
@ -23,7 +23,12 @@ export class PlatformAccountComponent implements OnInit {
|
||||
info: any = {};
|
||||
|
||||
static: any = {};
|
||||
constructor(public service: FreightAccountService, private router: Router, private nzModalService: NzModalService, public modal: NzModalService) { }
|
||||
constructor(
|
||||
public service: FreightAccountService,
|
||||
private router: Router,
|
||||
private nzModalService: NzModalService,
|
||||
public modal: NzModalService
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.loadInfo();
|
||||
@ -187,6 +192,7 @@ export class PlatformAccountComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '查看明细 ',
|
||||
acl: { ability: ['FINANCIAL-PLATFORM-view'] },
|
||||
click: item =>
|
||||
this.router.navigate(['/financial-management/platform-account/detail/' + item.id], {
|
||||
queryParams: { ltdId: item.ltdId, bankType: item.bankType, ltdName: `${item.ltdName}(${item.bankTypeLabel})` }
|
||||
@ -195,7 +201,7 @@ export class PlatformAccountComponent implements OnInit {
|
||||
{
|
||||
text: '提现',
|
||||
click: item => this.withdraw(item),
|
||||
iif: (_record) => _record.bankType !== '1'
|
||||
iif: _record => _record.bankType !== '1'
|
||||
},
|
||||
// {
|
||||
// text: '绑定银行卡',
|
||||
@ -204,8 +210,8 @@ export class PlatformAccountComponent implements OnInit {
|
||||
{
|
||||
text: '查看银行卡',
|
||||
click: item => this.viewBankcard(item),
|
||||
iif: (_record) => _record.bankType !== '1'
|
||||
},
|
||||
iif: _record => _record.bankType !== '1'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
@ -225,9 +231,8 @@ export class PlatformAccountComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
modalRef.afterOpen.subscribe(() => {});
|
||||
modalRef.afterClose.subscribe((result) => {
|
||||
modalRef.afterClose.subscribe(result => {
|
||||
if (result) this.st.reload();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@ -244,7 +249,7 @@ export class PlatformAccountComponent implements OnInit {
|
||||
}
|
||||
|
||||
exportList() {
|
||||
this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPlatformAccountBalanceByOperator,);
|
||||
this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPlatformAccountBalanceByOperator);
|
||||
}
|
||||
|
||||
// 提现
|
||||
@ -264,7 +269,6 @@ export class PlatformAccountComponent implements OnInit {
|
||||
// this.getSummary();
|
||||
// this.withdrawTable.refresh();
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -38,10 +38,10 @@ import { CwcBankCardManagementIndexComponent } from './components/bank-card-mana
|
||||
const routes: Routes = [
|
||||
{ path: 'freight-account', component: FreightAccountComponent, data: { guard: { ability: ['FINANCIAL-FREIGHT-ACOUNT-list'] } } },
|
||||
{ path: 'freight-account/detail/:id', component: FreightAccountDetailComponent },
|
||||
{ path: 'driver-account', component: DriverAccountComponent },
|
||||
{ path: 'driver-account/detail/:id', component: DriverAccountDetailComponent },
|
||||
{ path: 'platform-account', component: PlatformAccountComponent },
|
||||
{ path: 'platform-account/detail/:id', component: PlatformAccountDetailComponent },
|
||||
{ path: 'driver-account', component: DriverAccountComponent, data: { guard: { ability: ['FINANCIAL-DRIVER-ACOUNT-list'] } } },
|
||||
{ path: 'driver-account/detail/:id', component: DriverAccountDetailComponent, data: { guard: { ability: ['FINANCIAL-DRIVER-ACOUNT-DETAIL-view'] } } },
|
||||
{ path: 'platform-account', component: PlatformAccountComponent , data: { guard: { ability: ['FINANCIAL-PLATFORM-list'] } } },
|
||||
{ path: 'platform-account/detail/:id', component: PlatformAccountDetailComponent , data: { guard: { ability: ['FINANCIAL-PLATFORM-DETAIL-detail'] } } },
|
||||
{ path: 'recharge-record', component: RechargeRecordComponent },
|
||||
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent },
|
||||
{ path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
|
||||
|
||||
Reference in New Issue
Block a user