修改bug
This commit is contained in:
parent
4ad5c68a47
commit
efa108422a
|
@ -29,6 +29,12 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="endDate" label="优惠券有效期限(天)" width="150">
|
<el-table-column prop="endDate" label="优惠券有效期限(天)" width="150">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="couType" label="优惠券类型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.couType==1">新人优惠卷</span>
|
||||||
|
<span v-if="scope.row.couType==2">其他</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="150">
|
<el-table-column label="操作" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button size="mini" type="primary" :disabled="!isAuth('couponYhq:issue')"
|
<!-- <el-button size="mini" type="primary" :disabled="!isAuth('couponYhq:issue')"
|
||||||
|
@ -100,6 +106,13 @@
|
||||||
<el-input style="width:50%;" v-model="endDate" type="number" :min="1" placeholder="请输入优惠券最低消费">
|
<el-input style="width:50%;" v-model="endDate" type="number" :min="1" placeholder="请输入优惠券最低消费">
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin-bottom: 10px;">
|
||||||
|
<span style="width: 200px;display: inline-block;text-align: right;">优惠券类型:</span>
|
||||||
|
<el-radio-group v-model="couType">
|
||||||
|
<el-radio :label="1">新人优惠卷</el-radio>
|
||||||
|
<el-radio :label="2">其他</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</div>
|
||||||
<!-- <div style="margin-bottom: 10px;">
|
<!-- <div style="margin-bottom: 10px;">
|
||||||
<span style="width: 200px;display: inline-block;text-align: right;">排序:</span>
|
<span style="width: 200px;display: inline-block;text-align: right;">排序:</span>
|
||||||
<el-input style="width:50%;" v-model="sort" type="number" :min="0" placeholder="请输入排序号"></el-input>
|
<el-input style="width:50%;" v-model="sort" type="number" :min="0" placeholder="请输入排序号"></el-input>
|
||||||
|
@ -145,6 +158,12 @@
|
||||||
<el-form-item label="优惠券有效期限(天):" :label-width="formLabelWidth">
|
<el-form-item label="优惠券有效期限(天):" :label-width="formLabelWidth">
|
||||||
<el-input v-model="form.endDate" style="width:65%;" placeholder="请输入优惠券有效期限(天)"></el-input>
|
<el-input v-model="form.endDate" style="width:65%;" placeholder="请输入优惠券有效期限(天)"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="优惠卷类型:" :label-width="formLabelWidth">
|
||||||
|
<el-radio-group v-model="form.couType">
|
||||||
|
<el-radio :label="1">新人优惠卷</el-radio>
|
||||||
|
<el-radio :label="2">其他</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible3 = false">取 消</el-button>
|
<el-button @click="dialogFormVisible3 = false">取 消</el-button>
|
||||||
|
@ -415,6 +434,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
endDate: 1,
|
endDate: 1,
|
||||||
sort: 0,
|
sort: 0,
|
||||||
status: 1,
|
status: 1,
|
||||||
|
couType: 1,
|
||||||
goodsIds: '',
|
goodsIds: '',
|
||||||
goodsImages: '',
|
goodsImages: '',
|
||||||
issueNumber: 0,
|
issueNumber: 0,
|
||||||
|
@ -426,7 +446,8 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
money: '',
|
money: '',
|
||||||
minMoney: '',
|
minMoney: '',
|
||||||
endDate: '',
|
endDate: '',
|
||||||
couponPicture: ''
|
couponPicture: '',
|
||||||
|
couType: ''
|
||||||
},
|
},
|
||||||
coverImg: '',
|
coverImg: '',
|
||||||
couponName1: '',
|
couponName1: '',
|
||||||
|
@ -568,6 +589,15 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (!this.couType) {
|
||||||
|
this.$notify({
|
||||||
|
title: '提示',
|
||||||
|
duration: 1800,
|
||||||
|
message: '优惠卷类型不能为空',
|
||||||
|
type: 'warning'
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('admin/coupon/issueCoupon'),
|
url: this.$http.adornUrl('admin/coupon/issueCoupon'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
@ -577,6 +607,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
'money': this.money,
|
'money': this.money,
|
||||||
'minMoney': this.minMoney,
|
'minMoney': this.minMoney,
|
||||||
'endDate': this.endDate,
|
'endDate': this.endDate,
|
||||||
|
'couType': this.couType,
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
@ -612,6 +643,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
this.form.minMoney = row.minMoney
|
this.form.minMoney = row.minMoney
|
||||||
this.form.endDate = row.endDate
|
this.form.endDate = row.endDate
|
||||||
this.form.couponPicture = row.couponPicture
|
this.form.couponPicture = row.couponPicture
|
||||||
|
this.form.couType = row.couType
|
||||||
},
|
},
|
||||||
amendNoticeTo() {
|
amendNoticeTo() {
|
||||||
this.form.minMoney = Number(this.form.minMoney)
|
this.form.minMoney = Number(this.form.minMoney)
|
||||||
|
|
Loading…
Reference in New Issue