From d20c7f151dec321b7092aecf1d739d3736d9d16c Mon Sep 17 00:00:00 2001 From: "@QQNZX" Date: Tue, 5 Mar 2024 17:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/EventMarketing/giftBlock.js | 7 ++++ .../views/EventMarketing/giftBlock/index.vue | 42 +++++++++++++------ 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/fuintAdmin/src/api/EventMarketing/giftBlock.js b/fuintAdmin/src/api/EventMarketing/giftBlock.js index 7e07f531a..da58bfbc1 100644 --- a/fuintAdmin/src/api/EventMarketing/giftBlock.js +++ b/fuintAdmin/src/api/EventMarketing/giftBlock.js @@ -77,6 +77,13 @@ export function getqb() { method: 'get', }) } +export function getsk(data) { + return request({ + url: 'business/marketingActivity/cardGift', + method: 'put', + data:data + }) +} export function getyi() { return request({ url: 'business/marketingActivity/cardGift/countGiftValue?useStatus=1', diff --git a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue index 5d1190ae0..576a45ec7 100644 --- a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue +++ b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue @@ -3,7 +3,7 @@
- + + + + @@ -225,16 +235,7 @@ > - - - 售卡 @@ -314,10 +315,10 @@ import { oilDepotConfiguration, getdownload, getselectGiftValue, - getyi, getwei, - getqb + getqb, + getsk } from "@/api/EventMarketing/giftBlock"; import {getToken} from "@/utils/auth"; export default { @@ -419,6 +420,21 @@ import { }, methods:{ + getwysk(row){ + if(row.sailStatus == 1){ + this.$message.error("此卡已经售出过了呦") + return + } + let data = { + id:row.id, + sailStatus :1 + } + getsk(data).then(res=>{ + this.getlist() + console.log(res) + this.$message.success("售卡成功") + }) + }, // 下载 handleChange(file, fileList) {