Commit 0368e3dc authored by youjie's avatar youjie

包车订单

parent 90569659
...@@ -446,6 +446,7 @@ ...@@ -446,6 +446,7 @@
{name: '男',value: 1}, {name: '男',value: 1},
{name: '女',value: 2}, {name: '女',value: 2},
], ],
ErpOrderId: '',
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -541,7 +542,7 @@ ...@@ -541,7 +542,7 @@
icon: 'none', icon: 'none',
title: '订单创建成功' title: '订单创建成功'
}) })
this.goPayHandler(res.data.OrderNo); this.goPayHandler(res.data);
} }
},err=>{ },err=>{
uni.showToast({ uni.showToast({
...@@ -570,7 +571,7 @@ ...@@ -570,7 +571,7 @@
setTimeout(() => { setTimeout(() => {
//跳转到详情页面 //跳转到详情页面
uni.redirectTo({ uni.redirectTo({
url: "/pages/bus/orderdetails?orderId=" + res.ErpOrderId, url: "/pages/bus/orderdetails?orderId=" + this.ErpOrderId,
}); });
}, 100); }, 100);
}, },
...@@ -582,7 +583,7 @@ ...@@ -582,7 +583,7 @@
}); });
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: "/pages/bus/orderdetails?orderId=" + res.ErpOrderId, url: "/pages/bus/orderdetails?orderId=" + this.ErpOrderId,
}); });
}, 100); }, 100);
}, },
...@@ -933,6 +934,7 @@ ...@@ -933,6 +934,7 @@
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
const tempData = res.data const tempData = res.data
this.ErpOrderId = tempData.Id
if(tempData.CounponList && tempData.CounponList.length>0){ if(tempData.CounponList && tempData.CounponList.length>0){
uni.setStorageSync('coupons',tempData.CounponList) uni.setStorageSync('coupons',tempData.CounponList)
} }
......
...@@ -647,6 +647,10 @@ ...@@ -647,6 +647,10 @@
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,
......
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