From 7ca8ad05c5f1e7ac201d63c29e0215ebea4e1fc6 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Sat, 16 Mar 2024 15:06:07 +0800 Subject: [PATCH] bug --- .../src/views/EventMarketing/cardExchange/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue b/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue index 3cdc500ef..1d38b5fb1 100644 --- a/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue +++ b/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue @@ -181,6 +181,7 @@ :label="dict.name" :value="dict.id"> + @@ -337,13 +338,14 @@ export default { }, methods: { change(e){ - console.log(e) + // console.log(e) this.form.giftId = e getLJGoods(e).then(res => { this.form.productCount = res.data.stock this.stock = res.data.stock - this.$forceUpdate() - console.log(res.data.stock,111,this.form.productCount) + this.form.giftName = res.data.name + this.$forceUpdate() + // console.log(res.data.stock,111,this.form.productCount) }) }, goodsStock(val){ @@ -442,6 +444,11 @@ export default { this.reset() exchangeInfo(row.id).then(res => { this.form = res.data + if (res.data.giftId) { + getLJGoods(res.data.giftId).then(resp => { + this.stock = resp.data.stock + }) + } }) // this.form = row this.open = true