推广管理-优惠券管理-优惠券-赠送优惠券增加可选数量
This commit is contained in:
parent
3c7bd9a97f
commit
2649f0f356
|
@ -270,6 +270,10 @@
|
|||
<el-radio :label="2">所有用户</el-radio>
|
||||
</el-radio-group>
|
||||
</div> -->
|
||||
<div style="margin: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">赠送数量:</span>
|
||||
<el-input-number v-model="yhqzssl" size="small" :min="1" :step="1" :precision="0"></el-input-number>
|
||||
</div>
|
||||
<div style="margin: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">选择用户:</span>
|
||||
<el-tag :key="tag" v-for="(tag,j) in userNameList" closable :disable-transitions="false"
|
||||
|
@ -419,6 +423,7 @@ import { serverPaths } from '@/utils/enumData'
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
yhqzssl:1,//优惠券赠送数量
|
||||
uploadUrl: serverPaths.uploadUrl,
|
||||
size: 10,
|
||||
page: 1,
|
||||
|
@ -885,6 +890,7 @@ import { serverPaths } from '@/utils/enumData'
|
|||
},
|
||||
// 赠送优惠券
|
||||
songCoupon(row) {
|
||||
this.yhqzssl = 1 //重置优惠券默认赠送数量为1
|
||||
this.userIdList = []
|
||||
this.couponIds = row.couponId
|
||||
this.userNameList = []
|
||||
|
@ -930,7 +936,8 @@ import { serverPaths } from '@/utils/enumData'
|
|||
method: 'get',
|
||||
params: this.$http.adornParams({
|
||||
'userIds': userIdList,
|
||||
'couponId': this.couponIds
|
||||
'couponId': this.couponIds,
|
||||
'amount':this.yhqzssl
|
||||
})
|
||||
}).then(({
|
||||
data
|
||||
|
|
Loading…
Reference in New Issue