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