Commit 091cd729 authored by youjie's avatar youjie

修复订单详情

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