fix bug
This commit is contained in:
		@ -100,7 +100,7 @@ export class NetworkFreightNewComponent implements OnInit {
 | 
			
		||||
      console.log(res);
 | 
			
		||||
      this.sf2FormData = res
 | 
			
		||||
      this.sf1FormData = res.enterpriseInfoVO
 | 
			
		||||
      this.sf1FormData.legalPersonIdentityVO.isLoingDate = this.sf1FormData.legalPersonIdentityVO.validEndTime !== null ? false : true;
 | 
			
		||||
      this.sf1FormData.isLoingDate = this.sf1FormData.operatingEndTime !== null ? false : true;
 | 
			
		||||
      this.sf1FormData.licensePhotoWatermark = [
 | 
			
		||||
        {
 | 
			
		||||
          uid: -1,
 | 
			
		||||
@ -148,12 +148,12 @@ export class NetworkFreightNewComponent implements OnInit {
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  submitForm() {
 | 
			
		||||
    if (!this.sf1.valid || !this.sf.valid) {
 | 
			
		||||
      this.sf.validator({ emitError: true });
 | 
			
		||||
      this.sf1.validator({ emitError: true });
 | 
			
		||||
      this.service.msgSrv.warning('请修改填写错误信息');
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    // if (!this.sf1.valid || !this.sf.valid) {
 | 
			
		||||
    //   this.sf.validator({ emitError: true });
 | 
			
		||||
    //   this.sf1.validator({ emitError: true });
 | 
			
		||||
    //   this.service.msgSrv.warning('请修改填写错误信息');
 | 
			
		||||
    //   return;
 | 
			
		||||
    // }
 | 
			
		||||
    const enterpriseRegistrationTime = new Date(this.sf1.value.enterpriseRegistrationTime);
 | 
			
		||||
    const operatingStartTime = new Date(this.sf1.value.operatingStartTime);
 | 
			
		||||
    if (enterpriseRegistrationTime.getTime() > operatingStartTime.getTime()) {
 | 
			
		||||
@ -167,6 +167,13 @@ export class NetworkFreightNewComponent implements OnInit {
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    if (this.sf1.value.isLoingDate) {
 | 
			
		||||
      this.sf1.value.operatingEndTime = '';
 | 
			
		||||
    }
 | 
			
		||||
    console.log(this.sf1.value)
 | 
			
		||||
    console.log(this.sf1.valid)
 | 
			
		||||
    console.log(this.sf.value)
 | 
			
		||||
    console.log(this.sf.valid)
 | 
			
		||||
    const sfVlaue = this.sf1.value;
 | 
			
		||||
    const params: any = {};
 | 
			
		||||
    Object.assign(
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user