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