fix bug
This commit is contained in:
@ -610,7 +610,7 @@ export class CarSettleAddDriverComponent implements OnInit {
|
||||
if(JSON.stringify(params.userPracticeSeniorityDTO) === '{}') {
|
||||
params.userPracticeSeniorityDTO = null
|
||||
}
|
||||
this.service.request(this.service.$api_enterpriseVehicleSave, params).subscribe(res => {
|
||||
this.service.request(this.service.$api_driver_add, params).subscribe(res => {
|
||||
if(res){
|
||||
this.service.msgSrv.success('添加成功')
|
||||
this.modal.close(true)
|
||||
|
||||
@ -223,7 +223,6 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
observer.complete();
|
||||
});
|
||||
},
|
||||
previewFile: (file: any) => { }
|
||||
},
|
||||
default: this.detailData.identityInfoDTO.certificatePhotoFrontWatermark
|
||||
},
|
||||
@ -274,7 +273,6 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
observer.complete();
|
||||
});
|
||||
},
|
||||
previewFile: (file: any) => { }
|
||||
},
|
||||
default: this.detailData.identityInfoDTO.certificatePhotoBackWatermark
|
||||
},
|
||||
@ -361,8 +359,8 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
mobile: this.sf.value.mobile,
|
||||
remark: this.sf.value.remark,
|
||||
identityInfoDTO: {
|
||||
certificatePhotoBackWatermark: this.sf.value.certificatePhotoBackWatermark,
|
||||
certificatePhotoFrontWatermark: this.sf.value.certificatePhotoFrontWatermark,
|
||||
certificatePhotoBackWatermark: this.sf.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoBackWatermark,
|
||||
certificatePhotoFrontWatermark: this.sf.value?.certificatePhotoFrontWatermark?.data?.fullFilePath ||this.sf.value?.certificatePhotoFrontWatermark,
|
||||
certificatePhotoFront: this.detailData.certificatePhotoFront,
|
||||
certificatePhotoBack: this.detailData.certificatePhotoBack,
|
||||
certificateNumber: this.sf.value.certificateNumber,
|
||||
@ -373,7 +371,7 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
params.id = this.i.id
|
||||
}
|
||||
delete params.showName
|
||||
this.service.request(this.service.$api_saveCaptainr, params).subscribe(res => {
|
||||
this.service.request(this.service.$api_saveCaptainr_new, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('保存成功')
|
||||
this.modal.close(true)
|
||||
|
||||
Reference in New Issue
Block a user