Commit 6a35770e authored by youjie's avatar youjie

跟团列表

parent 67500c8c
......@@ -139,8 +139,17 @@
<!-- #ifdef MP-ALIPAY -->
<view v-if="item.orderState == 2" class="jz_Zailai" style="width: 110rpx; margin-right: 10rpx" @click.stop="goZhifuAli(item)">付款</view>
<!-- #endif -->
<!-- #ifdef MP-DI -->
<view v-if="item.isApplyForCancel != 1 && item.orderState != 4 && item.customerPayMoney==0" class="jz_Zailai"
style="width: 110rpx" @click.stop="goCancelZK(item)">取消</view>
<view v-if="item.isApplyForCancel != 1 && item.orderState != 4 && item.customerPayMoney==0" class="jz_Zailai"
style="width: 150rpx;margin-left: 10rpx;" @click.stop="goOrderDetail(item)">立即支付</view>
<!-- #endif -->
<!-- #ifdef MP-AG -->
<view v-if="item.isApplyForCancel != 1 && item.orderState != 4 && item.customerPayMoney==0" class="jz_Zailai"
style="width: 110rpx" @click.stop="goCancel(item)">取消</view>
<!-- #endif -->
</view>
</view>
</scroll-view>
......@@ -215,6 +224,7 @@
b2b_user_info: {},
userInfo: {},
showAuth: false,
submitCancel: false,
};
},
created() {
......@@ -392,6 +402,33 @@
);
}
},
goCancelZK(item) {
let that = this
if(this.submitCancel) return
this.submitCancel = true
if (
(item.paymentTime == null || item.paymentTime == "") &&
(item.orderState == 2 || item.orderState == 3)
) {
this.apipost(
"GetCancelOrder_post", {
OrderNo: '',
ErpOrderId: item.orderId,
OrderTypeStr: 'DMC',
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
});
that.research();
}
},
(err) => {}
);
}
},
//付款
// #ifdef MP-WEIXIN
goZhifu(item) {
......
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