diff --git a/src/app/routes/usercenter/components/freight/list/detail/detail.component.html b/src/app/routes/usercenter/components/freight/list/detail/detail.component.html index 2792f59d..894d109d 100644 --- a/src/app/routes/usercenter/components/freight/list/detail/detail.component.html +++ b/src/app/routes/usercenter/components/freight/list/detail/detail.component.html @@ -269,7 +269,7 @@ - diff --git a/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts b/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts index 685c46ab..da954bab 100644 --- a/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts +++ b/src/app/routes/usercenter/components/freight/list/detail/detail.component.ts @@ -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) {