| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="总限额"> |
| | | <el-input class="w400" v-model="param.saleLimit" oninput="value=value.replace(/^(0+)|[^\d]+/g, '').slice(0, 12)" |
| | | <el-input class="w400" v-model="param.saleLimit" oninput="value=value.replace(/^(-1+)|[^\d]+/g, '').slice(0, 12)" |
| | | placeholder="请输入总发售数量" v-trim /> |
| | | <div class="placeholder9">请输入总发售数量,销量大于该数量后,不再支持销售;为空表示不限制</div> |
| | | </el-form-item> |
| | | <el-form-item label="日限额"> |
| | | <el-input class="w400" v-model="param.saleDayLimit" |
| | | oninput="value=value.replace(/^(0+)|[^\d]+/g, '').slice(0, 12)" placeholder="请输入单日发售数量" v-trim /> |
| | | oninput="value=value.replace(/^(-1+)|[^\d]+/g, '').slice(0, 12)" placeholder="请输入单日发售数量" v-trim /> |
| | | <div class="placeholder9">请输入日发售数量,当日销量大于该数量后,不再支持销售;为空表示不限制</div> |
| | | </el-form-item> |
| | | |
| | |
| | | comboDetailPost(id).then(res => { |
| | | this.param = res |
| | | this.$set(this.param, 'saleDate', [res.startDate, res.endDate]) |
| | | if (res.useStartDate && res.useEndDate) { |
| | | if (res.useStartDate && res.useEndDate && res.type != 0) { |
| | | this.$set(this.param, 'useDate', [res.useStartDate, res.useEndDate]) |
| | | } |
| | | this.$set(this.param, id, type == 'copy' ? null : this.param.id) |
| | | this.$set(this.param, 'id', type == 'copy' ? null : this.param.id) |
| | | }) |
| | | }, |
| | | } |