| | |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules" label-width="120px" label-suffix=":" inline> |
| | | <el-form :model="form" ref="form" :rules="rules" label-width="120px" label-suffix=":" > |
| | | <p class="tip-header" >基本属性</p> |
| | | <el-form-item label="优惠券名称" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请输入优惠券名称" :maxlength="12" v-trim/> |
| | |
| | | <p class="tip-header" >发放规则</p> |
| | | <el-form-item label="发放总量" prop="num"> |
| | | <div class="num-style"> |
| | | <el-input-number v-model="form.num" :controls="false" :min="0" :max="99999" placeholder="请输入发放总量(0~99999)" v-trim></el-input-number> |
| | | <el-input v-model="form.num" type="number" :controls="false" :min="0" :max="99999" placeholder="请输入发放总量(0~99999)" v-trim></el-input > |
| | | </div> |
| | | <p class="tip-warn" style="margin-bottom: 1px;"><i class="el-icon-warning"></i>提醒:发放总量为0表示不限制</p> |
| | | </el-form-item> |
| | |
| | | } |
| | | } |
| | | const numRule = (rule, value, callBack) => { |
| | | if (value < 0) { |
| | | if (value ==='') { |
| | | callBack(new Error()) |
| | | } else if (value < 0) { |
| | | callBack(new Error()) |
| | | } else { |
| | | callBack() |
| | |
| | | applyCateIdList: [], |
| | | type: 0, |
| | | limitPrice: '', |
| | | maxPrice:'', |
| | | price: '', |
| | | startDate: '', |
| | | endDate: '', |
| | |
| | | getMethod: '', |
| | | integral: '', |
| | | status: '', |
| | | num: '', |
| | | num: 0, |
| | | info: '' |
| | | }, |
| | | shops: [], |
| | |
| | | this.getDate = [] |
| | | this.form.startDate = '' |
| | | this.form.endDate = '' |
| | | this.form.validDays='' |
| | | this.form.maxPrice ='' |
| | | this.applyDataList = [] |
| | | this.form.applyIdList = [] |
| | | this.form.applyCateIdList = [] |
| | |
| | | this.form.price = null |
| | | this.form.startDate = null |
| | | this.form.endDate = null |
| | | this.form.num = 1 |
| | | this.form.num = 0 |
| | | // 新建 |
| | | if (target == null) { |
| | | this.$nextTick(() => { |