fix: 修复详情页消审显示并跳转编辑

This commit is contained in:
2026-11-09 13:45:12 +08:00
parent 036b331e9a
commit 4825cd13f2
10 changed files with 185 additions and 80 deletions
@@ -121,15 +121,21 @@ export default {
confirmOrderStatusAction(this, {
orderId: this.orderId,
action,
onSuccess: () => this.$u.api.fpmPrcInOrder.detail({ id: this.orderId })
.then((res) => {
uni.hideLoading();
const order = normalizeOrder(res);
if (order) this.order = order;
const voice = util.statusSuccessVoice(action);
util.playSuccessAudio(voice);
uni.showToast({ title: voice, icon: 'success' });
}),
onSuccess: () => {
uni.hideLoading();
const voice = util.statusSuccessVoice(action);
util.playSuccessAudio(voice);
uni.showToast({ title: voice, icon: 'success' });
if (action === 'unapprove') {
uni.redirectTo({ url: `./storeGoodsPurchaseInEdit?id=${this.orderId}` });
return;
}
return this.$u.api.fpmPrcInOrder.detail({ id: this.orderId })
.then((res) => {
const order = normalizeOrder(res);
if (order) this.order = order;
});
},
});
},
showError(message) {