Commit 7688e23b by crushh

update: dist

parent 67d11c83
......@@ -515,10 +515,9 @@ export default {
},
//切换卡券类型 表单置为默认值
reset(e) {
if (this.form.useCardCodePrefix || this.form.cardCodePrefix) {
initForm.useCardCodePrefix = this.form.useCardCodePrefix;
initForm.cardCodePrefix = this.form.cardCodePrefix;
}
initForm.useCardCodePrefix = this.form.useCardCodePrefix;
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));
......@@ -531,6 +530,7 @@ export default {
if (this.isAdd && this.cardApplyChannelOptions.some(v => v.value === 'offlineStore')) {
this.form.cardApplyChannel = ['offlineStore'];
}
this.$refs.form.clearValidate();
},
//卡券营销--卡券库--新建/编辑卡券/卡券记录-领取记录-点击卡券查看详情
async getCardDetail() {
......@@ -543,6 +543,7 @@ export default {
this.cardCodePrefixFlag = manualGetFlagSettingRes.result.cardCodePrefixFlag;
if (this.isAdd && manualGetFlagSettingRes.result.cardCodePrefixDefault) {
this.form.cardCodePrefix = manualGetFlagSettingRes.result.cardCodePrefixDefault;
this.form.useCardCodePrefix = 1;
}
let res = null;
......
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