Compare commits
3 Commits
dev-2025
...
prod-25-08
Author | SHA1 | Date | |
---|---|---|---|
43b763bbce | |||
c333298f82 | |||
1bd67b4f28 |
@ -317,12 +317,3 @@ export function unifiedOCRWithCompress(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 服务商是否培训
|
|
||||||
export function jumpPage(data){
|
|
||||||
return request({
|
|
||||||
url:'/supplierAppV2/dispatchApp/user/jumpPage',
|
|
||||||
method:'POST',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
@ -103,13 +103,3 @@ export function auditCarInfoAgain(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 我的发布列表
|
|
||||||
export function getAddressForService(data){
|
|
||||||
return request({
|
|
||||||
url: '/base/gaodeMap/getPlaceByAddress',
|
|
||||||
method:'GET',
|
|
||||||
params: data,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { getAddressForService } from "@/api/secondHandCar"
|
|
||||||
// 获取定位, 返回 经纬度
|
// 获取定位, 返回 经纬度
|
||||||
export function getLocal(mapContext) {
|
export function getLocal(mapContext) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@ -47,19 +46,7 @@ export function getAddress(mapContext, lnglat) {
|
|||||||
// 输入提示
|
// 输入提示
|
||||||
export function searchFun(mapContext, cityCode, keyword) {
|
export function searchFun(mapContext, cityCode, keyword) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
getAddressForService({
|
mapContext.plugin('AMap.AutoComplete', function(){
|
||||||
city: '',
|
|
||||||
address: keyword
|
|
||||||
}).then((res) => {
|
|
||||||
if(res.code == 200) {
|
|
||||||
resolve(res?.data?.pois || [])
|
|
||||||
} else {
|
|
||||||
resolve([])
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
resolve([])
|
|
||||||
})
|
|
||||||
/*mapContext.plugin('AMap.AutoComplete', function(){
|
|
||||||
var autoOptions = {
|
var autoOptions = {
|
||||||
city: cityCode || '全国',
|
city: cityCode || '全国',
|
||||||
};
|
};
|
||||||
@ -74,7 +61,7 @@ export function searchFun(mapContext, cityCode, keyword) {
|
|||||||
resolve([])
|
resolve([])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})*/
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
import { Decimal } from 'decimal.js';
|
import { Decimal } from 'decimal.js';
|
||||||
import { Dialog } from "vant";
|
import { Dialog } from "vant";
|
||||||
import { myMixins } from "@/utils/myMixins"
|
import { myMixins } from "@/utils/myMixins"
|
||||||
import { uploadInvoice, getBillingInfo, deleteInvoice, createBatch, jumpPage} from "@/api/mine"
|
import { uploadInvoice, getBillingInfo, deleteInvoice, createBatch } from "@/api/mine"
|
||||||
export default {
|
export default {
|
||||||
name: "uploadInvoice",
|
name: "uploadInvoice",
|
||||||
mixins:[ myMixins ],
|
mixins:[ myMixins ],
|
||||||
@ -132,10 +132,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getJumpHandler() {
|
|
||||||
let res = await jumpPage();
|
|
||||||
return res
|
|
||||||
},
|
|
||||||
async initData() {
|
async initData() {
|
||||||
this.list = JSON.parse(localStorage.getItem('list'));
|
this.list = JSON.parse(localStorage.getItem('list'));
|
||||||
this.batchIds = [];
|
this.batchIds = [];
|
||||||
@ -234,12 +230,7 @@
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async beforeRead (file) {
|
beforeRead (file) {
|
||||||
let res = await this.getJumpHandler();
|
|
||||||
if(res?.data?.jump) {
|
|
||||||
this.$message.warning("您有没有完成的培训,请在中道调度APP上完成培训,再进行发票上传")
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
const FileExt = file.name.replace(/.+\./, "");
|
const FileExt = file.name.replace(/.+\./, "");
|
||||||
if (['jpg', 'png', 'jpeg', 'pdf', 'ofd'].indexOf(FileExt.toLowerCase()) === -1) {
|
if (['jpg', 'png', 'jpeg', 'pdf', 'ofd'].indexOf(FileExt.toLowerCase()) === -1) {
|
||||||
this.$toast('请上传后缀名为jpg、jpeg、png、pdf、ofd的文件!')
|
this.$toast('请上传后缀名为jpg、jpeg、png、pdf、ofd的文件!')
|
||||||
|
@ -75,14 +75,13 @@
|
|||||||
}
|
}
|
||||||
let content = '<div class="dest-position"></div>';
|
let content = '<div class="dest-position"></div>';
|
||||||
let activeObj = this.addressList[this.activeIndex];
|
let activeObj = this.addressList[this.activeIndex];
|
||||||
let lanLat = activeObj.location.split(',');
|
|
||||||
this.marker = new AMap.Marker({
|
this.marker = new AMap.Marker({
|
||||||
position: new AMap.LngLat( lanLat[0], lanLat[1] ),
|
position: new AMap.LngLat( activeObj.location.lng, activeObj.location.lat ),
|
||||||
content: content,
|
content: content,
|
||||||
offset: new AMap.Pixel(-13, -30)
|
offset: new AMap.Pixel(-13, -30)
|
||||||
});
|
});
|
||||||
this.map.add(this.marker)
|
this.map.add(this.marker)
|
||||||
this.map.setCenter([lanLat[0], lanLat[1]])
|
this.map.setCenter([activeObj.location.lng, activeObj.location.lat])
|
||||||
},
|
},
|
||||||
successHandler() {
|
successHandler() {
|
||||||
if( this.activeIndex == null ) {
|
if( this.activeIndex == null ) {
|
||||||
@ -90,11 +89,10 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
let activeObj = this.addressList[this.activeIndex];
|
let activeObj = this.addressList[this.activeIndex];
|
||||||
let lanLat = activeObj.location.split(',');
|
|
||||||
let _tempObj = {
|
let _tempObj = {
|
||||||
startPoiAddress: activeObj?.address + activeObj?.name,
|
startPoiAddress: activeObj?.district + activeObj?.address + activeObj?.name,
|
||||||
startLat: lanLat[0],
|
startLat: activeObj?.location?.lat,
|
||||||
startLng: lanLat[1],
|
startLng: activeObj?.location?.lng,
|
||||||
adCode: activeObj?.adcode,
|
adCode: activeObj?.adcode,
|
||||||
}
|
}
|
||||||
sessionStorage.setItem('reportAddress', JSON.stringify(_tempObj))
|
sessionStorage.setItem('reportAddress', JSON.stringify(_tempObj))
|
||||||
|
Reference in New Issue
Block a user