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,