fix bug
This commit is contained in:
@ -58,10 +58,10 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
totalTime = 0.0; //路程总时间
|
||||
currentRate = 0; //实时计算的费率
|
||||
id = this.route.snapshot.params.id;
|
||||
// // 单位
|
||||
startInfo: any = []; // 发货地数据
|
||||
endInfo: any = []; // 卸货地数据
|
||||
PageStatus = '';
|
||||
shipperName = '';
|
||||
changeSub = new Subject<string>();
|
||||
envCache: any;
|
||||
enterpriseProjectIds: any;
|
||||
@ -163,10 +163,11 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
return of([]);
|
||||
}
|
||||
},
|
||||
change: (q: any) => {
|
||||
change: (q: any, qs: any) => {
|
||||
let str = q.replace(/^\s+|\s+$/g, '');
|
||||
if (str) {
|
||||
this.getRegionCode(str);
|
||||
this.shipperName = qs?.label;
|
||||
this.payChange();
|
||||
}
|
||||
}
|
||||
@ -1003,7 +1004,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
nzContent: TranAgreementComponent,
|
||||
nzWidth: 900,
|
||||
nzFooter: null,
|
||||
nzComponentParams: { Object: params }
|
||||
nzComponentParams: { object: params, shipperName: this.shipperName }
|
||||
});
|
||||
modalRef.afterClose.subscribe(result => {
|
||||
if (result) {
|
||||
@ -1102,6 +1103,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
// 初始化赋值信息函数
|
||||
dataR(res: any) {
|
||||
if (res?.shipperAppUserName) {
|
||||
this.shipperName = res?.shipperAppUserName;
|
||||
const List: any = [];
|
||||
this.service.request(this.service.$api_enterpriceList, { enterpriseName: res?.shipperAppUserName }).subscribe(rs => {
|
||||
rs?.forEach((element: any) => {
|
||||
|
||||
Reference in New Issue
Block a user