fix bug
This commit is contained in:
		| @ -269,7 +269,7 @@ | ||||
|       </label> | ||||
|     </sv-title> | ||||
|     <sv label="法定代表人"> | ||||
|       <input nz-input type="text" [(ngModel)]="detailData.legalPersonIdentityVO.name" [readonly]="!isEdit" | ||||
|       <input nz-input type="text" maxlength="32" [(ngModel)]="detailData.legalPersonIdentityVO.name" [readonly]="!isEdit" | ||||
|         [nzBorderless]="!isEdit" [placeholder]="isEdit?'':'-'"> | ||||
|     </sv> | ||||
|     <sv label="身份证号码"> | ||||
|  | ||||
| @ -286,12 +286,24 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | ||||
|     this.isEdit = false; | ||||
|   } | ||||
|  | ||||
|   save(data: any) { | ||||
|   save(data: any){ | ||||
|     const dateil = { ...this.detailData }; | ||||
|     Object.assign(dateil.legalPersonIdentityVO, { | ||||
|       validStartTime: this.datePipe.transform(dateil.legalPersonIdentityVO.validStartTime, 'yyyy-MM-dd'), | ||||
|       validEndTime: this.datePipe.transform(dateil.legalPersonIdentityVO.validEndTime, 'yyyy-MM-dd') | ||||
|     }); | ||||
|     if (!this.detailData?.enterpriseName || !this.detailData?.enterpriseAddress) {  | ||||
|       this.service.msgSrv.error('请完善企业基本信息!') | ||||
|       return false; | ||||
|     } | ||||
|     if (!this.detailData.legalPersonIdentityVO.name || !this.detailData.legalPersonIdentityVO.certificateNumber) {  | ||||
|       this.service.msgSrv.error('请完善法人信息!') | ||||
|       return false; | ||||
|     } | ||||
|     if (!this.detailData.createBank || !this.detailData.bankAccount) { | ||||
|       this.service.msgSrv.error('请完善企业开票信息!') | ||||
|       return false; | ||||
|     } | ||||
|     const params = {}; | ||||
|     Object.assign(params, { | ||||
|       adminMobile: dateil.adminMobile, | ||||
| @ -331,6 +343,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy { | ||||
|         this.isEdit = false; | ||||
|       } | ||||
|     }); | ||||
|     return | ||||
|   } | ||||
|  | ||||
|   private refreshData(status: number) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user