车辆对接

This commit is contained in:
wangshiming
2022-01-13 11:05:27 +08:00
parent 91ab995e44
commit b8a8526d54
4 changed files with 22 additions and 8 deletions

View File

@ -17,7 +17,7 @@
<button nz-button (click)="assignedCar(i)"
*ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'">重新指派</button>
<button nz-button (click)="updateGoodsSource(i)" *ngIf="i?.resourceStatus === '1'">修改货源</button>
<button nz-button nzType="primary" nzGhost (click)="placeOrder(i)">再下一单</button>
<button nz-button nzType="primary" nzGhost (click)="nextOrder(i)">再下一单</button>
</div>
</div>
<div class="mt-sm mb-sm" nz-row>

View File

@ -142,22 +142,33 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
}
/**
* 重新指派
*/
* 重新指派
*/
assignedCar(item: any) {
const { id } = item;
console.log(id)
const modalRef = this.modal.create({
nzTitle: '指派熟车',
nzWidth: '1200px',
nzContent: SupplyManagementVehicleAssignedCarComponent,
nzComponentParams: {
i: item,
status: 'anew',
params: { id },
url: this.service.$api_save_assign_vehicle,
},
nzFooter: null,
});
modalRef.afterClose.subscribe((result) => {
if (result) {
this.getGoodsSourceDetail();
}
});
}
nextOrder(item: any) {
this.router.navigate(['/supply-management/vehicle-amend', item.id], {
queryParams: {
sta: 2
}
});
}