Commit f633a58d authored by youjie's avatar youjie

包车

parent 0368e3dc
...@@ -569,9 +569,10 @@ ...@@ -569,9 +569,10 @@
title: "支付成功", title: "支付成功",
}); });
setTimeout(() => { setTimeout(() => {
//跳转到详情页面
uni.redirectTo({ uni.redirectTo({
url: "/pages/bus/orderdetails?orderId=" + this.ErpOrderId, url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
(that.orderMsg.Money-that.currentCoupon.discountMoney).toFixed(2) +
"&isFrom=6",
}); });
}, 100); }, 100);
}, },
......
...@@ -96,7 +96,8 @@ ...@@ -96,7 +96,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class="ReservationInforBox"> <view class="ReservationInforBox"
style="padding: 37rpx 18rpx 0rpx 18rpx;">
<view class="ReservationInforTitle">{{orderData.OrderType==1?'接机':orderData.OrderType==2?'送机':'包车'}}信息</view> <view class="ReservationInforTitle">{{orderData.OrderType==1?'接机':orderData.OrderType==2?'送机':'包车'}}信息</view>
<view class="ResInforText row-sb-n"> <view class="ResInforText row-sb-n">
<view class="ResInforL">车型</view> <view class="ResInforL">车型</view>
...@@ -149,6 +150,9 @@ ...@@ -149,6 +150,9 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="orderData.OrderStatus==5" style="padding: 0 30rpx;">
<cancelProgress :datas="orderData"></cancelProgress>
</view>
<view class="ReservationInforBox"> <view class="ReservationInforBox">
<view class="big-title"> <view class="big-title">
<text>费用明细</text> <text>费用明细</text>
...@@ -175,8 +179,7 @@ ...@@ -175,8 +179,7 @@
<view style="text-align: right"> <view style="text-align: right">
{{orderData.Num}}辆× {{orderData.CurrencyCode}}{{ orderData.Unit_Price }} {{orderData.Num}}辆× {{orderData.CurrencyCode}}{{ orderData.Unit_Price }}
</view> </view>
</view> </view>
<view class="flex f12 grey" style="margin-bottom: 40rpx" :style="{'color':mainColor+' !important'}" <view class="flex f12 grey" style="margin-bottom: 40rpx" :style="{'color':mainColor+' !important'}"
v-if="orderData.DiscountsMoney&&orderData.DiscountsMoney>0"> v-if="orderData.DiscountsMoney&&orderData.DiscountsMoney>0">
<view style="flex: 1"> <view style="flex: 1">
...@@ -204,17 +207,17 @@ ...@@ -204,17 +207,17 @@
<view style="display: flex"> <view style="display: flex">
<!-- #ifdef MP-DI --> <!-- #ifdef MP-DI -->
<button v-if="orderData.OrderStatus==1||orderData.OrderStatus==5" class="jz_OrderReNow" <button v-if="orderData.OrderStatus==1||orderData.OrderStatus==5" class="jz_OrderReNow"
@click="goCancel" style="background: #fff; color: #111; border: 1px solid #111" @click="goCancelZK" style="background: #fff; color: #111; border: 1px solid #111"
:disabled="submitCancel" :loading="submitCancel"> :disabled="submitCancel" :loading="submitCancel">
取消 取消
</button> </button>
<button v-if="orderData.model.OrderStatus==1" class="jz_OrderReNow" style="margin-left: 20rpx;" <button v-if="orderData.OrderStatus==1" class="jz_OrderReNow" style="margin-left: 20rpx;"
@click="payHotelOrder" :disabled="submit" :loading="submit"> @click="payHotelOrder" :disabled="submit" :loading="submit">
立即支付 立即支付
</button> </button>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-AG --> <!-- #ifdef MP-AG -->
<button v-if="orderData.OrderStatus==1||orderData.model.OrderStatus==5" class="jz_OrderReNow" <button v-if="orderData.OrderStatus==1||orderData.OrderStatus==5" class="jz_OrderReNow"
@click="goCancel" style="background: #fff; color: #111; border: 1px solid #111" @click="goCancel" style="background: #fff; color: #111; border: 1px solid #111"
:disabled="submitCancel" :loading="submitCancel"> :disabled="submitCancel" :loading="submitCancel">
取消 取消
...@@ -340,13 +343,13 @@ ...@@ -340,13 +343,13 @@
}); });
this.customer = uni.getStorageSync("b2b_user") this.customer = uni.getStorageSync("b2b_user")
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
if (this.id) this.getOrderDetail(this.id); if (this.id) this.getOrderDetail();
}, },
methods: { methods: {
payHotelOrder() { payHotelOrder() {
let userInfo = uni.getStorageSync("mall_UserInfo"); let userInfo = uni.getStorageSync("mall_UserInfo");
var payMsg = { var payMsg = {
OrderNo: this.orderData.directOrder.OrderNo, OrderNo: this.OrderNo,
OpenId: userInfo.OpenId, OpenId: userInfo.OpenId,
MallBaseId:userInfo.MallBaseId, MallBaseId:userInfo.MallBaseId,
}; };
...@@ -383,7 +386,11 @@ ...@@ -383,7 +386,11 @@
title: "支付成功", title: "支付成功",
}); });
setTimeout(() => { setTimeout(() => {
that.getOrderDetail(that.id) uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
(that.orderData.Money-that.orderData.DiscountsMoney).toFixed(2) +
"&isFrom=6",
});
}, 100); }, 100);
}, },
fail: function(err) { fail: function(err) {
...@@ -395,6 +402,42 @@ ...@@ -395,6 +402,42 @@
}, },
}); });
}, },
goCancelZK() {
var that = this;
if (this.submitCancel) return
this.submitCancel = true;
wx.showModal({
title: '提示',
content: '确定取消订单?',
success: (tip) => {
if (tip.confirm) {
this.apipost(
"GetCancelOrder_post", {
OrderNo: this.OrderNo,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
});
that.submitCancel = false
that.getOrderDetail()
}
},
(err) => {
uni.showToast({
title: err.message,
icon: "none",
});
that.submitCancel = false
}
);
}
}
})
},
goCancel() { goCancel() {
// #ifdef MP-AG // #ifdef MP-AG
wx.showModal({ wx.showModal({
...@@ -416,17 +459,17 @@ ...@@ -416,17 +459,17 @@
if (this.submitCancel) return if (this.submitCancel) return
this.submitCancel = true; this.submitCancel = true;
var cancelMsg = { var cancelMsg = {
OrderNo: this.orderData.directOrder.OrderNo, OrderNo: this.OrderNo,
ErpOrderId: this.orderData.model.OrderID, ErpOrderId: this.id,
OrderTypeStr: "Hotel", //订单类型为酒店 OrderTypeStr: "Hotel", //订单类型为酒店
ConfirmID: "", ConfirmID: "",
}; };
//待付款-直接取消 //待付款-直接取消
if (this.orderData.model.OrderStatus == 1) { if (this.orderData.OrderStatus == 1) {
this.apipost( this.apipost(
"b2b_get_GetB2BAllCancelOrder", { "b2b_get_GetB2BAllCancelOrder", {
ID: this.id, ID: this.id,
OrderTypeStr: 'Vehicle', OrderTypeStr: "5",
}, },
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
...@@ -434,7 +477,7 @@ ...@@ -434,7 +477,7 @@
title: "操作成功", title: "操作成功",
icon: "success", icon: "success",
}); });
this.getOrderDetail(this.id) this.getOrderDetail()
} }
}, },
(err) => { (err) => {
...@@ -611,12 +654,12 @@ ...@@ -611,12 +654,12 @@
}); });
}, },
//获取详情 //获取详情
getOrderDetail(id) { getOrderDetail() {
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",
}); });
let msg = { let msg = {
OrderId: id, OrderId: this.id,
}; };
this.apipost("CarSingle_post_GetTYMyCarOrderInfo", msg, this.apipost("CarSingle_post_GetTYMyCarOrderInfo", msg,
(res) => { (res) => {
...@@ -647,10 +690,6 @@ ...@@ -647,10 +690,6 @@
this.apipost("GetDetailsByErpOrderId_post",parameter,res=>{ this.apipost("GetDetailsByErpOrderId_post",parameter,res=>{
if(res.resultCode==1){ if(res.resultCode==1){
this.OrderNo = res.data.OrderNo this.OrderNo = res.data.OrderNo
this.orderData = {
...this.orderData,
...res.data
}
this.formatStatus( this.formatStatus(
res.data.OrderStatus, res.data.OrderStatus,
null, null,
......
...@@ -74,6 +74,7 @@ export default { ...@@ -74,6 +74,7 @@ export default {
} else if (this.isLineOrder == 3) num = '6'//签证订单 } else if (this.isLineOrder == 3) num = '6'//签证订单
else if (this.isLineOrder == 4) num = '1'//机票订单 else if (this.isLineOrder == 4) num = '1'//机票订单
else if (this.isLineOrder == 5) num = '8,9,10,11'//酒店订单 else if (this.isLineOrder == 5) num = '8,9,10,11'//酒店订单
else if (this.isLineOrder == 6) num = '12,13,14'//包车订单
if(num){ if(num){
uni.redirectTo({ uni.redirectTo({
url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${num}`, url: `/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=${num}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment