车辆对接
This commit is contained in:
@ -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