车辆接口更新
This commit is contained in:
		| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-23 13:39:58 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-20 20:23:52 | ||||
|  * @LastEditTime : 2022-01-20 20:28:15 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.html | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
| @ -65,8 +65,8 @@ | ||||
|   > | ||||
|   <form nz-form [formGroup]="validateForm1" role="form"> | ||||
|     <div nz-row [nzGutter]="24"> | ||||
|       <div nz-col [nzSpan]="8"> | ||||
|         <div *ngFor="let data of startInfo; let idx = index"> | ||||
|       <div nz-col [nzSpan]="10"> | ||||
|         <div *ngFor="let data1 of startInfo; let idx = index"> | ||||
|           <nz-form-item> | ||||
|             <nz-form-label [nzSpan]="4" nzRequired>装货地</nz-form-label> | ||||
|             <nz-form-control [nzErrorTip]="'请输入装货地'"> | ||||
| @ -74,42 +74,51 @@ | ||||
|                 <nz-input-group [nzSuffix]="endInconTemp1"> | ||||
|                   <input | ||||
|                     nz-input | ||||
|                     [(ngModel)]="data.detailedAddress" | ||||
|                     [(ngModel)]="data1.detailedAddress" | ||||
|                     (click)="openMap('start', idx)" | ||||
|                     formControlName="loadAddress{{ idx }}" | ||||
|                     placeholder="请输入装货地" | ||||
|                   /> | ||||
|                 </nz-input-group> | ||||
|                 <span style="padding: 0 10px" | ||||
|                   ><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="openMap('start', idx)"></i | ||||
|                 ></span> | ||||
|                 <!-- <span style="padding: 0 10px" | ||||
|                   ><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="chooseAddress(idx, 'start')"></i | ||||
|                 ></span> --> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
|           </nz-form-item> | ||||
|           <nz-form-item> | ||||
|             <nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label> | ||||
|             <nz-form-control [nzErrorTip]="'请输入联系人信息'"> | ||||
|               <div class="align-center"> | ||||
|                 <input nz-input [(ngModel)]="data.appUserName" [ngModelOptions]="{ standalone: true }" maxlength="30" /> | ||||
|             <div style="display: flex;"> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人姓名'"> | ||||
|                 <input | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data1.appUserName" | ||||
|                   formControlName="loadName{{ idx }}" | ||||
|                   maxlength="30" | ||||
|                   placeholder="请输入联系人姓名" | ||||
|                 /> | ||||
|               </nz-form-control> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人电话'"> | ||||
|                 <input | ||||
|                   style="margin-left: 12px" | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data.contractTelephone" | ||||
|                   [ngModelOptions]="{ standalone: true }" | ||||
|                   [(ngModel)]="data1.contractTelephone" | ||||
|                   maxlength="11" | ||||
|                   formControlName="loadPhone{{ idx }}" | ||||
|                   placeholder="请输入联系人电话" | ||||
|                 /> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
|               </nz-form-control> | ||||
|             </div> | ||||
|           </nz-form-item> | ||||
|         </div> | ||||
|       </div> | ||||
|       <div nz-col [nzSpan]="8"> | ||||
|       <div nz-col [nzSpan]="4"> | ||||
|         <div style="display: flex; justify-content: center"> | ||||
|           <span style="padding: 24 px; font-size: 30px; color: #7d7d7d"><i nz-icon nzType="swap" nzTheme="outline"></i></span> | ||||
|         </div> | ||||
|       </div> | ||||
|       <div nz-col [nzSpan]="8"> | ||||
|         <div *ngFor="let data of endInfo; let idx = index"> | ||||
|       <div nz-col [nzSpan]="10"> | ||||
|         <div *ngFor="let data2 of endInfo; let idx = index"> | ||||
|           <nz-form-item> | ||||
|             <nz-form-label [nzSpan]="4" nzRequired>卸货地</nz-form-label> | ||||
|             <nz-form-control [nzErrorTip]="'请输入卸货地'"> | ||||
| @ -117,43 +126,46 @@ | ||||
|                 <nz-input-group [nzSuffix]="endInconTemp1"> | ||||
|                   <input | ||||
|                     nz-input | ||||
|                     [(ngModel)]="data.detailedAddress" | ||||
|                     [(ngModel)]="data2.detailedAddress" | ||||
|                     (click)="openMap('end', idx)" | ||||
|                     formControlName="unloadAddress{{ idx }}" | ||||
|                     placeholder="请输入卸货地" | ||||
|                   /> | ||||
|                 </nz-input-group> | ||||
|                 <span style="padding: 0 10px"><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff"></i></span> | ||||
|                 <!-- <span style="padding: 0 10px" | ||||
|                   ><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="chooseAddress(idx, 'end')"></i | ||||
|                 ></span> --> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
|           </nz-form-item> | ||||
|           <nz-form-item> | ||||
|             <nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label> | ||||
|             <nz-form-control [nzErrorTip]="'请输入联系人信息'"> | ||||
|               <div class="align-center"> | ||||
|                 <input nz-input [(ngModel)]="data.appUserName" [ngModelOptions]="{ standalone: true }" maxlength="30" /> | ||||
|             <div style="display: flex;"> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人姓名'"> | ||||
|                 <input | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data2.appUserName" | ||||
|                   maxlength="30" | ||||
|                   formControlName="unloadName{{ idx }}" | ||||
|                   placeholder="请输入联系人姓名" | ||||
|                 /> | ||||
|               </nz-form-control> | ||||
|               <nz-form-control [nzErrorTip]="'请输入联系人电话'"> | ||||
|                 <input | ||||
|                   style="margin-left: 12px" | ||||
|                   nz-input | ||||
|                   [(ngModel)]="data.contractTelephone" | ||||
|                   [ngModelOptions]="{ standalone: true }" | ||||
|                   [(ngModel)]="data2.contractTelephone" | ||||
|                   formControlName="unloadPhone{{ idx }}" | ||||
|                   maxlength="11" | ||||
|                   placeholder="请输入联系人电话" | ||||
|                 /> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
|               </nz-form-control> | ||||
|             </div> | ||||
|           </nz-form-item> | ||||
|         </div> | ||||
|       </div> | ||||
|     </div> | ||||
|     <div nz-row [nzGutter]="24" style="margin-top: 24px"> | ||||
|       <div nz-col [nzSpan]="9"> | ||||
|         <p class="time-info">计划装货时间:{{ i?.loadPlanTime }}</p> | ||||
|       </div> | ||||
|       <div nz-col [nzSpan]="8"> | ||||
|         <p class="time-info">计划卸货时间:{{ i?.unloadPlanTime }}</p> | ||||
|       </div> | ||||
|     </div> | ||||
|     <ng-template #endInconTemp1><i nz-icon nzType="global"></i></ng-template> | ||||
|     <ng-template #endInconTemp1><i nz-icon nzType="environment" nzTheme="outline"></i></ng-template> | ||||
|   </form> | ||||
| </nz-card> | ||||
| <nz-card nzTitle="基本信息" configuration #distannce2> | ||||
|  | ||||
| @ -1,86 +1,33 @@ | ||||
| :host { | ||||
|     .btn-size { | ||||
|         font-size: 14px; | ||||
|     } | ||||
|  | ||||
|     .bdr { | ||||
|         border-right: 1px solid #ccc; | ||||
|     } | ||||
|  | ||||
|     .bdl { | ||||
|         border-left: 1px solid #ccc; | ||||
|     } | ||||
|  | ||||
|     .source-info { | ||||
|         p { | ||||
|             margin-bottom: .5em; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     .freight-info-box { | ||||
|         width: 95%; | ||||
|     } | ||||
|  | ||||
|     .freigth-label { | ||||
|         display   : inline-block; | ||||
|         width     : 50px; | ||||
|         text-align: right; | ||||
|     } | ||||
|  | ||||
|     ::ng-deep { | ||||
|         .approval-status { | ||||
|             .ant-steps { | ||||
|                 width : 70%; | ||||
|                 margin: 0 auto; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         .ant-tabs-top>.ant-tabs-nav, | ||||
|         .ant-tabs-bottom>.ant-tabs-nav, | ||||
|         .ant-tabs-top>div>.ant-tabs-nav, | ||||
|         .ant-tabs-bottom>div>.ant-tabs-nav { | ||||
|             margin: 0; | ||||
|         } | ||||
|  | ||||
|         .ant-anchor-ink::before { | ||||
|             width: 0; | ||||
|         } | ||||
|  | ||||
|         .ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab, | ||||
|         .ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab, | ||||
|         .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab, | ||||
|         .ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab { | ||||
|             margin-left: 40px | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     .leftPadding { | ||||
|         padding-right: 100px; | ||||
|     } | ||||
|  | ||||
|     .tip-font { | ||||
|         margin-left: 16px; | ||||
|         font-weight: 500; | ||||
|         font-size  : 12px; | ||||
|     } | ||||
|  | ||||
|     .card-title { | ||||
|         font-size: 12px; | ||||
|       } | ||||
|        | ||||
|       .card-title { | ||||
|         margin-bottom: 24px; | ||||
|         font-weight  : bold; | ||||
|         font-size    : 16px; | ||||
|     } | ||||
|  | ||||
|     .align-center { | ||||
|         display        : flex; | ||||
|         align-items    : center; | ||||
|         font-weight: bold; | ||||
|         font-size: 16px; | ||||
|       } | ||||
|        | ||||
|       .align-center { | ||||
|         display: flex; | ||||
|         align-items: center; | ||||
|         justify-content: center; | ||||
|     } | ||||
|  | ||||
|     #container { | ||||
|         width : 300px; | ||||
|       } | ||||
|       .align-center2 { | ||||
|         display: flex; | ||||
|         align-items: center; | ||||
|       } | ||||
|       #container { | ||||
|         width: 300px; | ||||
|         height: 180px; | ||||
|     } | ||||
|     .ant-col-10 { | ||||
|         flex: none; | ||||
|     } | ||||
|       } | ||||
|       :host { | ||||
|         ::ng-deep { | ||||
|           nz-input-number{width: 100%;} | ||||
|         } | ||||
|       } | ||||
| } | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-23 13:39:58 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-20 20:11:43 | ||||
|  * @LastEditTime : 2022-01-20 20:28:33 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -552,25 +552,25 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { | ||||
|       nzWidth: 900, | ||||
|       nzOnOk: item => { | ||||
|         const poi = item.poi; | ||||
|         const locList = poi.pois; | ||||
|         const locList = poi.location.toString().split(','); | ||||
|         switch (type) { | ||||
|           case 'start': | ||||
|             this.startInfo[index].detailedAddress = poi.formattedAddress; | ||||
|             this.startInfo[index].detailedAddress = poi.district + poi.name; | ||||
|             this.startInfo[index].longitude = locList[0]; | ||||
|             this.startInfo[index].latitude = locList[1]; | ||||
|             this.startInfo[index].province = poi.addressComponent.province; | ||||
|             this.startInfo[index].city = poi.addressComponent.city; | ||||
|             this.startInfo[index].area = poi.addressComponent.district; | ||||
|             this.startInfo[index].address = poi.formattedAddress; | ||||
|             this.startInfo[index].province = poi.cityInfo.province; | ||||
|             this.startInfo[index].city = poi.cityInfo.city; | ||||
|             this.startInfo[index].area = poi.cityInfo.district; | ||||
|             this.startInfo[index].address = poi.name; | ||||
|             break; | ||||
|           case 'end': | ||||
|             this.endInfo[index].detailedAddress = poi.formattedAddress; | ||||
|             this.endInfo[index].detailedAddress = poi.district + poi.name; | ||||
|             this.endInfo[index].longitude = locList[0]; | ||||
|             this.endInfo[index].latitude = locList[1]; | ||||
|             this.endInfo[index].province = poi.addressComponent.province; | ||||
|             this.endInfo[index].city = poi.addressComponent.city; | ||||
|             this.endInfo[index].area = poi.addressComponent.district; | ||||
|             this.endInfo[index].address = poi.formattedAddress; | ||||
|             this.endInfo[index].province = poi.cityInfo.province; | ||||
|             this.endInfo[index].city = poi.cityInfo.city; | ||||
|             this.endInfo[index].area = poi.cityInfo.district; | ||||
|             this.endInfo[index].address = poi.name; | ||||
|             break; | ||||
|           default: | ||||
|             break; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user