fix bug
This commit is contained in:
@ -51,7 +51,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
||||
totalDistance = 0.0; //总里程
|
||||
totalTime = 0.0; //路程总时间
|
||||
currentRate = 0; //实时计算的费率
|
||||
shipperAppName = '';
|
||||
shipperName = '';
|
||||
constructor(
|
||||
private http: _HttpClient,
|
||||
fb: FormBuilder,
|
||||
@ -157,12 +157,11 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
||||
return of([]);
|
||||
}
|
||||
},
|
||||
change: (q: any, qq: any) => {
|
||||
change: (q: any, qs: any) => {
|
||||
let str = q.replace(/^\s+|\s+$/g, '');
|
||||
if (str) {
|
||||
console.log(qq)
|
||||
this.getRegionCode(str);
|
||||
this.shipperAppName = qq;
|
||||
this.shipperName = qs?.label;
|
||||
this.payChange();
|
||||
}
|
||||
}
|
||||
@ -980,11 +979,11 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
||||
nzContent: TranAgreementComponent,
|
||||
nzWidth: 900,
|
||||
nzFooter: null,
|
||||
nzComponentParams: { object: params }
|
||||
nzComponentParams: { object: params ,shipperName: this.shipperName}
|
||||
});
|
||||
modalRef.afterClose.subscribe(result => {
|
||||
if (result) {
|
||||
this.submit(submitType, params);
|
||||
this.submit(submitType, params, );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user