edit
This commit is contained in:
		| @ -21,7 +21,7 @@ | ||||
|                     {{ costInfo?.artoname }} | ||||
|                 </se> | ||||
|                 <se label="结算客户" required> | ||||
|                     {{ costInfo?.shipperId }} | ||||
|                     {{ costInfo?.cnoName }} | ||||
|                 </se> | ||||
|                 <se label="收款账户"> | ||||
|                     {{ costInfo?.ltdaccountId }} | ||||
| @ -75,8 +75,8 @@ | ||||
|             </div> --> | ||||
|             <st #infoST [scroll]="{ x: '2000px' }" [data]="service.$api_get_advance_collection_hrxiao" | ||||
|                 [columns]="columns.info" [page]="{ show: false }" [req]="{  process: beforeReq }" | ||||
|                 [res]="{ reName: { list: 'data' } }" [loading]="false" | ||||
|                 [scroll]="{ x: '1200px', y: '370px' }" class="mt-md"> | ||||
|                 [res]="{ reName: { list: 'data' } }" [loading]="false" [scroll]="{ x: '1200px', y: '370px' }" | ||||
|                 class="mt-md"> | ||||
|                 <ng-template st-row="no" let-item let-index="index" let-column="column"> | ||||
|                     {{index+1}} | ||||
|                 </ng-template> | ||||
|  | ||||
| @ -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: '核销' | ||||
|           // }, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user