Commit aa939776 by chenxin

Merge branch 'dev' into 'master'

fix:count != 0 且渠道包含微盟微商城   必须填写微盟券号  否则券无效

See merge request !47
parents cda0516f 123e8834
......@@ -429,6 +429,17 @@ export default {
},
//提交保存
async submitForm(formName) {
// 可以选微盟且渠道含微盟微商城 -- 微盟券号不能为空
if (this.form.cardApplyChannel.indexOf('WMmicroMall') !== -1 && this.countFlag) {
if (!this.weimobDemoCodeList.length) {
this.$tips({ type: 'warning', message: '适用渠道包含微盟微商城,微盟券号不能为空' });
return;
}
if (this.weimobDemoCodeList.some(v => !v.save)) {
this.$tips({ type: 'warning', message: '微盟券号含有未保存的数据' });
return;
}
}
// 验证微盟适用商品 勾选适用商品
if ((this.form.cardType === 0 || this.form.cardType === 1) && this.form.cardApplyChannel.indexOf('WMmicroMall') !== -1) {
let wmProduct = await this.handleCombine();
......@@ -749,7 +760,7 @@ export default {
// ------微盟店铺开始-------
saveWmShop(saveItem, idx) {
if (!saveItem.pid || !saveItem.card) {
this.$message({ message: '该条券号保存不完整', type: '' });
this.$message({ message: '该条券号保存不完整', type: 'warning' });
return;
}
this.weimobDemoCodeList[idx].save = true;
......
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