Commit 38c92598 authored by youjie's avatar youjie

优化

parent de9e0ab3
......@@ -409,24 +409,33 @@
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) => {}
);
) {
wx.showModal({
title: '提示',
content: '确定取消订单?',
success: (tip) => {
if (tip.confirm) {
that.apipost(
"GetCancelOrder_post", {
OrderNo: '',
ErpOrderId: item.orderId,
OrderTypeStr: 'DMC',
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
});
that.research();
}
that.submitCancel = false
},
(err) => {}
);
}else that.submitCancel = false
}
})
}
},
//付款
......
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