车辆接口更新

This commit is contained in:
wangshiming
2022-01-18 20:02:26 +08:00
parent ca2e639b77
commit 7a7af4f763
3 changed files with 15 additions and 8 deletions

View File

@ -9,7 +9,7 @@
<nz-card class="search-box"> <nz-card class="search-box">
<div nz-row> <div nz-row>
<div nz-col nzSpan="24"> <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-title class="mb-md" style="font-size:18px">基本信息(应收费用)</se-title>
<se label="网络货运人" required> <se label="网络货运人" required>
{{costInfo?.ltdid}} {{costInfo?.ltdid}}
@ -36,7 +36,7 @@
{{costInfo?.arbrmmoney}} {{costInfo?.arbrmmoney}}
</se> </se>
</se-container> </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-title class="mb-md" style="font-size:18px">基本信息(应付费用)</se-title>
<se label="网络货运人" required> <se label="网络货运人" required>
{{costInfo?.ltdid}} {{costInfo?.ltdid}}
@ -88,7 +88,7 @@
</st> </st>
</nz-tab> </nz-tab>
<nz-tab nzTitle="收款信息"> <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> [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '370px' }"></st>
</nz-tab> </nz-tab>
<nz-tab nzTitle="收票信息"> <nz-tab nzTitle="收票信息">
@ -96,7 +96,7 @@
[scroll]="{ x:'1200px',y: '370px' }"></st> [scroll]="{ x:'1200px',y: '370px' }"></st>
</nz-tab> </nz-tab>
<nz-tab nzTitle="付款信息"> <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> [scroll]="{ x:'1200px',y: '370px' }"></st>
</nz-tab> </nz-tab>
</nz-tabset> </nz-tabset>

View File

@ -14,14 +14,21 @@ export class CostManagementDetailComponent implements OnInit {
columns: { [key: string]: STColumn[] } = this.initST(); columns: { [key: string]: STColumn[] } = this.initST();
data = []; data = [];
textStatus: boolean = false
costInfo: any = {}; costInfo: any = {};
constructor(public service: FreightAccountService, private route: ActivatedRoute) { constructor(public service: FreightAccountService, private route: ActivatedRoute) {
const id = route.snapshot.params.id; const id = route.snapshot.params.id;
this.loadDetail(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) { loadDetail(id: any) {
this.service.request(this.service.$api_get_cost_detail, { id }).subscribe(res => { this.service.request(this.service.$api_get_cost_detail, { id }).subscribe(res => {

View File

@ -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 }); 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 }); this.router.navigate([url], { queryParams: params });
} }
@ -272,7 +272,7 @@ export class CostManagementComponent implements OnInit {
buttons: [ buttons: [
{ {
text: '浏览', 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: '审核 ', text: '审核 ',