This commit is contained in:
TaricXin
2022-03-15 11:21:57 +08:00
parent 9e473d2116
commit 4aadbec7cc
2 changed files with 9 additions and 11 deletions

View File

@ -1,9 +1,9 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { Component, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st';
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
import { NzModalService } from 'ng-zorro-antd/modal';
import { AccountDetailComponent } from 'src/app/shared/components/account-detail/account-detail.component';
import { FreightAccountService } from '../../services/freight-account.service';
@Component({
@ -11,7 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service';
templateUrl: './advance-collection.component.html',
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
})
export class AdvanceCollectionComponent implements OnInit {
export class AdvanceCollectionComponent {
@ViewChild('st', { static: true })
st!: STComponent;
@ViewChild('sf', { static: false })
@ -23,8 +23,6 @@ export class AdvanceCollectionComponent implements OnInit {
constructor(public service: FreightAccountService, private router: Router, private modal: NzModalService) {}
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
Object.assign(requestOptions.body, { ...this.sf.value });
@ -49,7 +47,7 @@ export class AdvanceCollectionComponent implements OnInit {
}
exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
}
private initSF(): SFSchema {
@ -149,8 +147,8 @@ export class AdvanceCollectionComponent implements OnInit {
buttons: [
{
text: '浏览',
click: item => this.router.navigate(['/financial-management/advance-collection/detail/' + item.id])
},
click: item => this.router.navigate([`/financial-management/advance-collection/detail/${item.id}`])
}
// {
// text: '核销'
// },