Commit 63a903c1 authored by 罗超's avatar 罗超

Merge branch 'B2C' of http://gitlab.oytour.com/zk123/jz_travel into B2C

parents 37430cb0 791b6f3e
...@@ -223,16 +223,20 @@ ...@@ -223,16 +223,20 @@
if(this.DataLists[this.i].loading){ if(this.DataLists[this.i].loading){
return return
} }
//未付款-调用后台取消
uni.showLoading({
title: "请稍等片刻...",
})
this.DataLists[this.i].loading = true
if ( if (
(item.paymentTime == null || item.paymentTime == "") && (item.paymentTime == null || item.paymentTime == "") &&
(item.orderState == 1||item.orderState == 2) (item.orderState == 1||item.orderState == 2)
) { ) {
this.apipost( wx.showModal({
title: '提示',
content: '确定取消订单?',
success: (tip) => {
if (tip.confirm) {
uni.showLoading({
title: "请稍等片刻...",
})
that.DataLists[that.i].loading = true
that.apipost(
"GetCancelOrder_post", "GetCancelOrder_post",
{ {
OrderNo: '', OrderNo: '',
...@@ -248,13 +252,20 @@ ...@@ -248,13 +252,20 @@
that.$emit('research',that.dataMsg.orderState) that.$emit('research',that.dataMsg.orderState)
} }
uni.hideLoading() uni.hideLoading()
this.DataLists[this.i].loading = false that.DataLists[that.i].loading = false
}, },
(err) => { (err) => {
uni.hideLoading() uni.hideLoading()
this.DataLists[this.i].loading = false that.DataLists[that.i].loading = false
} }
); );
}else {
this.DataLists[this.i].loading = false
uni.hideLoading()
}
}
})
} }
}, },
getDetail(orderId,s){ getDetail(orderId,s){
......
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
return n return n
}) })
let PriceNum = 0 let PriceNum = 0
var CreateBy = 0 var CreateBy = this.createBy.CreateBy
var DirectCustomerId = 0 var DirectCustomerId = 0
var CustomerId = 0 var CustomerId = 0
//#ifdef MP-DI //#ifdef MP-DI
...@@ -526,7 +526,6 @@ ...@@ -526,7 +526,6 @@
//#endif //#endif
//#ifdef MP-AG //#ifdef MP-AG
PriceNum = this.flight.B2CPrice PriceNum = this.flight.B2CPrice
CreateBy = this.createBy.CreateBy
CustomerId = this.customer.customerId CustomerId = this.customer.customerId
//#endif //#endif
const p = { const p = {
...@@ -570,8 +569,8 @@ ...@@ -570,8 +569,8 @@
// #ifdef MP-AG // #ifdef MP-AG
ClientType: 1, ClientType: 1,
// #endif // #endif
CreateBy: CreateBy, //同行联系人创建人 CustomerCreateBy
DirectCustomerId: DirectCustomerId, //直客Id DirectCustomerId: DirectCustomerId, //直客Id
orderForm: 4,// 订单来源 4-小程序
} }
return p return p
}, },
......
...@@ -410,7 +410,12 @@ ...@@ -410,7 +410,12 @@
(item.paymentTime == null || item.paymentTime == "") && (item.paymentTime == null || item.paymentTime == "") &&
(item.orderState == 2 || item.orderState == 3) (item.orderState == 2 || item.orderState == 3)
) { ) {
this.apipost( wx.showModal({
title: '提示',
content: '确定取消订单?',
success: (tip) => {
if (tip.confirm) {
that.apipost(
"GetCancelOrder_post", { "GetCancelOrder_post", {
OrderNo: '', OrderNo: '',
ErpOrderId: item.orderId, ErpOrderId: item.orderId,
...@@ -424,9 +429,13 @@ ...@@ -424,9 +429,13 @@
}); });
that.research(); that.research();
} }
that.submitCancel = false
}, },
(err) => {} (err) => {}
); );
}else that.submitCancel = false
}
})
} }
}, },
//付款 //付款
......
...@@ -1182,6 +1182,7 @@ ...@@ -1182,6 +1182,7 @@
// #ifdef MP-AG // #ifdef MP-AG
ClientType: 1, ClientType: 1,
// #endif // #endif
orderForm: 4,// 订单来源 4-小程序
}; };
if (this.realCurrentPriceInfo.priceUnion) { if (this.realCurrentPriceInfo.priceUnion) {
msg.DepartureCityId = this.realCurrentPriceInfo.priceUnion.unionCityId msg.DepartureCityId = this.realCurrentPriceInfo.priceUnion.unionCityId
......
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