This commit is contained in:
Taric Xin
2022-04-28 15:11:17 +08:00
parent 18378cc8a2
commit 71c2b709df
3 changed files with 19 additions and 14 deletions

View File

@ -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: {

View File

@ -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'
}
]
}
];
@ -224,10 +230,9 @@ export class PlatformAccountComponent implements OnInit {
i: item
}
});
modalRef.afterOpen.subscribe(() => { });
modalRef.afterClose.subscribe((result) => {
modalRef.afterOpen.subscribe(() => {});
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();
}
})
});
}
}

View File

@ -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 },