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