edit
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { Component, ViewChild } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
|
||||
import { FreightAccountService } from '../../services/freight-account.service';
|
||||
|
||||
@Component({
|
||||
@ -10,7 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
||||
templateUrl: './withdrawals-record.component.html',
|
||||
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
||||
})
|
||||
export class WithdrawalsRecordComponent implements OnInit {
|
||||
export class WithdrawalsRecordComponent {
|
||||
@ViewChild('st', { static: true })
|
||||
st!: STComponent;
|
||||
@ViewChild('sf', { static: false })
|
||||
@ -27,9 +28,8 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
refundStatus: any = '';
|
||||
|
||||
msg = '';
|
||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
@ -66,7 +66,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
|
||||
auditAction(item?: any) {
|
||||
this.msg = '';
|
||||
let params: Array<string> = [];
|
||||
let params: string[] = [];
|
||||
if (item) {
|
||||
params = [item.id];
|
||||
} else {
|
||||
@ -78,6 +78,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
nzFooter: [
|
||||
{
|
||||
label: '拒绝',
|
||||
loading: () => this.service.http.loading,
|
||||
type: 'default',
|
||||
onClick: () => {
|
||||
if (!this.msg) {
|
||||
@ -101,6 +102,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
label: '通过',
|
||||
loading: () => this.service.http.loading,
|
||||
type: 'primary',
|
||||
onClick: () => {
|
||||
this.service
|
||||
@ -291,7 +293,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '详情',
|
||||
click: item => this.router.navigate(['/financial-management/withdrawals-record/detail/' + item.id])
|
||||
click: item => this.router.navigate([`/financial-management/withdrawals-record/detail/${item.id}`])
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user