Commit 091cd729 authored by youjie's avatar youjie

修复订单详情

parent 2790ef51
...@@ -1321,7 +1321,6 @@ ...@@ -1321,7 +1321,6 @@
}) })
} }
this.customer = uni.getStorageSync("b2b_user"); this.customer = uni.getStorageSync("b2b_user");
console.log(this.customer,'----')
// #ifdef MP-DI // #ifdef MP-DI
this.delMsg.directCustomerId = this.customer.customerId this.delMsg.directCustomerId = this.customer.customerId
// #endif // #endif
......
...@@ -602,7 +602,8 @@ ...@@ -602,7 +602,8 @@
showPayBtn: true, showPayBtn: true,
orderInfo:null, orderInfo:null,
OrderNo: '', OrderNo: '',
mainColor:'' mainColor:'',
orderId: 0,
}; };
}, },
created() {}, created() {},
...@@ -613,7 +614,8 @@ ...@@ -613,7 +614,8 @@
this.OrderNo = option.OrderNo this.OrderNo = option.OrderNo
this.getOrderInfoHandler(this.OrderNo) this.getOrderInfoHandler(this.OrderNo)
} else if (option.orderId) { } else if (option.orderId) {
this.initOrderInfo(option.orderId); this.orderId = option.orderId
this.initOrderInfo();
} }
this.mainColor = this.$uiConfig.mainColor this.mainColor = this.$uiConfig.mainColor
}, },
...@@ -681,7 +683,9 @@ ...@@ -681,7 +683,9 @@
getOrderInfoHandler(OrderNo){ getOrderInfoHandler(OrderNo){
this.apipost("GetDetailsByOrderNo_post",{OrderNo},res=>{ this.apipost("GetDetailsByOrderNo_post",{OrderNo},res=>{
if(res.resultCode==1){ if(res.resultCode==1){
this.initOrderInfo(res.data.ErpOrderId); this.OrderNo = res.data.OrderNo
this.orderId = res.data.ErpOrderId
this.initOrderInfo();
this.formatStatus( this.formatStatus(
res.data.OrderStatus, res.data.OrderStatus,
null, null,
...@@ -807,9 +811,9 @@ ...@@ -807,9 +811,9 @@
return arr[1] + "月" + arr[2] + "日"; return arr[1] + "月" + arr[2] + "日";
} }
}, },
initOrderInfo(orderId) { initOrderInfo() {
let msg = { let msg = {
ID: orderId, ID: this.orderId,
IsGetGuest: 1, IsGetGuest: 1,
}; };
this.apipost( this.apipost(
......
...@@ -602,7 +602,7 @@ ...@@ -602,7 +602,7 @@
if(option.orderId){ if(option.orderId){
this.orderId = option.orderId this.orderId = option.orderId
} }
if(option.orderId){ if(option.OrderNo){
this.OrderNo = option.OrderNo this.OrderNo = option.OrderNo
} }
this.getOrderInfoHandler() this.getOrderInfoHandler()
...@@ -670,6 +670,7 @@ ...@@ -670,6 +670,7 @@
},res=>{ },res=>{
if(res.resultCode==1){ if(res.resultCode==1){
this.OrderNo = res.data.OrderNo this.OrderNo = res.data.OrderNo
this.orderId = res.data.ErpOrderId
this.orderData = { this.orderData = {
...res.data ...res.data
} }
......
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