This commit is contained in:
Taric Xin
2022-01-11 17:58:18 +08:00
parent 4c73584af7
commit 9d8da4f37e
4 changed files with 23 additions and 4 deletions

View File

@ -225,8 +225,7 @@
</se> </se>
<se [col]="1" label="网络货运人" required> <se [col]="1" label="网络货运人" required>
<nz-select nzPlaceHolder="请选择" [(ngModel)]="networkTransporter"> <nz-select nzPlaceHolder="请选择" [(ngModel)]="networkTransporter">
<nz-option [nzValue]="1" nzLabel="Jack"></nz-option> <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of ltdId"></nz-option>
<nz-option [nzValue]="2" nzLabel="Lucy"></nz-option>
</nz-select> </nz-select>
</se> </se>
</div> </div>

View File

@ -48,6 +48,7 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
disabledUpload = false; disabledUpload = false;
values: string[] | null = null; values: string[] | null = null;
ltdId: any[] = [];
constructor(private nzModalService: NzModalService, public service: UsermanageService, private route: ActivatedRoute) {} constructor(private nzModalService: NzModalService, public service: UsermanageService, private route: ActivatedRoute) {}
ngOnInit() { ngOnInit() {
@ -55,6 +56,14 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
// this.launchSign(); // this.launchSign();
} }
loadltdId() {
this.service.getNetworkFreightForwarder().subscribe(res => {
if (res) {
this.ltdId = res;
}
});
}
initData() { initData() {
this.service this.service
.request(this.service.$api_get_freight_detail, { .request(this.service.$api_get_freight_detail, {

View File

@ -298,8 +298,7 @@
</se> </se>
<se [col]="1" label="网络货运人" required> <se [col]="1" label="网络货运人" required>
<nz-select nzPlaceHolder="请选择" [(ngModel)]="networkTransporter"> <nz-select nzPlaceHolder="请选择" [(ngModel)]="networkTransporter">
<nz-option [nzValue]="1" nzLabel="Jack"></nz-option> <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of ltdId"></nz-option>
<nz-option [nzValue]="2" nzLabel="Lucy"></nz-option>
</nz-select> </nz-select>
</se> </se>
</div> </div>

View File

@ -29,6 +29,7 @@ export class FreightComponentsListDetailComponent implements OnInit {
uploadURl = apiConf.waterFileUpload; uploadURl = apiConf.waterFileUpload;
disabledUpload = false; disabledUpload = false;
enterpriseAddressCode: any = []; enterpriseAddressCode: any = [];
ltdId: any = [];
approvalOpinion = ''; approvalOpinion = '';
networkTransporter = null; networkTransporter = null;
@ -41,7 +42,18 @@ export class FreightComponentsListDetailComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.initData(); this.initData();
this.loadltdId();
} }
loadltdId() {
this.service.getNetworkFreightForwarder().subscribe(res => {
if (res) {
this.ltdId = res;
console.log(this.ltdId );
}
});
}
initData() { initData() {
this.service this.service
.request(this.service.$api_get_freight_detail, { .request(this.service.$api_get_freight_detail, {