车辆对接

This commit is contained in:
wangshiming
2022-01-06 13:32:11 +08:00
parent 7609178295
commit 1ced203cb9
2 changed files with 12 additions and 10 deletions

View File

@ -117,7 +117,7 @@ export class SupplyManagementVehicleAssignedCarComponent implements OnInit {
if (this.selectedRows) {
const { carId, appUserId: driverId, captainAppUserId: carCaptainId } = this.selectedRows;
const params: any = { carId, driverId, carCaptainId };
this.service.request(this.url, { ...params, ...this.params }).subscribe((res: any) => {
this.service.request(this.service.$api_save_assign_bulk, { ...params, ...this.params }).subscribe((res: any) => {
if (res) {
this.modal.close(res);
}
@ -150,7 +150,11 @@ export class SupplyManagementVehicleAssignedCarComponent implements OnInit {
modalOptions: { nzMaskClosable: false, nzTitle: '设置' }
}
).subscribe((res) => {
if (res) this.st.reload();
if (res) {
item.captainName = res?.name;
item.captainPhone = res?.mobile;
item.captainAppUserId = res?.appUserId;
}
});
}