1、调整凭证

2、调整运单
This commit is contained in:
2026-09-08 17:50:34 +08:00
parent a7315b4491
commit cba2ad3b3b
43 changed files with 5730 additions and 1119 deletions
+16 -1
View File
@@ -929,7 +929,10 @@
搜索
</el-button>
</div>
<div ref="contactAmap" class="contact-form__map"></div>
<div class="map-picker-content">
<map-search-results :results="contactMapSearchResults" @select="selectContactMapSearchResult" />
<div ref="contactAmap" class="contact-form__map"></div>
</div>
<div class="contact-form__map-info">
<span>{{ contactMapStatus }}</span>
<span v-if="contactMapSelected.regionName">
@@ -1590,6 +1593,7 @@ export default {
contactMapKeyword: '',
contactMapStatus: '可搜索地址或点击地图选点',
contactMapSelected: {},
contactMapSearchResults: [],
contactMapTarget: 'contact',
contactAmap: null,
contactAmapMarker: null,
@@ -2995,6 +2999,12 @@ export default {
this.ensureContactAmapGeocoder()
.then(() => this.runAmapGeocode('location', keyword))
.then(result => {
this.contactMapSearchResults = (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.contactMapStatus = '未找到匹配地址';
@@ -3015,6 +3025,11 @@ export default {
this.$message.error('高德地图组件加载失败,请稍后重试或重新打开弹窗');
});
},
selectContactMapSearchResult(item) {
if (item && item.location) {
this.pickContactMapPoint(item.location, item.address || item.name || '');
}
},
pickContactMapPoint(lnglat, keyword) {
const longitude = this.getPointLng(lnglat);
const latitude = this.getPointLat(lnglat);