Commit 38c92598 authored by youjie's avatar youjie

优化

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