车辆对接
This commit is contained in:
@ -710,13 +710,13 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
// 打开下单完成页面
|
||||
openFinishPage(resourceObj: any = null) {
|
||||
openFinishPage(resourceObj: any = null, change?: any) {
|
||||
this.modalService.create({
|
||||
nzTitle: '',
|
||||
nzContent: PublishSuccessComponent,
|
||||
nzWidth: 900,
|
||||
nzFooter: null,
|
||||
nzComponentParams: { type: 'onecar', resourceObj }
|
||||
nzComponentParams: { type: 'onecar', resourceObj , change: change}
|
||||
});
|
||||
}
|
||||
// 提交前确认,委托运输协议弹窗
|
||||
@ -808,9 +808,9 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
if (this.PageStatus === '整车修改') {
|
||||
this.requests(this.service.$api_set_WholeModify, params);
|
||||
this.requests(this.service.$api_set_WholeModify, params, 1);
|
||||
} else if (this.PageStatus === '整车下一单') {
|
||||
this.requests(this.service.$api_set_saveAnotherWholeOrder, params);
|
||||
this.requests(this.service.$api_set_saveAnotherWholeOrder, params,2);
|
||||
}
|
||||
}
|
||||
addPreZero(num: any) {
|
||||
@ -821,7 +821,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
// 下单成功提示弹窗
|
||||
requests(url: any, params: any) {
|
||||
requests(url: any, params: any, change?: any) {
|
||||
this.service.request(url, params).subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.modalService.create({
|
||||
@ -829,7 +829,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
nzContent: PublishSuccessComponent,
|
||||
nzWidth: 900,
|
||||
nzFooter: null,
|
||||
nzComponentParams: { type: 'onecar' }
|
||||
nzComponentParams: { type: 'onecar', change: change }
|
||||
});
|
||||
} else {
|
||||
this.service.msgSrv.error(res.msg);
|
||||
|
||||
Reference in New Issue
Block a user