fix: 修复详情页消审显示并跳转编辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user