车辆对接
This commit is contained in:
@ -134,10 +134,11 @@ export class SupplyManagementBulkDetailComponent implements OnInit {
|
||||
* @param record
|
||||
*/
|
||||
placeOrder(record: any) {
|
||||
this.router.navigate(['./pbg/onecar-publish'], {
|
||||
console.log(record)
|
||||
this.router.navigate(['/supply-management/bulk-amend', record.id], {
|
||||
queryParams: {
|
||||
id: record?.id
|
||||
}
|
||||
sta: 4
|
||||
},
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
||||
@ -82,12 +82,11 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
||||
* 修改货源
|
||||
*/
|
||||
updateGoodsSource(record: any) {
|
||||
this.router.navigate(['./pbg/onecar-publish'], {
|
||||
this.router.navigate(['/supply-management/vehicle-amend', record.id], {
|
||||
queryParams: {
|
||||
id: record?.id,
|
||||
type: 'edit'
|
||||
sta: 1
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -140,23 +139,25 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
||||
* 重新指派
|
||||
*/
|
||||
assignedCar(item: any) {
|
||||
const { resourceId } = item;
|
||||
const modalRef = this.modal.create({
|
||||
nzTitle: '指派熟车',
|
||||
nzWidth: '1200px',
|
||||
nzContent: SupplyManagementVehicleAssignedCarComponent,
|
||||
nzContent: SupplyManagementVehicleAssignedCarComponent,
|
||||
nzComponentParams: {
|
||||
i: item,
|
||||
status: 'anew',
|
||||
url: this.service.$api_save_assign_vehicle,
|
||||
params: { resourceId }
|
||||
},
|
||||
nzFooter: null,
|
||||
|
||||
nzFooter: null
|
||||
});
|
||||
modalRef.afterClose.subscribe((result) => {
|
||||
modalRef.afterClose.subscribe(result => {
|
||||
if (result) {
|
||||
this.getGoodsSourceDetail();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
goBack() {
|
||||
window.history.go(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user