Commit 24bb6891 authored by youjie's avatar youjie

签证

parent 13f24301
...@@ -139,8 +139,15 @@ ...@@ -139,8 +139,15 @@
<!-- #ifdef MP-ALIPAY --> <!-- #ifdef MP-ALIPAY -->
<!-- <view class="jz_Zailai" style="width: 110rpx; margin-right: 10rpx" @click.stop="goZhifuAli(item)">付款</view> --> <!-- <view class="jz_Zailai" style="width: 110rpx; margin-right: 10rpx" @click.stop="goZhifuAli(item)">付款</view> -->
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-DI -->
<button v-if="item.visaOrderStatus==1" class="jz_Zailai"
style="width: 110rpx" @click.stop="goCancelZK(item)"
:disabled="submitCancel">取消</button>
<!-- #endif -->
<!-- #ifdef MP-AG -->
<view v-if="item.visaOrderStatus==3" class="jz_Zailai" <view v-if="item.visaOrderStatus==3" class="jz_Zailai"
style="width: 110rpx" @click.stop="goCancel(item)">取消</view> style="width: 110rpx" @click.stop="goCancel(item)">取消</view>
<!-- #endif -->
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
...@@ -207,6 +214,7 @@ ...@@ -207,6 +214,7 @@
b2b_user_info: {}, b2b_user_info: {},
userInfo: {}, userInfo: {},
showAuth: false, showAuth: false,
submitCancel: false,
}; };
}, },
created() { created() {
...@@ -270,9 +278,17 @@ ...@@ -270,9 +278,17 @@
} }
}, },
goOrderDetail(item) { goOrderDetail(item) {
// #ifdef MP-DI
uni.navigateTo({
url: `/pages/visa/visa_SureOrder?orderId=${item.id}&OrderTypeStr=Visa`,
});
// #endif
// #ifdef MP-AG
uni.navigateTo({ uni.navigateTo({
url: "/pages/visa/visa_SureOrder?orderId=" + item.id, url: `/pages/visa/visa_SureOrder?orderId=${item.id}`,
}); });
// #endif
}, },
change(i) { change(i) {
this.current = i; this.current = i;
...@@ -365,6 +381,36 @@ ...@@ -365,6 +381,36 @@
} }
}) })
},
goCancelZK(item) {
let that = this
if(this.submitCancel) return
this.submitCancel = true
wx.showModal({
title: '提示',
content: '确定取消订单?',
success: (tip) => {
if (tip.confirm) {
that.apipost(
"GetCancelOrder_post", {
OrderNo: 0,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
});
that.research();
}
that.submitCancel = false
},
(err) => {}
);
}else that.submitCancel = false
}
})
}, },
//付款 //付款
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
......
...@@ -585,7 +585,7 @@ ...@@ -585,7 +585,7 @@
Refund: 0, Refund: 0,
orderInfo:null, orderInfo:null,
orderId: 0, orderId: 0,
goodsType: 0, OrderTypeStr: 0,
OrderNo: '', OrderNo: '',
}; };
}, },
...@@ -593,11 +593,11 @@ ...@@ -593,11 +593,11 @@
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&&!option.goodsType) { } else if (option.orderId&&!option.OrderTypeStr) {
this.initOrderInfo(option.orderId); this.initOrderInfo(option.orderId);
} else if(option.OrderNo||(option.orderId&&option.goodsType)){ } else if(option.OrderNo||(option.orderId&&option.OrderTypeStr)){
if(option.goodsType){ if(option.OrderTypeStr){
this.goodsType = option.goodsType this.OrderTypeStr = option.OrderTypeStr
} }
if(option.orderId){ if(option.orderId){
this.orderId = option.orderId this.orderId = option.orderId
...@@ -663,10 +663,10 @@ ...@@ -663,10 +663,10 @@
}); });
}, },
getOrderInfoHandler(){ getOrderInfoHandler(){
this.apipost("GetDetailsByOrderNo_post",{ this.apipost("GetDetailsByErpOrderId_post",{
OrderNo: this.OrderNo, OrderNo: this.OrderNo,
orderId: this.orderId, ErpOrderId: this.orderId,
goodsType: this.goodsType, OrderTypeStr: this.OrderTypeStr,
},res=>{ },res=>{
if(res.resultCode==1){ if(res.resultCode==1){
this.orderData = { this.orderData = {
......
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