1、调整凭证
2、调整运单
This commit is contained in:
@@ -288,7 +288,10 @@
|
||||
搜索
|
||||
</el-button>
|
||||
</div>
|
||||
<div ref="routeAmap" class="common-route-page__map"></div>
|
||||
<div class="map-picker-content">
|
||||
<map-search-results :results="routeMapSearchResults" @select="selectRouteMapSearchResult" />
|
||||
<div ref="routeAmap" class="common-route-page__map"></div>
|
||||
</div>
|
||||
<div class="common-route-page__map-info">
|
||||
<span>{{ routeMapStatus }}</span>
|
||||
<span v-if="routeMapSelected.regionName"
|
||||
@@ -359,6 +362,7 @@ export default {
|
||||
routeMapKeyword: '',
|
||||
routeMapStatus: '可搜索地址或点击地图选点',
|
||||
routeMapSelected: {},
|
||||
routeMapSearchResults: [],
|
||||
routeAmap: null,
|
||||
routeAmapMarker: null,
|
||||
routeAmapGeocoder: null,
|
||||
@@ -612,6 +616,12 @@ export default {
|
||||
})
|
||||
.then(() => this.runAmapGeocode('location', keyword))
|
||||
.then(result => {
|
||||
this.routeMapSearchResults = (result.geocodes || []).map((item, index) => ({
|
||||
id: item.id || index,
|
||||
name: item.formattedAddress || keyword,
|
||||
address: item.formattedAddress || keyword,
|
||||
location: item.location,
|
||||
}));
|
||||
const point = this.resolveMapPoint(result);
|
||||
if (!point) {
|
||||
this.routeMapStatus = '未找到匹配地址';
|
||||
@@ -628,6 +638,11 @@ export default {
|
||||
this.routeMapLoading = false;
|
||||
});
|
||||
},
|
||||
selectRouteMapSearchResult(item) {
|
||||
if (item && item.location) {
|
||||
this.pickRouteMapPoint(item.location, item.address || item.name || '');
|
||||
}
|
||||
},
|
||||
pickRouteMapPoint(lnglat, keyword) {
|
||||
const longitude = this.getPointLng(lnglat);
|
||||
const latitude = this.getPointLat(lnglat);
|
||||
|
||||
Reference in New Issue
Block a user