车辆对接
This commit is contained in:
		| @ -32,8 +32,8 @@ | ||||
|                   /> | ||||
|                 </nz-input-group> | ||||
|                 <span style="padding: 0 10px" | ||||
|                   ><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="openMap('start', idx)"></i | ||||
|                 ></span> | ||||
|                 ><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="chooseAddress(idx, 'start')"></i | ||||
|               ></span> | ||||
|                 <span | ||||
|                   ><i nz-icon nzType="minus-circle-o" nzTheme="fill" style="color: #d9001b" (click)="subStartInfo($event, idx, data.id)"></i | ||||
|                 ></span> | ||||
| @ -81,7 +81,9 @@ | ||||
|                     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> | ||||
|                 <span><i nz-icon nzType="minus-circle-o" nzTheme="fill" style="color: #d9001b" (click)="subEndInfo($event, idx)"></i></span> | ||||
|               </div> | ||||
|             </nz-form-control> | ||||
| @ -254,14 +256,14 @@ | ||||
|         <ng-template sf-template="total" let-i let-ui="ui">¥{{ i.value }}</ng-template> | ||||
|         <ng-template sf-template="paymentDays" let-i let-ui="ui"> | ||||
|           <div nz-row> | ||||
|             <div class="align-center" style="width: 300px;"> | ||||
|             <div class="align-center" style="width: 300px"> | ||||
|               <div nz-col nzSpan="16"> | ||||
|                 <nz-input-number | ||||
|                   [ngModel]="i.value" | ||||
|                   [nzMin]="1" | ||||
|                   [nzMax]="30" | ||||
|                   [nzStep]="1" | ||||
|                   style="width: 150px;" | ||||
|                   style="width: 150px" | ||||
|                   (ngModelChange)="i.setValue($event)" | ||||
|                   nzPlaceHolder="请输入1-30" | ||||
|                 ></nz-input-number> | ||||
|  | ||||
| @ -1034,4 +1034,49 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { | ||||
|   choose(){ | ||||
|     window.history.go(-1); | ||||
|   } | ||||
|   chooseAddress(index: number, type: string) { | ||||
|     const modalRef = this.modalService.create({ | ||||
|       nzTitle: '选择地址', | ||||
|       nzContent: PublishAddressListComponent, | ||||
|       nzWidth: 900, | ||||
|       nzComponentParams: { spuStatus: '1' }, | ||||
|       nzOnOk: item => { | ||||
|         console.log(item) | ||||
|         console.log(type) | ||||
|         const data = item.seleteData; | ||||
|         if (JSON.stringify(data) === '{}') return; | ||||
|         switch (type) { | ||||
|           case 'start': | ||||
|             this.startInfo[index] = { | ||||
|               detailedAddress: data.detailedAddress, | ||||
|               appUserName: data.contactName, | ||||
|               contractTelephone: data.contactTelephone, | ||||
|               latitude: data.contactTelephone, | ||||
|               longitude: data.latitude, | ||||
|               province: data.province, | ||||
|               city: data.city, | ||||
|               area: data.area, | ||||
|               type: '1' | ||||
|             }; | ||||
|             break; | ||||
|           case 'end': | ||||
|             this.endInfo[index] = { | ||||
|               detailedAddress: data.detailedAddress, | ||||
|               appUserName: data.contactName, | ||||
|               contractTelephone: data.contactTelephone, | ||||
|               latitude: data.contactTelephone, | ||||
|               longitude: data.latitude, | ||||
|               province: data.province, | ||||
|               city: data.city, | ||||
|               area: data.area, | ||||
|               type: '2' | ||||
|             }; | ||||
|             break; | ||||
|           default: | ||||
|             break; | ||||
|         } | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|  | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user