This commit is contained in:
wangshiming
2022-03-03 14:27:42 +08:00
parent 9afb89b82b
commit 23b0512e9c
3 changed files with 123 additions and 98 deletions

View File

@ -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, );
}
});
}