Commit 088c517e authored by youjie's avatar youjie

机票

parent 8da67fb3
...@@ -488,9 +488,13 @@ ...@@ -488,9 +488,13 @@
} else if(this.contactPhone=='' || this.contactPhone.length!=11){ } else if(this.contactPhone=='' || this.contactPhone.length!=11){
msg = '请输入11位联系电话' msg = '请输入11位联系电话'
}else if(this.Mailbox==''){ }else if(this.Mailbox==''){
// #ifdef MP-DI
msg = '请输入邮箱地址' msg = '请输入邮箱地址'
// #endif
}else if (!email.test(this.Mailbox)) { }else if (!email.test(this.Mailbox)) {
// #ifdef MP-DI
msg = '请输入正确的邮箱地址' msg = '请输入正确的邮箱地址'
// #endif
} else if(this.createBy.CreateBy==0){ } else if(this.createBy.CreateBy==0){
// #ifdef MP-AG // #ifdef MP-AG
msg = '请选择与你对接的服务人员' msg = '请选择与你对接的服务人员'
......
...@@ -584,6 +584,8 @@ ...@@ -584,6 +584,8 @@
showPayBtn: true, showPayBtn: true,
Refund: 0, Refund: 0,
orderInfo:null, orderInfo:null,
orderId: 0,
goodsType: 0,
OrderNo: '', OrderNo: '',
}; };
}, },
...@@ -591,11 +593,19 @@ ...@@ -591,11 +593,19 @@
onLoad(option) { onLoad(option) {
if (option.orderData) { if (option.orderData) {
this.orderData = JSON.parse(decodeURIComponent(option.orderData)); this.orderData = JSON.parse(decodeURIComponent(option.orderData));
} else if (option.orderId) { } else if (option.orderId&&!option.goodsType) {
this.initOrderInfo(option.orderId); this.initOrderInfo(option.orderId);
} else if(option.OrderNo){ } else if(option.OrderNo||(option.orderId&&option.goodsType)){
if(option.goodsType){
this.goodsType = option.goodsType
}
if(option.orderId){
this.orderId = option.orderId
}
if(option.orderId){
this.OrderNo = option.OrderNo this.OrderNo = option.OrderNo
this.getOrderInfoHandler(this.OrderNo) }
this.getOrderInfoHandler()
} }
}, },
methods: { methods: {
...@@ -652,13 +662,16 @@ ...@@ -652,13 +662,16 @@
}, },
}); });
}, },
getOrderInfoHandler(OrderNo){ getOrderInfoHandler(){
this.apipost("GetDetailsByOrderNo_post",{OrderNo},res=>{ this.apipost("GetDetailsByOrderNo_post",{
OrderNo: this.OrderNo,
orderId: this.orderId,
goodsType: this.goodsType,
},res=>{
if(res.resultCode==1){ if(res.resultCode==1){
this.orderData = { this.orderData = {
...res.data ...res.data
} }
console.log(this.orderData,'---111111')
this.initOrderInfo(res.data.ErpOrderId); this.initOrderInfo(res.data.ErpOrderId);
this.formatStatus( this.formatStatus(
res.data.OrderStatus, res.data.OrderStatus,
......
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