This commit is contained in:
wangshiming
2022-02-16 09:49:36 +08:00
parent db43513998
commit 6857f9a9da
4 changed files with 29 additions and 12 deletions

View File

@ -105,6 +105,7 @@ export class CarSettleAddDriverComponent implements OnInit {
listType: 'picture-card',
change: (args: any) => {
if (args.type === 'success') {
console.log(args.file.response.data.fullFilePath)
this.detailData.certificatePhotoFront = args.file.response.data.fullFilePath
this.checkIdCard(args.file.response.data.fullFilePath, 'front', 0);
}
@ -121,7 +122,8 @@ export class CarSettleAddDriverComponent implements OnInit {
observer.complete();
});
},
previewFile: (file: NzUploadFile) => of(file.url),}
// previewFile: (file: NzUploadFile) => of(file.url),
}
},
tipsB: {
title: '',
@ -168,7 +170,8 @@ export class CarSettleAddDriverComponent implements OnInit {
observer.complete();
});
},
previewFile: (file: NzUploadFile) => of(file.url),}
// previewFile: (file: NzUploadFile) => of(file.url),
}
},
name: {
title: '姓名',
@ -272,7 +275,8 @@ export class CarSettleAddDriverComponent implements OnInit {
observer.complete();
});
},
previewFile: (file: NzUploadFile) => of(file.url),}
// previewFile: (file: NzUploadFile) => of(file.url),
}
},
licenseNo: {
title: '驾驶证号',
@ -394,7 +398,8 @@ export class CarSettleAddDriverComponent implements OnInit {
observer.complete();
});
},
previewFile: (file: NzUploadFile) => of(file.url),}
// previewFile: (file: NzUploadFile) => of(file.url),
}
},
licenseNo: {
title: '从业资格证号',
@ -565,22 +570,29 @@ export class CarSettleAddDriverComponent implements OnInit {
this.showJopFlag = !this.showJopFlag
}
submitForm(){
const items: any = this.sf.value
items.certificatePhotoFrontWatermark = this.sf.value?.certificatePhotoFrontWatermark.data.fullFilePath
items.certificatePhotoBackWatermark = this.sf.value?.certificatePhotoBackWatermark.data.fullFilePath
const items2: any = this.sf1.value
items2.certificatePhotoWatermark = this.sf1.value?.certificatePhotoWatermark.data.fullFilePath
const items3: any = this.sf2.value
items3.certificatePhotoWatermark = this.sf2.value?.certificatePhotoWatermark.data.fullFilePath
const params:any = {
source: 2,
mobile: this.sf.value.mobile,
bankCardNo: this.sf.value.bankCardNo,
bankName: this.sf.value.bankName,
identityInfoDTO:{
...this.sf.value,
...items,
certificatePhotoFront: this.detailData.certificatePhotoFront,
certificatePhotoBack: this.detailData.certificatePhotoBack,
},
userDriverLicenseDTO: {
...this.sf1.value,
...items2,
certificatePhoto: this.detailData.userDriverLicenseDTO.certificatePhoto,
},
userPracticeSeniorityDTO: {
...this.sf2.value,
...items3,
certificatePhoto: this.detailData.userPracticeSeniorityDTO.certificatePhoto,
},
};

View File

@ -83,5 +83,6 @@ export const SHARED_ZORRO_MODULES = [
NzCascaderModule,
NzAnchorModule,
NzAffixModule,
NzTypographyModule
NzTypographyModule,
];