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

View File

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

View File

@ -61,7 +61,7 @@ import {
SolutionOutline, SolutionOutline,
MinusCircleOutline, MinusCircleOutline,
FileTwoTone, FileTwoTone,
CloudDownloadOutline CloudDownloadOutline,
} from '@ant-design/icons-angular/icons'; } from '@ant-design/icons-angular/icons';
export const ICONS_AUTO = [ export const ICONS_AUTO = [
@ -122,5 +122,5 @@ export const ICONS_AUTO = [
SolutionOutline, SolutionOutline,
MinusCircleOutline, MinusCircleOutline,
FileTwoTone, FileTwoTone,
CloudDownloadOutline CloudDownloadOutline,
]; ];

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-11-29 20:03:55 * @Date : 2021-11-29 20:03:55
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:14:19 * @LastEditTime : 2022-02-15 16:33:08
* @FilePath : \\tms-obc-web\\src\\style-icons.ts * @FilePath : \\tms-obc-web\\src\\style-icons.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -27,7 +27,9 @@ import {
MenuOutline, MenuOutline,
SwapOutline, SwapOutline,
EnvironmentOutline, EnvironmentOutline,
ExclamationCircleOutline ExclamationCircleOutline,
FileTwoTone,
PictureTwoTone
} from '@ant-design/icons-angular/icons'; } from '@ant-design/icons-angular/icons';
export const ICONS = [ export const ICONS = [
@ -50,4 +52,6 @@ export const ICONS = [
SwapOutline, SwapOutline,
EnvironmentOutline, EnvironmentOutline,
ExclamationCircleOutline, ExclamationCircleOutline,
FileTwoTone,
PictureTwoTone
]; ];