Commit 42850222 by 黑潮

update: 优化逻辑

parent 968e0735
......@@ -390,6 +390,13 @@ export default {
}
},
methods: {
onChangeNumber(val) {
if (!val) {
this.$nextTick(() => {
this.form.cardCodeCount = 0;
});
}
},
changeOnly(val) {
this.form.useDescript = val ? '不可与其他卡券叠加使用,详询门店' : '可与部分卡券叠加使用,详询门店';
},
......
......@@ -236,7 +236,7 @@
</el-form-item>
<el-form-item prop="cardCodeCount" :label="form.useCustomCode ? '默认数量' : '新建数量'">
<div v-show="!form.useCustomCode"><el-input-number controls-position="right" :min="0" :max="10000000" :disabled="isEdit || isInfo" class="w200" v-model="form.cardCodeCount" @blur="val => !val && (form.cardCodeCount = 0)"></el-input-number><span class="fz13 gray">优惠券创建数量默认为100,000张</span></div>
<div v-show="!form.useCustomCode"><el-input-number controls-position="right" :min="0" :max="10000000" :disabled="isEdit || isInfo" class="w200" v-model="form.cardCodeCount" @change="onChangeNumber"></el-input-number><span class="fz13 gray">优惠券创建数量默认为100,000张</span></div>
<div v-show="form.useCustomCode"><el-input-number controls-position="right" :min="0" :max="100000" disabled class="w200" :value="form.customCodeEnd - form.customCodeBegin + 1"></el-input-number><span class="fz13 gray">优惠券创建数量默认为100,000张</span></div>
</el-form-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment