车辆对接

This commit is contained in:
wangshiming
2022-01-06 14:57:46 +08:00
parent 9f13a0a263
commit c83c1e7a8e
4 changed files with 24 additions and 16 deletions

View File

@ -1,3 +1,11 @@
<!--
* @Author: your name
* @Date: 2021-12-03 11:10:14
* @LastEditTime: 2022-01-06 14:55:47
* @LastEditors: your name
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\assigned-car\assigned-car.component.html
-->
<div> <div>
<div nz-row> <div nz-row>
<div nz-col nzSpan="18"> <div nz-col nzSpan="18">

View File

@ -117,7 +117,7 @@ export class SupplyManagementVehicleAssignedCarComponent implements OnInit {
if (this.selectedRows) { if (this.selectedRows) {
const { carId, appUserId: driverId, captainAppUserId: carCaptainId } = this.selectedRows; const { carId, appUserId: driverId, captainAppUserId: carCaptainId } = this.selectedRows;
const params: any = { carId, driverId, carCaptainId }; const params: any = { carId, driverId, carCaptainId };
this.service.request(this.service.$api_save_assign_bulk, { ...params, ...this.params }).subscribe((res: any) => { this.service.request(this.url, { ...params, ...this.params }).subscribe((res: any) => {
if (res) { if (res) {
this.modal.close(res); this.modal.close(res);
} }

View File

@ -143,21 +143,18 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
/** /**
* 重新指派 * 重新指派
*/ */
assignedCar(item: any) { assignedCar(item: any) {
const { resourceId } = item;
const modalRef = this.modal.create({ const modalRef = this.modal.create({
nzTitle: '指派熟车', nzTitle: '指派熟车',
nzWidth: '1200px', nzWidth: '1200px',
nzContent: SupplyManagementVehicleAssignedCarComponent, nzContent: SupplyManagementVehicleAssignedCarComponent,
nzComponentParams: { nzComponentParams: {
i: item, 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) { if (result) {
this.getGoodsSourceDetail(); this.getGoodsSourceDetail();
} }

View File

@ -157,27 +157,30 @@ export class SupplyManagementVehicleComponent implements OnInit {
/** /**
* 重新指派 * 重新指派
*/ */
assignedCar(item: any) { /**
const { resourceId } = item; * 重新指派
*/
assignedCar(item: any) {
const { id } = item;
const modalRef = this.modal.create({ const modalRef = this.modal.create({
nzTitle: '指派熟车', nzTitle: '指派熟车',
nzWidth: '1200px', nzWidth: '1200px',
nzContent: SupplyManagementVehicleAssignedCarComponent, nzContent: SupplyManagementVehicleAssignedCarComponent,
nzComponentParams: { nzComponentParams: {
i: item, i: item,
status: 'anew', status: 'anew',
params: { id },
url: this.service.$api_save_assign_vehicle, url: this.service.$api_save_assign_vehicle,
params: { resourceId }
}, },
nzFooter: null nzFooter: null,
}); });
modalRef.afterClose.subscribe(result => { modalRef.afterClose.subscribe((result) => {
if (result) { if (result) {
this.st.reload(); this.st.reload();
} }
}); });
} }
/** /**
* 审核 * 审核
*/ */