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 { Router } from '@angular/router';
|
||||||
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
||||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
|
|
||||||
import { FreightAccountService } from '../../services/freight-account.service';
|
import { FreightAccountService } from '../../services/freight-account.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -10,7 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
|||||||
templateUrl: './withdrawals-record.component.html',
|
templateUrl: './withdrawals-record.component.html',
|
||||||
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
||||||
})
|
})
|
||||||
export class WithdrawalsRecordComponent implements OnInit {
|
export class WithdrawalsRecordComponent {
|
||||||
@ViewChild('st', { static: true })
|
@ViewChild('st', { static: true })
|
||||||
st!: STComponent;
|
st!: STComponent;
|
||||||
@ViewChild('sf', { static: false })
|
@ViewChild('sf', { static: false })
|
||||||
@ -27,9 +28,8 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
refundStatus: any = '';
|
refundStatus: any = '';
|
||||||
|
|
||||||
msg = '';
|
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) => {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
if (this.sf) {
|
if (this.sf) {
|
||||||
@ -66,7 +66,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
|
|
||||||
auditAction(item?: any) {
|
auditAction(item?: any) {
|
||||||
this.msg = '';
|
this.msg = '';
|
||||||
let params: Array<string> = [];
|
let params: string[] = [];
|
||||||
if (item) {
|
if (item) {
|
||||||
params = [item.id];
|
params = [item.id];
|
||||||
} else {
|
} else {
|
||||||
@ -78,6 +78,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
nzFooter: [
|
nzFooter: [
|
||||||
{
|
{
|
||||||
label: '拒绝',
|
label: '拒绝',
|
||||||
|
loading: () => this.service.http.loading,
|
||||||
type: 'default',
|
type: 'default',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
if (!this.msg) {
|
if (!this.msg) {
|
||||||
@ -101,6 +102,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '通过',
|
label: '通过',
|
||||||
|
loading: () => this.service.http.loading,
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
this.service
|
this.service
|
||||||
@ -291,7 +293,7 @@ export class WithdrawalsRecordComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '详情',
|
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