|
@@ -270,6 +270,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
stop() { //结束定位
|
|
stop() { //结束定位
|
|
|
|
+ var that = this
|
|
this.shippingNoteInfos[0].shippingNoteNumber = this.detailData.orderNo //运单号
|
|
this.shippingNoteInfos[0].shippingNoteNumber = this.detailData.orderNo //运单号
|
|
this.shippingNoteInfos[0].serialNumber = "0000" //分单号
|
|
this.shippingNoteInfos[0].serialNumber = "0000" //分单号
|
|
this.shippingNoteInfos[0].startCountrySubdivisionCode = this.detailData
|
|
this.shippingNoteInfos[0].startCountrySubdivisionCode = this.detailData
|
|
@@ -295,7 +296,6 @@
|
|
this.shippingNoteInfos[0].interval = "5000" //请求时间间隔,SDK 回调返 回(单位 ms)
|
|
this.shippingNoteInfos[0].interval = "5000" //请求时间间隔,SDK 回调返 回(单位 ms)
|
|
// var shippingNoteInfos = this.shippingNoteInfos;//运单信息列表
|
|
// var shippingNoteInfos = this.shippingNoteInfos;//运单信息列表
|
|
console.log("查看结束参数", this.shippingNoteInfos)
|
|
console.log("查看结束参数", this.shippingNoteInfos)
|
|
-
|
|
|
|
let remark = ""
|
|
let remark = ""
|
|
sdkwx.stop(this.detailData.carNumber, this.detailData.driverName, remark, this.shippingNoteInfos, function(
|
|
sdkwx.stop(this.detailData.carNumber, this.detailData.driverName, remark, this.shippingNoteInfos, function(
|
|
res) {
|
|
res) {
|
|
@@ -307,7 +307,7 @@
|
|
//失败
|
|
//失败
|
|
var errorCode = res.data.errorCode; //错误码
|
|
var errorCode = res.data.errorCode; //错误码
|
|
var errorMsg = res.data.errorMsg; //错误描述
|
|
var errorMsg = res.data.errorMsg; //错误描述
|
|
- this.$refs.uToast.show({
|
|
|
|
|
|
+ that.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
message: errorMsg,
|
|
message: errorMsg,
|
|
})
|
|
})
|
|
@@ -600,7 +600,7 @@
|
|
var lat = this.detailData.carrierInfo.unloadingLatitude //当前定位所在的经纬度
|
|
var lat = this.detailData.carrierInfo.unloadingLatitude //当前定位所在的经纬度
|
|
var lng = this.detailData.carrierInfo.unloadingLongitude
|
|
var lng = this.detailData.carrierInfo.unloadingLongitude
|
|
var endlat = this.detailData.publishTaskInfo?this.detailData.publishTaskInfo.unsendLatitude:this.detailData.unsendLatitude
|
|
var endlat = this.detailData.publishTaskInfo?this.detailData.publishTaskInfo.unsendLatitude:this.detailData.unsendLatitude
|
|
- var endlng = this.detailData.publishTaskInfo?this.detailData.publishTaskInfo.unloadingLongitude:this.detailData.unloadingLongitude
|
|
|
|
|
|
+ var endlng = this.detailData.publishTaskInfo?this.detailData.publishTaskInfo.unsendLongitude:this.detailData.unsendLongitude
|
|
if(this.editPlace){//true 未编辑 判断当前定位与任务卸车地点距离 大于5KM提示,编辑卸车地点后不在判断
|
|
if(this.editPlace){//true 未编辑 判断当前定位与任务卸车地点距离 大于5KM提示,编辑卸车地点后不在判断
|
|
let juli = this.getDistance(endlat,endlng,lat,lng)
|
|
let juli = this.getDistance(endlat,endlng,lat,lng)
|
|
console.log("更改卸车地后距离",juli)
|
|
console.log("更改卸车地后距离",juli)
|
|
@@ -668,7 +668,6 @@
|
|
this.detailData.carrierInfo.unloadingDate = this.detailData.carrierInfo.unloadingDate.split(" ")[0] +
|
|
this.detailData.carrierInfo.unloadingDate = this.detailData.carrierInfo.unloadingDate.split(" ")[0] +
|
|
" " + h + ":" + f + ":" + m
|
|
" " + h + ":" + f + ":" + m
|
|
}
|
|
}
|
|
- // this.detailData.carrierInfo.totalFreight = this.detailData.totalFreight
|
|
|
|
this.detailData.carrierInfo.carNo = this.detailData.carNumber
|
|
this.detailData.carrierInfo.carNo = this.detailData.carNumber
|
|
this.$request.baseRequest('post', '/carrierInfo/unLoadingAdd', this.detailData.carrierInfo).then(res => {
|
|
this.$request.baseRequest('post', '/carrierInfo/unLoadingAdd', this.detailData.carrierInfo).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -680,7 +679,7 @@
|
|
_title = '提交成功!'
|
|
_title = '提交成功!'
|
|
}
|
|
}
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
- this.$refs.uToast.show({
|
|
|
|
|
|
+ that.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: _title,
|
|
message: _title,
|
|
complete() {
|
|
complete() {
|