车辆接口更新
This commit is contained in:
		| @ -42,7 +42,7 @@ | ||||
|           </nz-form-item> | ||||
|           <nz-form-item> | ||||
|             <nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label> | ||||
|             <nz-form-control [nzErrorTip]="'请输入联系人信息'"> | ||||
|             <!-- <nz-form-control [nzErrorTip]="'请输入联系人信息'"> | ||||
|               <div class="align-center"> | ||||
|                 <input nz-input [(ngModel)]="data.appUserName" formControlName="loadName{{ idx }}" maxlength="30" /> | ||||
|                 <input | ||||
| @ -53,7 +53,30 @@ | ||||
|                   maxlength="11" | ||||
|                 /> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
|             </nz-form-control> --> | ||||
|             <div style="display: flex"> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人姓名'"> | ||||
|                 <input | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data.appUserName" | ||||
|                   formControlName="loadName{{ idx }}" | ||||
|                   name="loadName{{ idx }}" | ||||
|                   maxlength="30" | ||||
|                   placeholder="请输入联系人姓名" | ||||
|                 /> | ||||
|               </nz-form-control> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人电话'"> | ||||
|                 <input | ||||
|                   style="margin-left: 12px" | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data.contractTelephone" | ||||
|                   maxlength="11" | ||||
|                   formControlName="loadPhone{{ idx }}" | ||||
|                   name="loadPhone{{ idx }}" | ||||
|                   placeholder="请输入联系人电话" | ||||
|                 /> | ||||
|               </nz-form-control> | ||||
|             </div> | ||||
|           </nz-form-item> | ||||
|         </div> | ||||
|         <button nz-button nzType="primary" (click)="addStartInfo($event)"> | ||||
| @ -90,7 +113,7 @@ | ||||
|           </nz-form-item> | ||||
|           <nz-form-item> | ||||
|             <nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label> | ||||
|             <nz-form-control [nzErrorTip]="'请输入联系人信息'"> | ||||
|             <!-- <nz-form-control [nzErrorTip]="'请输入联系人信息'"> | ||||
|               <div class="align-center"> | ||||
|                 <input nz-input [(ngModel)]="data.appUserName" formControlName="unloadName{{ idx }}" maxlength="30" /> | ||||
|                 <input | ||||
| @ -101,7 +124,30 @@ | ||||
|                   maxlength="11" | ||||
|                 /> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
|             </nz-form-control> --> | ||||
|             <div style="display: flex"> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人姓名'"> | ||||
|                 <input | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data.appUserName" | ||||
|                   maxlength="30" | ||||
|                   formControlName="unloadName{{ idx }}" | ||||
|                   name="unloadAddress{{ idx }}" | ||||
|                   placeholder="请输入联系人姓名" | ||||
|                 /> | ||||
|               </nz-form-control> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人电话'"> | ||||
|                 <input | ||||
|                   style="margin-left: 12px" | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data.contractTelephone" | ||||
|                   formControlName="unloadPhone{{ idx }}" | ||||
|                   name="unloadAddress{{ idx }}" | ||||
|                   maxlength="11" | ||||
|                   placeholder="请输入联系人电话" | ||||
|                 /> | ||||
|               </nz-form-control> | ||||
|             </div> | ||||
|           </nz-form-item> | ||||
|         </div> | ||||
|         <button nz-button nzType="primary" (click)="addEndInfo($event)"> | ||||
|  | ||||
| @ -57,6 +57,12 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { | ||||
|     public shipperSrv: ShipperBaseService | ||||
|   ) { | ||||
|     this.validateForm1 = fb.group({ | ||||
|       loadAddress0: [null, [Validators.required]], | ||||
|       loadName0: [null, [Validators.required]], | ||||
|       loadPhone0: [null, [Validators.required,Validators.pattern('^[0-9]*$')]], | ||||
|       unloadAddress0: [null, [Validators.required]], | ||||
|       unloadName0: [null, [Validators.required]], | ||||
|       unloadPhone0: [null, [Validators.required,Validators.pattern('^[0-9]*$')]], | ||||
|       loadingTime: [null, []], | ||||
|       unloadingTime: [null, []] | ||||
|     }); | ||||
| @ -766,6 +772,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { | ||||
|     if (this.validateForm1.invalid || !this.sf3.valid || !this.sf1.valid || !this.sf4.valid || !this.sf6.valid || !this.sf7.valid) { | ||||
|       return; | ||||
|     } | ||||
|     console.log(this.validateForm1.value?.unloadingTime) | ||||
|     if (typeof this.validateForm1.value.unloadingTime !== 'string') { | ||||
|       var c = new Date(this.validateForm1.value.unloadingTime); | ||||
|       this.validateForm1.value.unloadingTime = | ||||
|  | ||||
		Reference in New Issue
	
	Block a user