|
|
|
@ -57,13 +57,13 @@
|
|
|
|
|
<el-form-item label="限购"> |
|
|
|
|
<el-input-number v-model="form.num" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="单次砍最高价"> |
|
|
|
|
<!-- <el-form-item label="单次砍最高价"> |
|
|
|
|
<el-input-number v-model="form.bargainMaxPrice" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="单次砍最低价"> |
|
|
|
|
<el-input-number v-model="form.bargainMinPrice" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="用户每次砍价的次数"> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<el-form-item label="单用户砍价次数"> |
|
|
|
|
<el-input-number v-model="form.bargainNum" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="砍价状态"> |
|
|
|
@ -246,6 +246,9 @@ export default {
|
|
|
|
|
} else this.doEdit() |
|
|
|
|
}, |
|
|
|
|
doAdd() { |
|
|
|
|
//不再设最低价及最高价 |
|
|
|
|
this.form.bargainMinPrice=0.01 //最少砍的钱 |
|
|
|
|
this.form.bargainMaxPrice=this.form.price-this.form.minPrice //最多砍的钱 |
|
|
|
|
add(this.form).then(res => { |
|
|
|
|
if (res.status==500){ |
|
|
|
|
this.loading = false |
|
|
|
@ -266,6 +269,8 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
doEdit() { |
|
|
|
|
this.form.bargainMinPrice=0.01 //最少砍的钱 |
|
|
|
|
this.form.bargainMaxPrice=this.form.price-this.form.minPrice //最多砍的钱 |
|
|
|
|
edit(this.form).then(res => { |
|
|
|
|
this.resetForm() |
|
|
|
|
this.$notify({ |
|
|
|
|