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

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

parents 37430cb0 791b6f3e
...@@ -223,38 +223,49 @@ ...@@ -223,38 +223,49 @@
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({
"GetCancelOrder_post", title: '提示',
{ content: '确定取消订单?',
OrderNo: '', success: (tip) => {
ErpOrderId: item.orderId, if (tip.confirm) {
OrderTypeStr: 'DMC', uni.showLoading({
}, title: "请稍等片刻...",
(res) => { })
if (res.resultCode == 1) { that.DataLists[that.i].loading = true
uni.showToast({ that.apipost(
title: "操作成功", "GetCancelOrder_post",
icon: "success", {
}); OrderNo: '',
that.$emit('research',that.dataMsg.orderState) ErpOrderId: item.orderId,
OrderTypeStr: 'DMC',
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
});
that.$emit('research',that.dataMsg.orderState)
}
uni.hideLoading()
that.DataLists[that.i].loading = false
},
(err) => {
uni.hideLoading()
that.DataLists[that.i].loading = false
}
);
}else {
this.DataLists[this.i].loading = false
uni.hideLoading()
}
} }
uni.hideLoading() })
this.DataLists[this.i].loading = false
},
(err) => {
uni.hideLoading()
this.DataLists[this.i].loading = false
}
);
} }
}, },
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,9 +526,8 @@ ...@@ -526,9 +526,8 @@
//#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 = {
OrderId:0, OrderId:0,
TCID:this.id, TCID:this.id,
...@@ -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
}, },
......
...@@ -409,24 +409,33 @@ ...@@ -409,24 +409,33 @@
if ( if (
(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({
"GetCancelOrder_post", { title: '提示',
OrderNo: '', content: '确定取消订单?',
ErpOrderId: item.orderId, success: (tip) => {
OrderTypeStr: 'DMC', if (tip.confirm) {
}, that.apipost(
(res) => { "GetCancelOrder_post", {
if (res.resultCode == 1) { OrderNo: '',
uni.showToast({ ErpOrderId: item.orderId,
title: "操作成功", OrderTypeStr: 'DMC',
icon: "success", },
}); (res) => {
that.research(); if (res.resultCode == 1) {
} uni.showToast({
}, title: "操作成功",
(err) => {} icon: "success",
); });
that.research();
}
that.submitCancel = false
},
(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