车辆接口更新
This commit is contained in:
		| @ -9,7 +9,7 @@ | ||||
| <nz-card class="search-box"> | ||||
|     <div nz-row> | ||||
|         <div nz-col nzSpan="24"> | ||||
|             <se-container col="3" labelWidth=100> | ||||
|             <se-container col="3" labelWidth=100 *ngIf="!textStatus"> | ||||
|                 <se-title class="mb-md" style="font-size:18px">基本信息(应收费用)</se-title> | ||||
|                 <se label="网络货运人" required> | ||||
|                     {{costInfo?.ltdid}} | ||||
| @ -36,7 +36,7 @@ | ||||
|                     {{costInfo?.arbrmmoney}} | ||||
|                 </se> | ||||
|             </se-container> | ||||
|             <se-container col="3" labelWidth=100 class="mt-md"> | ||||
|             <se-container col="3" labelWidth=100 *ngIf="textStatus" class="mt-md"> | ||||
|                 <se-title class="mb-md" style="font-size:18px">基本信息(应付费用)</se-title> | ||||
|                 <se label="网络货运人" required> | ||||
|                     {{costInfo?.ltdid}} | ||||
| @ -88,7 +88,7 @@ | ||||
|             </st> | ||||
|         </nz-tab> | ||||
|         <nz-tab nzTitle="收款信息"> | ||||
|             <st #st [data]="data" [columns]="columns.collection" [page]="{ show: false}" | ||||
|             <st #st [data]="costInfo?.ficoAhxLList" [columns]="columns.collection" [page]="{ show: false}" | ||||
|                 [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '370px' }"></st> | ||||
|         </nz-tab> | ||||
|         <nz-tab nzTitle="收票信息"> | ||||
| @ -96,7 +96,7 @@ | ||||
|                 [scroll]="{ x:'1200px',y: '370px' }"></st> | ||||
|         </nz-tab> | ||||
|         <nz-tab nzTitle="付款信息"> | ||||
|             <st #st [data]="data" [columns]="columns.payment" [page]="{ show: false}" [loading]="service.http.loading" | ||||
|             <st #st [data]="costInfo?.ficoPhxLList" [columns]="columns.payment" [page]="{ show: false}" [loading]="service.http.loading" | ||||
|                 [scroll]="{ x:'1200px',y: '370px' }"></st> | ||||
|         </nz-tab> | ||||
|     </nz-tabset> | ||||
|  | ||||
| @ -14,14 +14,21 @@ export class CostManagementDetailComponent implements OnInit { | ||||
|   columns: { [key: string]: STColumn[] } = this.initST(); | ||||
|  | ||||
|   data = []; | ||||
|  | ||||
|   textStatus: boolean = false | ||||
|   costInfo: any = {}; | ||||
|   constructor(public service: FreightAccountService, private route: ActivatedRoute) { | ||||
|     const id = route.snapshot.params.id; | ||||
|     this.loadDetail(id); | ||||
|   } | ||||
|  | ||||
|   ngOnInit(): void {} | ||||
|   ngOnInit(): void { | ||||
|     console.log(this.route.snapshot?.queryParams?.status) | ||||
|     if(this.route.snapshot?.queryParams?.status === '应收') { | ||||
|       this.textStatus = false | ||||
|     } else { | ||||
|       this.textStatus = true | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   loadDetail(id: any) { | ||||
|     this.service.request(this.service.$api_get_cost_detail, { id }).subscribe(res => { | ||||
|  | ||||
| @ -91,7 +91,7 @@ export class CostManagementComponent implements OnInit { | ||||
|     this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); | ||||
|   } | ||||
|  | ||||
|   routeTo(url: string, params?: any) { | ||||
|   routeTo(url: string, params?: any,status?: any) { | ||||
|     this.router.navigate([url], { queryParams: params }); | ||||
|   } | ||||
|  | ||||
| @ -272,7 +272,7 @@ export class CostManagementComponent implements OnInit { | ||||
|         buttons: [ | ||||
|           { | ||||
|             text: '浏览', | ||||
|             click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id) | ||||
|             click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id , {status : item?.feetypeLabel}) | ||||
|           }, | ||||
|           { | ||||
|             text: '审核 ', | ||||
|  | ||||
		Reference in New Issue
	
	Block a user