|
|
|
@ -339,7 +339,10 @@ |
|
|
|
this.tuanzhangOrder = res.result; |
|
|
|
this.$refs.pintuanPopup.open('center') |
|
|
|
} else { |
|
|
|
that.tui.toast(res.message); |
|
|
|
uni.showToast({ |
|
|
|
title: res.message, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
uni.hideLoading(); |
|
|
|
@ -370,7 +373,10 @@ |
|
|
|
|
|
|
|
const orderId = item && item.mallOrder ? item.mallOrder.id : item && item.orderId; |
|
|
|
if (!orderId) { |
|
|
|
this.tui.toast('订单信息不存在'); |
|
|
|
uni.showToast({ |
|
|
|
title: '订单信息不存在', |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
uni.navigateTo({ |
|
|
|
@ -405,7 +411,10 @@ |
|
|
|
that.loadStatus = that.mode == 'record' && that.searchCountForm.pageNum < that.totalPages ? 'more' : 'nomore'; |
|
|
|
that.$forceUpdate(); |
|
|
|
} else { |
|
|
|
that.tui.toast(res.message); |
|
|
|
uni.showToast({ |
|
|
|
title: res.message, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
uni.hideLoading(); |
|
|
|
@ -473,7 +482,10 @@ |
|
|
|
confirmReject() { |
|
|
|
const reason = (this.rejectReason || '').trim(); |
|
|
|
if (reason === '') { |
|
|
|
this.tui.toast('请输入拒绝原因'); |
|
|
|
uni.showToast({ |
|
|
|
title: '请输入拒绝原因', |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
const item = this.rejectItem; |
|
|
|
@ -519,14 +531,23 @@ |
|
|
|
const successMessage = messageList[0] || '操作成功'; |
|
|
|
return this.getReturnCount().then(() => { |
|
|
|
this.resetSubmitState(); |
|
|
|
this.tui.toast(successMessage, 2000, true); |
|
|
|
uni.showToast({ |
|
|
|
title: successMessage, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
this.resetSubmitState(); |
|
|
|
this.tui.toast(successMessage, 2000, true); |
|
|
|
uni.showToast({ |
|
|
|
title: successMessage, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
}); |
|
|
|
}).catch((message) => { |
|
|
|
this.resetSubmitState(); |
|
|
|
this.tui.toast(this.getRequestErrorMessage(message), 2000); |
|
|
|
uni.showToast({ |
|
|
|
title: this.getRequestErrorMessage(message), |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|