From b22c153f3d199f7010ee25b551fd5e604b544b6a Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 20 May 2022 15:39:12 +0800 Subject: [PATCH] BUG 29744 --- .../scoreSupermarket/orderManagement.vue | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/packages/conv/creditScore/scoreSupermarket/orderManagement.vue b/packages/conv/creditScore/scoreSupermarket/orderManagement.vue index 78c3294d..bf43503a 100644 --- a/packages/conv/creditScore/scoreSupermarket/orderManagement.vue +++ b/packages/conv/creditScore/scoreSupermarket/orderManagement.vue @@ -195,14 +195,13 @@ fixed="right"> @@ -325,14 +324,26 @@ export default { } }).then(res => { if (res.code == 0) { - this.$message.success(`批量${val == 1 ? '完成' : '取消'}成功`) + this.$message.success(`批量${val == 1 ? '兑换' : '取消'}成功`) this.getList() } }) }, + handlePendingOrder(ids, status) { + let text = status == 1 ? "确认兑换" : "取消订单" + this.$confirm(`是否${text}?`).then(() => { + this.instance.post(`/app/appvillagerintegralshoporder/changeOrderStatus`, null, { + params: {ids, status} + }).then(res => { + if (res.code == 0) { + this.$message.success(`${text}成功`) + this.getList() + } + }) + }).catch(() => 0) + }, getList() { - this.instance - .post(`/app/appvillagerintegralshoporder/list`, null, { + this.instance.post(`/app/appvillagerintegralshoporder/list`, null, { params: { ...this.searchObj, ...this.page,