Commit 84fc9056 by cen

fix:标记错误工单

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