1、调整凭证
2、调整运单
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
<div class="goods-heading">
|
||||
<h3>货物信息</h3>
|
||||
<div class="goods-toolbar">
|
||||
<el-link type="primary" @click="cargoImportVisible = true">导入货物</el-link>
|
||||
<!-- <el-link type="primary" @click="cargoImportVisible = true">导入货物</el-link> -->
|
||||
<el-link type="primary" @click="openCommonCargoDialog">常用货物</el-link>
|
||||
</div>
|
||||
</div>
|
||||
@@ -283,7 +283,7 @@
|
||||
<vehicle-attachment-upload
|
||||
v-model="attachmentRows"
|
||||
:file-types="attachmentFileTypes"
|
||||
:max-size="500"
|
||||
:max-size="50"
|
||||
:show-file-list="false"
|
||||
button-text="上传附件"
|
||||
@change="handleAttachmentChange"
|
||||
@@ -401,7 +401,10 @@
|
||||
>搜索</el-button
|
||||
>
|
||||
</div>
|
||||
<div ref="addressMap" class="address-map" />
|
||||
<div class="map-picker-content">
|
||||
<map-search-results :results="mapSearchResults" @select="selectAddressMapSearchResult" />
|
||||
<div ref="addressMap" class="address-map" />
|
||||
</div>
|
||||
<div class="address-map-status">
|
||||
{{ mapStatus
|
||||
}}<span v-if="mapSelected.regionName"> 行政区划:{{ mapSelected.regionName }}</span>
|
||||
@@ -639,6 +642,7 @@ export default {
|
||||
mapKeyword: '',
|
||||
mapStatus: '可搜索地址或点击地图选点',
|
||||
mapSelected: {},
|
||||
mapSearchResults: [],
|
||||
addressMapInstance: null,
|
||||
addressMapMarker: null,
|
||||
addressMapGeocoder: null,
|
||||
@@ -1281,12 +1285,24 @@ export default {
|
||||
)
|
||||
)
|
||||
.then(result => {
|
||||
const point = result?.geocodes?.[0]?.location;
|
||||
const geocodes = result?.geocodes || [];
|
||||
this.mapSearchResults = geocodes.map((item, index) => ({
|
||||
id: item.id || index,
|
||||
name: item.formattedAddress || this.mapKeyword,
|
||||
address: item.formattedAddress || this.mapKeyword,
|
||||
location: item.location,
|
||||
}));
|
||||
const point = geocodes[0]?.location;
|
||||
if (!point) return this.$message.warning('地图搜索无匹配地址');
|
||||
this.pickAddressMap(point, this.mapKeyword);
|
||||
})
|
||||
.catch(() => this.$message.error('地图搜索失败'));
|
||||
},
|
||||
selectAddressMapSearchResult(item) {
|
||||
if (item && item.location) {
|
||||
this.pickAddressMap(item.location, item.address || item.name || '');
|
||||
}
|
||||
},
|
||||
ensureAddressGeocoder() {
|
||||
if (this.addressMapGeocoder) return Promise.resolve(this.addressMapGeocoder);
|
||||
return new Promise(resolve =>
|
||||
|
||||
Reference in New Issue
Block a user