fix bug
This commit is contained in:
@ -599,9 +599,9 @@ export class CarAddDriverComponent implements OnInit {
|
||||
submitForm(){
|
||||
const params:any = {
|
||||
source: 1,
|
||||
mobile: this.sf.value.mobile,
|
||||
mobile: this.sf?.value.mobile,
|
||||
identityInfoDTO:{
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
certificatePhotoFront: this.detailData.certificatePhotoFront,
|
||||
certificatePhotoBack: this.detailData.certificatePhotoBack,
|
||||
},
|
||||
|
||||
@ -49,5 +49,5 @@ export class PublishchooseFamifiarSetCaptainComponent implements OnInit {
|
||||
}
|
||||
|
||||
close() {this.modal.close()}
|
||||
save() {this.modal.close(this.sf.value.captainPhone)}
|
||||
save() {this.modal.close(this.sf?.value.captainPhone)}
|
||||
}
|
||||
|
||||
@ -427,7 +427,7 @@ export class SupplyManagementVehicleComponent extends BasicTableComponent implem
|
||||
// },
|
||||
// allowClear: true,
|
||||
// containsAllLabel: true,
|
||||
// asyncData: () => this.shipperSrv.getEnterpriseProject(this.sf.value?.shipperAppUserId)
|
||||
// asyncData: () => this.shipperSrv.getEnterpriseProject(this.sf?.value?.shipperAppUserId)
|
||||
// } as SFSelectWidgetSchema
|
||||
// },
|
||||
enterpriseProjectId: {
|
||||
|
||||
@ -155,7 +155,7 @@ export class SupplyManagementImportSupplyComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
save(): void {
|
||||
if(!this.sf.value?.shipperAppUserId || !this?.networkTransporter || !this.sf.value?.enterpriseProjectId || !this.sf.value?.fileName) {
|
||||
if(!this.sf?.value?.shipperAppUserId || !this?.networkTransporter || !this.sf?.value?.enterpriseProjectId || !this.sf?.value?.fileName) {
|
||||
this.service.msgSrv.error('请填写必填项并上传文件!')
|
||||
return
|
||||
}
|
||||
@ -163,9 +163,9 @@ export class SupplyManagementImportSupplyComponent implements OnInit {
|
||||
const formData : any= new FormData();
|
||||
this.files?.forEach((file: any) => {
|
||||
formData.append('file', file);
|
||||
formData.append('shipperAppUserId', this.sf.value?.shipperAppUserId);
|
||||
formData.append('shipperAppUserId', this.sf?.value?.shipperAppUserId);
|
||||
formData.append('enterpriseInfoId', this?.networkTransporter);
|
||||
formData.append('enterpriseProjectId', this.sf.value?.enterpriseProjectId);
|
||||
formData.append('enterpriseProjectId', this.sf?.value?.enterpriseProjectId);
|
||||
});
|
||||
|
||||
console.log(formData)
|
||||
|
||||
Reference in New Issue
Block a user