车辆对接

This commit is contained in:
wangshiming
2022-01-05 21:02:22 +08:00
parent f4e924e314
commit d7ee2f56cf
9 changed files with 256 additions and 45 deletions

View File

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

View File

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