diff --git a/src/app/routes/vehicle/components/list/carauth/carauth.component.ts b/src/app/routes/vehicle/components/list/carauth/carauth.component.ts index 29126791..16e43dcc 100644 --- a/src/app/routes/vehicle/components/list/carauth/carauth.component.ts +++ b/src/app/routes/vehicle/components/list/carauth/carauth.component.ts @@ -634,14 +634,14 @@ export class CarSettleCarauthComponent implements OnInit { params.certificatePhotoFront = this.detailData.certificatePhotoFront; params.certificatePhotoBack = this.detailData.certificatePhotoBack; params.roadTransportPhoto = this.detailData.roadTransportPhoto; - params.carFrontPhotoWatermark = this.sf.value.carFrontPhotoWatermark.data.fullFilePath - params.carProtocalWatermark = this.sf.value.carProtocalWatermark.data.fullFilePath - params.certificatePhotoBackWatermark = this.sf.value.certificatePhotoBackWatermark.data.fullFilePath - params.certificatePhotoFrontWatermark = this.sf.value.certificatePhotoFrontWatermark.data.fullFilePath - params.roadTransportPhotoWatermark = this.sf.value.roadTransportPhotoWatermark.data.fullFilePath + params.carFrontPhotoWatermark = this.sf.value.carFrontPhotoWatermark?.data?.fullFilePath || this.sf.value.carFrontPhotoWatermark + params.carProtocalWatermark = this.sf.value.carProtocalWatermark?.data?.fullFilePath || this.sf.value.carProtocalWatermark + params.certificatePhotoBackWatermark = this.sf.value.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value.certificatePhotoBackWatermark + params.certificatePhotoFrontWatermark = this.sf.value.certificatePhotoFrontWatermark?.data?.fullFilePath || this.sf.value.certificatePhotoFrontWatermark + params.roadTransportPhotoWatermark = this.sf.value.roadTransportPhotoWatermark?.data?.fullFilePath || this.sf.value.roadTransportPhotoWatermark delete params.titleA; delete params.titleB; - this.service.request(this.service.$api_saveUpdateShipperCar, params).subscribe(res => { + this.service.request(this.service.$api_addOrUpdateCarLicenseInfo, params).subscribe(res => { if (res) { this.service.msgSrv.success('添加成功'); this.modal.close(true); diff --git a/src/app/routes/vehicle/services/vehicle.service.ts b/src/app/routes/vehicle/services/vehicle.service.ts index f82bc175..2e95a0e3 100644 --- a/src/app/routes/vehicle/services/vehicle.service.ts +++ b/src/app/routes/vehicle/services/vehicle.service.ts @@ -1,10 +1,10 @@ /* * @Author: your name * @Date: 2021-11-29 15:22:34 - * @LastEditTime: 2022-01-14 15:02:51 - * @LastEditors: Please set LastEditors + * @LastEditTime : 2022-02-17 15:38:07 + * @LastEditors : Shiming * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE - * @FilePath: \tms-obc-web\src\app\routes\usercenter\services\usercenter.service.ts + * @FilePath : \\tms-obc-web\\src\\app\\routes\\vehicle\\services\\vehicle.service.ts */ import { Injectable, Injector } from '@angular/core'; import { _HttpClient } from '@delon/theme'; @@ -64,6 +64,8 @@ export class VehicleService extends BaseService { $api_recognizeVehicleLicense = '/api/mdc/pbc/hwc/ocr/recognizeVehicleLicense'; // 保存货主车辆关联表 $api_saveUpdateShipperCar = '/api/mdc/shipperCar/saveUpdateShipperCar'; + // 添加车辆信息 + $api_addOrUpdateCarLicenseInfo = '/api/mdc/cuc/carLicenseAudit/operate/addOrUpdateCarLicenseInfo'; constructor(public injector: Injector) { super(injector); }