|
@@ -129,7 +129,7 @@
|
|
jykkNum:1,
|
|
jykkNum:1,
|
|
customerName:'',
|
|
customerName:'',
|
|
mobilePhone:'',
|
|
mobilePhone:'',
|
|
-
|
|
|
|
|
|
+ isGoing:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
@@ -156,6 +156,10 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
submitOrder(){
|
|
submitOrder(){
|
|
|
|
+ if(this.isGoing){
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ this.isGoing=true;
|
|
this.$http('openShopHelpSheetOrder/submitOrder', {
|
|
this.$http('openShopHelpSheetOrder/submitOrder', {
|
|
helpType:this.opt.type,
|
|
helpType:this.opt.type,
|
|
customerName: this.customerName,
|
|
customerName: this.customerName,
|
|
@@ -164,12 +168,17 @@
|
|
shopID: this.opt.shopId,
|
|
shopID: this.opt.shopId,
|
|
plateNumber: this.carInfo.plateNumber,
|
|
plateNumber: this.carInfo.plateNumber,
|
|
carModel:this.carInfo.carModel,
|
|
carModel:this.carInfo.carModel,
|
|
- hEndAddress:'',
|
|
|
|
- hStartAddress:'',
|
|
|
|
|
|
+ hEndAddress:this.opt.endAddress,
|
|
|
|
+ hStartAddress:this.opt.currentAddress,
|
|
orderType:1,
|
|
orderType:1,
|
|
hTime:this.opt.time,
|
|
hTime:this.opt.time,
|
|
hscene:this.jykkNum,
|
|
hscene:this.jykkNum,
|
|
|
|
+ startLng:this.opt.lng,
|
|
|
|
+ startLat:this.opt.lat,
|
|
|
|
+ endLng:this.opt.endLng,
|
|
|
|
+ endLat:this.opt.endLat,
|
|
},'POST').then(res => {
|
|
},'POST').then(res => {
|
|
|
|
+ this.isGoing=false;
|
|
if(res.code==0){
|
|
if(res.code==0){
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -183,13 +192,10 @@
|
|
url:'index'
|
|
url:'index'
|
|
})
|
|
})
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
- // console.log('用户点击取消');
|
|
|
|
- // uni.reLaunch({
|
|
|
|
- // url:'../user/bespeakDetail?id='+id
|
|
|
|
- // })
|
|
|
|
- uni.redirectTo({
|
|
|
|
- url:'../user/bespeakDetail?id='+id
|
|
|
|
- })
|
|
|
|
|
|
+ // uni.hideLoading();
|
|
|
|
+ /* uni.redirectTo({
|
|
|
|
+ url:'../subPack/rescueOrderOrderDetail?id='+id
|
|
|
|
+ }) */
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -205,7 +211,11 @@
|
|
duration: 3000
|
|
duration: 3000
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ if(!this.isGoing){
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ this.isGoing=true;
|
|
this.$http('openreservation/saveOrderSheet', {
|
|
this.$http('openreservation/saveOrderSheet', {
|
|
billDate: this.billDate,
|
|
billDate: this.billDate,
|
|
comment: this.comment,
|
|
comment: this.comment,
|
|
@@ -214,7 +224,8 @@
|
|
shopId: this.yyshopInfo.id,
|
|
shopId: this.yyshopInfo.id,
|
|
unionId: this.userInfo.unionId
|
|
unionId: this.userInfo.unionId
|
|
},'POST').then(res => {
|
|
},'POST').then(res => {
|
|
- var id=res.data
|
|
|
|
|
|
+ var id=res.data;
|
|
|
|
+ this.isGoing=false;
|
|
if(res.code==0){
|
|
if(res.code==0){
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -233,7 +244,7 @@
|
|
// url:'../user/bespeakDetail?id='+id
|
|
// url:'../user/bespeakDetail?id='+id
|
|
// })
|
|
// })
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
- url:'../user/bespeakDetail?id='+id
|
|
|
|
|
|
+ url:'../subPack/rescueOrderOrderDetail?id='+id
|
|
})
|
|
})
|
|
|
|
|
|
}
|
|
}
|