Commit 4c3ef259 by crushh

udpate: 切换保留

parent 29d84672
......@@ -508,6 +508,10 @@ export default {
},
//切换卡券类型 表单置为默认值
reset(e) {
if (this.form.cardCodePrefixCheck || this.form.cardCodePrefix) {
initForm.cardCodePrefixCheck = this.form.cardCodePrefixCheck;
initForm.cardCodePrefix = this.form.cardCodePrefix;
}
this.form = JSON.parse(JSON.stringify(initForm));
this.sale_limit = JSON.parse(JSON.stringify(sale_limit));
this.goods = JSON.parse(JSON.stringify(goods));
......
......@@ -233,8 +233,8 @@
<span class="fz13 gray">卡券code格式:随机编码</span>
<div class="pt20">
<el-checkbox v-model="form.cardCodePrefixCheck" :true-label="1" :false-label="0" :disabled="isEdit || isInfo">前缀</el-checkbox>
<el-input class="w400" :disabled="isEdit || isInfo" @focus="form.cardCodePrefixCheck = 1" v-model="form.cardCodePrefix" :maxlength="3" @blur="checkInputString(form.cardCodePrefix, 'cardCodePrefix')"></el-input>
<span class="fz13 gray">限制3位以内字母/数字</span>
<el-input class="w400" :disabled="isEdit || isInfo" placeholder="限制3位以内字母/数字" @focus="form.cardCodePrefixCheck = 1" v-model="form.cardCodePrefix" :maxlength="3" @blur="checkInputString(form.cardCodePrefix, 'cardCodePrefix')"></el-input>
<span class="fz13 gray">请确保ERP支持添加前缀后的code;</span>
</div>
</el-form-item>
<el-form-item prop="customCodeBegin" label="code号段" v-show="form.useCustomCode === 1">
......
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