Commit 84fc9056 by cen

fix:标记错误工单

1 parent d46289da
...@@ -543,7 +543,8 @@ export default { ...@@ -543,7 +543,8 @@ export default {
if (that.orderCardDetail.payId) { if (that.orderCardDetail.payId) {
// 校验订单是否可撤销(在退款流程中无法撤销) // 校验订单是否可撤销(在退款流程中无法撤销)
let refundStep = await uni.$api.equityApi.getOrderRefundStep({ orderCode: that.orderCardDetail.payId }) let refundStep = await uni.$api.equityApi.getOrderRefundStep({ orderCode: that.orderCardDetail.payId })
if (refundStep?.data == 'Y') return _this.showRefundAlert() console.log(refundStep, 'refundStep')
if (refundStep == 'Y') return that.showRefundAlert()
that.repeal(that.orderCardDetail.id) that.repeal(that.orderCardDetail.id)
} else { } else {
that.repeal(that.orderCardDetail.id) that.repeal(that.orderCardDetail.id)
...@@ -583,9 +584,13 @@ export default { ...@@ -583,9 +584,13 @@ export default {
}, },
showRefundAlert(type) { showRefundAlert(type) {
const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。' const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
console.log(text, 'text')
let title = '提示', let title = '提示',
btnText = '好的', btnText = '好的',
callbackFun = () => {} callbackFun = () => {
this.$refs.notice.close()
this.$refs.reportNotice.close()
}
this.noticeObj = { this.noticeObj = {
title, title,
text: text, text: text,
...@@ -598,6 +603,7 @@ export default { ...@@ -598,6 +603,7 @@ export default {
} }
] ]
} }
console.log(this.$refs.reportNotice)
this.$nextTick(() => this.$refs.reportNotice.open()) this.$nextTick(() => this.$refs.reportNotice.open())
// uni.showModal({ // uni.showModal({
// title: '提示', // title: '提示',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!