diff --git a/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.html b/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.html index bf3c0f28..7f2b3e8e 100644 --- a/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.html +++ b/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.html @@ -9,7 +9,7 @@
- + 基本信息(应收费用) {{costInfo?.ltdid}} @@ -36,7 +36,7 @@ {{costInfo?.arbrmmoney}} - + 基本信息(应付费用) {{costInfo?.ltdid}} @@ -88,7 +88,7 @@ - @@ -96,7 +96,7 @@ [scroll]="{ x:'1200px',y: '370px' }"> - diff --git a/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.ts b/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.ts index 6ca75378..eb00bd46 100644 --- a/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.ts +++ b/src/app/routes/financial-management/components/cost-management/cost-management-detail/cost-management-detail.component.ts @@ -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 => { diff --git a/src/app/routes/financial-management/components/cost-management/cost-management.component.ts b/src/app/routes/financial-management/components/cost-management/cost-management.component.ts index c361456b..3032311c 100644 --- a/src/app/routes/financial-management/components/cost-management/cost-management.component.ts +++ b/src/app/routes/financial-management/components/cost-management/cost-management.component.ts @@ -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: '审核 ',