This commit is contained in:
wangshiming
2022-03-03 14:13:13 +08:00
parent 2e5164fe3c
commit d1fa642b83
3 changed files with 41 additions and 21 deletions

View File

@ -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) => {